kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN audit: type=1400 audit(1516117468.523:96): avc: denied { getopt } for pid=22222 comm="syz-executor4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_connector_socket permissive=1 Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 22195 Comm: syz-executor7 Not tainted 4.15.0-rc7+ #191 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__bpf_prog_put+0x8d/0x640 kernel/bpf/syscall.c:944 RSP: 0018:ffff8801c0c871e0 EFLAGS: 00010a06 RAX: 1b140046a0000ad7 RBX: 0000000000000001 RCX: ffffffff817e21de RDX: 0000000000000000 RSI: 0000000000000001 RDI: d8a00235000056a3 RBP: ffff8801c0c872c0 R08: 0000000000000000 R09: 0000000000000000 R10: ffff8801c0c87150 R11: 0000000000000000 R12: 1ffff10038190e3f R13: ffff8801c0c87298 R14: d8a00235000056a3 R15: dffffc0000000000 FS: 00007fa22deb4700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000a2fa38 CR3: 0000000006822003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_put+0x1a/0x20 kernel/bpf/syscall.c:961 prog_fd_array_put_ptr+0x15/0x20 kernel/bpf/arraymap.c:446 fd_array_map_delete_elem kernel/bpf/arraymap.c:420 [inline] bpf_fd_array_map_clear+0xd2/0x140 kernel/bpf/arraymap.c:461 bpf_map_put_uref+0x54/0x70 kernel/bpf/syscall.c:224 bpf_map_put_with_uref kernel/bpf/syscall.c:248 [inline] bpf_map_release+0x91/0xc0 kernel/bpf/syscall.c:259 __fput+0x327/0x7e0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9bb/0x1ad0 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x73f/0x16c0 kernel/signal.c:2335 do_signal+0x90/0x1eb0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264 entry_SYSCALL_64_fastpath+0x98/0x9a RIP: 0033:0x452df9 RSP: 002b:00007fa22deb3c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffa3 RBX: 000000000071bf58 RCX: 0000000000452df9 RDX: 000000000000004a RSI: 0000000000000002 RDI: 0000000000000002 RBP: 00000000000005ba R08: 0000000000000000 R09: 0000000000000000 R10: 000000002019e000 R11: 0000000000000212 R12: 00000000006f6a10 R13: 00000000ffffffff R14: 00007fa22deb46d4 R15: 0000000000000009 Code: f2 f2 c7 40 08 f2 f2 f2 f2 c7 40 0c 00 f2 f2 f2 c7 40 10 f3 f3 f3 f3 e8 22 fc f1 ff 49 8d 46 18 48 89 85 28 ff ff ff 48 c1 e8 03 <42> 80 3c 38 00 0f 85 44 05 00 00 49 8b 46 18 f0 ff 08 74 3b e8 RIP: __bpf_prog_put+0x8d/0x640 kernel/bpf/syscall.c:944 RSP: ffff8801c0c871e0 ---[ end trace 5b98655aa503013e ]---