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: 75d, last: 19d
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 50d 50d 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:
 __fput+0x429/0x8a0 fs/file_table.c:376
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close fs/open.c:1539 [inline]
 __x64_sys_close+0x7e/0x110 fs/open.c:1539
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
------------[ cut here ]------------
kernel BUG at mm/truncate.c:413!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 8131 Comm: syz-executor.1 Not tainted 6.8.0-rc2-syzkaller-00047-g1bbb19b6eb1b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:truncate_inode_pages_range+0xe33/0xf70 mm/truncate.c:413
Code: 38 c1 0f 8c d5 f8 ff ff 4c 89 f7 e8 27 7f 24 00 e9 c8 f8 ff ff e8 ed b1 c5 ff 4c 89 e7 48 c7 c6 a0 8a b3 8b e8 2e 73 0a 00 90 <0f> 0b e8 96 b8 8f 09 e8 d1 b1 c5 ff 48 8b 7c 24 18 48 c7 c6 e0 8b
RSP: 0018:ffffc9000afc76c0 EFLAGS: 00010246
RAX: f4eb776fbe124800 RBX: 0000000000000001 RCX: ffffc9000afc7503
RDX: 0000000000000001 RSI: ffffffff8baac6e0 RDI: ffffffff8bfd9420
RBP: ffffc9000afc7920 R08: ffffffff8f84262f R09: 1ffffffff1f084c5
R10: dffffc0000000000 R11: fffffbfff1f084c6 R12: ffffea0001a41e40
R13: 0000000000000002 R14: ffffc9000afc7808 R15: ffffc9000afc7770
FS:  00007f35ceaab6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f29e7309d58 CR3: 0000000025a64000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kill_bdev block/bdev.c:79 [inline]
 set_blocksize+0x315/0x390 block/bdev.c:155
 sb_set_blocksize block/bdev.c:164 [inline]
 sb_min_blocksize+0xb3/0x190 block/bdev.c:180
 ext4_load_super fs/ext4/super.c:5030 [inline]
 __ext4_fill_super fs/ext4/super.c:5227 [inline]
 ext4_fill_super+0x6ec/0x6da0 fs/ext4/super.c:5703
 get_tree_bdev+0x3f7/0x570 fs/super.c:1619
 vfs_get_tree+0x90/0x2a0 fs/super.c:1784
 do_new_mount+0x2be/0xb40 fs/namespace.c:3352
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f35cdc7f4aa
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:00007f35ceaaaef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f35ceaaaf80 RCX: 00007f35cdc7f4aa
RDX: 0000000020000100 RSI: 00000000200002c0 RDI: 00007f35ceaaaf40
RBP: 0000000020000100 R08: 00007f35ceaaaf80 R09: 0000000003000480
R10: 0000000003000480 R11: 0000000000000246 R12: 00000000200002c0
R13: 00007f35ceaaaf40 R14: 0000000000000786 R15: 00000000200000c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:truncate_inode_pages_range+0xe33/0xf70 mm/truncate.c:413
Code: 38 c1 0f 8c d5 f8 ff ff 4c 89 f7 e8 27 7f 24 00 e9 c8 f8 ff ff e8 ed b1 c5 ff 4c 89 e7 48 c7 c6 a0 8a b3 8b e8 2e 73 0a 00 90 <0f> 0b e8 96 b8 8f 09 e8 d1 b1 c5 ff 48 8b 7c 24 18 48 c7 c6 e0 8b
RSP: 0018:ffffc9000afc76c0 EFLAGS: 00010246
RAX: f4eb776fbe124800 RBX: 0000000000000001 RCX: ffffc9000afc7503
RDX: 0000000000000001 RSI: ffffffff8baac6e0 RDI: ffffffff8bfd9420
RBP: ffffc9000afc7920 R08: ffffffff8f84262f R09: 1ffffffff1f084c5
R10: dffffc0000000000 R11: fffffbfff1f084c6 R12: ffffea0001a41e40
R13: 0000000000000002 R14: ffffc9000afc7808 R15: ffffc9000afc7770
FS:  00007f35ceaab6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f29dd4ff000 CR3: 0000000025a64000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.