syzbot


kernel BUG in truncate_inode_partial_folio

Status: auto-obsoleted due to no activity on 2023/06/23 22:42
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+77184b5e843d90d56ec1@syzkaller.appspotmail.com
First crash: 369d, last: 364d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly mm report (May 2023) 0 (1) 2023/05/03 07:26
[syzbot] [mm?] kernel BUG in truncate_inode_partial_folio 0 (1) 2023/04/24 11:33

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/highmem.h:275!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 22767 Comm: syz-executor.1 Not tainted 6.3.0-next-20230424-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:zero_user_segments include/linux/highmem.h:275 [inline]
RIP: 0010:folio_zero_range include/linux/highmem.h:507 [inline]
RIP: 0010:truncate_inode_partial_folio+0x2f1/0x750 mm/truncate.c:237
Code: 65 15 cf ff 8b 04 24 83 f8 3f 0f 87 a7 72 4d 08 e8 34 19 cf ff 4c 89 ee 4c 89 f7 e8 e9 14 cf ff 4d 39 ee 76 07 e8 1f 19 cf ff <0f> 0b e8 18 19 cf ff be 08 00 00 00 48 89 ef e8 1b e4 21 00 48 89
RSP: 0018:ffffc900036df6b8 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 00000000fff9e000 RCX: ffffc90003e92000
RDX: 0000000000040000 RSI: ffffffff81b50d51 RDI: 0000000000000006
RBP: ffffea0002180000 R08: 0000000000000006 R09: 00000000fff9e000
R10: 0000000000200000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000200000 R14: 00000000fff9e000 R15: 0000000000000009
FS:  00007f42582b6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000203fa030 CR3: 000000002c7de000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 shmem_undo_range+0xb82/0x1240 mm/shmem.c:1036
 shmem_truncate_range mm/shmem.c:1064 [inline]
 shmem_fallocate+0xb80/0xef0 mm/shmem.c:2806
 vfs_fallocate+0x48b/0xe40 fs/open.c:324
 madvise_remove mm/madvise.c:989 [inline]
 madvise_vma_behavior+0xa59/0x20a0 mm/madvise.c:1013
 madvise_walk_vmas+0x1c7/0x2b0 mm/madvise.c:1248
 do_madvise.part.0+0x287/0x5e0 mm/madvise.c:1428
 do_madvise mm/madvise.c:1441 [inline]
 __do_sys_madvise mm/madvise.c:1441 [inline]
 __se_sys_madvise mm/madvise.c:1439 [inline]
 __x64_sys_madvise+0x117/0x150 mm/madvise.c:1439
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f425748c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f42582b6168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f42575abf80 RCX: 00007f425748c169
RDX: 0000000000000009 RSI: 0000000000200000 RDI: 000000002019e000
RBP: 00007f42574e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff1961ae3f R14: 00007f42582b6300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:zero_user_segments include/linux/highmem.h:275 [inline]
RIP: 0010:folio_zero_range include/linux/highmem.h:507 [inline]
RIP: 0010:truncate_inode_partial_folio+0x2f1/0x750 mm/truncate.c:237
Code: 65 15 cf ff 8b 04 24 83 f8 3f 0f 87 a7 72 4d 08 e8 34 19 cf ff 4c 89 ee 4c 89 f7 e8 e9 14 cf ff 4d 39 ee 76 07 e8 1f 19 cf ff <0f> 0b e8 18 19 cf ff be 08 00 00 00 48 89 ef e8 1b e4 21 00 48 89
RSP: 0018:ffffc900036df6b8 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 00000000fff9e000 RCX: ffffc90003e92000
RDX: 0000000000040000 RSI: ffffffff81b50d51 RDI: 0000000000000006
RBP: ffffea0002180000 R08: 0000000000000006 R09: 00000000fff9e000
R10: 0000000000200000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000200000 R14: 00000000fff9e000 R15: 0000000000000009
FS:  00007f42582b6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f13b7d831b8 CR3: 000000002c7de000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/24 22:41 linux-next 3b85b9b39960 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in truncate_inode_partial_folio
2023/04/24 02:23 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in truncate_inode_partial_folio
2023/04/20 20:06 linux-next 44bf136283e5 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in truncate_inode_partial_folio
2023/04/20 13:11 linux-next 3cdbc01c40e3 2b32bd34 .config console log report info ci-upstream-linux-next-kasan-gce-root kernel BUG in truncate_inode_partial_folio
2023/04/20 11:25 linux-next 3cdbc01c40e3 2b32bd34 .config console log report info ci-upstream-linux-next-kasan-gce-root kernel BUG in truncate_inode_partial_folio
* Struck through repros no longer work on HEAD.