BUG: Bad page state (3)

4 views
Skip to first unread message

syzbot

unread,
Oct 2, 2022, 4:53:40 PM10/2/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11b3bbd4880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=c7a5b3b99e1b4e2d66e7
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12220e5c880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16178b12880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c7a5b3...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages