syzbot


BUG: Bad page state in __get_metapage

Status: upstream: reported C repro on 2024/10/23 03:58
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+5f8f8e6c75b01fb682cf@syzkaller.appspotmail.com
First crash: 278d, last: 11h16m
Bug presence (1)
Date Name Commit Repro Result
2024/11/01 upstream (ToT) c426456857fa C [report] INFO: task hung in lmLogClose
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 BUG: Bad page state in __get_metapage origin:upstream -1 C 104 1d15h 38d 0/2 upstream: reported C repro on 2025/06/20 20:02
linux-6.1 BUG: Bad page state in __get_metapage origin:upstream missing-backport -1 C done 801 2d00h 278d 0/3 upstream: reported C repro on 2024/10/23 12:46

Sample crash report:
BUG: Bad page state in process syz-executor734  pfn:7567f
page:ffffea0001d59fc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x7567f
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001f8d748 ffffc9000308f980 0000000000000000
raw: 000000000000001c ffff88802ab8e9b0 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xc40(GFP_NOFS), pid 4196, ts 55431524068, free_ts 55144939664
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192
 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466
 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022
 do_read_cache_page+0x1da/0x1030 mm/filemap.c:3457
 read_mapping_page include/linux/pagemap.h:515 [inline]
 __get_metapage+0x35d/0x1060 fs/jfs/jfs_metapage.c:621
 diRead+0x6f7/0xbb0 fs/jfs/jfs_imap.c:367
 jfs_iget+0x89/0x3c0 fs/jfs/inode.c:35
 jfs_fill_super+0x735/0xaf0 fs/jfs/super.c:585
 mount_bdev+0x287/0x3c0 fs/super.c:1400
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3014
 do_mount fs/namespace.c:3357 [inline]
 __do_sys_mount fs/namespace.c:3565 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
 free_unref_page+0x94/0x280 mm/page_alloc.c:3396
 free_slab mm/slub.c:2015 [inline]
 discard_slab mm/slub.c:2021 [inline]
 __unfreeze_partials+0x1a5/0x200 mm/slub.c:2507
 put_cpu_partial+0x12d/0x190 mm/slub.c:2587
 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283
 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0x100/0x290 mm/slub.c:3233
 kmem_cache_zalloc include/linux/slab.h:725 [inline]
 locks_alloc_lock fs/locks.c:346 [inline]
 flock_lock_inode+0x214/0x1330 fs/locks.c:1117
 flock_lock_inode_wait fs/locks.c:2128 [inline]
 locks_lock_inode_wait+0x10b/0x470 fs/locks.c:2155
 locks_lock_file_wait include/linux/fs.h:1391 [inline]
 __do_sys_flock fs/locks.c:2218 [inline]
 __se_sys_flock+0x456/0x580 fs/locks.c:2181
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
Modules linked in:
CPU: 0 PID: 4205 Comm: syz-executor734 Not tainted 5.15.184-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 bad_page+0x14b/0x170 mm/page_alloc.c:652
 check_free_page mm/page_alloc.c:1209 [inline]
 free_pages_prepare mm/page_alloc.c:1334 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0x383/0x6c0 mm/page_alloc.c:3317
 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433
 release_pages+0x184b/0x1bb0 mm/swap.c:963
 __pagevec_release+0x6d/0xe0 mm/swap.c:983
 pagevec_release include/linux/pagevec.h:81 [inline]
 truncate_inode_pages_range+0x2f3/0xef0 mm/truncate.c:329
 jfs_remount+0x337/0x5a0 fs/jfs/super.c:456
 reconfigure_super+0x219/0x880 fs/super.c:938
 do_remount fs/namespace.c:2670 [inline]
 path_mount+0xd3e/0x1020 fs/namespace.c:3336
 do_mount fs/namespace.c:3357 [inline]
 __do_sys_mount fs/namespace.c:3565 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f2974ab011a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2974a4a038 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000200000000180 RCX: 00007f2974ab011a
RDX: 0000200000000180 RSI: 0000200000000100 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00007f2974a4a0d0 R09: 0000000000000000
R10: 0000000001a404ac R11: 0000000000000286 R12: 0000200000000100
R13: 00007f2974a4a0d0 R14: 0000000000000000 R15: 0000200000000a80
 </TASK>

Crashes (700):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/25 05:43 linux-5.15.y 98f47d0e9b8c ed351ea7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/05/06 01:07 linux-5.15.y 16fdf2c7111b 6ca47dd8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/01/22 11:48 linux-5.15.y 4735586da88e da72ac06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2024/11/16 13:34 linux-5.15.y d98fd109f827 cfe3a04a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2024/10/27 19:53 linux-5.15.y 74cdd62cb470 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/28 09:36 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/27 03:08 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/26 20:27 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/25 05:47 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/23 11:33 linux-5.15.y c79648372d02 e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/20 02:06 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/19 20:21 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/19 11:27 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/18 09:30 linux-5.15.y c79648372d02 88248e14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/17 19:08 linux-5.15.y 89950c454265 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/16 18:00 linux-5.15.y 89950c454265 124ec9cc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/16 18:00 linux-5.15.y 89950c454265 124ec9cc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/16 06:49 linux-5.15.y 89950c454265 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/14 19:26 linux-5.15.y 89950c454265 d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/14 09:53 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/13 14:00 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/13 10:54 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/13 01:59 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/12 23:13 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/12 13:42 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/12 09:04 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/12 09:02 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/11 20:38 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/08 08:35 linux-5.15.y 3dea0e7f549e 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/06 18:49 linux-5.15.y 3dea0e7f549e 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/06 12:40 linux-5.15.y 3dea0e7f549e 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/03 06:44 linux-5.15.y 3dea0e7f549e 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/03 06:42 linux-5.15.y 3dea0e7f549e 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/02 21:25 linux-5.15.y 3dea0e7f549e bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/02 11:59 linux-5.15.y 3dea0e7f549e bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/02 06:47 linux-5.15.y 3dea0e7f549e bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/07/01 17:39 linux-5.15.y 3dea0e7f549e 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/30 21:17 linux-5.15.y 3dea0e7f549e 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/30 21:12 linux-5.15.y 3dea0e7f549e 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/30 16:24 linux-5.15.y 3dea0e7f549e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/29 15:55 linux-5.15.y 3dea0e7f549e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/29 11:06 linux-5.15.y 3dea0e7f549e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/28 01:15 linux-5.15.y 3dea0e7f549e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/27 15:09 linux-5.15.y 3dea0e7f549e 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/27 14:24 linux-5.15.y 3dea0e7f549e 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/26 21:39 linux-5.15.y 1c700860e8bc 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/26 15:57 linux-5.15.y 1c700860e8bc 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/26 14:46 linux-5.15.y 1c700860e8bc 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/26 12:33 linux-5.15.y 1c700860e8bc 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2025/06/26 07:13 linux-5.15.y 1c700860e8bc 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
2024/10/23 03:57 linux-5.15.y 74cdd62cb470 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: Bad page state in __get_metapage
* Struck through repros no longer work on HEAD.