syzbot


BUG: Bad page state in __get_metapage

Status: upstream: reported C repro on 2025/06/20 20:02
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+fc5f83474e77007a7759@syzkaller.appspotmail.com
First crash: 113d, last: 5d05h
Bug presence (1)
Date Name Commit Repro Result
2025/06/25 upstream (ToT) 7595b66ae9de C [report] INFO: task hung in lmLogClose
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: Bad page state in __get_metapage origin:upstream -1 C 833 1d15h 353d 0/3 upstream: reported C repro on 2024/10/23 03:58
linux-6.1 BUG: Bad page state in __get_metapage origin:upstream missing-backport -1 C done 889 3d21h 353d 0/3 upstream: reported C repro on 2024/10/23 12:46

Sample crash report:
BUG: Bad page state in process syz.0.26  pfn:1df96
page:ffffea000077e580 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x1df96
flags: 0xfff1000000820c(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff1000000820c ffffea00017c8008 ffffc90003737940 0000000000000000
raw: 000000000000001c ffff8880743810f8 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 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 6020, tgid 6019 (syz.0.26), ts 101958951209, free_ts 101444310484
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554
 prep_new_page mm/page_alloc.c:1561 [inline]
 get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191
 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457
 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291
 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004
 do_read_cache_folio+0x36c/0x7e0 mm/filemap.c:3753
 do_read_cache_page+0x32/0x250 mm/filemap.c:3855
 read_mapping_page include/linux/pagemap.h:892 [inline]
 __get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620
 diRead+0x6d3/0xb90 fs/jfs/jfs_imap.c:367
 jfs_iget+0x8d/0x3c0 fs/jfs/inode.c:35
 jfs_fill_super+0x70c/0xac0 fs/jfs/super.c:580
 mount_bdev+0x22b/0x2d0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3377
 do_mount fs/namespace.c:3717 [inline]
 __do_sys_mount fs/namespace.c:3926 [inline]
 __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1154 [inline]
 free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336
 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475
 release_pages+0x1fa0/0x2220 mm/swap.c:1022
 __folio_batch_release+0x71/0xe0 mm/swap.c:1042
 folio_batch_release include/linux/pagevec.h:83 [inline]
 truncate_inode_pages_range+0x358/0xf00 mm/truncate.c:371
 kill_bdev block/bdev.c:76 [inline]
 blkdev_flush_mapping+0x132/0x290 block/bdev.c:632
 blkdev_put_whole block/bdev.c:663 [inline]
 blkdev_put+0x498/0x760 block/bdev.c:941
 blkdev_release+0x84/0x90 block/fops.c:604
 __fput+0x234/0x970 fs/file_table.c:384
 __do_sys_close fs/open.c:1571 [inline]
 __se_sys_close+0x15f/0x220 fs/open.c:1556
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
Modules linked in:
CPU: 1 PID: 6024 Comm: syz.0.26 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 bad_page+0x14b/0x170 mm/page_alloc.c:512
 free_page_is_bad mm/page_alloc.c:961 [inline]
 free_pages_prepare mm/page_alloc.c:1146 [inline]
 free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336
 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2475
 release_pages+0x1fa0/0x2220 mm/swap.c:1022
 __folio_batch_release+0x71/0xe0 mm/swap.c:1042
 folio_batch_release include/linux/pagevec.h:83 [inline]
 truncate_inode_pages_range+0x358/0xf00 mm/truncate.c:371
 jfs_remount+0x33b/0x5b0 fs/jfs/super.c:451
 reconfigure_super+0x21e/0x880 fs/super.c:1151
 do_remount fs/namespace.c:2918 [inline]
 path_mount+0xd19/0xfe0 fs/namespace.c:3696
 do_mount fs/namespace.c:3717 [inline]
 __do_sys_mount fs/namespace.c:3926 [inline]
 __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6ade39066a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6adf229e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6adf229ef0 RCX: 00007f6ade39066a
RDX: 0000200000000f40 RSI: 0000200000000f00 RDI: 0000000000000000
RBP: 0000200000000f40 R08: 00007f6adf229ef0 R09: 0000000001a4a438
R10: 0000000001a4a438 R11: 0000000000000246 R12: 0000200000000f00
R13: 00007f6adf229eb0 R14: 0000000000000000 R15: 0000200000000f80
 </TASK>

Crashes (190):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/03 06:56 linux-6.6.y f34f16e5c632 49379ee0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/06/23 15:50 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/06/23 15:14 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/10/06 15:31 linux-6.6.y e617101e5626 91305dbe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/10/04 08:14 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/10/04 00:48 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/10/02 17:41 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/10/01 21:30 linux-6.6.y 147338df3487 a1859138 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/28 14:04 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/28 14:04 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/28 03:07 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/27 09:25 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/27 05:34 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/27 04:22 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/26 13:54 linux-6.6.y 147338df3487 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/26 06:45 linux-6.6.y 147338df3487 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/22 21:36 linux-6.6.y af1544b5d072 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/21 23:25 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/18 13:33 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/18 10:50 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/18 05:37 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/15 17:42 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/15 17:39 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/13 22:16 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/11 07:13 linux-6.6.y fe9731e10004 fdeaa69b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/07 19:45 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/03 23:09 linux-6.6.y cc1a1c5b404a 96a211bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/03 04:22 linux-6.6.y cc1a1c5b404a 96a211bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/03 01:05 linux-6.6.y cc1a1c5b404a 96a211bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/02 23:20 linux-6.6.y cc1a1c5b404a 96a211bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/09/02 05:50 linux-6.6.y cc1a1c5b404a 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/26 08:45 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/24 14:39 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/21 09:12 linux-6.6.y bb9c90ab9c5a 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/21 03:30 linux-6.6.y bb9c90ab9c5a 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/21 03:30 linux-6.6.y bb9c90ab9c5a 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/20 23:11 linux-6.6.y bb9c90ab9c5a 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/20 14:09 linux-6.6.y bb9c90ab9c5a 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/20 11:57 linux-6.6.y bb9c90ab9c5a 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/17 10:36 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/16 22:44 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/14 12:42 linux-6.6.y 3a8ababb8b6a 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/12 16:40 linux-6.6.y 3a8ababb8b6a c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/12 03:36 linux-6.6.y 3a8ababb8b6a c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/10 17:35 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/10 10:53 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/10 01:39 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/10 01:39 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/07 23:21 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/08/05 05:07 linux-6.6.y 3a8ababb8b6a f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
2025/06/20 20:02 linux-6.6.y 6282921b6825 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: Bad page state in __get_metapage
* Struck through repros no longer work on HEAD.