BUG: Bad page state (8)

41 views
Skip to first unread message

syzbot

unread,
Feb 1, 2021, 5:07:23ā€ÆAM2/1/21
to ak...@linux-foundation.org, linux-...@vger.kernel.org, linu...@kvack.org, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d03154e8 Add linux-next specific files for 20210128
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=16156808d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6953ffb584722a1
dashboard link: https://syzkaller.appspot.com/bug?extid=97ef6376738cb5104a71
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

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

BUG: Bad page state in process syz-executor.4 pfn:369c1
page:0000000025f15602 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3d pfn:0x369c1
flags: 0xfff00000020005(locked|uptodate|mappedtodisk)
raw: 00fff00000020005 dead000000000100 dead000000000122 0000000000000000
raw: 000000000000003d 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
Modules linked in:
CPU: 1 PID: 24274 Comm: syz-executor.4 Not tainted 5.11.0-rc5-next-20210128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x107/0x163 lib/dump_stack.c:120
bad_page.cold+0x9c/0xbd mm/page_alloc.c:643
check_free_page_bad mm/page_alloc.c:1139 [inline]
check_free_page mm/page_alloc.c:1149 [inline]
free_pages_prepare mm/page_alloc.c:1265 [inline]
free_pcp_prepare+0x300/0x400 mm/page_alloc.c:1306
free_unref_page_prepare mm/page_alloc.c:3201 [inline]
free_unref_page+0x12/0x1b0 mm/page_alloc.c:3249
__put_single_page mm/swap.c:97 [inline]
__put_page+0xe1/0x3e0 mm/swap.c:128
put_page include/linux/mm.h:1216 [inline]
filemap_update_page mm/filemap.c:2326 [inline]
filemap_get_pages+0x1312/0x1920 mm/filemap.c:2415
filemap_read+0x2c5/0xe40 mm/filemap.c:2475
generic_file_read_iter+0x397/0x4f0 mm/filemap.c:2626
ext4_file_read_iter+0x1d4/0x5d0 fs/ext4/file.c:130
call_read_iter include/linux/fs.h:1971 [inline]
generic_file_splice_read+0x450/0x6c0 fs/splice.c:311
do_splice_to+0x1bf/0x250 fs/splice.c:796
splice_direct_to_actor+0x2c2/0x8c0 fs/splice.c:870
do_splice_direct+0x1b3/0x280 fs/splice.c:979
do_sendfile+0x9f0/0x1110 fs/read_write.c:1261
__do_sys_sendfile64 fs/read_write.c:1326 [inline]
__se_sys_sendfile64 fs/read_write.c:1312 [inline]
__x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1312
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e219
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe714568c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 00008400fffffff6 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffd78dca10f R14: 00007fe7145699c0 R15: 000000000119bf8c


---
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.

Matthew Wilcox

unread,
Feb 1, 2021, 7:52:34ā€ÆAM2/1/21
to syzbot, ak...@linux-foundation.org, linux-...@vger.kernel.org, linu...@kvack.org, syzkall...@googlegroups.com, kent.ov...@gmail.com, h...@lst.de
On Mon, Feb 01, 2021 at 02:07:22AM -0800, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:

Thank you, syzbot. This is legit. But annoying.

> BUG: Bad page state in process syz-executor.4 pfn:369c1
> page:0000000025f15602 refcount:0 mapcount:0 mapping:0000000000000000 index:0x3d pfn:0x369c1
> flags: 0xfff00000020005(locked|uptodate|mappedtodisk)
> raw: 00fff00000020005 dead000000000100 dead000000000122 0000000000000000
> raw: 000000000000003d 0000000000000000 00000000ffffffff 0000000000000000
> page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set

Having the uptodate and mappedtodisk flags set is fine. It's the 'locked'
flag which is triggering the bug. Here's the code in question:

truncated:
error = AOP_TRUNCATED_PAGE;
put_page(page);
unlock:
unlock_page(page);

So we're going to unlock the page! But we actually have to unlock it first,
before the refcount goes to zero. Does anyone see a better way than this?

(Andrew, this is a fix to "mm/filemap: add filemap_range_uptodate")

