audit: type=1804 audit(1586486945.456:93): pid=15506 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir011960712/syzkaller.npO3qf/77/bus" dev="sda1" ino=16172 res=1 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 15504 Comm: syz-executor.4 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88803f88e600 task.stack: ffff8882111e8000 RIP: 0010:__phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: 0018:ffff8882111ef8d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 66c0cc3018c06660 RCX: ffffc9000aaac000 RDX: 0000000000040000 RSI: ffffffff8129bb20 RDI: 66c0cc3018c06660 RBP: 66c0cc3098c06660 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 66c143b018c06660 R13: ffff8882111ef930 R14: 0000000000000000 R15: 0000000000000282 FS: 00007f3493d5c700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200ac000 CR3: 0000000095523000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:600 [inline] qlink_to_cache mm/kasan/quarantine.c:127 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163 quarantine_reduce+0x140/0x170 mm/kasan/quarantine.c:259 kasan_kmalloc+0x95/0xe0 mm/kasan/kasan.c:536 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc mm/slab.c:3390 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x145/0x7c0 mm/slab.c:3729 kmalloc_array include/linux/slab.h:607 [inline] kcalloc include/linux/slab.h:618 [inline] iter_file_splice_write+0x143/0xa10 fs/splice.c:692 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1018 splice_direct_to_actor+0x27e/0x730 fs/splice.c:973 do_splice_direct+0x164/0x210 fs/splice.c:1061 do_sendfile+0x469/0xaf0 fs/read_write.c:1441 SYSC_sendfile64 fs/read_write.c:1502 [inline] SyS_sendfile64+0xff/0x110 fs/read_write.c:1488 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c889 RSP: 002b:00007f3493d5bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3493d5c6d4 RCX: 000000000045c889 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 000000000076c040 R08: 0000000000000000 R09: 0000000000000000 R10: 00008400fffffffa R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008d4 R14: 00000000004cb7c6 R15: 000000000076c04c Code: c2 7f 04 84 d2 75 26 0f b6 0d 06 51 68 07 4c 89 e0 48 d3 e8 48 85 c0 75 0d e8 8d 8b 30 00 4c 89 e0 5b 5d 41 5c c3 e8 80 8b 30 00 <0f> 0b 48 c7 c7 09 0c 92 88 e8 62 dd 59 00 eb cc e8 6b 8b 30 00 RIP: __phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: ffff8882111ef8d8 ---[ end trace 2b206664b290f975 ]---