ip_tables: iptables: counters copy to user failed while replacing table ============================= WARNING: suspicious RCU usage 4.14.280-syzkaller #0 Not tainted ----------------------------- net/netfilter/nf_queue.c:244 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 3 locks held by syz-executor.3/10524: #0: (&u->iolock){+.+.}, at: [] unix_dgram_recvmsg+0x1e4/0xc60 net/unix/af_unix.c:2146 #1: (rcu_callback){....}, at: [] __rcu_reclaim kernel/rcu/rcu.h:185 [inline] #1: (rcu_callback){....}, at: [] rcu_do_batch kernel/rcu/tree.c:2699 [inline] #1: (rcu_callback){....}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] #1: (rcu_callback){....}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] #1: (rcu_callback){....}, at: [] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946 #2: (&(&inst->lock)->rlock){+.-.}, at: [] spin_lock_bh include/linux/spinlock.h:322 [inline] #2: (&(&inst->lock)->rlock){+.-.}, at: [] nfqnl_flush+0x2f/0x2a0 net/netfilter/nfnetlink_queue.c:232 stack backtrace: CPU: 0 PID: 10524 Comm: syz-executor.3 Not tainted 4.14.280-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:244 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:192 RSP: 0018:ffff888057347838 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e1311 RBX: 0000000000000282 RCX: 1ffff1100b7ef5a5 RDX: dffffc0000000000 RSI: ffff88805bf7ad08 RDI: 0000000000000282 RBP: ffff8880b56af1a0 R08: ffff8880b28d608e R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b28d6000 R13: ffff8880573479e0 R14: ffff8880b56af1a0 R15: 0000000000000282 spin_unlock_irqrestore include/linux/spinlock.h:372 [inline] __skb_try_recv_datagram+0x245/0x3a0 net/core/datagram.c:274 unix_dgram_recvmsg+0x175/0xc60 net/unix/af_unix.c:2149 ___sys_recvmsg+0x20b/0x4d0 net/socket.c:2221 __sys_recvmmsg+0x1f3/0x5d0 net/socket.c:2329 SYSC_recvmmsg net/socket.c:2405 [inline] SyS_recvmmsg+0x125/0x140 net/socket.c:2394 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f81bc9d90e9 RSP: 002b:00007f81bb32d168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f81bcaec030 RCX: 00007f81bc9d90e9 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f81bca3308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc13ca3eff R14: 00007f81bb32d300 R15: 0000000000022000 bridge0: port 2(bridge_slave_1) entered disabled state bridge0: port 1(bridge_slave_0) entered disabled state netlink: 88 bytes leftover after parsing attributes in process `syz-executor.0'. batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue netlink: 88 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 88 bytes leftover after parsing attributes in process `syz-executor.0'. attempt to access beyond end of device loop3: rw=2049, want=16, limit=15 Buffer I/O error on dev loop3, logical block 15, lost async page write netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 88 bytes leftover after parsing attributes in process `syz-executor.0'. attempt to access beyond end of device attempt to access beyond end of device loop1: rw=2049, want=16, limit=15 xt_l2tp: invalid flags combination: 0 loop3: rw=2049, want=16, limit=15 Buffer I/O error on dev loop3, logical block 15, lost async page write Buffer I/O error on dev loop1, logical block 15, lost async page write print_req_error: I/O error, dev loop6, sector 640 unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 attempt to access beyond end of device loop3: rw=2049, want=16, limit=15 Buffer I/O error on dev loop3, logical block 15, lost async page write SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f audit: type=1800 audit(1653116440.708:5): pid=10633 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.2" name="file1" dev="loop2" ino=5 res=0 attempt to access beyond end of device loop1: rw=2049, want=16, limit=15 Buffer I/O error on dev loop1, logical block 15, lost async page write print_req_error: I/O error, dev loop6, sector 0 print_req_error: I/O error, dev loop6, sector 768 attempt to access beyond end of device loop3: rw=2049, want=16, limit=15 Buffer I/O error on dev loop3, logical block 15, lost async page write print_req_error: I/O error, dev loop6, sector 384 block nbd0: Receive control failed (result -32) block nbd0: shutting down sockets SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f attempt to access beyond end of device audit: type=1800 audit(1653116441.798:6): pid=10712 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.2" name="file1" dev="loop2" ino=5 res=0 loop1: rw=2049, want=16, limit=15 Buffer I/O error on dev loop1, logical block 15, lost async page write SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f audit: type=1800 audit(1653116442.128:7): pid=10748 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="file1" dev="loop0" ino=5 res=0 SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f audit: type=1800 audit(1653116442.418:8): pid=10799 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.2" name="file1" dev="loop2" ino=5 res=0 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f syz-executor.3 (10752) used greatest stack depth: 24552 bytes left audit: type=1800 audit(1653116442.568:9): pid=10789 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="file1" dev="loop0" ino=5 res=0 SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f audit: type=1800 audit(1653116442.968:10): pid=10823 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.2" name="file1" dev="loop2" ino=5 res=0 device erspan0 entered promiscuous mode device dummy0 entered promiscuous mode SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f SQUASHFS error: Unable to read fragment cache entry [60] SQUASHFS error: Unable to read page, block 60, size 1f audit: type=1800 audit(1653116443.528:11): pid=10900 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="file1" dev="loop0" ino=5 res=0 mmap: syz-executor.5 (10917) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. EXT4-fs error (device sda1): swap_inode_boot_loader:114: inode #5: comm syz-executor.1: iget: checksum invalid