usercopy: kernel memory exposure attempt detected from 'kmalloc-4096' (1878 bytes) ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:71! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 1 PID: 19526 Comm: syz-executor.5 Not tainted 4.14.139+ #37 task: 0000000046d5671f task.stack: 0000000079eec69d 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:ffff8881ad0cfbc0 EFLAGS: 00010286 RAX: 0000000000000052 RBX: ffff8881a64054fd RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffc9000012e000 RDI: ffffed1035a19f6a RBP: 0000000000000756 R08: 0000000000000052 R09: ffffed103b724ce9 R10: ffffed103b724ce8 R11: ffff8881db926747 R12: ffffffffaaebd260 R13: 0000000000000001 R14: ffffffffaaebd220 R15: ffffea0006990000 FS: 00007f0a06361700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000075c000 CR3: 00000001c4f2c002 CR4: 00000000001606a0 DR0: 0000000000000000 DR1: 0000000000000000 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+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 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459879 RSP: 002b:00007f0a06360c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459879 RDX: 0000000000000028 RSI: 0000000020000300 RDI: 000000000000000a RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0a063616d4 R13: 00000000004bfbf2 R14: 00000000004d18b8 R15: 00000000ffffffff Code: c7 c2 60 d2 eb aa 4c 0f 45 e2 e8 b0 13 db ff 48 8b 04 24 49 89 e8 4c 89 f2 4c 89 e6 48 c7 c7 a0 d2 eb aa 48 89 c1 e8 af 38 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: ffff8881ad0cfbc0 RIP: __check_object_size mm/usercopy.c:263 [inline] RSP: ffff8881ad0cfbc0 RIP: __check_object_size+0x2fc/0x3b2 mm/usercopy.c:221 RSP: ffff8881ad0cfbc0 ---[ end trace 8e7585ab474c5d52 ]---