audit: type=1804 audit(1661724994.568:1155): pid=9924 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1573584385/syzkaller.N2FahN/1574/bus" dev="sda1" ino=16094 res=1 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8136 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 67 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 40 28 37 00 48 85 db 75 0d e8 a6 26 37 00 4c 89 e0 5b 5d 41 5c c3 e8 99 26 37 00 <0f> 0b e8 92 26 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880994d7ab0 EFLAGS: 00010293 RAX: ffff888099fce000 RBX: 0770007707700077 RCX: ffffffff812b5e78 RDX: 0000000000000000 RSI: ffffffff812b5ed7 RDI: 0000000000000006 RBP: 0770007787700077 R08: 0000000000000000 R09: 0770007787700077 R10: 0000000000000006 R11: 0000000000000000 R12: 077077f707700077 R13: ffff8880994d7b08 R14: 0000000000000000 R15: 0000000000000286 FS: 00005555571a4400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000009b3b1000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:665 [inline] qlink_to_cache mm/kasan/quarantine.c:127 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x110/0x370 mm/slab.c:3557 getname_flags+0xce/0x590 fs/namei.c:140 getname fs/namei.c:211 [inline] do_rmdir+0x97/0x490 fs/namei.c:3910 __do_sys_unlinkat fs/namei.c:4105 [inline] __se_sys_unlinkat fs/namei.c:4099 [inline] __x64_sys_unlinkat+0xdf/0x120 fs/namei.c:4099 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fba7a89bbe7 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe8f88c4f8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fba7a89bbe7 RDX: 0000000000000200 RSI: 00007ffe8f88d680 RDI: 00000000ffffff9c RBP: 00007ffe8f88c5c0 R08: 0000000000000000 R09: 00007ffe8f88c390 R10: 00005555571a58e3 R11: 0000000000000207 R12: 00007fba7a8f52ce R13: 00007ffe8f88d680 R14: 00005555571a5810 R15: 00007ffe8f88d6c0 Modules linked in: ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! audit: type=1804 audit(1661724994.568:1156): pid=9920 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1573584385/syzkaller.N2FahN/1574/bus" dev="sda1" ino=16094 res=1 invalid opcode: 0000 [#2] PREEMPT SMP KASAN audit: type=1800 audit(1661724994.618:1157): pid=9937 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=196612 res=0 CPU: 1 PID: 4692 Comm: systemd-journal Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 67 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 40 28 37 00 48 85 db 75 0d e8 a6 26 37 00 4c 89 e0 5b 5d 41 5c c3 e8 99 26 37 00 <0f> 0b e8 92 26 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc audit: type=1800 audit(1661724994.748:1158): pid=9953 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=294919 res=0 RSP: 0018:ffff8880a1367af8 EFLAGS: 00010293 RAX: ffff8880a135a580 RBX: 0007770000000077 RCX: ffffffff812b5e78 RDX: 0000000000000000 RSI: ffffffff812b5ed7 RDI: 0000000000000006 RBP: 0007770080000077 R08: 0000000000000000 R09: 0007770080000077 R10: 0000000000000006 R11: 0000000000000009 R12: 0007ee8000000077 R13: ffff8880a1367b50 R14: 0000000000000000 R15: 0000000000000286 FS: 00007fc168b478c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e7d8d1e160 CR3: 00000000a10e4000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:665 [inline] qlink_to_cache mm/kasan/quarantine.c:127 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc+0x110/0x370 mm/slab.c:3557 getname_flags+0xce/0x590 fs/namei.c:140 do_sys_open+0x26c/0x520 fs/open.c:1079 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc1680d685d Code: bb 20 00 00 75 10 b8 02 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 67 f6 ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffc96bfd230 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffc96bfd540 RCX: 00007fc1680d685d RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055f8b1a61820 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000293 R12: 00000000ffffffff R13: 000055f8b1a5d040 R14: 00007ffc96bfd500 R15: 000055f8b1a69250 Modules linked in: ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#3] PREEMPT SMP KASAN CPU: 1 PID: 7761 Comm: in:imklog Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 67 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 40 28 37 00 48 85 db 75 0d e8 a6 26 37 00 4c 89 e0 5b 5d 41 5c c3 e8 99 26 37 00 <0f> 0b e8 92 26 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff88809340f798 EFLAGS: 00010293 RAX: ffff8880ab6d00c0 RBX: 0077777000777770 RCX: ffffffff812b5e78 RDX: 0000000000000000 RSI: ffffffff812b5ed7 RDI: 0000000000000006 RBP: 0077777080777770 R08: 0000000000000000 R09: 0077777080777770 R10: 0000000000000006 R11: ffffffff8869f7b4 R12: 0077eef000777770 R13: ffff88809340f7f0 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f0e7236a700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e7d8d1e160 CR3: 00000000b358d000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:665 [inline] qlink_to_cache mm/kasan/quarantine.c:127 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538 ---[ end trace dee9c17fc5a4e175 ]--- RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] kmem_cache_alloc_trace+0x11a/0x380 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] syslog_print kernel/printk/printk.c:1337 [inline] do_syslog.part.0+0x24f/0x1510 kernel/printk/printk.c:1505 Code: 67 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 40 28 37 00 48 85 db 75 0d e8 a6 26 37 00 4c 89 e0 5b 5d 41 5c c3 e8 99 26 37 00 <0f> 0b e8 92 26 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc do_syslog+0x49/0x60 kernel/printk/printk.c:1486 RSP: 0018:ffff8880994d7ab0 EFLAGS: 00010293 kmsg_read+0x8a/0xb0 fs/proc/kmsg.c:40 proc_reg_read+0x1bd/0x2d0 fs/proc/inode.c:231 __vfs_read+0xf7/0x750 fs/read_write.c:416 RAX: ffff888099fce000 RBX: 0770007707700077 RCX: ffffffff812b5e78 RDX: 0000000000000000 RSI: ffffffff812b5ed7 RDI: 0000000000000006 RBP: 0770007787700077 R08: 0000000000000000 R09: 0770007787700077 vfs_read+0x194/0x3c0 fs/read_write.c:452 ksys_read+0x12b/0x2a0 fs/read_write.c:579 R10: 0000000000000006 R11: 0000000000000000 R12: 077077f707700077 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0e749ad22d Code: c1 20 00 00 75 10 b8 00 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 b8 00 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 97 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f0e72349580 EFLAGS: 00000293 ORIG_RAX: 0000000000000000 R13: ffff8880994d7b08 R14: 0000000000000000 R15: 0000000000000286 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0e749ad22d RDX: 0000000000001fa0 RSI: 00007f0e72349da0 RDI: 0000000000000004 RBP: 0000559e9c7889d0 R08: 0000000000000000 R09: 0000000000000000 R10: 2ce33e6c02ce33e7 R11: 0000000000000293 R12: 00007f0e72349da0 R13: 0000000000001fa0 R14: 0000000000001f9f R15: 00007f0e72349e12 FS: 00005555571a4400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 Modules linked in: ---[ end trace dee9c17fc5a4e176 ]--- CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 CR2: 0000001b30538000 CR3: 000000009b3b1000 CR4: 00000000003406f0 Code: 67 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 40 28 37 00 48 85 db 75 0d e8 a6 26 37 00 4c 89 e0 5b 5d 41 5c c3 e8 99 26 37 00 <0f> 0b e8 92 26 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 RSP: 0018:ffff8880994d7ab0 EFLAGS: 00010293 RAX: ffff888099fce000 RBX: 0770007707700077 RCX: ffffffff812b5e78 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---[ end trace dee9c17fc5a4e177 ]---