kernel BUG in dbAlloc

6 views
Skip to first unread message

syzbot

unread,
Oct 15, 2022, 3:44:41 AM10/15/22
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=16ff5b62880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=c21d9e2548ce86117464
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/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

audit: type=1804 audit(1665819797.678:265): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
BUG at fs/jfs/jfs_dmap.c:713 assert(nblocks > 0)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:713!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 21116 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff88809c097710 EFLAGS: 00010286
audit: type=1804 audit(1665819797.678:266): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
RAX: 0000000000000030 RBX: ffff8880966c4428 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1013812ed4
RBP: ffff8880966c4428 R08: 0000000000000030 R09: 0000000000000000
audit: type=1804 audit(1665819797.678:267): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880b35db000 R15: 0000000000000004
FS: 00007f9e1c68e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffea5663ff8 CR3: 0000000098858000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
audit: type=1804 audit(1665819797.678:268): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ea_get+0xa54/0x1180 fs/jfs/xattr.c:527
audit: type=1804 audit(1665819797.678:269): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
__jfs_setxattr+0xdb/0xf50 fs/jfs/xattr.c:684
audit: type=1804 audit(1665819797.678:270): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
__jfs_xattr_set+0xc9/0x150 fs/jfs/xattr.c:930
audit: type=1804 audit(1665819797.678:271): pid=21098 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir94563667/syzkaller.lDTAJk/314/file0" dev="sda1" ino=14673 res=1
__vfs_setxattr+0x10e/0x170 fs/xattr.c:149
__vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
__vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
vfs_setxattr+0xe5/0x270 fs/xattr.c:255
setxattr+0x23d/0x330 fs/xattr.c:520
path_setxattr+0x170/0x190 fs/xattr.c:539
__do_sys_setxattr fs/xattr.c:554 [inline]
__se_sys_setxattr fs/xattr.c:550 [inline]
__x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f9e1dd1b5a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9e1c68e168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f9e1de3bf80 RCX: 00007f9e1dd1b5a9
RDX: 0000000000000000 RSI: 0000000020004e40 RDI: 0000000020004e00
RBP: 00007f9e1dd76580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffddee55cf R14: 00007f9e1c68e300 R15: 0000000000022000
Modules linked in:
---[ end trace 406be278c728db2a ]---
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff88809c097710 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff8880966c4428 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1013812ed4
RBP: ffff8880966c4428 R08: 0000000000000030 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880b35db000 R15: 0000000000000004
FS: 00007f9e1c68e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffea5663ff8 CR3: 0000000098858000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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

unread,
Oct 15, 2022, 4:59:43 AM10/15/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for 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=13be33b2880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=c21d9e2548ce86117464
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=133eeb8a880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12b53bfa880000
mounted in repro: https://storage.googleapis.com/syzbot-assets/67eed629b220/mount_0.gz

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

BUG at fs/jfs/jfs_dmap.c:713 assert(nblocks > 0)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:713!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8082 Comm: syz-executor757 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff8880956b7710 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff8880b545c5a8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012ad6ed4
RBP: ffff8880b545c5a8 R08: 0000000000000030 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880a55672c0 R15: 0000000000000004
FS: 0000555557257300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1f60a06c0 CR3: 00000000a3f7b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ea_get+0xa54/0x1180 fs/jfs/xattr.c:527
__jfs_setxattr+0xdb/0xf50 fs/jfs/xattr.c:684
__jfs_xattr_set+0xc9/0x150 fs/jfs/xattr.c:930
__vfs_setxattr+0x10e/0x170 fs/xattr.c:149
__vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
__vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
vfs_setxattr+0xe5/0x270 fs/xattr.c:255
setxattr+0x23d/0x330 fs/xattr.c:520
path_setxattr+0x170/0x190 fs/xattr.c:539
__do_sys_setxattr fs/xattr.c:554 [inline]
__se_sys_setxattr fs/xattr.c:550 [inline]
__x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb1f60c7359
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffe43274f78 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fb1f60c7359
RDX: 0000000000000000 RSI: 0000000020004e40 RDI: 0000000020004e00
RBP: 00007fb1f6110a20 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200050c0
R13: 0000000020050120 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 48a75b8b01a5f548 ]---
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff8880956b7710 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff8880b545c5a8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012ad6ed4
RBP: ffff8880b545c5a8 R08: 0000000000000030 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880a55672c0 R15: 0000000000000004
FS: 0000555557257300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f057403a0b8 CR3: 00000000a3f7b000 CR4: 00000000003406f0
Reply all
Reply to author
Forward
0 new messages