syzbot


kernel BUG in dbFindLeaf

Status: upstream: reported C repro on 2022/09/26 11:46
Reported-by: syzbot+dcea2548c903300a400e@syzkaller.appspotmail.com
First crash: 66d, last: 8d08h

Cause bisection: failed (bisect log)
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in dbFindLeaf 1 386d 386d 0/1 auto-closed as invalid on 2022/03/07 18:32
linux-4.14 kernel BUG in dbFindLeaf C 3 24d 57d 0/1 upstream: reported C repro on 2022/10/02 18:35
linux-4.19 kernel BUG in dbFindLeaf (2) C 6 19d 58d 0/1 upstream: reported C repro on 2022/10/02 04:21
linux-4.19 kernel BUG in dbAlloc C error 2 45d 45d 0/1 upstream: reported C repro on 2022/10/15 07:44

Sample crash report:
loop0: detected capacity change from 0 to 32768
BUG at fs/jfs/jfs_dmap.c:2933 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:2933!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3613 Comm: syz-executor184 Not tainted 6.0.0-syzkaller-06205-gffb39098bf87 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbFindLeaf+0x154/0x260 fs/jfs/jfs_dmap.c:2933
Code: fe 83 fb 04 75 89 e8 bb 98 a1 fe 48 c7 c1 80 9b 29 8a ba 75 0b 00 00 48 c7 c6 c0 99 29 8a 48 c7 c7 00 9a 29 8a e8 6b 20 66 06 <0f> 0b e8 95 98 a1 fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffffc90003c8f490 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: ffff8880268b1d80 RSI: ffffffff8160f738 RDI: fffff52000791e84
RBP: 000000000000001c R08: 000000000000002b R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffff888026398010
R13: 0000000000000000 R14: 00000000ffffffff R15: 00000000001cb702
FS:  0000555555e39300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdb8738fd0 CR3: 000000001c9ba000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 dbAllocDmapLev+0xa3/0x2c0 fs/jfs/jfs_dmap.c:1937
 dbAlloc+0x804/0xa70 fs/jfs/jfs_dmap.c:825
 extBalloc fs/jfs/jfs_extent.c:321 [inline]
 extAlloc+0x4e7/0xeb0 fs/jfs/jfs_extent.c:122
 jfs_get_block+0x661/0xa90 fs/jfs/inode.c:248
 __block_write_begin_int+0x3ca/0x1520 fs/buffer.c:2006
 __block_write_begin fs/buffer.c:2056 [inline]
 block_write_begin+0xb5/0x4d0 fs/buffer.c:2117
 jfs_write_begin+0x2d/0xd0 fs/jfs/inode.c:304
 generic_perform_write+0x246/0x560 mm/filemap.c:3738
 __generic_file_write_iter+0x2aa/0x4d0 mm/filemap.c:3866
 generic_file_write_iter+0xdf/0x350 mm/filemap.c:3898
 call_write_iter include/linux/fs.h:2187 [inline]
 do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
 do_iter_write+0x182/0x700 fs/read_write.c:861
 vfs_writev+0x1aa/0x630 fs/read_write.c:934
 do_writev+0x133/0x2f0 fs/read_write.c:977
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6dda2c8e69
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:00007ffd533663f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f6dda2c8e69
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007f6dda288630 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFindLeaf+0x154/0x260 fs/jfs/jfs_dmap.c:2933
Code: fe 83 fb 04 75 89 e8 bb 98 a1 fe 48 c7 c1 80 9b 29 8a ba 75 0b 00 00 48 c7 c6 c0 99 29 8a 48 c7 c7 00 9a 29 8a e8 6b 20 66 06 <0f> 0b e8 95 98 a1 fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffffc90003c8f490 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: ffff8880268b1d80 RSI: ffffffff8160f738 RDI: fffff52000791e84
RBP: 000000000000001c R08: 000000000000002b R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffff888026398010
R13: 0000000000000000 R14: 00000000ffffffff R15: 00000000001cb702
FS:  0000555555e39300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b0f7f5e898 CR3: 000000001c9ba000 CR4: 0000000000350ee0

