ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ============================= WARNING: suspicious RCU usage 4.14.246-syzkaller #0 Not tainted ----------------------------- net/netfilter/nf_queue.c:227 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 2 locks held by syz-executor118/8003: #0: (rcu_callback){....}, at: [] __rcu_reclaim kernel/rcu/rcu.h:185 [inline] #0: (rcu_callback){....}, at: [] rcu_do_batch kernel/rcu/tree.c:2699 [inline] #0: (rcu_callback){....}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] #0: (rcu_callback){....}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] #0: (rcu_callback){....}, at: [] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946 #1: (&(&inst->lock)->rlock){+.-.}, at: [] spin_lock_bh include/linux/spinlock.h:322 [inline] #1: (&(&inst->lock)->rlock){+.-.}, at: [] nfqnl_flush+0x2f/0x2a0 net/netfilter/nfnetlink_queue.c:232 stack backtrace: CPU: 1 PID: 8003 Comm: syz-executor118 Not tainted 4.14.246-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 nf_reinject+0x56e/0x700 net/netfilter/nf_queue.c:227 nfqnl_flush+0x1ab/0x2a0 net/netfilter/nfnetlink_queue.c:237 instance_destroy_rcu+0x19/0x30 net/netfilter/nfnetlink_queue.c:171 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:__orc_find+0x3f/0xf0 arch/x86/kernel/unwind_orc.c:50 RSP: 0018:ffff8880b38af738 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff10 RAX: ffffffff817ed3bd RBX: ffffffff8a191d18 RCX: ffffffff817ed40a RDX: 0000000000000000 RSI: ffffffff8a7237a2 RDI: ffffffff8a191d18 RBP: ffffffff8a191d1c R08: ffffffff8a7237a2 R09: ffffffff8a7237e4 R10: 000000000001e7e3 R11: 0000000000066071 R12: ffffffff8a191d1c R13: ffffffff8a191d18 R14: ffffffff8a191d18 R15: dffffc0000000000 orc_find arch/x86/kernel/unwind_orc.c:118 [inline] unwind_next_frame+0x59a/0x17d0 arch/x86/kernel/unwind_orc.c:348 __save_stack_trace+0x90/0x160 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc_node_trace+0x153/0x400 mm/slab.c:3661 __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node+0x38/0x70 mm/slab.c:3689 kmalloc_node include/linux/slab.h:530 [inline] kvmalloc_node+0x46/0xd0 mm/util.c:397 kvmalloc include/linux/mm.h:531 [inline] kvmalloc_array include/linux/mm.h:547 [inline] xt_alloc_entry_offsets+0x2f/0x40 net/netfilter/x_tables.c:824 translate_table+0x1fa/0x1410 net/ipv4/netfilter/ip_tables.c:692 do_replace net/ipv4/netfilter/ip_tables.c:1138 [inline] do_ipt_set_ctl+0x228/0x3a0 net/ipv4/netfilter/ip_tables.c:1676 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x5f/0xb0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1255 [inline] ip_setsockopt+0x94/0xb0 net/ipv4/ip_sockglue.c:1240 tcp_setsockopt+0x7b/0xc0 net/ipv4/tcp.c:2828 SYSC_setsockopt net/socket.c:1865 [inline] SyS_setsockopt+0x110/0x1e0 net/socket.c:1844 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f5787434299 RSP: 002b:00007f57873e42f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f57874bc400 RCX: 00007f5787434299 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f578748a074 R08: 0000000000000a08 R09: 0000000000000000 R10: 0000000020000740 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000200007a0 R14: 0001000800000000 R15: 00007f57874bc408 nla_parse: 2209 callbacks suppressed netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. net_ratelimit: 2215 callbacks suppressed ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table nla_parse: 2360 callbacks suppressed netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. net_ratelimit: 2367 callbacks suppressed ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'. ip_tables: iptables: counters copy to user failed while replacing table netlink: 12 bytes leftover after parsing attributes in process `syz-executor118'.