usercopy: kernel memory exposure attempt detected from 'kmalloc-8192' (961 bytes) ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:71! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 0 PID: 2676 Comm: syz-executor.4 Not tainted 4.14.136+ #27 task: 00000000adc241c5 task.stack: 00000000d8b82925 RIP: 0010:report_usercopy mm/usercopy.c:71 [inline] RIP: 0010:__check_object_size mm/usercopy.c:263 [inline] RIP: 0010:__check_object_size+0x2fc/0x3b2 mm/usercopy.c:221 RSP: 0018:ffff888199e3fbc0 EFLAGS: 00010286 RAX: 0000000000000051 RBX: ffff88818afffff3 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffc900065a9000 RDI: ffffed10333c7f6a RBP: 00000000000003c1 R08: 0000000000000051 R09: ffffed103b744ce9 R10: ffffed103b744ce8 R11: ffff8881dba26747 R12: ffffffffa66bc9e0 R13: 0000000000000001 R14: ffffffffa66bc9a0 R15: ffffea00062bfe00 FS: 00007fdb54a2e700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000208401ff CR3: 00000001bf200001 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 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+0x99/0x160 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x528/0x8c0 net/bpf/test_run.c:144 bpf_prog_test_run kernel/bpf/syscall.c:1346 [inline] SYSC_bpf kernel/bpf/syscall.c:1618 [inline] SyS_bpf+0xa3b/0x3830 kernel/bpf/syscall.c:1563 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 Code: c7 c2 e0 c9 6b a6 4c 0f 45 e2 e8 f0 13 db ff 48 8b 04 24 49 89 e8 4c 89 f2 4c 89 e6 48 c7 c7 20 ca 6b a6 48 89 c1 e8 af 41 cc ff <0f> 0b 4c 89 ff e8 aa d6 fd ff e9 48 fe ff ff 4c 89 ff e8 9d d6 RIP: report_usercopy mm/usercopy.c:71 [inline] RSP: ffff888199e3fbc0 RIP: __check_object_size mm/usercopy.c:263 [inline] RSP: ffff888199e3fbc0 RIP: __check_object_size+0x2fc/0x3b2 mm/usercopy.c:221 RSP: ffff888199e3fbc0 ---[ end trace cca328b9270045f0 ]---