syzbot


kernel BUG in truncate_inode_pages_range

Status: upstream: reported on 2022/10/13 08:01
Reported-by: syzbot+67418a97d2c47464ca17@syzkaller.appspotmail.com
First crash: 44d, last: 44d

Sample crash report:
 sb_set_blocksize block/bdev.c:161 [inline]
 sb_min_blocksize+0xc0/0x180 block/bdev.c:177
 isofs_fill_super+0xa28/0x28d0 fs/isofs/inode.c:658
 mount_bdev+0x26c/0x3a0 fs/super.c:1400
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
------------[ cut here ]------------
kernel BUG at mm/truncate.c:424!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 27836 Comm: syz-executor.2 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:truncate_inode_pages_range+0x1548/0x1780 mm/truncate.c:424
Code: e8 ad 0e ce ff 4c 89 ff 48 c7 c6 20 50 98 8a e8 de 24 0a 00 0f 0b e8 97 0e ce ff 4c 89 ff 48 c7 c6 80 4f 98 8a e8 c8 24 0a 00 <0f> 0b e8 e1 96 6d 08 e8 7c 0e ce ff 4c 89 e7 48 c7 c6 20 50 98 8a
RSP: 0018:ffffc9000916f7c0 EFLAGS: 00010246
RAX: 0d16a9ba1ff17c00 RBX: fffffffffffff880 RCX: 0000000000040000
RDX: ffffc9000a999000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000916f9f0 R08: ffffffff81e2ae1b R09: ffffed10173667f1
R10: ffffed10173667f1 R11: 1ffff110173667f0 R12: 00000000000007ff
R13: 0000000000000002 R14: 0000000000000001 R15: ffffea0001e08c00
FS:  00007f3cf4838700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0247f4320 CR3: 00000000268a5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kill_bdev block/bdev.c:76 [inline]
 set_blocksize+0x2ec/0x360 block/bdev.c:152
 sb_set_blocksize block/bdev.c:161 [inline]
 sb_min_blocksize+0xc0/0x180 block/bdev.c:177
 isofs_fill_super+0xa28/0x28d0 fs/isofs/inode.c:658
 mount_bdev+0x26c/0x3a0 fs/super.c:1400
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cf368cada
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f3cf4837f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f3cf368cada
RDX: 0000000020000100 RSI: 00000000200001c0 RDI: 00007f3cf4837fe0
RBP: 00007f3cf4838020 R08: 00007f3cf4838020 R09: 0000000020000100
R10: 0000000000000001 R11: 0000000000000202 R12: 0000000020000100
R13: 00000000200001c0 R14: 00007f3cf4837fe0 R15: 0000000020000080
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:truncate_inode_pages_range+0x1548/0x1780 mm/truncate.c:424
Code: e8 ad 0e ce ff 4c 89 ff 48 c7 c6 20 50 98 8a e8 de 24 0a 00 0f 0b e8 97 0e ce ff 4c 89 ff 48 c7 c6 80 4f 98 8a e8 c8 24 0a 00 <0f> 0b e8 e1 96 6d 08 e8 7c 0e ce ff 4c 89 e7 48 c7 c6 20 50 98 8a
RSP: 0018:ffffc9000916f7c0 EFLAGS: 00010246
RAX: 0d16a9ba1ff17c00 RBX: fffffffffffff880 RCX: 0000000000040000
RDX: ffffc9000a999000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000916f9f0 R08: ffffffff81e2ae1b R09: ffffed10173667f1
R10: ffffed10173667f1 R11: 1ffff110173667f0 R12: 00000000000007ff
R13: 0000000000000002 R14: 0000000000000001 R15: ffffea0001e08c00
FS:  00007f3cf4838700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c023176000 CR3: 00000000268a5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/10/13 04:19 upstream 493ffd6605b2 3f6b40a1 .config log report info kernel BUG in truncate_inode_pages_range
* Struck through repros no longer work on HEAD.