BUG: Bad page state in process syz-executor.4 pfn:772b1 page:ffffea0001dcac40 count:0 mapcount:0 mapping:ffff888092935860 index:0xf shmem_aops name:"memfd:" flags: 0x1fffc000008000c(uptodate|dirty|swapbacked) raw: 01fffc000008000c ffffea0001a15708 ffff8880571bf600 ffff888092935860 raw: 000000000000000f 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: non-NULL mapping Modules linked in: CPU: 1 PID: 305 Comm: syz-executor.4 Not tainted 5.0.0-rc7-next-20190220 #39 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 bad_page.cold+0xda/0xff mm/page_alloc.c:586 free_pages_check_bad+0x142/0x1a0 mm/page_alloc.c:1014 free_pages_check mm/page_alloc.c:1023 [inline] free_pages_prepare mm/page_alloc.c:1113 [inline] free_pcp_prepare mm/page_alloc.c:1138 [inline] free_unref_page_prepare mm/page_alloc.c:3003 [inline] free_unref_page_list+0x31d/0xc40 mm/page_alloc.c:3072 release_pages+0x60d/0x1940 mm/swap.c:794 pagevec_lru_move_fn+0x218/0x2a0 mm/swap.c:213 __pagevec_lru_add mm/swap.c:920 [inline] __lru_cache_add+0x1c4/0x2d0 mm/swap.c:404 lru_cache_add_anon+0x1e2/0x360 mm/swap.c:416 shmem_getpage_gfp+0x79c/0x2500 mm/shmem.c:1872 shmem_getpage mm/shmem.c:139 [inline] shmem_file_read_iter+0x30a/0xbc0 mm/shmem.c:2546 call_read_iter include/linux/fs.h:1851 [inline] generic_file_splice_read+0x4b4/0x800 fs/splice.c:306 do_splice_to+0x12a/0x190 fs/splice.c:876 splice_direct_to_actor+0x2d2/0x970 fs/splice.c:953 do_splice_direct+0x1da/0x2a0 fs/splice.c:1062 do_sendfile+0x597/0xd00 fs/read_write.c:1442 __do_sys_sendfile64 fs/read_write.c:1503 [inline] __se_sys_sendfile64 fs/read_write.c:1489 [inline] __x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1489 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e29 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc8d0ca4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457e29 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000102000000 R11: 0000000000000246 R12: 00007fc8d0ca56d4 R13: 00000000004c4dce R14: 00000000004d8a58 R15: 00000000ffffffff BUG: Bad page state in process syz-executor.4 pfn:6855c page:ffffea0001a15700 count:0 mapcount:0 mapping:ffff888092935860 index:0xe shmem_aops name:"memfd:" flags: 0x1fffc000008000c(uptodate|dirty|swapbacked) raw: 01fffc000008000c ffff8880571bf600 ffff8880571bf600 ffff888092935860 raw: 000000000000000e 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: non-NULL mapping Modules linked in: CPU: 1 PID: 305 Comm: syz-executor.4 Tainted: G B 5.0.0-rc7-next-20190220 #39 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 bad_page.cold+0xda/0xff mm/page_alloc.c:586 free_pages_check_bad+0x142/0x1a0 mm/page_alloc.c:1014 free_pages_check mm/page_alloc.c:1023 [inline] free_pages_prepare mm/page_alloc.c:1113 [inline] free_pcp_prepare mm/page_alloc.c:1138 [inline] free_unref_page_prepare mm/page_alloc.c:3003 [inline] free_unref_page_list+0x31d/0xc40 mm/page_alloc.c:3072 release_pages+0x60d/0x1940 mm/swap.c:794 pagevec_lru_move_fn+0x218/0x2a0 mm/swap.c:213 __pagevec_lru_add mm/swap.c:920 [inline] __lru_cache_add+0x1c4/0x2d0 mm/swap.c:404 lru_cache_add_anon+0x1e2/0x360 mm/swap.c:416 shmem_getpage_gfp+0x79c/0x2500 mm/shmem.c:1872 shmem_getpage mm/shmem.c:139 [inline] shmem_file_read_iter+0x30a/0xbc0 mm/shmem.c:2546 call_read_iter include/linux/fs.h:1851 [inline] generic_file_splice_read+0x4b4/0x800 fs/splice.c:306 do_splice_to+0x12a/0x190 fs/splice.c:876 splice_direct_to_actor+0x2d2/0x970 fs/splice.c:953 do_splice_direct+0x1da/0x2a0 fs/splice.c:1062 do_sendfile+0x597/0xd00 fs/read_write.c:1442 __do_sys_sendfile64 fs/read_write.c:1503 [inline] __se_sys_sendfile64 fs/read_write.c:1489 [inline] __x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1489 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e29 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc8d0ca4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457e29 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000102000000 R11: 0000000000000246 R12: 00007fc8d0ca56d4 R13: 00000000004c4dce R14: 00000000004d8a58 R15: 00000000ffffffff