[jfs?] general protection fault in txBegin

6 views
Skip to first unread message

syzbot

unread,
Dec 30, 2022, 4:46:40 PM12/30/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c4215ee4771b Linux 4.14.302
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12c89632480000
kernel config: https://syzkaller.appspot.com/x/.config?x=4a9988fe055c9527
dashboard link: https://syzkaller.appspot.com/bug?extid=f65a55035f84abcc6eed
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c93ba055d204/disk-c4215ee4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bfbc929a33c1/vmlinux-c4215ee4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/444658051770/bzImage-c4215ee4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f65a55...@syzkaller.appspotmail.com

overlayfs: upper fs does not support tmpfile.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 11844 Comm: syz-executor.1 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff888070a46500 task.stack: ffff8880704d8000
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:328 [inline]
RIP: 0010:txBegin+0x12c/0x800 fs/jfs/jfs_txnmgr.c:379
RSP: 0018:ffff8880704df7c8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888070a46500 RCX: ffffc900062bd000
RDX: 0000000000000008 RSI: ffffffff823e5527 RDI: 0000000000000040
RBP: 0000000000000000 R08: ffffffff8b9cb828 R09: 00000000000401e5
R10: ffff888070a46dd8 R11: ffff888070a46500 R12: 0000000000000000
R13: ffffffff87b54600 R14: 0000000000000001 R15: ffff8880951420c0
FS: 00007f4b11d5f700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd7a5e4c10 CR3: 000000009a532000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000006
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__jfs_xattr_set+0x91/0x130 fs/jfs/xattr.c:928
__vfs_setxattr+0xdc/0x130 fs/xattr.c:150
__vfs_setxattr_noperm+0xfd/0x3d0 fs/xattr.c:181
__vfs_setxattr_locked+0x14d/0x250 fs/xattr.c:239
vfs_setxattr+0xcf/0x230 fs/xattr.c:256
ovl_do_setxattr fs/overlayfs/overlayfs.h:138 [inline]
ovl_fill_super+0x1127/0x2610 fs/overlayfs/super.c:1023
mount_nodev+0x4c/0xf0 fs/super.c:1180
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2572 [inline]
do_mount+0xe65/0x2a30 fs/namespace.c:2905
SYSC_mount fs/namespace.c:3121 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3098
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f4b137ed0a9
RSP: 002b:00007f4b11d5f168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f4b1390cf80 RCX: 00007f4b137ed0a9
RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f4b13848ae9 R08: 0000000020000340 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffe24caaff R14: 00007f4b11d5f300 R15: 0000000000022000
Code: 83 e4 02 48 89 04 24 e8 23 05 17 ff 45 85 e4 75 65 e8 19 05 17 ff 48 8d 7d 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 26 06 00 00 48 8b 45 40 a8 04 0f 85 8a 01 00
RIP: constant_test_bit arch/x86/include/asm/bitops.h:328 [inline] RSP: ffff8880704df7c8
RIP: txBegin+0x12c/0x800 fs/jfs/jfs_txnmgr.c:379 RSP: ffff8880704df7c8
---[ end trace 485f6fcdcd12c061 ]---
----------------
Code disassembly (best guess):
0: 83 e4 02 and $0x2,%esp
3: 48 89 04 24 mov %rax,(%rsp)
7: e8 23 05 17 ff callq 0xff17052f
c: 45 85 e4 test %r12d,%r12d
f: 75 65 jne 0x76
11: e8 19 05 17 ff callq 0xff17052f
16: 48 8d 7d 40 lea 0x40(%rbp),%rdi
1a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
21: fc ff df
24: 48 89 fa mov %rdi,%rdx
27: 48 c1 ea 03 shr $0x3,%rdx
* 2b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2f: 0f 85 26 06 00 00 jne 0x65b
35: 48 8b 45 40 mov 0x40(%rbp),%rax
39: a8 04 test $0x4,%al
3b: 0f .byte 0xf
3c: 85 .byte 0x85
3d: 8a 01 mov (%rcx),%al


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
Reply all
Reply to author
Forward
0 new messages