syzbot


kernel BUG in const_folio_flags

Status: auto-obsoleted due to no activity on 2024/07/19 09:22
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+3b9148f91b7869120e81@syzkaller.appspotmail.com
First crash: 250d, last: 226d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in const_folio_flags 4 (5) 2024/03/22 03:24

Sample crash report:
 process_one_work+0x902/0x1a30 kernel/workqueue.c:3254
 process_scheduled_works kernel/workqueue.c:3335 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3416
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
------------[ cut here ]------------
kernel BUG at include/linux/page-flags.h:315!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 PID: 42 Comm: kcompactd0 Not tainted 6.9.0-rc3-syzkaller-00023-g2c71fdf02a95 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:const_folio_flags+0x1bd/0x1f0 include/linux/page-flags.h:315
Code: 41 83 e4 01 44 89 e6 e8 21 ea a9 ff 45 84 e4 0f 85 c4 fe ff ff e8 93 ef a9 ff 48 c7 c6 20 f0 1a 8b 48 89 ef e8 34 2d ed ff 90 <0f> 0b e8 9c 6b 06 00 e9 66 fe ff ff 48 89 ef e8 8f 6b 06 00 eb b6
RSP: 0018:ffffc9000068f7f8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000068f6a0
RDX: ffff888018872440 RSI: ffffffff81e4667c RDI: ffffffff8b6f0a60
RBP: ffffea000048c000 R08: 0000000000000000 R09: fffffbfff1f3aaea
R10: ffffffff8f9d5757 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000012340 R14: ffffea000048d000 R15: ffffc9000068fbe8
FS:  0000000000000000(0000) GS:ffff88802c200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000f743b020 CR3: 000000005062a000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_test_hugetlb include/linux/page-flags.h:875 [inline]
 PageHuge+0x219/0x2b0 mm/hugetlb.c:2174
 isolate_migratepages_block+0x4a2/0x4fa0 mm/compaction.c:1004
 isolate_migratepages mm/compaction.c:2182 [inline]
 compact_zone+0x1a5c/0x4280 mm/compaction.c:2629
 compact_node+0x1a2/0x2d0 mm/compaction.c:2923
 kcompactd+0x76e/0xde0 mm/compaction.c:3221
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:const_folio_flags+0x1bd/0x1f0 include/linux/page-flags.h:315
Code: 41 83 e4 01 44 89 e6 e8 21 ea a9 ff 45 84 e4 0f 85 c4 fe ff ff e8 93 ef a9 ff 48 c7 c6 20 f0 1a 8b 48 89 ef e8 34 2d ed ff 90 <0f> 0b e8 9c 6b 06 00 e9 66 fe ff ff 48 89 ef e8 8f 6b 06 00 eb b6
RSP: 0018:ffffc9000068f7f8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc9000068f6a0
RDX: ffff888018872440 RSI: ffffffff81e4667c RDI: ffffffff8b6f0a60
RBP: ffffea000048c000 R08: 0000000000000000 R09: fffffbfff1f3aaea
R10: ffffffff8f9d5757 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000012340 R14: ffffea000048d000 R15: ffffc9000068fbe8
FS:  0000000000000000(0000) GS:ffff88802c200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000f748b000 CR3: 000000006358a000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/10 09:21 upstream 2c71fdf02a95 bb5e6c0f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in const_folio_flags
2024/03/21 07:05 upstream dba89d1b81df 6753db5c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in const_folio_flags
2024/03/20 05:21 upstream 78c3925c048c a485f239 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in const_folio_flags
2024/03/17 03:54 upstream 66a27abac311 d615901c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in const_folio_flags
* Struck through repros no longer work on HEAD.