------------[ cut here ]------------ kernel BUG at drivers/android/binder_alloc.c:1108! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 30451 Comm: syz-executor.0 Not tainted 4.9.203-syzkaller #0 task: 0000000085eca5ce task.stack: 00000000c75bf11f binder: 30450:30456 got transaction with invalid offset (0, min 0 max 104) or object. binder: 30450:30456 transaction failed 29201/-22, size 104-24 line 3379 binder: undelivered TRANSACTION_ERROR: 29201 RIP: 0010:[] [<00000000fe52695f>] binder_alloc_do_buffer_copy+0xcb/0x500 drivers/android/binder_alloc.c:1108 RSP: 0018:ffff8800538474a8 EFLAGS: 00010212 RAX: 0000000000040000 RBX: 0000000020ffc000 RCX: ffffc90001344000 RDX: 0000000000000458 RSI: ffffffff8222a8ab RDI: ffff88011908b058 RBP: ffff880053847528 R08: ffff8800538475a8 R09: 0000000000000008 R10: ffffed000a708f12 R11: ffff880053847897 R12: 0000000000000078 R13: 0000000000000088 R14: 0000000000000008 R15: ffff8800538475a8 FS: 00007f7f0ecb7700(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f522000 CR3: 00000001c8c78000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff880053847560 0000000000000246 ffff8801c65f8000 ffff8800538474d0 ffff88005e398018 ffff88011908bc58 00ff880053847870 ffff88011908bc00 ffffffff814fdc26 ffff880079c7af00 0000000000000088 ffff8800538475a8 Call Trace: [<000000009383df71>] binder_alloc_copy_from_buffer+0x37/0x42 drivers/android/binder_alloc.c:1154 [<00000000740dacb3>] binder_validate_ptr+0xc5/0x1b0 drivers/android/binder.c:2335 [<0000000032ac4633>] binder_fixup_parent drivers/android/binder.c:2855 [inline] [<0000000032ac4633>] binder_transaction+0x3895/0x5890 drivers/android/binder.c:3517 [<000000004d173d43>] binder_thread_write+0x730/0x20e0 drivers/android/binder.c:3906 [<00000000807987ac>] binder_ioctl_write_read drivers/android/binder.c:4854 [inline] [<00000000807987ac>] binder_ioctl+0xecd/0x1720 drivers/android/binder.c:5030 [<000000002899167e>] vfs_ioctl fs/ioctl.c:43 [inline] [<000000002899167e>] file_ioctl fs/ioctl.c:493 [inline] [<000000002899167e>] do_vfs_ioctl+0xb87/0x11d0 fs/ioctl.c:677 [<0000000012b144a7>] SYSC_ioctl fs/ioctl.c:694 [inline] [<0000000012b144a7>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [<0000000088202341>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000043a33f11>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0a 04 00 00 4d 8b 64 24 58 49 29 dc e8 8f 7e 0f ff 4d 39 e6 76 07 e8 85 7e 0f ff <0f> 0b e8 7e 7e 0f ff 4c 8b 6d d0 4d 29 f4 4d 39 e5 77 e8 e8 6d RIP [<00000000fe52695f>] binder_alloc_do_buffer_copy+0xcb/0x500 drivers/android/binder_alloc.c:1108 RSP ---[ end trace b43fcf2ca2319b59 ]---