syzbot


BUG: Bad page state (3)

Status: upstream: reported C repro on 2022/10/02 20:53
Reported-by: syzbot+c7a5b3b99e1b4e2d66e7@syzkaller.appspotmail.com
First crash: 783d, last: 783d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (15)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: Bad page state (3) usb C 3 2512d 2519d 4/28 fixed on 2018/02/02 04:39
linux-4.14 BUG: Bad page state C 9 641d 783d 0/1 upstream: reported C repro on 2022/10/03 07:33
upstream BUG: Bad page state (5) mm C 171 2097d 2110d 0/28 closed as invalid on 2019/02/27 20:53
linux-4.19 BUG: Bad page state 1 1099d 1099d 0/1 auto-closed as invalid on 2022/03/21 10:57
linux-4.19 BUG: Bad page state (2) 1 909d 909d 0/1 auto-obsoleted due to no activity on 2022/09/26 19:49
upstream BUG: Bad page state (7) mm 3 1547d 1604d 0/28 auto-closed as invalid on 2020/12/28 02:44
linux-6.1 BUG: Bad page state origin:upstream missing-backport C done 704 32d 547d 0/3 upstream: reported C repro on 2023/05/27 10:10
android-49 BUG: Bad page state 3 1879d 1903d 0/3 auto-closed as invalid on 2020/01/30 18:48
android-54 BUG: Bad page state C 9 1700d 1731d 0/2 auto-obsoleted due to no activity on 2022/08/26 22:10
upstream BUG: Bad page state (2) crypto 1 2554d 2550d 0/28 closed as invalid on 2017/12/06 12:57
upstream BUG: Bad page state (4) sound 1 2316d 2316d 0/28 closed as invalid on 2018/09/05 12:51
upstream BUG: Bad page state (6) mm C 2 2096d 2096d 0/28 closed as invalid on 2019/03/01 18:38
upstream BUG: Bad page state C 2 2657d 2658d 3/28 fixed on 2017/10/24 06:54
linux-5.15 BUG: Bad page state origin:upstream missing-backport C error 977 32d 588d 0/3 upstream: reported C repro on 2023/04/16 11:16
upstream BUG: Bad page state (8) jfs mm C 12982 34d 1392d 1/28 closed as invalid on 2024/10/28 14:11

Sample crash report:
ERROR: (device loop0): txAbort: 
======================================================
WARNING: the mand mount option is being deprecated and
         will be removed in v5.15!
======================================================
BUG: Bad page state in process syz-executor224  pfn:ab463
page:ffffea0002ad18c0 count:0 mapcount:0 mapping:0000000000000000 index:0x2f
flags: 0xfff0000000100c(referenced|uptodate|private)
raw: 00fff0000000100c ffffea0002afe148 ffffea0002700708 0000000000000000
raw: 000000000000002f ffff8880b49903c0 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
bad because of flags: 0x1000(private)
Modules linked in:
CPU: 1 PID: 8151 Comm: syz-executor224 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 bad_page.cold+0xdb/0x100 mm/page_alloc.c:571
 free_pages_check mm/page_alloc.c:955 [inline]
 free_pages_prepare mm/page_alloc.c:1045 [inline]
 free_pcp_prepare mm/page_alloc.c:1070 [inline]
 free_unref_page_prepare+0x483/0x5d0 mm/page_alloc.c:2763
 free_unref_page_list+0xd8/0x7b0 mm/page_alloc.c:2832
 release_pages+0xb0d/0x15a0 mm/swap.c:800
 __pagevec_release+0x7b/0x150 mm/swap.c:820
 pagevec_release include/linux/pagevec.h:86 [inline]
 truncate_inode_pages_range+0x8bb/0x1b00 mm/truncate.c:369
 jfs_remount+0x4bd/0x640 fs/jfs/super.c:485
 do_remount_sb+0x1a0/0x6a0 fs/super.c:888
 do_remount fs/namespace.c:2313 [inline]
 do_mount+0x1a62/0x2f50 fs/namespace.c:2813
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7d05f85449
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0cc4bea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7d05f85449
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 001800000000000c
R10: 0000000000000060 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 0000000a00030083 R15: 0000000000000000
BUG: Bad page state in process syz-executor224  pfn:abf85
page:ffffea0002afe140 count:0 mapcount:0 mapping:0000000000000000 index:0x2e
flags: 0xfff0000000100c(referenced|uptodate|private)
raw: 00fff0000000100c ffffea0002a455c8 ffffea0002700708 0000000000000000
raw: 000000000000002e ffff8880b49904b0 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
bad because of flags: 0x1000(private)
Modules linked in:
CPU: 0 PID: 8151 Comm: syz-executor224 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 bad_page.cold+0xdb/0x100 mm/page_alloc.c:571
 free_pages_check mm/page_alloc.c:955 [inline]
 free_pages_prepare mm/page_alloc.c:1045 [inline]
 free_pcp_prepare mm/page_alloc.c:1070 [inline]
 free_unref_page_prepare+0x483/0x5d0 mm/page_alloc.c:2763
 free_unref_page_list+0xd8/0x7b0 mm/page_alloc.c:2832
 release_pages+0xb0d/0x15a0 mm/swap.c:800
 __pagevec_release+0x7b/0x150 mm/swap.c:820
 pagevec_release include/linux/pagevec.h:86 [inline]
 truncate_inode_pages_range+0x8bb/0x1b00 mm/truncate.c:369
 jfs_remount+0x4bd/0x640 fs/jfs/super.c:485
 do_remount_sb+0x1a0/0x6a0 fs/super.c:888
 do_remount fs/namespace.c:2313 [inline]
 do_mount+0x1a62/0x2f50 fs/namespace.c:2813
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7d05f85449
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0cc4bea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7d05f85449
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 001800000000000c
R10: 0000000000000060 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 0000000a00030083 R15: 0000000000000000
BUG: Bad page state in process syz-executor224  pfn:a9157
page:ffffea0002a455c0 count:0 mapcount:0 mapping:0000000000000000 index:0x2d
flags: 0xfff0000000100c(referenced|uptodate|private)
raw: 00fff0000000100c ffffea0002aad6c8 ffffea0002700708 0000000000000000
raw: 000000000000002d ffff8880b49905a0 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
bad because of flags: 0x1000(private)
Modules linked in:
CPU: 0 PID: 8151 Comm: syz-executor224 Tainted: G    B             4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 bad_page.cold+0xdb/0x100 mm/page_alloc.c:571
 free_pages_check mm/page_alloc.c:955 [inline]
 free_pages_prepare mm/page_alloc.c:1045 [inline]
 free_pcp_prepare mm/page_alloc.c:1070 [inline]
 free_unref_page_prepare+0x483/0x5d0 mm/page_alloc.c:2763
 free_unref_page_list+0xd8/0x7b0 mm/page_alloc.c:2832
 release_pages+0xb0d/0x15a0 mm/swap.c:800
 __pagevec_release+0x7b/0x150 mm/swap.c:820
 pagevec_release include/linux/pagevec.h:86 [inline]
 truncate_inode_pages_range+0x8bb/0x1b00 mm/truncate.c:369
 jfs_remount+0x4bd/0x640 fs/jfs/super.c:485
 do_remount_sb+0x1a0/0x6a0 fs/super.c:888
 do_remount fs/namespace.c:2313 [inline]
 do_mount+0x1a62/0x2f50 fs/namespace.c:2813
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7d05f85449
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c0 ff ff ff f7 d8 64 89 0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/02 20:52 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 BUG: Bad page state
* Struck through repros no longer work on HEAD.