general protection fault in lbmStartIO (2)

7 views
Skip to first unread message

syzbot

unread,
Dec 18, 2021, 7:23:26 PM12/18/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1724300db00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=de6cc03ea3d42e9a849d
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104d41ebb00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=115d3bcdb00000

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

JFS: discard option not supported on device
JFS: discard option not supported on device
JFS: discard option not supported on device
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
CPU: 0 PID: 8685 Comm: syz-executor286 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lbmStartIO+0x12b/0x480 fs/jfs/jfs_logmgr.c:2143 fs/jfs/jfs_logmgr.c:2143
Code: c1 ea 03 80 3c 02 00 0f 85 f5 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 20 49 8d bd e0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ef 02 00 00 4d 8b ad e0 00 00 00 4d 39 ee 74 67
RSP: 0018:ffff888093a97910 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a955e300 RCX: 0000000000000003
RDX: 000000000000001c RSI: ffffffff835f37ea RDI: 00000000000000e0
RBP: ffff8880a9175640 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888098b37b40
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002
FS: 0000555555a17300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef1dd4108 CR3: 00000000aad72000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lbmWrite+0x27b/0x3a0 fs/jfs/jfs_logmgr.c:2092 fs/jfs/jfs_logmgr.c:2092
lmNextPage.isra.0+0x285/0x740 fs/jfs/jfs_logmgr.c:637 fs/jfs/jfs_logmgr.c:637
lmWriteRecord+0x94a/0xee0 fs/jfs/jfs_logmgr.c:550 fs/jfs/jfs_logmgr.c:550
lmLog+0x294/0xb60 fs/jfs/jfs_logmgr.c:327 fs/jfs/jfs_logmgr.c:327
logMOUNT fs/jfs/jfs_mount.c:514 [inline]
logMOUNT fs/jfs/jfs_mount.c:514 [inline] fs/jfs/jfs_mount.c:287
jfs_mount_rw+0x3e6/0x4b0 fs/jfs/jfs_mount.c:287 fs/jfs/jfs_mount.c:287
jfs_fill_super+0x814/0xb50 fs/jfs/super.c:598 fs/jfs/super.c:598
mount_bdev+0x2fc/0x3b0 fs/super.c:1158 fs/super.c:1158
mount_fs+0xa3/0x310 fs/super.c:1261 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2492 [inline]
vfs_kern_mount fs/namespace.c:951 [inline] fs/namespace.c:2822
do_new_mount fs/namespace.c:2492 [inline] fs/namespace.c:2822
do_mount+0x115c/0x2f50 fs/namespace.c:2822 fs/namespace.c:2822
ksys_mount+0xcf/0x130 fs/namespace.c:3038 fs/namespace.c:3038
__do_sys_mount fs/namespace.c:3052 [inline]
__se_sys_mount fs/namespace.c:3049 [inline]
__do_sys_mount fs/namespace.c:3052 [inline] fs/namespace.c:3049
__se_sys_mount fs/namespace.c:3049 [inline] fs/namespace.c:3049
__x64_sys_mount+0xba/0x150 fs/namespace.c:3049 fs/namespace.c:3049
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6fe4c04f0a
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef1dd3f98 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffef1dd3ff0 RCX: 00007f6fe4c04f0a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffef1dd3fb0
RBP: 00007ffef1dd3fb0 R08: 00007ffef1dd3ff0 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000282 R12: 0000000020004130
R13: 0000000000000003 R14: 0000000000000004 R15: 00000000000002a2
Modules linked in:
---[ end trace 575c29ca55a20288 ]---
RIP: 0010:lbmStartIO+0x12b/0x480 fs/jfs/jfs_logmgr.c:2143 fs/jfs/jfs_logmgr.c:2143
Code: c1 ea 03 80 3c 02 00 0f 85 f5 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 20 49 8d bd e0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ef 02 00 00 4d 8b ad e0 00 00 00 4d 39 ee 74 67
RSP: 0018:ffff888093a97910 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a955e300 RCX: 0000000000000003
RDX: 000000000000001c RSI: ffffffff835f37ea RDI: 00000000000000e0
RBP: ffff8880a9175640 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888098b37b40
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002
FS: 0000555555a17300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef1dd4108 CR3: 00000000aad72000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: c1 ea 03 shr $0x3,%edx
3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
7: 0f 85 f5 02 00 00 jne 0x302
d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
14: fc ff df
17: 4d 8b 6c 24 20 mov 0x20(%r12),%r13
1c: 49 8d bd e0 00 00 00 lea 0xe0(%r13),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 ef 02 00 00 jne 0x323
34: 4d 8b ad e0 00 00 00 mov 0xe0(%r13),%r13
3b: 4d 39 ee cmp %r13,%r14
3e: 74 67 je 0xa7
----------------
Code disassembly (best guess):
0: c1 ea 03 shr $0x3,%edx
3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
7: 0f 85 f5 02 00 00 jne 0x302
d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
14: fc ff df
17: 4d 8b 6c 24 20 mov 0x20(%r12),%r13
1c: 49 8d bd e0 00 00 00 lea 0xe0(%r13),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 ef 02 00 00 jne 0x323
34: 4d 8b ad e0 00 00 00 mov 0xe0(%r13),%r13
3b: 4d 39 ee cmp %r13,%r14
3e: 74 67 je 0xa7


---
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.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages