ip6_tables: ip6tables: counters copy to user failed while replacing table sit0: caps=(0x00000000401d7869, 0x00000000401d7869) len=2960 data_len=0 gso_size=65535 gso_type=16384 ip_summed=3 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8009 at net/core/dev.c:2609 skb_warn_bad_offload.cold+0x1d1/0x44d net/core/dev.c:2609 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 8009 Comm: syz-executor.2 Not tainted 4.14.277-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 panic+0x1f9/0x42d kernel/panic.c:183 __warn.cold+0x20/0x44 kernel/panic.c:547 report_bug+0x208/0x250 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:177 [inline] fixup_bug arch/x86/kernel/traps.c:172 [inline] do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:skb_warn_bad_offload.cold+0x1d1/0x44d net/core/dev.c:2609 RSP: 0018:ffff8880ba407148 EFLAGS: 00010286 RAX: 0000000000000071 RBX: ffff88809f686de8 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff878bc600 RDI: ffffed1017480e1f RBP: ffff88809c5004d0 R08: 0000000000000071 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809c500400 R13: 000000000000ffff R14: 0000000000000000 R15: 0000000000000b90 skb_checksum_help+0x627/0x7d0 net/core/dev.c:2630 checksum_tg+0x52/0x70 net/netfilter/xt_CHECKSUM.c:29 ip6t_do_table+0x9f1/0x1720 net/ipv6/netfilter/ip6_tables.c:375 ip6table_mangle_hook+0xdd/0x6a0 net/ipv6/netfilter/ip6table_mangle.c:86 nf_hook_entry_hookfn include/linux/netfilter.h:108 [inline] nf_hook_slow+0xb0/0x1a0 net/netfilter/core.c:468 nf_hook include/linux/netfilter.h:205 [inline] NF_HOOK_COND include/linux/netfilter.h:238 [inline] ip6_output+0x392/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:470 [inline] NF_HOOK include/linux/netfilter.h:250 [inline] ip6_xmit+0xcc6/0x1f00 net/ipv6/ip6_output.c:313 sctp_v6_xmit+0x36e/0x590 net/sctp/ipv6.c:224 sctp_packet_transmit+0x1c27/0x3000 net/sctp/output.c:637 sctp_outq_flush_rtx net/sctp/outqueue.c:703 [inline] sctp_outq_flush+0x1286/0x30a0 net/sctp/outqueue.c:1002 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1787 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1179 [inline] sctp_do_sm+0x6b4/0x4c70 net/sctp/sm_sideeffect.c:1150 sctp_generate_heartbeat_event+0x273/0x440 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x50/0x80 kernel/locking/spinlock.c:200 RSP: 0018:ffff8880b4667b68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e1313 RBX: ffff8880b46b80c0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8880b46b8944 RBP: ffff8880ba434380 R08: ffffffff8b9caa48 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ba434380 R13: ffff8880953da080 R14: 0000000000000000 R15: ffff8880ba434cd0 finish_lock_switch kernel/sched/sched.h:1346 [inline] finish_task_switch+0x178/0x610 kernel/sched/core.c:2678 context_switch kernel/sched/core.c:2814 [inline] __schedule+0x893/0x1de0 kernel/sched/core.c:3387 schedule+0x8d/0x1b0 kernel/sched/core.c:3431 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x229/0x600 kernel/time/hrtimer.c:1483 hrtimer_nanosleep+0x1da/0x4b0 kernel/time/hrtimer.c:1537 common_nsleep+0x23/0x30 kernel/time/posix-timers.c:1206 SYSC_clock_nanosleep kernel/time/posix-timers.c:1233 [inline] SyS_clock_nanosleep+0x1ff/0x2d0 kernel/time/posix-timers.c:1211 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f6e720d9e11 RSP: 002b:00007ffd50d01170 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00000000000001a1 RCX: 00007f6e720d9e11 RDX: 00007ffd50d011b0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffd50d0123c R08: 0000000000000000 R09: 0000003b86ce89f1 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000376cb R14: 0000000000000003 R15: 00007ffd50d012a0 Kernel Offset: disabled ================================ WARNING: inconsistent lock state 4.14.277-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-R} usage. syz-executor.2/8009 [HC0[0]:SC1[3]:HE0:SE0] takes: ((fb_notifier_list).rwsem){+++?}, at: [] __blocking_notifier_call_chain kernel/notifier.c:316 [inline] ((fb_notifier_list).rwsem){+++?}, at: [] __blocking_notifier_call_chain kernel/notifier.c:304 [inline] ((fb_notifier_list).rwsem){+++?}, at: [] blocking_notifier_call_chain kernel/notifier.c:328 [inline] ((fb_notifier_list).rwsem){+++?}, at: [] blocking_notifier_call_chain+0x63/0x90 kernel/notifier.c:325 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_write+0x34/0x90 kernel/locking/rwsem.c:54 blocking_notifier_chain_register+0x65/0x310 kernel/notifier.c:226 fb_console_init+0x1a/0x1f2 drivers/video/fbdev/core/fbcon.c:3342 fbmem_init+0xe2/0x103 drivers/video/fbdev/core/fbmem.c:1941 do_one_initcall+0x88/0x210 init/main.c:826 do_initcall_level init/main.c:892 [inline] do_initcalls init/main.c:900 [inline] do_basic_setup init/main.c:918 [inline] kernel_init_freeable+0x565/0x626 init/main.c:1077 kernel_init+0xd/0x162 init/main.c:1002 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 irq event stamp: 1684951 hardirqs last enabled at (1684950): [] console_unlock+0xb43/0xf20 kernel/printk/printk.c:2442 hardirqs last disabled at (1684951): [] error_entry+0x72/0xd0 arch/x86/entry/entry_64.S:1233 softirqs last enabled at (1682934): [] tcp_close+0x7e6/0xed0 net/ipv4/tcp.c:2307 softirqs last disabled at (1684855): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1684855): [] irq_exit+0x193/0x240 kernel/softirq.c:409 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((fb_notifier_list).rwsem); lock((fb_notifier_list).rwsem); *** DEADLOCK *** 4 locks held by syz-executor.2/8009: #0: (((&peer->hb_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:174 [inline] #0: (((&peer->hb_timer))){+.-.}, at: [] call_timer_fn+0xb8/0x650 kernel/time/timer.c:1270 #1: (slock-AF_INET6){+.-.}, at: [] spin_lock include/linux/spinlock.h:317 [inline] #1: (slock-AF_INET6){+.-.}, at: [] sctp_generate_heartbeat_event+0x96/0x440 net/sctp/sm_sideeffect.c:371 #2: (rcu_read_lock){....}, at: [] sctp_v6_xmit+0x256/0x590 net/sctp/ipv6.c:221 #3: (rcu_read_lock){....}, at: [] skb_dst include/linux/skbuff.h:883 [inline] #3: (rcu_read_lock){....}, at: [] ip6_output+0x2b3/0x660 net/ipv6/ip6_output.c:198 stack backtrace: CPU: 0 PID: 8009 Comm: syz-executor.2 Not tainted 4.14.277-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 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2589 valid_state kernel/locking/lockdep.c:2602 [inline] mark_lock_irq kernel/locking/lockdep.c:2796 [inline] mark_lock+0xb4d/0x1050 kernel/locking/lockdep.c:3194 mark_irqflags kernel/locking/lockdep.c:3064 [inline] __lock_acquire+0x1014/0x3f20 kernel/locking/lockdep.c:3448 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_read+0x36/0x80 kernel/locking/rwsem.c:24 __blocking_notifier_call_chain kernel/notifier.c:316 [inline] __blocking_notifier_call_chain kernel/notifier.c:304 [inline] blocking_notifier_call_chain kernel/notifier.c:328 [inline] blocking_notifier_call_chain+0x63/0x90 kernel/notifier.c:325 fb_blank+0x94/0x190 drivers/video/fbdev/core/fbmem.c:1087 fbcon_blank+0x7ed/0xd50 drivers/video/fbdev/core/fbcon.c:2199 do_unblank_screen+0x1fd/0x4e0 drivers/tty/vt/vt.c:3954 panic+0x290/0x42d kernel/panic.c:236 __warn.cold+0x20/0x44 kernel/panic.c:547 report_bug+0x208/0x250 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:177 [inline] fixup_bug arch/x86/kernel/traps.c:172 [inline] do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:skb_warn_bad_offload.cold+0x1d1/0x44d net/core/dev.c:2609 RSP: 0018:ffff8880ba407148 EFLAGS: 00010286 RAX: 0000000000000071 RBX: ffff88809f686de8 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff878bc600 RDI: ffffed1017480e1f RBP: ffff88809c5004d0 R08: 0000000000000071 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809c500400 R13: 000000000000ffff R14: 0000000000000000 R15: 0000000000000b90 skb_checksum_help+0x627/0x7d0 net/core/dev.c:2630 checksum_tg+0x52/0x70 net/netfilter/xt_CHECKSUM.c:29 ip6t_do_table+0x9f1/0x1720 net/ipv6/netfilter/ip6_tables.c:375 ip6table_mangle_hook+0xdd/0x6a0 net/ipv6/netfilter/ip6table_mangle.c:86 nf_hook_entry_hookfn include/linux/netfilter.h:108 [inline] nf_hook_slow+0xb0/0x1a0 net/netfilter/core.c:468 nf_hook include/linux/netfilter.h:205 [inline] NF_HOOK_COND include/linux/netfilter.h:238 [inline] ip6_output+0x392/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:470 [inline] NF_HOOK include/linux/netfilter.h:250 [inline] ip6_xmit+0xcc6/0x1f00 net/ipv6/ip6_output.c:313 sctp_v6_xmit+0x36e/0x590 net/sctp/ipv6.c:224 sctp_packet_transmit+0x1c27/0x3000 net/sctp/output.c:637 sctp_outq_flush_rtx net/sctp/outqueue.c:703 [inline] sctp_outq_flush+0x1286/0x30a0 net/sctp/outqueue.c:1002 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1787 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1179 [inline] sctp_do_sm+0x6b4/0x4c70 net/sctp/sm_sideeffect.c:1150 sctp_generate_heartbeat_event+0x273/0x440 net/sctp/sm_sideeffect.c:391 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x50/0x80 kernel/locking/spinlock.c:200 RSP: 0018:ffff8880b4667b68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e1313 RBX: ffff8880b46b80c0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8880b46b8944 RBP: ffff8880ba434380 R08: ffffffff8b9caa48 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ba434380 R13: ffff8880953da080 R14: 0000000000000000 R15: ffff8880ba434cd0 finish_lock_switch kernel/sched/sched.h:1346 [inline] finish_task_switch+0x178/0x610 kernel/sched/core.c:2678 context_switch kernel/sched/core.c:2814 [inline] __schedule+0x893/0x1de0 kernel/sched/core.c:3387 schedule+0x8d/0x1b0 kernel/sched/core.c:3431 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x229/0x600 kernel/time/hrtimer.c:1483 hrtimer_nanosleep+0x1da/0x4b0 kernel/time/hrtimer.c:1537 common_nsleep+0x23/0x30 kernel/time/posix-timers.c:1206 SYSC_clock_nanosleep kernel/time/posix-timers.c:1233 [inline] SyS_clock_nanosleep+0x1ff/0x2d0 kernel/time/posix-timers.c:1211 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f6e720d9e11 RSP: 002b:00007ffd50d01170 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00000000000001a1 RCX: 00007f6e720d9e11 RDX: 00007ffd50d011b0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffd50d0123c R08: 0000000000000000 R09: 0000003b86ce89f1 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000376cb R14: 0000000000000003 R15: 00007ffd50d012a0 Rebooting in 86400 seconds..