------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 27476 Comm: systemd-udevd Not tainted 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88804eb500c0 task.stack: ffff888207ae8000 RIP: 0010:__phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: 0018:ffff888207aef758 EFLAGS: 00010297 RAX: ffff88804eb500c0 RBX: 0077000007700077 RCX: 1ffff11009d6a12d RDX: 0000000000000000 RSI: ffff88804eb50970 RDI: 0077000007700077 RBP: 0077000087700077 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0077778007700077 R13: ffff888207aef7b0 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f9bb2ab88c0(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff3c6be8d8 CR3: 0000000096bfe000 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_track_caller+0x13d/0x7b0 mm/slab.c:3735 kmemdup_nul+0x2d/0xa0 mm/util.c:138 security_context_to_sid_core+0x94/0x3d0 security/selinux/ss/services.c:1420 selinux_inode_setsecurity+0x155/0x350 security/selinux/hooks.c:3377 selinux_inode_notifysecctx+0x2b/0x50 security/selinux/hooks.c:6152 security_inode_notifysecctx+0x76/0xb0 security/security.c:1314 kernfs_refresh_inode+0x328/0x4b0 fs/kernfs/inode.c:195 kernfs_iop_permission+0x59/0x90 fs/kernfs/inode.c:302 do_inode_permission fs/namei.c:384 [inline] __inode_permission+0x1f3/0x300 fs/namei.c:426 inode_permission+0x23/0x100 fs/namei.c:476 may_lookup fs/namei.c:1717 [inline] link_path_walk+0x75d/0xed0 fs/namei.c:2097 path_lookupat.isra.0+0xcb/0x7b0 fs/namei.c:2342 filename_lookup+0x18e/0x380 fs/namei.c:2377 user_path_at include/linux/namei.h:57 [inline] SYSC_faccessat fs/open.c:403 [inline] SyS_faccessat fs/open.c:353 [inline] SYSC_access fs/open.c:450 [inline] SyS_access+0x21a/0x680 fs/open.c:448 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f9bb192b9c7 RSP: 002b:00007ffeca255348 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 0000564acd68e940 RCX: 00007f9bb192b9c7 RDX: 00746e657665752f RSI: 0000000000000000 RDI: 00007ffeca255350 RBP: 00007ffeca2553b0 R08: 000000000000ffc0 R09: 0000000000001010 R10: 00007f9bb1be9b58 R11: 0000000000000246 R12: 0000564acc19d856 R13: 0000564acd687ac0 R14: 00007ffeca255350 R15: 0000564acd674bf8 Code: c2 7f 04 84 d2 75 26 0f b6 0d 46 4f 68 07 4c 89 e0 48 d3 e8 48 85 c0 75 0d e8 bd 8a 30 00 4c 89 e0 5b 5d 41 5c c3 e8 b0 8a 30 00 <0f> 0b 48 c7 c7 c9 1a 92 88 e8 82 e9 59 00 eb cc e8 9b 8a 30 00 RIP: __phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: ffff888207aef758 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! invalid opcode: 0000 [#2] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 27448 Comm: syz-executor.0 Tainted: G D 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888080da0140 task.stack: ffff88820d6a8000 RIP: 0010:__phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: 0018:ffff88820d6af6a8 EFLAGS: 00010297 RAX: ffff888080da0140 RBX: 0000077000077000 RCX: 1ffffffff1027a8c RDX: 0000000000000000 RSI: ffffffff86e45e20 RDI: 0000077000077000 RBP: 0000077080077000 R08: 0000000000000000 R09: 0000000000000000 R10: ffff88821fff8d80 R11: ffff888080da0140 R12: 00007ef000077000 R13: ffff88820d6af700 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f790ee13700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc4abb0fcc CR3: 000000008e69e000 CR4: 00000000001426e0 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] kmem_cache_alloc+0x114/0x770 mm/slab.c:3550 kmem_cache_zalloc include/linux/slab.h:651 [inline] alloc_buffer_head+0x20/0xd0 fs/buffer.c:3436 alloc_page_buffers+0xb3/0x1f0 fs/buffer.c:874 create_empty_buffers+0x36/0x470 fs/buffer.c:1590 create_page_buffers+0x14d/0x1c0 fs/buffer.c:1707 __block_write_begin_int+0x167/0x1030 fs/buffer.c:2017 ext4_da_write_begin+0x3fc/0xe60 fs/ext4/inode.c:3108 generic_perform_write+0x1c9/0x420 mm/filemap.c:3047 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3172 ext4_file_write_iter+0x281/0xdc0 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44e/0x630 fs/read_write.c:482 vfs_write+0x192/0x4e0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ca29 RSP: 002b:00007f790ee12c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000050b400 RCX: 000000000045ca29 RDX: 00000000fffffff4 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000c97 R14: 00000000004ceea7 R15: 00007f790ee136d4 Code: c2 7f 04 84 d2 75 26 0f b6 0d 46 4f 68 07 4c 89 e0 48 d3 e8 48 85 c0 75 0d e8 bd 8a 30 00 4c 89 e0 5b 5d 41 5c c3 e8 b0 8a 30 00 <0f> 0b 48 c7 c7 c9 1a 92 88 e8 82 e9 59 00 eb cc e8 9b 8a 30 00 RIP: __phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: ffff88820d6af6a8 ---[ end trace d9482ce700a21f95 ]---