audit: type=1400 audit(1512855315.815:6): avc: denied { write } for pid=3316 comm="syzkaller779531" path="socket:[8697]" dev="sockfs" ino=8697 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: 3322 Comm: syzkaller779531 Not tainted 4.4.104-ged884eb #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b784c740 task.stack: ffff8801d30a0000 RIP: 0010:[] [] netlink_getsockbyportid /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1058 [inline] RIP: 0010:[] [] netlink_unicast+0x18f/0x760 /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1243 RSP: 0018:ffff8801d30a7808 EFLAGS: 00010286 RAX: dffffc0000000048 RBX: 0000000000000000 RCX: 0000000000000030 RDX: 1ffff1003a883b33 RSI: 00000000024000c0 RDI: ffff8801d441d998 RBP: ffff8801d30a78d0 R08: 0000000000000005 R09: ffffed0017148938 R10: ffff8800b8a449c2 R11: ffffed0017148939 R12: dffffc0000000000 R13: ffff8801d441d8c0 R14: 0000000000000040 R15: ffff8801d30a78a8 FS: 00007fdb6873e700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020f81000 CR3: 00000001d61d2000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8800b8a44a50 1ffff1003a614f09 0000000000000240 0000000000000030 1ffff1003a614f09 dffffc0000000006 dffffc0000000048 ffff880000000cf4 0000000041b58ab3 ffffffff83ffc7ee ffffffff82f31660 ffffffff814daa66 Call Trace: [] netlink_ack+0x203/0x480 /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:2278 [] nfnetlink_rcv_batch /syzkaller/managers/android-44-kasan-gce/kernel/net/netfilter/nfnetlink.c:319 [inline] [] nfnetlink_rcv+0x953/0xfe0 /syzkaller/managers/android-44-kasan-gce/kernel/net/netfilter/nfnetlink.c:477 [] netlink_unicast_kernel /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1223 [inline] [] netlink_unicast+0x4c5/0x760 /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1249 [] netlink_sendmsg+0x832/0xbc0 /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1803 [] sock_sendmsg_nosec /syzkaller/managers/android-44-kasan-gce/kernel/net/socket.c:625 [inline] [] sock_sendmsg+0xb5/0xf0 /syzkaller/managers/android-44-kasan-gce/kernel/net/socket.c:635 [] sock_write_iter+0x1ea/0x3d0 /syzkaller/managers/android-44-kasan-gce/kernel/net/socket.c:834 [] new_sync_write /syzkaller/managers/android-44-kasan-gce/kernel/fs/read_write.c:478 [inline] [] __vfs_write+0x2a1/0x3f0 /syzkaller/managers/android-44-kasan-gce/kernel/fs/read_write.c:491 [] vfs_write+0x14b/0x520 /syzkaller/managers/android-44-kasan-gce/kernel/fs/read_write.c:538 [] SYSC_write /syzkaller/managers/android-44-kasan-gce/kernel/fs/read_write.c:585 [inline] [] SyS_write+0xd3/0x1c0 /syzkaller/managers/android-44-kasan-gce/kernel/fs/read_write.c:577 [] entry_SYSCALL_64_fastpath+0x16/0x76 Code: ff 85 c0 0f 85 91 03 00 00 49 8d 57 c0 48 89 d9 4c 89 ee 4c 89 f7 e8 71 f6 ff ff 83 f8 01 0f 85 c4 03 00 00 48 8b 85 68 ff ff ff <0f> b6 00 84 c0 74 08 3c 03 0f 8e 90 05 00 00 48 8b 85 60 ff ff RIP [] netlink_getsockbyportid /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1058 [inline] RIP [] netlink_unicast+0x18f/0x760 /syzkaller/managers/android-44-kasan-gce/kernel/net/netlink/af_netlink.c:1243 RSP ---[ end trace 330964fbf52739c4 ]--- Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..