BUG: Bad page state in process syz-executor.4 pfn:67a0d page:ffffea00019e8340 count:0 mapcount:-1024 mapping:0000000000000000 index:0x0 flags: 0x1fffc0000000000() raw: 01fffc0000000000 dead000000000100 dead000000000200 0000000000000000 raw: 0000000000000000 ffff8880a7c92268 00000000ffffffff 0000000000000000 page dumped because: nonzero mapcount Modules linked in: CPU: 1 PID: 30973 Comm: syz-executor.4 Not tainted 5.0.0-rc7-next-20190225 #42 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:1013 free_pages_check mm/page_alloc.c:1022 [inline] free_pages_prepare mm/page_alloc.c:1112 [inline] free_pcp_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare mm/page_alloc.c:3001 [inline] free_unref_page+0x3c6/0x600 mm/page_alloc.c:3050 __put_single_page mm/swap.c:79 [inline] __put_page+0x8d/0xd0 mm/swap.c:113 put_page include/linux/mm.h:1026 [inline] generic_pipe_buf_release+0x100/0x160 fs/pipe.c:224 pipe_buf_release include/linux/pipe_fs_i.h:129 [inline] iter_file_splice_write+0x7d1/0xbe0 fs/splice.c:759 do_splice_from fs/splice.c:847 [inline] direct_splice_actor+0x126/0x1a0 fs/splice.c:1019 splice_direct_to_actor+0x369/0x970 fs/splice.c:974 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:1497 [inline] __se_sys_sendfile64 fs/read_write.c:1489 [inline] __x64_sys_sendfile64+0x15a/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:00007fae12c6fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457e29 RDX: 00000000200ddff8 RSI: 0000000000000006 RDI: 0000000000000006 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000102000000 R11: 0000000000000246 R12: 00007fae12c706d4 R13: 00000000004c4dce R14: 00000000004d8af8 R15: 00000000ffffffff page:ffffea00028f2dc0 count:0 mapcount:-512 mapping:0000000000000000 index:0x0 flags: 0x1fffc0000000000() raw: 01fffc0000000000 ffffea000256f8c8 ffff88806c9ff798 0000000000000000 raw: 0000000000000000 ffff888094c75370 00000000fffffdff ffff88808dbd6ac0 page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) page->mem_cgroup:ffff88808dbd6ac0 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:579! invalid opcode: 0000 [#2] PREEMPT SMP KASAN CPU: 1 PID: 30973 Comm: syz-executor.4 Tainted: G B D 5.0.0-rc7-next-20190225 #42 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:put_page_testzero include/linux/mm.h:579 [inline] RIP: 0010:put_page include/linux/mm.h:1025 [inline] RIP: 0010:generic_pipe_buf_release+0x120/0x160 fs/pipe.c:224 Code: bd ff 4c 89 e7 e8 60 44 db ff e8 db 28 bd ff 5b 41 5c 41 5d 5d c3 e8 cf 28 bd ff 48 c7 c6 e0 98 75 87 4c 89 e7 e8 90 dc e4 ff <0f> 0b e8 b9 28 bd ff 4d 8d 65 ff e9 3d ff ff ff 48 89 df e8 58 f9 RSP: 0018:ffff8880a5197920 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffffea00028f2df4 RCX: ffffc90006df3000 RDX: 0000000000040000 RSI: ffffffff81982c42 RDI: ffffed1014a32f08 RBP: ffff8880a5197938 R08: 0000000000000021 R09: ffffed1015d25011 R10: ffffed1015d25010 R11: ffff8880ae928087 R12: ffffea00028f2dc0 R13: 0000000000000000 R14: ffff88809f950340 R15: ffff888097ada928 FS: 00007fae12c70700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d7bf8 CR3: 0000000094dab000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pipe_buf_release include/linux/pipe_fs_i.h:129 [inline] iter_file_splice_write+0x7d1/0xbe0 fs/splice.c:759 do_splice_from fs/splice.c:847 [inline] direct_splice_actor+0x126/0x1a0 fs/splice.c:1019 splice_direct_to_actor+0x369/0x970 fs/splice.c:974 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:1497 [inline] __se_sys_sendfile64 fs/read_write.c:1489 [inline] __x64_sys_sendfile64+0x15a/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:00007fae12c6fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457e29 RDX: 00000000200ddff8 RSI: 0000000000000006 RDI: 0000000000000006 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000102000000 R11: 0000000000000246 R12: 00007fae12c706d4 R13: 00000000004c4dce R14: 00000000004d8af8 R15: 00000000ffffffff Modules linked in: ---[ end trace 37b1fa0849336619 ]--- RIP: 0010:put_page_testzero include/linux/mm.h:579 [inline] RIP: 0010:put_page_testzero include/linux/mm.h:577 [inline] RIP: 0010:release_pages+0xd16/0x1940 mm/swap.c:754 Code: bd 38 ff ff ff e8 3a eb 1e 00 4c 8b ad 48 ff ff ff e9 33 f6 ff ff e8 c9 d3 e1 ff 48 c7 c6 00 93 72 87 4c 89 e7 e8 8a 87 09 00 <0f> 0b e8 b3 d3 e1 ff 4c 8d 63 ff e9 28 f4 ff ff e8 a5 d3 e1 ff 48 RSP: 0018:ffff88806c9ff720 EFLAGS: 00010293 RAX: ffff88808a6cc640 RBX: ffffea00019e8374 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81982c42 RDI: ffffea00019e8378 RBP: ffff88806c9ff800 R08: 000000000000003e R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00019e8340