syzbot


kernel BUG in set_blocksize

Status: upstream: reported syz repro on 2024/02/01 09:14
Subsystems: block ext4
[Documentation on labels]
Reported-by: syzbot+4bfc572b93963675a662@syzkaller.appspotmail.com
First crash: 95d, last: 2d01h
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly block report (Feb 2024) 0 (1) 2024/02/09 20:57
[syzbot] Monthly ext4 report (Feb 2024) 0 (1) 2024/02/09 20:57
[syzbot] [ext4?] [block?] kernel BUG in set_blocksize 0 (1) 2024/02/01 09:14
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in set_blocksize 1 70d 70d 0/3 upstream: reported on 2024/02/26 17:38
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/04/10 21:47 23m retest repro upstream OK log
2024/02/14 23:41 17m retest repro upstream OK log

Sample crash report:
 vfs_get_tree+0x8f/0x380 fs/super.c:1779
 do_new_mount fs/namespace.c:3352 [inline]
 path_mount+0x14e6/0x1f20 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount fs/namespace.c:3875 [inline]
 __x64_sys_mount+0x297/0x320 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
------------[ cut here ]------------
kernel BUG at mm/truncate.c:413!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 2 PID: 7360 Comm: syz-executor.1 Not tainted 6.9.0-rc6-syzkaller-00234-g7367539ad4b0 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:truncate_inode_pages_range+0xcec/0xe90 mm/truncate.c:413
Code: 89 ef e8 d7 d1 c9 ff 48 39 eb 0f 82 e0 f8 ff ff e9 46 f9 ff ff e8 74 d7 c9 ff 48 c7 c6 c0 da 17 8b 4c 89 e7 e8 e5 a6 0b 00 90 <0f> 0b e8 5d d7 c9 ff 48 c7 c6 60 db 17 8b 48 89 ef e8 ce a6 0b 00
RSP: 0018:ffffc90021da7700 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90021da75a8
RDX: ffff888029e3c880 RSI: ffffffff81c3eecb RDI: ffffffff8b6f55a0
RBP: dffffc0000000000 R08: 0000000000000000 R09: fffffbfff1f3ea42
R10: ffffffff8f9f5217 R11: ffffffff816209f0 R12: ffffea0000900e80
R13: ffffffffffffffc0 R14: 0000000000000001 R15: ffffc90021da78c8
FS:  00007f60363976c0(0000) GS:ffff88806b400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555800b9938 CR3: 0000000020c7e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kill_bdev block/bdev.c:85 [inline]
 set_blocksize+0x2a3/0x350 block/bdev.c:161
 sb_set_blocksize block/bdev.c:170 [inline]
 sb_min_blocksize+0xd3/0x1e0 block/bdev.c:186
 ext4_load_super fs/ext4/super.c:5025 [inline]
 __ext4_fill_super fs/ext4/super.c:5222 [inline]
 ext4_fill_super+0x630/0xab20 fs/ext4/super.c:5699
 get_tree_bdev+0x36f/0x610 fs/super.c:1614
 vfs_get_tree+0x8f/0x380 fs/super.c:1779
 do_new_mount fs/namespace.c:3352 [inline]
 path_mount+0x14e6/0x1f20 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount fs/namespace.c:3875 [inline]
 __x64_sys_mount+0x297/0x320 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f603567f3aa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6036396ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6036396f80 RCX: 00007f603567f3aa
RDX: 0000000020000740 RSI: 0000000020000040 RDI: 00007f6036396f40
RBP: 0000000020000740 R08: 00007f6036396f80 R09: 0000000000804800
R10: 0000000000804800 R11: 0000000000000246 R12: 0000000020000040
R13: 00007f6036396f40 R14: 0000000000000750 R15: 0000000020000480
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:truncate_inode_pages_range+0xcec/0xe90 mm/truncate.c:413
Code: 89 ef e8 d7 d1 c9 ff 48 39 eb 0f 82 e0 f8 ff ff e9 46 f9 ff ff e8 74 d7 c9 ff 48 c7 c6 c0 da 17 8b 4c 89 e7 e8 e5 a6 0b 00 90 <0f> 0b e8 5d d7 c9 ff 48 c7 c6 60 db 17 8b 48 89 ef e8 ce a6 0b 00
RSP: 0018:ffffc90021da7700 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90021da75a8
RDX: ffff888029e3c880 RSI: ffffffff81c3eecb RDI: ffffffff8b6f55a0
RBP: dffffc0000000000 R08: 0000000000000000 R09: fffffbfff1f3ea42
R10: ffffffff8f9f5217 R11: ffffffff816209f0 R12: ffffea0000900e80
R13: ffffffffffffffc0 R14: 0000000000000001 R15: ffffc90021da78c8
FS:  00007f60363976c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555800c1978 CR3: 0000000020c7e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/04 20:19 upstream 7367539ad4b0 610f2a54 .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in set_blocksize
2024/01/31 22:43 upstream 1bbb19b6eb1b 373b66cd .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in set_blocksize
2024/03/27 21:21 upstream 962490525cff 120789fd .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in set_blocksize
* Struck through repros no longer work on HEAD.