syzbot


kernel BUG in submit_bh_wbc (2)

Status: upstream: reported C repro on 2024/04/25 09:05
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+5f682cd029581f9edfd1@syzkaller.appspotmail.com
Fix commit: udf: Avoid using corrupted block bitmap buffer
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 81d, last: 4h31m
Cause bisection: introduced by (bisect log) :
commit 1e0d4adf17e7ef03281d7b16555e7c1508c8ed2d
Author: Vladislav Efanov <VEfanov@ispras.ru>
Date: Thu Feb 2 14:04:56 2023 +0000

  udf: Check consistency of Space Bitmap Descriptor

Crash: kernel BUG in submit_bh_wbc (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 2/3] udf: Avoid using corrupted block bitmap buffer 1 (1) 2024/06/17 15:41
[syzbot] Monthly udf report (Jun 2024) 0 (1) 2024/06/15 17:49
[syzbot] Monthly udf report (May 2024) 0 (1) 2024/05/14 20:49
[syzbot] [udf?] kernel BUG in submit_bh_wbc (2) 0 (1) 2024/04/25 09:05
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in submit_bh_wbc origin:lts-only C 19 38d 466d 0/3 upstream: reported C repro on 2023/04/04 23:04
upstream kernel BUG at fs/buffer.c:LINE! nilfs C done error 567 96d 2278d 26/27 fixed on 2024/04/10 03:59
linux-4.14 kernel BUG at fs/buffer.c:LINE! C error 59 510d 1905d 0/1 upstream: reported C repro on 2019/04/27 19:47
linux-4.19 kernel BUG at fs/buffer.c:LINE! (2) udf ext4 C error 31 517d 1331d 0/1 upstream: reported C repro on 2020/11/21 07:48
android-54 kernel BUG at fs/buffer.c:LINE! ext4 C 1187 11d 1636d 0/2 upstream: reported C repro on 2020/01/21 13:12
linux-5.15 kernel BUG in submit_bh_wbc C error 8 128d 406d 0/3 auto-obsoleted due to no activity on 2024/06/16 14:58
upstream kernel BUG in submit_bh_wbc nilfs C done 10 81d 90d 26/27 fixed on 2024/04/24 18:26
android-6-1 kernel BUG in submit_bh_wbc missing-backport origin:lts C done done 141 13h13m 395d 0/2 upstream: reported C repro on 2023/06/15 00:20

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/buffer.c:2768!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 5077 Comm: syz-executor119 Not tainted 6.9.0-syzkaller-01768-ga5131c3fdf26 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:submit_bh_wbc+0x546/0x560 fs/buffer.c:2768
Code: 74 7b ff be 00 10 00 00 48 c7 c7 00 c3 47 8e 4c 89 fa e8 dd 87 c5 02 e9 95 fe ff ff e8 e3 73 7b ff 90 0f 0b e8 db 73 7b ff 90 <0f> 0b e8 d3 73 7b ff 90 0f 0b e8 cb 73 7b ff 90 0f 0b e8 c3 73 7b
RSP: 0018:ffffc90003e37878 EFLAGS: 00010293
RAX: ffffffff821acf05 RBX: 0000000000000000 RCX: ffff88807fd35a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff821aca63 R09: 1ffff1100fe3783a
R10: dffffc0000000000 R11: ffffed100fe3783b R12: 0000000000000000
R13: ffff88807f1bc1d0 R14: 0000000000000000 R15: 1ffff1100fe3783a
FS:  000055558f228380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055717debdb78 CR3: 000000004fdce000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 submit_bh fs/buffer.c:2809 [inline]
 __bh_read fs/buffer.c:3074 [inline]
 bh_read_nowait include/linux/buffer_head.h:417 [inline]
 __block_write_begin_int+0x12d0/0x1a70 fs/buffer.c:2134
 __block_write_begin fs/buffer.c:2154 [inline]
 block_write_begin+0x9b/0x1e0 fs/buffer.c:2213
 udf_write_begin+0x10d/0x1a0 fs/udf/inode.c:261
 generic_perform_write+0x322/0x640 mm/filemap.c:3974
 udf_file_write_iter+0x2fd/0x660 fs/udf/file.c:111
 call_write_iter include/linux/fs.h:2120 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa2d/0xc50 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb713220839
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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:00007ffc803fb7a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffc803fb978 RCX: 00007fb713220839
RDX: 0000000000000001 RSI: 0000000020000700 RDI: 0000000000000004
RBP: 00007fb713293610 R08: 00007ffc803fb978 R09: 00007ffc803fb978
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc803fb968 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:submit_bh_wbc+0x546/0x560 fs/buffer.c:2768
Code: 74 7b ff be 00 10 00 00 48 c7 c7 00 c3 47 8e 4c 89 fa e8 dd 87 c5 02 e9 95 fe ff ff e8 e3 73 7b ff 90 0f 0b e8 db 73 7b ff 90 <0f> 0b e8 d3 73 7b ff 90 0f 0b e8 cb 73 7b ff 90 0f 0b e8 c3 73 7b
RSP: 0018:ffffc90003e37878 EFLAGS: 00010293
RAX: ffffffff821acf05 RBX: 0000000000000000 RCX: ffff88807fd35a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff821aca63 R09: 1ffff1100fe3783a
R10: dffffc0000000000 R11: ffffed100fe3783b R12: 0000000000000000
R13: ffff88807f1bc1d0 R14: 0000000000000000 R15: 1ffff1100fe3783a
FS:  000055558f228380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055717debdb78 CR3: 000000004fdce000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (114):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/14 16:03 upstream a5131c3fdf26 fdb4c10c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/04/24 19:43 upstream e88c4cfcb7b8 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/04/28 10:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 07b455f9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in submit_bh_wbc
2024/07/14 18:13 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/14 07:38 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/11 02:42 upstream a19ea421490d 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/11 01:10 upstream a19ea421490d 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/10 23:24 upstream a19ea421490d 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/10 19:06 upstream a19ea421490d 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/10 13:26 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/08 20:18 upstream 256abd8e550c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/08 18:29 upstream 256abd8e550c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/08 10:37 upstream 256abd8e550c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/05 21:48 upstream d270dd21bee0 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/05 07:29 upstream 661e504db04c 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/04 05:41 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/03 23:37 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/02 22:35 upstream 1dfe225e9af5 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/02 09:24 upstream 73e931504f8e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/02 00:18 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/07/01 21:42 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/26 09:42 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/25 22:50 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/25 17:24 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/25 07:51 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/25 01:51 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/24 20:17 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/19 19:29 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/19 15:44 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/18 21:07 upstream 2ccbdf43d5e7 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/15 00:21 upstream 2ccbdf43d5e7 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in submit_bh_wbc
2024/06/14 23:21 upstream 2ccbdf43d5e7 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in submit_bh_wbc
2024/06/13 11:43 upstream 2ccbdf43d5e7 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/13 09:35 upstream 2ccbdf43d5e7 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/07 13:05 upstream 8a92980606e3 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/05 11:23 upstream 32f88d65f01b e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/05/26 21:34 upstream 6fbf71854e2d a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in submit_bh_wbc
2024/05/26 06:38 upstream 74eca356f6d4 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/05/25 23:14 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in submit_bh_wbc
2024/05/24 19:30 upstream 8f6a15f095a6 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in submit_bh_wbc
2024/05/23 12:23 upstream b6394d6f7159 4c2072ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/05/21 06:33 upstream daa121128a2d c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/05/20 20:35 upstream eb6a9339efeb c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in submit_bh_wbc
2024/05/19 08:22 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in submit_bh_wbc
2024/06/19 14:29 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in submit_bh_wbc
2024/06/19 05:58 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in submit_bh_wbc
2024/06/16 01:19 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in submit_bh_wbc
2024/06/14 16:47 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in submit_bh_wbc
2024/06/17 14:58 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in submit_bh_wbc
2024/06/14 16:38 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in submit_bh_wbc
2024/05/19 10:10 linux-next c75962170e49 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in submit_bh_wbc
2024/07/12 09:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in submit_bh_wbc
2024/06/22 15:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in submit_bh_wbc
2024/06/14 20:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in submit_bh_wbc
2024/05/25 20:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in submit_bh_wbc
* Struck through repros no longer work on HEAD.