syzbot


kernel BUG in set_blocksize (2)

Status: upstream: reported on 2024/10/15 08:59
Reported-by: syzbot+61114d3e0120e5b5113c@syzkaller.appspotmail.com
First crash: 54d, last: 54d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in set_blocksize 1 285d 285d 0/3 auto-obsoleted due to no activity on 2024/06/05 17:38
upstream kernel BUG in set_blocksize ext4 block syz error error 3 217d 311d 0/28 auto-obsoleted due to no activity on 2024/08/12 20:20

Sample crash report:
 get_tree_bdev+0x3fe/0x620 fs/super.c:1366
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1327
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
------------[ cut here ]------------
kernel BUG at mm/truncate.c:423!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 12227 Comm: syz.0.3630 Not tainted 6.1.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:truncate_inode_pages_range+0x110a/0x1340 mm/truncate.c:423
Code: 00 00 48 c7 c7 b0 33 3d 8d 48 89 da e8 4f e1 a6 02 e9 e9 f5 ff ff e8 45 92 cc ff 4c 89 e7 48 c7 c6 60 43 15 8b e8 36 57 0c 00 <0f> 0b e8 2f 92 cc ff 4c 89 e7 48 c7 c6 80 42 15 8b e8 20 57 0c 00
RSP: 0018:ffffc9001766f780 EFLAGS: 00010246
RAX: 5c0940fed53ae900 RBX: 000000000000007f RCX: ffffc9001766f503
RDX: 0000000000000001 RSI: ffffffff8b0c14c0 RDI: ffffffff8b5d7180
RBP: ffffc9001766f9b0 R08: dffffc0000000000 R09: fffffbfff1d33f2e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001630b40
R13: ffffc9001766f838 R14: ffffc9001766f8d0 R15: 0000000000000003
FS:  00007f6d415726c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fca58e52000 CR3: 000000001fac7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kill_bdev block/bdev.c:76 [inline]
 set_blocksize+0x2d9/0x350 block/bdev.c:152
 sb_set_blocksize block/bdev.c:161 [inline]
 sb_min_blocksize+0xb7/0x170 block/bdev.c:177
 gfs2_fill_super+0xd36/0x2680 fs/gfs2/ops_fstype.c:1177
 get_tree_bdev+0x3fe/0x620 fs/super.c:1366
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1327
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6d4077f79a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6d41571e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6d41571ef0 RCX: 00007f6d4077f79a
RDX: 0000000020021140 RSI: 0000000020021180 RDI: 00007f6d41571eb0
RBP: 0000000020021140 R08: 00007f6d41571ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020021180
R13: 00007f6d41571eb0 R14: 0000000000021136 R15: 00000000200211c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:truncate_inode_pages_range+0x110a/0x1340 mm/truncate.c:423
Code: 00 00 48 c7 c7 b0 33 3d 8d 48 89 da e8 4f e1 a6 02 e9 e9 f5 ff ff e8 45 92 cc ff 4c 89 e7 48 c7 c6 60 43 15 8b e8 36 57 0c 00 <0f> 0b e8 2f 92 cc ff 4c 89 e7 48 c7 c6 80 42 15 8b e8 20 57 0c 00
RSP: 0018:ffffc9001766f780 EFLAGS: 00010246
RAX: 5c0940fed53ae900 RBX: 000000000000007f RCX: ffffc9001766f503
RDX: 0000000000000001 RSI: ffffffff8b0c14c0 RDI: ffffffff8b5d7180
RBP: ffffc9001766f9b0 R08: dffffc0000000000 R09: fffffbfff1d33f2e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001630b40
R13: ffffc9001766f838 R14: ffffc9001766f8d0 R15: 0000000000000003
FS:  00007f6d415726c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562f1e984018 CR3: 000000001fac7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/15 08:58 linux-6.1.y aa4cd140bba5 eddfb4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in set_blocksize
* Struck through repros no longer work on HEAD.