Crashes (68):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/07 15:26 upstream ffb39098bf87 8a212197 .config log report syz C kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/02 06:03 upstream ffb4d94b4314 feb56351 .config log report syz C kernel BUG in dbFindLeaf
ci-upstream-kasan-gce-root 2022/10/26 03:06 upstream 4dc12f37a8e9 1984aebd .config log report syz C kernel BUG in dbAlloc
ci-upstream-kasan-gce-root 2022/10/11 13:05 upstream 55be6084c8e0 2b253ced .config log report syz C kernel BUG in dbAlloc
ci-upstream-kasan-gce-root 2022/10/08 18:15 upstream e8bc52cb8df8 aea5da89 .config log report syz C kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/06 05:00 upstream 2bca25eaeba6 2c6543ad .config log report syz C kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/03 03:59 upstream a962b54e162c feb56351 .config log report syz C kernel BUG in dbFindBits
ci-upstream-kasan-gce-root 2022/09/29 18:30 upstream c3e0e1e23c70 1d385642 .config log report syz C kernel BUG in dbFindBits
ci-upstream-linux-next-kasan-gce-root 2022/11/07 03:38 linux-next 0cdb3579f1ee 6d752409 .config log report syz C kernel BUG in dbAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/04 05:23 linux-next 81214a573d19 6d752409 .config log report syz C kernel BUG in dbFindBits
ci-upstream-gce-arm64 2022/10/15 09:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report syz C kernel BUG in dbAlloc
ci-upstream-gce-arm64 2022/10/05 00:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 eab8f949 .config log report syz C kernel BUG in dbAlloc
ci-upstream-gce-arm64 2022/10/02 03:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config log report syz C kernel BUG in dbAllocDmapLev
ci2-upstream-fs 2022/11/21 02:58 upstream 77c51ba552a1 5bb70014 .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/11/20 19:25 upstream 77c51ba552a1 5bb70014 .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/11/12 07:44 upstream eb037f16f7e8 f42ee5d8 .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/11/02 17:05 upstream b229b6ca5abb 08977f5d .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/11/02 11:32 upstream b229b6ca5abb 08977f5d .config log report info kernel BUG in dbFindLeaf
ci-upstream-kasan-gce-smack-root 2022/10/31 05:02 upstream b229b6ca5abb 2a71366b .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/28 03:48 upstream b229b6ca5abb 5c716ff6 .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/27 10:58 upstream 4dc12f37a8e9 86777b7f .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/27 03:07 upstream 4dc12f37a8e9 86777b7f .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/24 01:00 upstream d47136c28015 23bf86af .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/21 00:22 upstream 493ffd6605b2 a0fd4dab .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/19 17:22 upstream 493ffd6605b2 b31320fc .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/10/12 05:39 upstream 493ffd6605b2 02b6492e .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/09/24 06:46 upstream bf682942cd26 0042f2b4 .config log report info kernel BUG in dbFindLeaf
ci2-upstream-fs 2022/11/20 12:27 upstream fe24a97cf254 5bb70014 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/19 20:58 upstream fe24a97cf254 5bb70014 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/18 13:46 upstream 84368d882b96 5bb70014 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/16 20:36 upstream 59d0d52c30d4 3a127a31 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/15 13:07 upstream e01d50cbd6ee 97de9cfc .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/13 06:54 upstream fef7fd48922d f42ee5d8 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/13 03:51 upstream fef7fd48922d f42ee5d8 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/03 09:54 upstream b229b6ca5abb 7a2ebf95 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/11/01 17:10 upstream b229b6ca5abb a1d8560a .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/30 11:13 upstream b229b6ca5abb 2a71366b .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/30 05:26 upstream b229b6ca5abb 2a71366b .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/29 06:23 upstream b229b6ca5abb 899d812a .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/27 17:42 upstream b229b6ca5abb 5c716ff6 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/24 00:30 upstream d47136c28015 23bf86af .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/22 22:59 upstream 440b7895c990 c0b80a55 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/20 16:23 upstream 493ffd6605b2 b31320fc .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/20 08:59 upstream 493ffd6605b2 b31320fc .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/18 02:24 upstream 493ffd6605b2 94744d21 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/16 14:54 upstream 493ffd6605b2 67cb024c .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/14 16:20 upstream 493ffd6605b2 4954e4b2 .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/13 06:43 upstream 493ffd6605b2 3f6b40a1 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/12 03:52 upstream 493ffd6605b2 02b6492e .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/11 04:46 upstream 493ffd6605b2 5bcf0c31 .config log report info kernel BUG in dbFindBits
ci2-upstream-fs 2022/10/09 07:36 upstream a6afa4199d3d aea5da89 .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/08 11:21 upstream 62e6e5940c0c aea5da89 .config log report info kernel BUG in dbAlloc
ci-qemu-upstream 2022/10/07 20:04 upstream 4c86114194e6 79a59635 .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/10/07 04:00 upstream ffb39098bf87 8a212197 .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/10/06 17:36 upstream 833477fce7a1 131b38ac .config log report info kernel BUG in dbAlloc
ci-qemu-upstream 2022/10/06 17:24 upstream 833477fce7a1 131b38ac .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/10/02 18:26 upstream b357fd1c2afc feb56351 .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/10/02 18:21 upstream b357fd1c2afc feb56351 .config log report info kernel BUG in dbAlloc
ci2-upstream-fs 2022/10/02 03:24 upstream ffb4d94b4314 feb56351 .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/09/30 21:33 upstream 5a77386984b5 feb56351 .config log report info kernel BUG in dbAlloc
ci-upstream-kasan-gce-selinux-root 2022/09/30 21:24 upstream 5a77386984b5 feb56351 .config log report info kernel BUG in dbAlloc
ci-upstream-gce-arm64 2022/11/11 07:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info kernel BUG in dbAllocDmapLev
ci-upstream-gce-arm64 2022/11/08 13:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 3577a7611842 881db35d .config log report info kernel BUG in dbAllocDmapLev
ci-upstream-gce-arm64 2022/10/28 21:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config log report info kernel BUG in dbAllocDmapLev
ci-upstream-gce-arm64 2022/10/27 07:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config log report info kernel BUG in dbAllocDmapLev
ci-upstream-gce-arm64 2022/10/16 01:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info kernel BUG in dbAllocDmapLev
ci-upstream-gce-arm64 2022/10/13 14:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config log report info kernel BUG in dbAlloc
* Struck through repros no longer work on HEAD.