diff --git a/mm/filemap.c b/mm/filemap.c
index bc4c9ac0ef4a..a945102b55c2 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2322,8 +2322,9 @@ static int filemap_update_page(struct kiocb *iocb,
put_page(page);
return error;
truncated:
- error = AOP_TRUNCATED_PAGE;
+ unlock_page(page);
put_page(page);
+ return AOP_TRUNCATED_PAGE;
unlock:
unlock_page(page);
return error;

syzbot

unread,
Oct 9, 2022, 1:44:35ā€ÆAM10/9/22
to ak...@linux-foundation.org, h...@lst.de, kent.ov...@gmail.com, linux-...@vger.kernel.org, linu...@kvack.org, sa...@linkscomputer.com, syzkall...@googlegroups.com, wi...@infradead.org
syzbot has found a reproducer for the following issue on:

HEAD commit: a6afa4199d3d Merge tag 'mailbox-v6.1' of git://git.linaro...
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13185e34880000
kernel config: https://syzkaller.appspot.com/x/.config?x=e2021a61197ebe02
dashboard link: https://syzkaller.appspot.com/bug?extid=97ef6376738cb5104a71
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11b84b5c880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1334d00c880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b8f297fb220e/disk-a6afa419.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9b6bc23e32ef/vmlinux-a6afa419.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/058bad60fb03/mount_0.gz

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

ERROR: (device loop0): remounting filesystem as read-only
=======================================================
WARNING: The mand mount option has been deprecated and
and is ignored by this kernel. Remove the mand
option from the mount to silence this warning.
=======================================================
BUG: Bad page state in process syz-executor306 pfn:70d41
page:ffffea0001c35040 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2f pfn:0x70d41
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001c35088 ffffea0001c355c8 0000000000000000
raw: 000000000000002f ffff88801fe96c98 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 3602, tgid 3602 (syz-executor306), ts 38348851793, free_ts 30056820819
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
alloc_pages+0x1a6/0x270 mm/mempolicy.c:2270
folio_alloc+0x1c/0x70 mm/mempolicy.c:2280
filemap_alloc_folio+0x306/0x3a0 mm/filemap.c:970
__filemap_get_folio+0x328/0xed0 mm/filemap.c:1970
pagecache_get_page+0x2e/0x290 mm/folio-compat.c:104
find_or_create_page include/linux/pagemap.h:613 [inline]
grab_cache_page include/linux/pagemap.h:743 [inline]
__get_metapage+0x262/0xef0 fs/jfs/jfs_metapage.c:613
diNewExt+0x7e9/0x1a10 fs/jfs/jfs_imap.c:2265
diAllocExt fs/jfs/jfs_imap.c:1945 [inline]
diAllocAG+0x15f1/0x2200 fs/jfs/jfs_imap.c:1662
diAlloc+0x82d/0x1730 fs/jfs/jfs_imap.c:1583
ialloc+0x89/0xaa0 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1f0/0xab0 fs/jfs/namei.c:225
vfs_mkdir+0x489/0x740 fs/namei.c:4013
do_mkdirat+0x28c/0x310 fs/namei.c:4038
__do_sys_mkdir fs/namei.c:4058 [inline]
__se_sys_mkdir fs/namei.c:4056 [inline]
__x64_sys_mkdir+0xf2/0x140 fs/namei.c:4056
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476
__folio_put_small mm/swap.c:105 [inline]
__folio_put+0xc1/0x130 mm/swap.c:128
folio_put include/linux/mm.h:1125 [inline]
put_page include/linux/mm.h:1177 [inline]
anon_pipe_buf_release+0x3f7/0x4b0 fs/pipe.c:138
pipe_buf_release include/linux/pipe_fs_i.h:183 [inline]
pipe_read+0x610/0x1100 fs/pipe.c:324
call_read_iter include/linux/fs.h:2184 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x7f6/0x930 fs/read_write.c:470
ksys_read+0x1e8/0x250 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Modules linked in:
CPU: 0 PID: 3602 Comm: syz-executor306 Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
bad_page.cold+0x9c/0xbd mm/page_alloc.c:716
check_free_page_bad mm/page_alloc.c:1288 [inline]
check_free_page mm/page_alloc.c:1298 [inline]
free_pages_prepare mm/page_alloc.c:1443 [inline]
free_pcp_prepare+0x6bd/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page_list+0x16f/0xb90 mm/page_alloc.c:3522
release_pages+0xbd3/0x1400 mm/swap.c:1012
__pagevec_release+0x77/0x100 mm/swap.c:1032
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x318/0x1510 mm/truncate.c:373
jfs_remount+0x4bd/0x640 fs/jfs/super.c:451
legacy_reconfigure+0x115/0x180 fs/fs_context.c:633
reconfigure_super+0x408/0xa30 fs/super.c:934
do_remount fs/namespace.c:2702 [inline]
path_mount+0x182c/0x1e20 fs/namespace.c:3362
do_mount fs/namespace.c:3383 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount fs/namespace.c:3568 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc67425cb39
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:00007ffcf34ad8f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc67425cb39
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000
RBP: 00007ffcf34ad920 R08: 0000000000000000 R09: 0000000032303633
R10: 0000000000000060 R11: 0000000000000246 R12: 00007ffcf34ada00
R13: 0000001200030083 R14: 0000000000000000 R15: 0000000000000000
</TASK>
BUG: Bad page state in process syz-executor306 pfn:70d42
page:ffffea0001c35080 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2e pfn:0x70d42
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001c350c8 ffffea0001c355c8 0000000000000000
raw: 000000000000002e ffff88801fe96ba0 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 3602, tgid 3602 (syz-executor306), ts 38348835963, free_ts 30056827399
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
alloc_pages+0x1a6/0x270 mm/mempolicy.c:2270
folio_alloc+0x1c/0x70 mm/mempolicy.c:2280
filemap_alloc_folio+0x306/0x3a0 mm/filemap.c:970
__filemap_get_folio+0x328/0xed0 mm/filemap.c:1970
pagecache_get_page+0x2e/0x290 mm/folio-compat.c:104
find_or_create_page include/linux/pagemap.h:613 [inline]
grab_cache_page include/linux/pagemap.h:743 [inline]
__get_metapage+0x262/0xef0 fs/jfs/jfs_metapage.c:613
diNewExt+0x7e9/0x1a10 fs/jfs/jfs_imap.c:2265
diAllocExt fs/jfs/jfs_imap.c:1945 [inline]
diAllocAG+0x15f1/0x2200 fs/jfs/jfs_imap.c:1662
diAlloc+0x82d/0x1730 fs/jfs/jfs_imap.c:1583
ialloc+0x89/0xaa0 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1f0/0xab0 fs/jfs/namei.c:225
vfs_mkdir+0x489/0x740 fs/namei.c:4013
do_mkdirat+0x28c/0x310 fs/namei.c:4038
__do_sys_mkdir fs/namei.c:4058 [inline]
__se_sys_mkdir fs/namei.c:4056 [inline]
__x64_sys_mkdir+0xf2/0x140 fs/namei.c:4056
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476
__folio_put_small mm/swap.c:105 [inline]
__folio_put+0xc1/0x130 mm/swap.c:128
folio_put include/linux/mm.h:1125 [inline]
put_page include/linux/mm.h:1177 [inline]
anon_pipe_buf_release+0x3f7/0x4b0 fs/pipe.c:138
pipe_buf_release include/linux/pipe_fs_i.h:183 [inline]
pipe_read+0x610/0x1100 fs/pipe.c:324
call_read_iter include/linux/fs.h:2184 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x7f6/0x930 fs/read_write.c:470
ksys_read+0x1e8/0x250 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Modules linked in:
CPU: 0 PID: 3602 Comm: syz-executor306 Tainted: G B 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
bad_page.cold+0x9c/0xbd mm/page_alloc.c:716
check_free_page_bad mm/page_alloc.c:1288 [inline]
check_free_page mm/page_alloc.c:1298 [inline]
free_pages_prepare mm/page_alloc.c:1443 [inline]
free_pcp_prepare+0x6bd/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page_list+0x16f/0xb90 mm/page_alloc.c:3522
release_pages+0xbd3/0x1400 mm/swap.c:1012
__pagevec_release+0x77/0x100 mm/swap.c:1032
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x318/0x1510 mm/truncate.c:373
jfs_remount+0x4bd/0x640 fs/jfs/super.c:451
legacy_reconfigure+0x115/0x180 fs/fs_context.c:633
reconfigure_super+0x408/0xa30 fs/super.c:934
do_remount fs/namespace.c:2702 [inline]
path_mount+0x182c/0x1e20 fs/namespace.c:3362
do_mount fs/namespace.c:3383 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount fs/namespace.c:3568 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc67425cb39
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:00007ffcf34ad8f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc67425cb39
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000
RBP: 00007ffcf34ad920 R08: 0000000000000000 R09: 0000000032303633
R10: 0000000000000060 R11: 0000000000000246 R12: 00007ffcf34ada00
R13: 0000001200030083 R14: 0000000000000000 R15: 0000000000000000
</TASK>
BUG: Bad page state in process syz-executor306 pfn:70d43
page:ffffea0001c350c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2d pfn:0x70d43
flags: 0xfff00000002006(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002006 ffffea0001c34ec8 ffffea0001c355c8 0000000000000000
raw: 000000000000002d ffff88801fe96aa8 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 3602, tgid 3602 (syz-executor306), ts 38348815033, free_ts 30056832129
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
alloc_pages+0x1a6/0x270 mm/mempolicy.c:2270
folio_alloc+0x1c/0x70 mm/mempolicy.c:2280
filemap_alloc_folio+0x306/0x3a0 mm/filemap.c:970
__filemap_get_folio+0x328/0xed0 mm/filemap.c:1970
pagecache_get_page+0x2e/0x290 mm/folio-compat.c:104
find_or_create_page include/linux/pagemap.h:613 [inline]
grab_cache_page include/linux/pagemap.h:743 [inline]
__get_metapage+0x262/0xef0 fs/jfs/jfs_metapage.c:613
diNewExt+0x7e9/0x1a10 fs/jfs/jfs_imap.c:2265
diAllocExt fs/jfs/jfs_imap.c:1945 [inline]
diAllocAG+0x15f1/0x2200 fs/jfs/jfs_imap.c:1662
diAlloc+0x82d/0x1730 fs/jfs/jfs_imap.c:1583
ialloc+0x89/0xaa0 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1f0/0xab0 fs/jfs/namei.c:225
vfs_mkdir+0x489/0x740 fs/namei.c:4013
do_mkdirat+0x28c/0x310 fs/namei.c:4038
__do_sys_mkdir fs/namei.c:4058 [inline]
__se_sys_mkdir fs/namei.c:4056 [inline]
__x64_sys_mkdir+0xf2/0x140 fs/namei.c:4056
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476
__folio_put_small mm/swap.c:105 [inline]
__folio_put+0xc1/0x130 mm/swap.c:128
folio_put include/linux/mm.h:1125 [inline]
put_page include/linux/mm.h:1177 [inline]
anon_pipe_buf_release+0x3f7/0x4b0 fs/pipe.c:138
pipe_buf_release include/linux/pipe_fs_i.h:183 [inline]
pipe_read+0x610/0x1100 fs/pipe.c:324
call_read_iter include/linux/fs.h:2184 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x7f6/0x930 fs/read_write.c:470
ksys_read+0x1e8/0x250 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Modules linked in:
CPU: 1 PID: 3602 Comm: syz-executor306 Tainted: G B 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
bad_page.cold+0x9c/0xbd mm/page_alloc.c:716
check_free_page_bad mm/page_alloc.c:1288 [inline]
check_free_page mm/page_alloc.c:1298 [inline]
free_pages_prepare mm/page_alloc.c:1443 [inline]
free_pcp_prepare+0x6bd/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page_list+0x16f/0xb90 mm/page_alloc.c:3522
release_pages+0xbd3/0x1400 mm/swap.c:1012
__pagevec_release+0x77/0x100 mm/swap.c:1032
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x318/0x1510 mm/truncate.c:373
jfs_remount+0x4bd/0x640 fs/jfs/super.c:451
legacy_reconfigure+0x115/0x180 fs/fs_context.c:633
reconfigure_super+0x408/0xa30 fs/super.c:934
do_remount fs/namespace.c:2702 [inline]
path_mount+0x182c/0x1e20 fs/namespace.c:3362
do_mount fs/namespace.c:3383 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount fs/namespace.c:3568 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc67425cb39
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:00007ffcf34ad8f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc

Reply all
Reply to author
Forward
0 new messages