binder_alloc: 17603: binder_alloc_buf, no vma binder: 23298:23299 transaction failed 29189/-3, size 24-0 line 3135 usercopy: kernel memory exposure attempt detected from ffff8801aee820fd (kmalloc-8192) (337 bytes) ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:72! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 0 PID: 23297 Comm: syz-executor0 Not tainted 4.14.81+ #6 task: ffff88019e8c5e00 task.stack: ffff8801d3178000 RIP: 0010:report_usercopy mm/usercopy.c:64 [inline] RIP: 0010:__check_object_size+0x311/0x3a2 mm/usercopy.c:264 RSP: 0018:ffff8801d317fb58 EFLAGS: 00010282 RAX: 0000000000000062 RBX: 0000000000000151 RCX: 0000000000017dd2 RDX: 0000000000000000 RSI: ffffc90000531000 RDI: ffffffffae5d2420 RBP: ffff8801aee820fd R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffacac0060 R13: 0000000000000001 R14: ffffffffacac0020 R15: ffffea0006bba000 FS: 00007f1cff292700(0000) GS:ffff8801dba00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1121c8b638 CR3: 00000001c66ac001 CR4: 00000000001606b0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: check_object_size include/linux/thread_info.h:108 [inline] check_copy_size include/linux/thread_info.h:139 [inline] copy_to_user include/linux/uaccess.h:154 [inline] bpf_test_finish.isra.0+0xba/0x190 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x4d0/0x8c0 net/bpf/test_run.c:144 bpf_prog_test_run kernel/bpf/syscall.c:1343 [inline] SYSC_bpf kernel/bpf/syscall.c:1615 [inline] SyS_bpf+0x79d/0x3700 kernel/bpf/syscall.c:1560 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457569 RSP: 002b:00007f1cff291c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000028 RSI: 0000000020000180 RDI: 000000000000000a RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1cff2926d4 R13: 00000000004bd952 R14: 00000000004ccbf0 R15: 00000000ffffffff Code: 00 ac ac 4c 0f 45 e2 e8 ae d3 db ff 48 8b 04 24 49 89 d9 48 89 e9 4c 89 f2 4c 89 e6 48 c7 c7 a0 00 ac ac 49 89 c0 e8 9a 15 cd ff <0f> 0b 4c 89 ff e8 35 cf fd ff e9 09 fe ff ff 4c 89 ff e8 28 cf RIP: report_usercopy mm/usercopy.c:64 [inline] RSP: ffff8801d317fb58 RIP: __check_object_size+0x311/0x3a2 mm/usercopy.c:264 RSP: ffff8801d317fb58 binder_alloc: 17603: binder_alloc_buf, no vma binder: 23298:23303 transaction failed 29189/-3, size 24-0 line 3135 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 usercopy: kernel memory exposure attempt detected from ffff8801c41d41fd (kmalloc-8192) (337 bytes) ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:72! invalid opcode: 0000 [#2] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 0 PID: 23323 Comm: syz-executor0 Tainted: G D 4.14.81+ #6 task: ffff8801c4c34680 task.stack: ffff8801d6608000 RIP: 0010:report_usercopy mm/usercopy.c:64 [inline] RIP: 0010:__check_object_size+0x311/0x3a2 mm/usercopy.c:264 RSP: 0018:ffff8801d660fb58 EFLAGS: 00010282 RAX: 0000000000000062 RBX: 0000000000000151 RCX: 00000000000161c6 RDX: 0000000000000000 RSI: ffffc90001137000 RDI: ffffffffae5d2420 RBP: ffff8801c41d41fd R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffacac0060 R13: 0000000000000001 R14: ffffffffacac0020 R15: ffffea0007107400 FS: 00007f1cff22f700(0000) GS:ffff8801dba00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c223000 CR3: 00000001c66ac006 CR4: 00000000001606b0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: check_object_size include/linux/thread_info.h:108 [inline] check_copy_size include/linux/thread_info.h:139 [inline] copy_to_user include/linux/uaccess.h:154 [inline] bpf_test_finish.isra.0+0xba/0x190 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x4d0/0x8c0 net/bpf/test_run.c:144 bpf_prog_test_run kernel/bpf/syscall.c:1343 [inline] SYSC_bpf kernel/bpf/syscall.c:1615 [inline] SyS_bpf+0x79d/0x3700 kernel/bpf/syscall.c:1560 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457569 RSP: 002b:00007f1cff22ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000028 RSI: 0000000020000180 RDI: 000000000000000a RBP: 000000000072c0e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1cff22f6d4 R13: 00000000004bd952 R14: 00000000004ccbf0 R15: 00000000ffffffff Code: 00 ac ac 4c 0f 45 e2 e8 ae d3 db ff 48 8b 04 24 49 89 d9 48 89 e9 4c 89 f2 4c 89 e6 48 c7 c7 a0 00 ac ac 49 89 c0 e8 9a 15 cd ff <0f> 0b 4c 89 ff e8 35 cf fd ff e9 09 fe ff ff 4c 89 ff e8 28 cf RIP: report_usercopy mm/usercopy.c:64 [inline] RSP: ffff8801d660fb58 RIP: __check_object_size+0x311/0x3a2 mm/usercopy.c:264 RSP: ffff8801d660fb58 ---[ end trace fe25380179f491be ]---