syzbot


WARNING in bdev_getblk

Status: upstream: reported C repro on 2025/07/06 13:59
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+01ef7a8da81a975e1ccd@syzkaller.appspotmail.com
Fix commit: 7e49538288e5 loop: Avoid updating block size under exclusive owner
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce 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-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-gce-arm64 ci-upstream-kasan-gce-smack-root ci2-upstream-usb]
First crash: 32d, last: 4d00h
Cause bisection: introduced by (bisect log) :
commit 77eb64439ad52d8afb57bb4dae24a2743c68f50d
Author: Pankaj Raghav <p.raghav@samsung.com>
Date: Thu Jun 26 11:32:23 2025 +0000

  fs/buffer: remove the min and max limit checks in __getblk_slow()

Crash: WARNING in bdev_getblk (log)
Repro: C syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 6.6 11/23] loop: Avoid updating block size under exclusive owner 1 (1) 2025/08/03 21:20
[PATCH AUTOSEL 6.12 16/31] loop: Avoid updating block size under exclusive owner 1 (1) 2025/08/03 21:19
[PATCH AUTOSEL 6.15 18/34] loop: Avoid updating block size under exclusive owner 1 (1) 2025/08/03 21:18
[PATCH AUTOSEL 6.16 19/35] loop: Avoid updating block size under exclusive owner 1 (1) 2025/08/03 21:17
[syzbot] [exfat?] WARNING in bdev_getblk 3 (7) 2025/07/15 10:36
[PATCH] loop: Avoid updating block size under exclusive owner 2 (2) 2025/07/12 02:40
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/07/11 16:42 46m jack@suse.cz patch linux-next OK log

Sample crash report:
syz.0.16: attempt to access beyond end of device
nbd0: rw=0, sector=256, nr_sectors = 1 limit=0
UDF-fs: error (device nbd0): udf_read_tagged: read failed, block=256, location=256
------------[ cut here ]------------
WARNING: fs/buffer.c:1125 at __getblk_slow fs/buffer.c:1125 [inline], CPU#0: syz.0.16/6056
WARNING: fs/buffer.c:1125 at bdev_getblk+0x580/0x660 fs/buffer.c:1461, CPU#0: syz.0.16/6056
Modules linked in:
CPU: 0 UID: 0 PID: 6056 Comm: syz.0.16 Not tainted 6.16.0-next-20250731-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__getblk_slow fs/buffer.c:1125 [inline]
RIP: 0010:bdev_getblk+0x580/0x660 fs/buffer.c:1461
Code: 26 fb ff ff e8 91 d3 78 ff 48 c7 c7 20 21 ba 8b 48 c7 c6 88 82 cb 8d 4c 89 fa 4c 89 e9 e8 e8 7c e0 fe eb bd e8 71 d3 78 ff 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 41 80 3c 07 00 74 08 48 89
RSP: 0018:ffffc900034f76b0 EFLAGS: 00010293
RAX: ffffffff82471fcf RBX: ffff8880232bdc18 RCX: ffff888079e1bc00
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: 0000000000000200 R08: 0000000000000000 R09: ffffffff8215febd
R10: 0000000000000406 R11: 0000000000000000 R12: ffff8880232be570
R13: ffff8880232bdc00 R14: 0000000000000200 R15: 1ffff11004657b83
FS:  00007f8ad82076c0(0000) GS:ffff88812580a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000004a00 CR3: 0000000075720000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __bread_gfp+0x89/0x3c0 fs/buffer.c:1515
 sb_bread include/linux/buffer_head.h:346 [inline]
 udf_read_tagged+0xad/0xe00 fs/udf/misc.c:199
 udf_check_anchor_block+0x99/0x550 fs/udf/super.c:1912
 udf_scan_anchors fs/udf/super.c:1990 [inline]
 udf_load_vrs+0xa83/0xf20 fs/udf/super.c:2033
 udf_fill_super+0x5ad/0x17a0 fs/udf/super.c:2201
 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1692
 vfs_get_tree+0x92/0x2b0 fs/super.c:1815
 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3805
 do_mount fs/namespace.c:4133 [inline]
 __do_sys_mount fs/namespace.c:4344 [inline]
 __se_sys_mount+0x317/0x410 fs/namespace.c:4321
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8ad738e9a9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ad8207038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f8ad75b5fa0 RCX: 00007f8ad738e9a9
RDX: 0000200000000080 RSI: 0000200000004a00 RDI: 0000200000000000
RBP: 00007f8ad7410d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f8ad75b5fa0 R15: 00007fffb2a29888
 </TASK>

Crashes (94):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/31 09:35 linux-next 84b92a499e7e f8f2b4da .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/10 09:47 linux-next 835244aba90d 956bd956 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/29 03:21 upstream ced1b9e0392d c4a95487 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bdev_getblk
2025/07/31 13:26 linux-next 84b92a499e7e f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/23 19:45 linux-next d086c886ceb9 e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/23 01:11 linux-next d086c886ceb9 85deaf45 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/22 04:11 linux-next d086c886ceb9 0b3788a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/21 15:43 linux-next d086c886ceb9 0b3788a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/21 00:07 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/20 20:48 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/20 13:45 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/20 02:11 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/20 00:40 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/19 23:04 linux-next d086c886ceb9 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/18 16:57 linux-next d086c886ceb9 f550e092 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/18 15:51 linux-next d086c886ceb9 f550e092 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/18 03:16 linux-next 024e09e444bd 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/17 00:59 linux-next e8352908bdcd 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/16 23:52 linux-next e8352908bdcd 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/16 16:19 linux-next e8352908bdcd c118d736 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/16 11:57 linux-next 0be23810e32e c118d736 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/16 11:37 linux-next 0be23810e32e c118d736 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/15 23:52 linux-next 0be23810e32e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/15 16:01 linux-next 0be23810e32e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/15 05:11 linux-next 0be23810e32e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/15 03:38 linux-next 0be23810e32e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/15 02:19 linux-next 0be23810e32e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/14 10:14 linux-next a62b7a37e6fc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/13 21:31 linux-next a62b7a37e6fc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/13 21:30 linux-next a62b7a37e6fc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/12 10:35 linux-next a62b7a37e6fc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/11 21:03 linux-next a62b7a37e6fc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/10 12:53 linux-next b551c4e2a98a 19d4829f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/10 06:48 linux-next 835244aba90d 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 16:42 linux-next 835244aba90d f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/09 08:57 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 05:44 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING in bdev_getblk
2025/07/09 05:09 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:56 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:53 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:46 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:40 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:39 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 04:37 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/09 00:16 linux-next 58ba80c47402 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/06 05:27 linux-next 26ffb3d6f02c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
2025/07/02 13:53 linux-next 50c8770a42fa 0cd59a8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bdev_getblk
* Struck through repros no longer work on HEAD.