audit: type=1400 audit(1514973603.257:6): avc: denied { write } for pid=3315 comm="syzkaller022846" path="socket:[8801]" dev="sockfs" ino=8801 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3315 Comm: syzkaller022846 Not tainted 4.4.107-g610c835 #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b5558000 task.stack: ffff8801d0220000 RIP: 0010:[] [] netlink_getsockbyportid net/netlink/af_netlink.c:1058 [inline] RIP: 0010:[] [] netlink_unicast+0x1c0/0x760 net/netlink/af_netlink.c:1243 RSP: 0018:ffff8801d0227780 EFLAGS: 00010293 RAX: dffffc0000000048 RBX: dffffc0000000000 RCX: ffffffff82f89609 RDX: 0000000000000000 RSI: 00000000024000c0 RDI: ffff8801d1b12718 RBP: ffff8801d0227840 R08: ffffed003a28bad7 R09: ffffed003a28bad7 R10: 0000000000000005 R11: ffffed003a28bad6 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8801d1b12640 R15: dffffc0000000006 FS: 0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:00000000089f2840 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020f81000 CR3: 00000001d3280000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 1ffff1003a044ef7 ffff8801d145d680 0000000000000240 0000000000000030 1ffff1003a044ef7 dffffc0000000048 0000000000000cf3 0000000041b58ab3 ffffffff83ffe7ee ffffffff82f89450 ffff8801d02277f8 0000000000000000 Call Trace: [] netlink_ack+0x231/0x4b0 net/netlink/af_netlink.c:2278 [] nfnetlink_rcv_batch net/netfilter/nfnetlink.c:319 [inline] [] nfnetlink_rcv+0xaa2/0x1070 net/netfilter/nfnetlink.c:477 [] netlink_unicast_kernel net/netlink/af_netlink.c:1223 [inline] [] netlink_unicast+0x522/0x760 net/netlink/af_netlink.c:1249 [] netlink_sendmsg+0x8e8/0xc50 net/netlink/af_netlink.c:1803 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:635 [] sock_write_iter+0x226/0x3b0 net/socket.c:834 [] new_sync_write fs/read_write.c:478 [inline] [] __vfs_write+0x33c/0x450 fs/read_write.c:491 [] vfs_write+0x18a/0x530 fs/read_write.c:538 [] SYSC_write fs/read_write.c:585 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:577 [] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [] sysenter_flags_fixed+0xd/0x17 Code: 47 45 3d fe 48 8d 55 98 4c 89 e1 4c 89 f6 48 89 df e8 95 f7 ff ff 83 f8 01 0f 85 e1 03 00 00 e8 27 45 3d fe 48 8b 85 68 ff ff ff <0f> b6 00 84 c0 74 08 3c 03 0f 8e 63 05 00 00 41 80 3f 00 41 0f RIP [] netlink_getsockbyportid net/netlink/af_netlink.c:1058 [inline] RIP [] netlink_unicast+0x1c0/0x760 net/netlink/af_netlink.c:1243 RSP ---[ end trace 6d120544f40bb5c4 ]--- Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..