netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. 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 5 locks held by syz-executor.3/12455: #0: (&f->f_pos_lock){+.+.}, at: [] __fdget_pos+0x1fb/0x2b0 fs/file.c:819 #1: (sb_writers#3){.+.+}, at: [] file_start_write include/linux/fs.h:2714 [inline] #1: (sb_writers#3){.+.+}, at: [] vfs_write+0x3d8/0x4d0 fs/read_write.c:543 #2: (&sb->s_type->i_mutex_key#10){++++}, at: [] inode_trylock include/linux/fs.h:739 [inline] #2: (&sb->s_type->i_mutex_key#10){++++}, at: [] ext4_file_write_iter+0x1cc/0xd20 fs/ext4/file.c:236 #3: (rcu_callback){....}, at: [] __rcu_reclaim kernel/rcu/rcu.h:185 [inline] #3: (rcu_callback){....}, at: [] rcu_do_batch kernel/rcu/tree.c:2699 [inline] #3: (rcu_callback){....}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] #3: (rcu_callback){....}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] #3: (rcu_callback){....}, at: [] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946 #4: (&(&inst->lock)->rlock){+.-.}, at: [] spin_lock_bh include/linux/spinlock.h:322 [inline] #4: (&(&inst->lock)->rlock){+.-.}, at: [] nfqnl_flush+0x2f/0x2a0 net/netfilter/nfnetlink_queue.c:232 stack backtrace: CPU: 0 PID: 12455 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 attempt to access beyond end of device 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 loop1: rw=2049, want=17, limit=16 __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:on_stack arch/x86/include/asm/stacktrace.h:42 [inline] RIP: 0010:unwind_next_frame+0xe18/0x17d0 arch/x86/kernel/unwind_orc.c:491 RSP: 0018:ffff88809579f408 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: 1ffff11012af3e88 RCX: ffffffff8a6734de RDX: 1ffff11012af3e9b RSI: ffff88809579f3b8 RDI: ffff88809579f4d8 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. RBP: ffff88809579ff58 R08: 0000000000000001 R09: 0000000000000001 R10: ffff88809579ff58 R11: 0000000000000001 R12: ffff888095798000 R13: ffff88809579f500 R14: ffff88809579f518 R15: ffff88809579f4c8 __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 ip_tables: iptables: counters copy to user failed while replacing table slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc mm/slab.c:3390 [inline] kmem_cache_alloc+0x111/0x3c0 mm/slab.c:3550 kmem_cache_zalloc include/linux/slab.h:651 [inline] alloc_buffer_head+0x20/0x110 fs/buffer.c:3429 alloc_page_buffers+0xb3/0x1f0 fs/buffer.c:874 create_empty_buffers+0x36/0x450 fs/buffer.c:1590 create_page_buffers+0x14d/0x1c0 fs/buffer.c:1707 __block_write_begin_int+0x176/0x1090 fs/buffer.c:2017 ext4_da_write_begin+0x402/0xe70 fs/ext4/inode.c:3141 generic_perform_write+0x1c9/0x420 mm/filemap.c:3055 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fcd58e990e9 RSP: 002b:00007fcd5780e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fcd58fabf60 RCX: 00007fcd58e990e9 RDX: 000000011ffffce1 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007fcd58ef308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb545fd1f R14: 00007fcd5780e300 R15: 0000000000022000 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. attempt to access beyond end of device loop1: rw=2049, want=17, limit=16 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. do_dccp_setsockopt: sockopt(PACKET_SIZE) is deprecated: fix your app ip_tables: iptables: counters copy to user failed while replacing table netlink: 8 bytes leftover after parsing attributes in process `syz-executor.3'. attempt to access beyond end of device loop1: rw=2049, want=17, limit=16 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. ip_tables: iptables: counters copy to user failed while replacing table netlink: 156 bytes leftover after parsing attributes in process `syz-executor.1'. FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) audit: type=1804 audit(1652891081.009:30): pid=7991 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir3725749852/syzkaller.yeQMhY/110/blkio.bfq.io_merged" dev="sda1" ino=13905 res=1 nla_parse: 12 callbacks suppressed netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1)