------------[ cut here ]------------ kernel BUG at mm/slab.c:4427! loop1: rw=2049, want=54, limit=39 invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 17245 Comm: syz-executor.3 Not tainted 4.14.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88806220e200 task.stack: ffff88804cfa8000 RIP: 0010:__check_heap_object+0x58/0x5a mm/slab.c:4427 RSP: 0018:ffff88804cfafbe8 EFLAGS: 00010293 RAX: 00000000000f0f0f RBX: 0000000000000711 RCX: 000000000000000c RDX: 00000000e1e1e1df RSI: 0000000000000711 RDI: ffff888055ca62bd RBP: 0000000000000001 R08: ffff88812fe56dc0 R09: ffff888055ca62c0 R10: ffff88821fff7050 R11: 0000000000000001 R12: ffff888055ca62bd R13: ffffea0001572980 R14: ffff888055ca69ce R15: ffffea0001572980 FS: 00007f1f54046700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a1e996330 CR3: 00000000a58f5000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_heap_object mm/usercopy.c:216 [inline] __check_object_size mm/usercopy.c:242 [inline] __check_object_size+0x148/0x28a mm/usercopy.c:228 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+0x89/0x140 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x584/0x960 net/bpf/test_run.c:144 bpf_prog_test_run kernel/bpf/syscall.c:1264 [inline] SYSC_bpf kernel/bpf/syscall.c:1526 [inline] SyS_bpf+0x6bc/0x2d12 kernel/bpf/syscall.c:1475 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c849 RSP: 002b:00007f1f54045c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f1f540466d4 RCX: 000000000045c849 RDX: 0000000000000040 RSI: 00000000200007c0 RDI: 000000000000000a RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000059 R14: 00000000004c2f70 R15: 000000000076bf0c Code: e8 41 39 40 24 76 24 41 0f af 40 14 4c 01 c8 48 29 c7 49 63 40 74 48 39 f8 72 08 48 29 f8 48 39 f0 73 05 49 8b 40 58 c3 31 c0 c3 <0f> 0b 89 e9 48 c7 c7 40 ef 8d 87 89 74 24 0c 4c 8d 44 24 04 81 RIP: __check_heap_object+0x58/0x5a mm/slab.c:4427 RSP: ffff88804cfafbe8 Buffer I/O error on dev loop1, logical block 53, lost async page write attempt to access beyond end of device loop1: rw=2049, want=55, limit=39 Buffer I/O error on dev loop1, logical block 54, lost async page write attempt to access beyond end of device loop1: rw=2049, want=56, limit=39 Buffer I/O error on dev loop1, logical block 55, lost async page write attempt to access beyond end of device loop1: rw=2049, want=57, limit=39 Buffer I/O error on dev loop1, logical block 56, lost async page write attempt to access beyond end of device loop1: rw=2049, want=78, limit=39 Buffer I/O error on dev loop1, logical block 77, lost async page write attempt to access beyond end of device loop1: rw=2049, want=79, limit=39 Buffer I/O error on dev loop1, logical block 78, lost async page write attempt to access beyond end of device loop1: rw=2049, want=80, limit=39 Buffer I/O error on dev loop1, logical block 79, lost async page write ---[ end trace 7d9caea585d0268f ]--- attempt to access beyond end of device