binder: 28002:28004 ioctl c0306201 20001480 returned -14 general protection fault, probably for non-canonical address 0xdffffc0000000025: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000128-0x000000000000012f] CPU: 1 PID: 28004 Comm: syz-executor.2 Not tainted 6.0.0-rc3-syzkaller-00041-g2880e1a175b9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__lock_acquire+0xd83/0x56d0 kernel/locking/lockdep.c:4923 Code: 9b 0e 41 bf 01 00 00 00 0f 86 c8 00 00 00 89 05 23 56 9b 0e e9 bd 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 4e 31 00 00 49 81 3e 60 74 51 8f 0f 84 4c f3 ff RSP: 0018:ffffc90016187220 EFLAGS: 00010002 RAX: dffffc0000000000 RBX: 1ffff92002c30e73 RCX: 0000000000000001 RDX: 0000000000000025 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: fffffbfff1bbd352 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807b555880 R14: 0000000000000128 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0063) knlGS:00000000f7fa4b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002ce24000 CR3: 000000005d57f000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 down_read+0x98/0x450 kernel/locking/rwsem.c:1499 mmap_read_lock include/linux/mmap_lock.h:117 [inline] binder_alloc_new_buf_locked drivers/android/binder_alloc.c:405 [inline] binder_alloc_new_buf+0xa5/0x19e0 drivers/android/binder_alloc.c:593 binder_transaction+0x242e/0x9a80 drivers/android/binder.c:3187 binder_thread_write+0x8a9/0x3220 drivers/android/binder.c:3963 binder_ioctl_write_read drivers/android/binder.c:5024 [inline] binder_ioctl+0x3470/0x6d00 drivers/android/binder.c:5311 compat_ptr_ioctl+0x67/0x90 fs/ioctl.c:906 __do_compat_sys_ioctl+0x1c7/0x290 fs/ioctl.c:968 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fa9549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fa45cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000c0306201 RDX: 0000000020000440 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0xd83/0x56d0 kernel/locking/lockdep.c:4923 Code: 9b 0e 41 bf 01 00 00 00 0f 86 c8 00 00 00 89 05 23 56 9b 0e e9 bd 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 4e 31 00 00 49 81 3e 60 74 51 8f 0f 84 4c f3 ff RSP: 0018:ffffc90016187220 EFLAGS: 00010002 RAX: dffffc0000000000 RBX: 1ffff92002c30e73 RCX: 0000000000000001 RDX: 0000000000000025 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: fffffbfff1bbd352 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807b555880 R14: 0000000000000128 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0063) knlGS:00000000f7fa4b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002ce24000 CR3: 000000005d57f000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 41 bf 01 00 00 00 mov $0x1,%r15d 6: 0f 86 c8 00 00 00 jbe 0xd4 c: 89 05 23 56 9b 0e mov %eax,0xe9b5623(%rip) # 0xe9b5635 12: e9 bd 00 00 00 jmpq 0xd4 17: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1e: fc ff df 21: 4c 89 f2 mov %r14,%rdx 24: 48 c1 ea 03 shr $0x3,%rdx * 28: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2c: 0f 85 4e 31 00 00 jne 0x3180 32: 49 81 3e 60 74 51 8f cmpq $0xffffffff8f517460,(%r14) 39: 0f .byte 0xf 3a: 84 4c f3 ff test %cl,-0x1(%rbx,%rsi,8)