syzbot


kernel BUG in collapse_scan_file

Status: upstream: reported C repro on 2026/03/19 07:20
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+8961cb270ae74b4129fb@syzkaller.appspotmail.com
First crash: 36d, last: 32d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in collapse_scan_file 16 (17) 2026/03/20 13:17
Last patch testing requests (2)
Created Duration User Patch Repo Result
2026/04/03 19:02 29m retest repro linux-next OK log
2026/03/17 15:41 52m avagin@google.com patch linux-next OK log

Sample crash report:
node ffff888059832680 offset 0 parent ffff888059830580 shift 0 count 1 values 0 array ffff888033f5d920 list ffff888059832698 ffff888059832698 marks 0 0 0
------------[ cut here ]------------
kernel BUG at ./include/linux/xarray.h:1441!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 6471 Comm: syz.2.152 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:XAS_INVALID include/linux/xarray.h:1441 [inline]
RIP: 0010:collapse_file mm/khugepaged.c:2055 [inline]
RIP: 0010:collapse_scan_file+0x4fba/0x5220 mm/khugepaged.c:2404
Code: ff 4c 89 e7 48 c7 c6 60 b3 dc 8b e8 00 e4 f1 fe 90 0f 0b 48 85 db 0f 84 d1 00 00 00 e8 0f 10 90 ff 48 89 df e8 d7 e1 77 09 90 <0f> 0b e8 ff 0f 90 ff 48 89 df 48 c7 c6 60 b3 dc 8b e8 d0 e3 f1 fe
RSP: 0018:ffffc9000dd0ee20 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888059832680 RCX: e151c8e44ef20000
RDX: ffffc90006731000 RSI: 00000000000047df RDI: 00000000000047e0
RBP: ffffc9000dd0f130 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1cbd3dc R12: dffffc0000000000
R13: ffffea00014a02f0 R14: 0000000000000000 R15: ffffc9000dd0f010
FS:  00007fcdd5d336c0(0000) GS:ffff888125449000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000739000 CR3: 000000006b27a000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 collapse_single_pmd+0x22b/0x4480 mm/khugepaged.c:2437
 madvise_collapse+0x34c/0x820 mm/khugepaged.c:2859
 madvise_vma_behavior+0x1094/0x4460 mm/madvise.c:1362
 madvise_walk_vmas+0x573/0xae0 mm/madvise.c:1711
 madvise_do_behavior+0x386/0x540 mm/madvise.c:1927
 do_madvise+0x1fa/0x2e0 mm/madvise.c:2020
 __do_sys_madvise mm/madvise.c:2029 [inline]
 __se_sys_madvise mm/madvise.c:2027 [inline]
 __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:2027
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcdd4d9c799
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcdd5d33028 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007fcdd5015fa0 RCX: 00007fcdd4d9c799
RDX: 0000000000000019 RSI: 0000000000600003 RDI: 0000200000000000
RBP: 00007fcdd4e32c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdd5016038 R14: 00007fcdd5015fa0 R15: 00007ffe8db77b18
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:XAS_INVALID include/linux/xarray.h:1441 [inline]
RIP: 0010:collapse_file mm/khugepaged.c:2055 [inline]
RIP: 0010:collapse_scan_file+0x4fba/0x5220 mm/khugepaged.c:2404
Code: ff 4c 89 e7 48 c7 c6 60 b3 dc 8b e8 00 e4 f1 fe 90 0f 0b 48 85 db 0f 84 d1 00 00 00 e8 0f 10 90 ff 48 89 df e8 d7 e1 77 09 90 <0f> 0b e8 ff 0f 90 ff 48 89 df 48 c7 c6 60 b3 dc 8b e8 d0 e3 f1 fe
RSP: 0018:ffffc9000dd0ee20 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888059832680 RCX: e151c8e44ef20000
RDX: ffffc90006731000 RSI: 00000000000047df RDI: 00000000000047e0
RBP: ffffc9000dd0f130 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1cbd3dc R12: dffffc0000000000
R13: ffffea00014a02f0 R14: 0000000000000000 R15: ffffc9000dd0f010
FS:  00007fcdd5d336c0(0000) GS:ffff888125449000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000739000 CR3: 000000006b27a000 CR4: 00000000003526f0

Crashes (967):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/20 18:24 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 17:54 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 16:45 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 16:15 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 15:59 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 15:45 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 15:45 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 14:32 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 13:52 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 13:04 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 12:00 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 11:12 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 11:07 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 10:05 linux-next b5d083a3ed1e 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 05:19 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 04:31 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 00:42 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 00:29 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 00:19 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/20 00:06 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 22:20 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 21:39 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 20:20 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 19:01 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 18:38 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 17:33 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 16:55 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 16:49 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 15:29 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 15:07 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 14:54 linux-next 8e42d2514a7e bd6dcb30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 10:12 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 09:23 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 08:50 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 07:41 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 07:19 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 06:14 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 06:04 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 04:22 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 03:12 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 02:37 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/19 00:18 linux-next 8e42d2514a7e 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
2026/03/17 06:37 linux-next 95c541ddfb08 0737c18f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in collapse_scan_file
* Struck through repros no longer work on HEAD.