audit: type=1804 audit(1583895084.476:79): pid=25188 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir890510407/syzkaller.hfxJQO/1061/file0/bus" dev="sda1" ino=16895 res=1 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 25187 Comm: syz-executor.4 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 16 5d 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 a0 a2 37 00 48 85 db 75 0d e8 06 a1 37 00 4c 89 e0 5b 5d 41 5c c3 e8 f9 a0 37 00 <0f> 0b e8 f2 a0 37 00 48 c7 c0 10 50 a7 88 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8881f6457828 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0770007777700777 RCX: ffffc9000eeee000 RDX: 0000000000040000 RSI: ffffffff813001d7 RDI: 0000000000000006 RBP: 07700077f7700777 R08: ffff888088d92700 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 077077f777700777 R13: ffff8881f6457880 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f6dc91f2700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020bf2000 CR3: 000000008422d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:653 [inline] qlink_to_cache mm/kasan/quarantine.c:127 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163 quarantine_reduce+0x164/0x1a0 mm/kasan/quarantine.c:259 kasan_kmalloc+0x95/0xe0 mm/kasan/kasan.c:538 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x145/0x770 mm/slab.c:3736 kmalloc_array include/linux/slab.h:637 [inline] kcalloc include/linux/slab.h:648 [inline] iter_file_splice_write+0x168/0xb30 fs/splice.c:693 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a8/0x270 fs/splice.c:1068 do_sendfile+0x549/0xc10 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64 fs/read_write.c:1494 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6dc91f1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6dc91f26d4 RCX: 000000000045c4a9 RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000009 RBP: 000000000076c1a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00008400fffffffa R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008d1 R14: 00000000004cb3b0 R15: 000000000076c1ac Modules linked in: ---[ end trace d283585a0aa9ae74 ]--- RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 16 5d 08 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 a0 a2 37 00 48 85 db 75 0d e8 06 a1 37 00 4c 89 e0 5b 5d 41 5c c3 e8 f9 a0 37 00 <0f> 0b e8 f2 a0 37 00 48 c7 c0 10 50 a7 88 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8881f6457828 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0770007777700777 RCX: ffffc9000eeee000 RDX: 0000000000040000 RSI: ffffffff813001d7 RDI: 0000000000000006 RBP: 07700077f7700777 R08: ffff888088d92700 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 077077f777700777 R13: ffff8881f6457880 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f6dc91f2700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020bf2000 CR3: 000000008422d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400