Use struct sctp_assoc_value instead 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 Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 7233 Comm: syz-executor1 Not tainted 4.15.0+ #301 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:css_put include/linux/cgroup.h:386 [inline] RIP: 0010:cgroup_put include/linux/cgroup.h:415 [inline] RIP: 0010:cgroup_mt_destroy_v1+0xcc/0x310 net/netfilter/xt_cgroup.c:102 RSP: 0018:ffff8801ac6370d8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 1ffff100358c6e1b RCX: ffffffff84794b66 RDX: 000000000000000d RSI: ffffc90001c85000 RDI: 000000000000006f RBP: ffff8801ac637160 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003 R13: ffff8801ac637138 R14: dffffc0000000000 R15: ffffffff84794ab0 FS: 00007fa7576df700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b9bc24000 CR3: 00000001c8ac7006 CR4: 00000000001606e0 Call Trace: cleanup_match+0x14e/0x220 net/ipv6/netfilter/ip6_tables.c:481 cleanup_entry+0xcb/0x350 net/ipv4/netfilter/ip_tables.c:646 translate_table+0xf88/0x1610 net/ipv4/netfilter/ip_tables.c:736 do_replace net/ipv4/netfilter/ip_tables.c:1141 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0x97/0xa0 net/ipv4/ip_sockglue.c:1259 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4104 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2975 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453299 RSP: 002b:00007fa7576dec58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bf58 RCX: 0000000000453299 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 00000000000004d4 R08: 00000000000012f0 R09: 0000000000000000 R10: 0000000020e43000 R11: 0000000000000212 R12: 00000000006f6480 R13: 00000000ffffffff R14: 00007fa7576df6d4 R15: 0000000000000003 Code: 02 00 00 4d 8b a4 24 08 10 00 00 4d 85 e4 74 3c e8 0a 60 f7 fc 49 8d 7c 24 6c 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 RIP: css_put include/linux/cgroup.h:386 [inline] RSP: ffff8801ac6370d8 RIP: cgroup_put include/linux/cgroup.h:415 [inline] RSP: ffff8801ac6370d8 RIP: cgroup_mt_destroy_v1+0xcc/0x310 net/netfilter/xt_cgroup.c:102 RSP: ffff8801ac6370d8 ---[ end trace 6928e63c06270f7e ]--- Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..