usercopy: Kernel memory exposure attempt detected from SLAB object 'kmalloc-512' (offset 628, size 149)! ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:100! invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 10590 Comm: syz-executor7 Not tainted 4.18.0-rc3+ #58 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:usercopy_abort+0xbb/0xbd mm/usercopy.c:88 Code: c0 e8 57 6c b9 ff ff 75 c8 48 8b 55 c0 4d 89 f9 ff 75 d0 4d 89 e8 48 89 d9 4c 89 e6 41 56 48 c7 c7 a0 41 f3 87 e8 b7 63 a0 ff <0f> 0b e8 2c 6c b9 ff e8 27 7e f7 ff 4c 89 e1 8b 95 14 ff ff ff 31 RSP: 0018:ffff8801ab0979a8 EFLAGS: 00010286 RAX: 0000000000000068 RBX: ffffffff88c08be0 RCX: ffffc9000200d000 RDX: 0000000000000000 RSI: ffffffff81631851 RDI: 0000000000000001 RBP: ffff8801ab097a00 R08: ffff8801af58a140 R09: ffffed003b5c4fc0 R10: ffffed003b5c4fc0 R11: ffff8801dae27e07 R12: ffffffff87f34080 R13: ffffffff87f33f40 R14: ffffffff87f33f00 R15: ffffffff88c046df FS: 00007f3daf8b4700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30d21000 CR3: 00000001a8efb000 CR4: 00000000001406f0 DR0: 00000000200001c0 DR1: 0000000000000000 DR2: 0000000020000000 DR3: 0000000020000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __check_heap_object+0xb5/0xb5 mm/slab.c:4445 check_heap_object mm/usercopy.c:236 [inline] __check_object_size+0x4db/0x5f2 mm/usercopy.c:259 check_object_size include/linux/thread_info.h:119 [inline] check_copy_size include/linux/thread_info.h:150 [inline] copy_to_user include/linux/uaccess.h:154 [inline] bpf_test_finish.isra.7+0xd9/0x1f0 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x7d7/0xa30 net/bpf/test_run.c:144 bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1686 __do_sys_bpf kernel/bpf/syscall.c:2323 [inline] __se_sys_bpf kernel/bpf/syscall.c:2267 [inline] __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2267 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455ab9 Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f3daf8b3c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f3daf8b46d4 RCX: 0000000000455ab9 RDX: 0000000000000028 RSI: 0000000020000280 RDI: 000000000000000a RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004bb71f R14: 00000000004c8b00 R15: 0000000000000000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace e0d6e70ac8bd8036 ]--- RIP: 0010:usercopy_abort+0xbb/0xbd mm/usercopy.c:88 Code: c0 e8 57 6c b9 ff ff 75 c8 48 8b 55 c0 4d 89 f9 ff 75 d0 4d 89 e8 48 89 d9 4c 89 e6 41 56 48 c7 c7 a0 41 f3 87 e8 b7 63 a0 ff <0f> 0b e8 2c 6c b9 ff e8 27 7e f7 ff 4c 89 e1 8b 95 14 ff ff ff 31 RSP: 0018:ffff8801ab0979a8 EFLAGS: 00010286 RAX: 0000000000000068 RBX: ffffffff88c08be0 RCX: ffffc9000200d000 RDX: 0000000000000000 RSI: ffffffff81631851 RDI: 0000000000000001 RBP: ffff8801ab097a00 R08: ffff8801af58a140 R09: ffffed003b5c4fc0 R10: ffffed003b5c4fc0 R11: ffff8801dae27e07 R12: ffffffff87f34080 R13: ffffffff87f33f40 R14: ffffffff87f33f00 R15: ffffffff88c046df FS: 00007f3daf8b4700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30d21000 CR3: 00000001a8efb000 CR4: 00000000001406f0 DR0: 00000000200001c0 DR1: 0000000000000000 DR2: 0000000020000000 DR3: 0000000020000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600