binder: 23670:23680 ioctl c0306201 20000200 returned -22 binder: 23677:23682 unknown command 0 audit: type=1804 audit(1626609231.442:325): pid=23681 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir447755988/syzkaller.iGyzX8/677/bus" dev="sda1" ino=15041 res=1 binder: BINDER_SET_CONTEXT_MGR already set ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:27! binder: 23677:23682 ioctl c0306201 20000200 returned -22 invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4703 Comm: systemd-udevd Not tainted 4.19.197-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 binder: 23670:23680 unknown command 0 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 Code: 54 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 f0 22 37 00 48 85 db 75 0d e8 56 21 37 00 4c 89 e0 5b 5d 41 5c c3 e8 49 21 37 00 <0f> 0b e8 42 21 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff88809b7d79a8 EFLAGS: 00010293 RAX: ffff88809b7ce180 RBX: 2e732a7366e4e460 RCX: ffffffff812b5e48 RDX: 0000000000000000 RSI: ffffffff812b5ea7 RDI: 0000000000000006 RBP: 2e732a73e6e4e460 R08: 0000000000000000 R09: 2e732a73e6e4e460 R10: 0000000000000006 R11: 0000000000000000 R12: 2e73a1f366e4e460 R13: ffff88809b7d7a00 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f25cd1ff8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffba3dfc20 CR3: 000000009c1ca000 CR4: 00000000001426f0 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 user_path_at_empty+0x2a/0x50 fs/namei.c:2609 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x113/0x210 fs/stat.c:185 vfs_lstat include/linux/fs.h:3137 [inline] __do_sys_newlstat fs/stat.c:350 [inline] __se_sys_newlstat+0x96/0x120 fs/stat.c:344 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f25cc071335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007fffba361f48 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 binder: BINDER_SET_CONTEXT_MGR already set RAX: ffffffffffffffda RBX: 0000565297c46bf0 RCX: 00007f25cc071335 RDX: 00007fffba361f80 RSI: 00007fffba361f80 RDI: 0000565297c45bf0 RBP: 00007fffba362040 R08: 00007f25cc3301c8 R09: 0000000000001010 R10: 00007f25cc32fb58 R11: 0000000000000246 R12: 0000565297c45bf0 R13: 0000565297c45c10 R14: 0000565297c3220b R15: 0000565297c32210 binder: 23670:23672 ioctl 40046207 0 returned -16 Modules linked in: ------------[ cut here ]------------ binder: 23670:23680 ioctl c0306201 20000200 returned -22 kernel BUG at arch/x86/mm/physaddr.c:27! binder: 23670:23684 ioctl 40046207 0 returned -16 audit: type=1804 audit(1626609231.522:326): pid=23686 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir447755988/syzkaller.iGyzX8/677/bus" dev="sda1" ino=15041 res=1 binder: 23677:23682 unknown command 0 invalid opcode: 0000 [#2] PREEMPT SMP KASAN binder_alloc: 23677: binder_alloc_buf, no vma CPU: 1 PID: 7797 Comm: rs:main Q:Reg Tainted: G D 4.19.197-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: 54 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 f0 22 37 00 48 85 db 75 0d e8 56 21 37 00 4c 89 e0 5b 5d 41 5c c3 e8 49 21 37 00 <0f> 0b e8 42 21 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880a11a7400 EFLAGS: 00010293 RAX: ffff88808f016100 RBX: c4eb6d01d846d8be RCX: ffffffff812b5e48 RDX: 0000000000000000 RSI: ffffffff812b5ea7 RDI: 0000000000000006 RBP: c4eb6d025846d8be R08: 0000000000000000 R09: c4eb6d025846d8be R10: 0000000000000006 R11: 0000000000000001 R12: c4ebe481d846d8be R13: ffff8880a11a7458 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f0e5a1fc700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 binder: 23677:23682 ioctl c0306201 20000200 returned -22 CR2: 0000000020c0003f CR3: 00000000ab9c7000 CR4: 00000000001426e0 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 ------------[ cut here ]------------ kernel BUG at 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+0x110/0x370 mm/slab.c:3557 kmem_cache_zalloc include/linux/slab.h:699 [inline] alloc_buffer_head+0x20/0x130 fs/buffer.c:3372 alloc_page_buffers+0x169/0x5c0 fs/buffer.c:830 create_empty_buffers+0x2c/0x760 fs/buffer.c:1528 create_page_buffers+0x212/0x350 fs/buffer.c:1645 __block_write_begin_int+0x22b/0x17b0 fs/buffer.c:1957 ext4_da_write_begin+0x4e1/0x10e0 fs/ext4/inode.c:3109 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0e5cc401cd Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f0e5a1fb590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f0e500219a0 RCX: 00007f0e5cc401cd RDX: 0000000000000734 RSI: 00007f0e500219a0 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f0e50021720 R13: 00007f0e5a1fb5b0 R14: 0000561069050360 R15: 0000000000000734 Modules linked in: invalid opcode: 0000 [#3] PREEMPT SMP KASAN CPU: 0 PID: 4693 Comm: systemd-journal Tainted: G D 4.19.197-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: 54 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 f0 22 37 00 48 85 db 75 0d e8 56 21 37 00 4c 89 e0 5b 5d 41 5c c3 e8 49 21 37 00 <0f> 0b e8 42 21 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff8880a0f97af8 EFLAGS: 00010293 RAX: ffff8880a0f885c0 RBX: 04ba430404562040 RCX: ffffffff812b5e48 RDX: 0000000000000000 RSI: ffffffff812b5ea7 RDI: 0000000000000006 RBP: 04ba430484562040 R08: 0000000000000000 R09: 04ba430484562040 R10: 0000000000000006 R11: 000000000000000a R12: 04baba8404562040 R13: ffff8880a0f97b50 R14: 0000000000000000 R15: 0000000000000286 FS: 00007f9d097038c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 ---[ end trace 07f4b48ae10af21a ]--- CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27 CR2: 00007f9d06e62000 CR3: 00000000a11f7000 CR4: 00000000001426f0 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 Code: 54 fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 f0 22 37 00 48 85 db 75 0d e8 56 21 37 00 4c 89 e0 5b 5d 41 5c c3 e8 49 21 37 00 <0f> 0b e8 42 21 37 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffff88809b7d79a8 EFLAGS: 00010293 RAX: ffff88809b7ce180 RBX: 2e732a7366e4e460 RCX: ffffffff812b5e48 RDX: 0000000000000000 RSI: ffffffff812b5ea7 RDI: 0000000000000006 RBP: 2e732a73e6e4e460 R08: 0000000000000000 R09: 2e732a73e6e4e460 R10: 0000000000000006 R11: 0000000000000000 R12: 2e73a1f366e4e460 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 R13: ffff88809b7d7a00 R14: 0000000000000000 R15: 0000000000000286 do_sys_open+0x26c/0x520 fs/open.c:1079 FS: 00007f25cd1ff8c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c003800054 CR3: 000000009c1ca000 CR4: 00000000001426e0 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f9d08c9285d DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 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:00007ffd4951d8a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffd4951dbb0 RCX: 00007f9d08c9285d RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000565338322800 RBP: 000000000000000d R08: 0000000000000000 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000293 R12: 00000000ffffffff R13: 000056533831e040 R14: 00007ffd4951db70 R15: 0000565338321e80 Modules linked in: binder: BINDER_SET_CONTEXT_MGR already set DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 binder: 23677:23688 unknown command 0