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: 4220 Comm: syz-executor5 Not tainted 4.15.0+ #304 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:ffff8801afd37810 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff10035fa6f02 RCX: ffffffff84795b66 RDX: 000000000000000e RSI: ffff8801baa1c140 RDI: 0000000000000071 RBP: ffff8801afd37898 R08: 1ffff10035fa6ed0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000005 R13: ffff8801afd37870 R14: dffffc0000000000 R15: ffffffff84795ab0 FS: 000000000247a940(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000006f8ebc CR3: 00000001ae469005 CR4: 00000000001606e0 DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: cleanup_match+0x14e/0x220 net/ipv6/netfilter/ip6_tables.c:481 cleanup_entry+0xcb/0x350 net/ipv4/netfilter/ip_tables.c:646 __do_replace+0x79d/0xa50 net/ipv4/netfilter/ip_tables.c:1089 do_replace net/ipv4/netfilter/ip_tables.c:1145 [inline] do_ipt_set_ctl+0x40f/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 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2905 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:0x455d8a RSP: 002b:0000000000a2f598 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00000000006f8a40 RCX: 0000000000455d8a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 00000000006f8a40 R08: 00000000000002d8 R09: 0000000000000001 R10: 00000000006f8e68 R11: 0000000000000206 R12: 0000000000000013 R13: 00000000006fb9e8 R14: 0000000000018942 R15: 0000000000000010 Code: 02 00 00 4d 8b a4 24 08 10 00 00 4d 85 e4 74 3c e8 0a 50 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: ffff8801afd37810 RIP: cgroup_put include/linux/cgroup.h:415 [inline] RSP: ffff8801afd37810 RIP: cgroup_mt_destroy_v1+0xcc/0x310 net/netfilter/xt_cgroup.c:102 RSP: ffff8801afd37810 ---[ end trace 8cad3e070c7294ef ]---