syzbot


kernel BUG in set_ps_flags

Status: moderation: reported on 2026/03/15 15:30
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+752fac0e14c568144eb1@syzkaller.appspotmail.com
First crash: 52d, last: 17d

Sample crash report:
 security_inode_getattr+0x116/0x280 security/security.c:1895
 vfs_getattr fs/stat.c:259 [inline]
 vfs_fstat+0x4b/0xe0 fs/stat.c:281
 __do_sys_newfstat+0x8b/0x110 fs/stat.c:551
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
kernel BUG at ./include/linux/page-flags.h:345!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 8882 Comm: syz.3.711 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:const_folio_flags include/linux/page-flags.h:345 [inline]
RIP: 0010:folio_test_idle include/linux/page-flags.h:667 [inline]
RIP: 0010:set_ps_flags+0x242/0x290 mm/util.c:1307
Code: 03 80 3c 02 00 0f 84 5f fe ff ff e8 a8 b9 23 00 e9 55 fe ff ff e8 5e ff b7 ff 48 c7 c6 00 6e be 8b 48 89 df e8 5f 6f 05 00 90 <0f> 0b e8 57 b9 23 00 e9 ed fd ff ff e8 7d b9 23 00 e9 57 fe ff ff
RSP: 0018:ffffc90007c9f8f8 EFLAGS: 00010246
RAX: 0000000000080000 RBX: ffffea0001f02f40 RCX: ffffc90011771000
RDX: 0000000000080000 RSI: ffffffff8255a158 RDI: ffff8880292e6104
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90007c9f9d0
R13: 0000000000000000 R14: ffffea0001f02f74 R15: dffffc0000000000
FS:  00007f9a1a4306c0(0000) GS:ffff88812430a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75fd440ab2 CR3: 000000007d3fa000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 snapshot_page+0x463/0x560 mm/util.c:1343
 get_kpage_count+0x94/0x240 fs/proc/page.c:50
 kpage_read.isra.0+0x1b8/0x2b0 fs/proc/page.c:93
 pde_read fs/proc/inode.c:308 [inline]
 proc_reg_read+0x120/0x330 fs/proc/inode.c:318
 do_loop_readv_writev fs/read_write.c:849 [inline]
 do_loop_readv_writev fs/read_write.c:837 [inline]
 vfs_readv+0x5d8/0x8d0 fs/read_write.c:1022
 do_readv+0x13e/0x340 fs/read_write.c:1082
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9a1959c819
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:00007f9a1a430028 EFLAGS: 00000246 ORIG_RAX: 0000000000000013
RAX: ffffffffffffffda RBX: 00007f9a19816180 RCX: 00007f9a1959c819
RDX: 0000000100000007 RSI: 00002000000001c0 RDI: 0000000000000003
RBP: 00007f9a19632c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9a19816218 R14: 00007f9a19816180 R15: 00007ffecc4a04d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:const_folio_flags include/linux/page-flags.h:345 [inline]
RIP: 0010:folio_test_idle include/linux/page-flags.h:667 [inline]
RIP: 0010:set_ps_flags+0x242/0x290 mm/util.c:1307
Code: 03 80 3c 02 00 0f 84 5f fe ff ff e8 a8 b9 23 00 e9 55 fe ff ff e8 5e ff b7 ff 48 c7 c6 00 6e be 8b 48 89 df e8 5f 6f 05 00 90 <0f> 0b e8 57 b9 23 00 e9 ed fd ff ff e8 7d b9 23 00 e9 57 fe ff ff
RSP: 0018:ffffc90007c9f8f8 EFLAGS: 00010246
RAX: 0000000000080000 RBX: ffffea0001f02f40 RCX: ffffc90011771000
RDX: 0000000000080000 RSI: ffffffff8255a158 RDI: ffff8880292e6104
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90007c9f9d0
R13: 0000000000000000 R14: ffffea0001f02f74 R15: dffffc0000000000
FS:  00007f9a1a4306c0(0000) GS:ffff88812430a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555acc4e8 CR3: 000000007d3fa000 CR4: 00000000003526f0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/16 12:22 upstream 1d51b370a0f8 4743f87d .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in set_ps_flags
2026/04/15 13:44 upstream 1f5ffc672165 2b1eb0ca .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in set_ps_flags
2026/04/12 15:07 upstream f5459048c38a 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in set_ps_flags
2026/03/11 15:19 upstream b29fb8829bff 2d88ab01 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in set_ps_flags
* Struck through repros no longer work on HEAD.