8021q: adding VLAN 0 to HW filter on device batadv0 8021q: adding VLAN 0 to HW filter on device batadv0 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: use-after-scope in debug_lockdep_rcu_enabled.part.0+0x50/0x60 kernel/rcu/update.c:249 Read of size 4 at addr ffff8880a945eabc by task `9#(<kE>9hA/-2122188634 list_add corruption. next->prev should be prev (ffff8880ae62d8d8), but was ffff8880fffffffe. (next=ffff8880a945e2f0). ------------[ cut here ]------------ CPU: 0 PID: -2122188634 Comm: EO2 Not tainted 5.0.0-rc1+ #20 kernel BUG at lib/list_debug.c:23! Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 invalid opcode: 0000 [#1] PREEMPT SMP KASAN ------------[ cut here ]------------ CPU: 1 PID: 8854 Comm: syz-executor2 Not tainted 5.0.0-rc1+ #20 Bad or missing usercopy whitelist? Kernel memory overwrite attempt detected to SLAB object 'task_struct' (offset 1344, size 8)! Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 WARNING: CPU: 0 PID: -1455036288 at mm/usercopy.c:78 usercopy_warn+0xeb/0x110 mm/usercopy.c:78 RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 Kernel panic - not syncing: panic_on_warn set ... Code: 34 fe eb d5 4c 89 e7 e8 0a fe 34 fe eb a3 4c 89 f7 e8 00 fe 34 fe e9 56 ff ff ff 4c 89 e1 48 c7 c7 e0 af 81 88 e8 c0 53 d7 fd <0f> 0b 48 89 f2 4c 89 e1 4c 89 ee 48 c7 c7 20 b1 81 88 e8 a9 53 d7 RSP: 0018:ffff8880ae7071e0 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8880ae62cec0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81684cc6 RDI: ffffed1015ce0e2e RBP: ffff8880ae7071f8 R08: 0000000000000075 R09: ffffed1015ce5021 R10: ffffed1015ce5020 R11: ffff8880ae728107 R12: ffff8880a945e2f0 R13: ffff8880a90aa6b0 R14: ffff8880ae707280 R15: ffff8880a90aa6b0 FS: 00007f98d8d75700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000606df0 CR3: 00000000a63b4000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] account_entity_enqueue+0x3a0/0x660 kernel/sched/fair.c:2678 enqueue_entity+0x276/0x20b0 kernel/sched/fair.c:3902 enqueue_task_fair+0x237/0x10c0 kernel/sched/fair.c:5133 enqueue_task kernel/sched/core.c:730 [inline] activate_task+0x11d/0x470 kernel/sched/core.c:751 ttwu_activate kernel/sched/core.c:1643 [inline] ttwu_do_activate+0xd4/0x1f0 kernel/sched/core.c:1702 ttwu_queue kernel/sched/core.c:1847 [inline] try_to_wake_up+0x997/0x1480 kernel/sched/core.c:2057 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 wake_up_worker kernel/workqueue.c:838 [inline] insert_work+0x42b/0x620 kernel/workqueue.c:1311 __queue_work+0x62f/0x1450 kernel/workqueue.c:1461 delayed_work_timer_fn+0x5d/0x90 kernel/workqueue.c:1500 call_timer_fn+0x254/0x900 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1358 [inline] __run_timers+0x4a2/0xd50 kernel/time/timer.c:1681 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1694 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1027 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:696 [inline] ip6_finish_output2+0xca9/0x28e0 net/ipv6/ip6_output.c:121 ip6_finish_output+0x577/0xc30 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x23c/0xa00 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0xc4/0x1b0 net/ipv6/output_core.c:176 ip6_send_skb+0xbb/0x350 net/ipv6/ip6_output.c:1727 udp_v6_send_skb.isra.0+0x834/0x14b0 net/ipv6/udp.c:1169 udpv6_sendmsg+0x2baa/0x3550 net/ipv6/udp.c:1466 inet_sendmsg+0x1af/0x740 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 ___sys_sendmsg+0x409/0x910 net/socket.c:2116 __sys_sendmmsg+0x246/0x730 net/socket.c:2211 __do_sys_sendmmsg net/socket.c:2240 [inline] __se_sys_sendmmsg net/socket.c:2237 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2237 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ec9 Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f98d8d74c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457ec9 RDX: 08000000000000fc RSI: 0000000020005fc0 RDI: 000000000000000b RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f98d8d756d4 R13: 00000000004c4ce5 R14: 00000000004d85d8 R15: 00000000ffffffff Modules linked in: ---[ end trace 5a3d33a6ec386cc3 ]--- RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 Code: 34 fe eb d5 4c 89 e7 e8 0a fe 34 fe eb a3 4c 89 f7 e8 00 fe 34 fe e9 56 ff ff ff 4c 89 e1 48 c7 c7 e0 af 81 88 e8 c0 53 d7 fd <0f> 0b 48 89 f2 4c 89 e1 4c 89 ee 48 c7 c7 20 b1 81 88 e8 a9 53 d7 RSP: 0018:ffff8880ae7071e0 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8880ae62cec0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81684cc6 RDI: ffffed1015ce0e2e RBP: ffff8880ae7071f8 R08: 0000000000000075 R09: ffffed1015ce5021 R10: ffffed1015ce5020 R11: ffff8880ae728107 R12: ffff8880a945e2f0 R13: ffff8880a90aa6b0 R14: ffff8880ae707280 R15: ffff8880a90aa6b0 FS: 00007f98d8d75700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000606df0 CR3: 00000000a63b4000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Shutting down cpus with NMI Kernel Offset: disabled ====================================================== WARNING: possible circular locking dependency detected 5.0.0-rc1+ #20 Not tainted ------------------------------------------------------ syz-executor2/8854 is trying to acquire lock: 00000000742accfd ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 but task is already holding lock: 0000000070ea16ff (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1149 [inline] 0000000070ea16ff (&rq->lock){-.-.}, at: ttwu_queue kernel/sched/core.c:1845 [inline] 0000000070ea16ff (&rq->lock){-.-.}, at: try_to_wake_up+0x933/0x1480 kernel/sched/core.c:2057 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&rq->lock){-.-.}: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 rq_lock kernel/sched/sched.h:1149 [inline] task_fork_fair+0xb5/0x7a0 kernel/sched/fair.c:10058 sched_fork+0x437/0xb90 kernel/sched/core.c:2359 copy_process+0x1f95/0x8710 kernel/fork.c:1887 _do_fork+0x1a9/0x1170 kernel/fork.c:2227 kernel_thread+0x34/0x40 kernel/fork.c:2286 rest_init+0x28/0x37b init/main.c:408 arch_call_rest_init+0xe/0x1b start_kernel+0x882/0x8bd init/main.c:740 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:470 x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #1 (&p->pi_lock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 try_to_wake_up+0xb9/0x1480 kernel/sched/core.c:1965 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 __up.isra.0+0x1c0/0x2a0 kernel/locking/semaphore.c:262 up+0x13e/0x1c0 kernel/locking/semaphore.c:187 __up_console_sem+0xb7/0x1c0 kernel/printk/printk.c:236 console_unlock+0x778/0x11e0 kernel/printk/printk.c:2426 vprintk_emit+0x370/0x960 kernel/printk/printk.c:1931 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 check_stack_usage kernel/exit.c:755 [inline] do_exit.cold+0x57/0x16a kernel/exit.c:916 do_group_exit+0x177/0x430 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:979 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 ((console_sem).lock){-.-.}: lock_acquire+0x1db/0x570 kernel/locking/lockdep.c:3841 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 __down_trylock_console_sem+0xa8/0x210 kernel/printk/printk.c:219 console_trylock+0x15/0xa0 kernel/printk/printk.c:2242 console_trylock_spinning kernel/printk/printk.c:1662 [inline] vprintk_emit+0x351/0x960 kernel/printk/printk.c:1930 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 __list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] account_entity_enqueue+0x3a0/0x660 kernel/sched/fair.c:2678 enqueue_entity+0x276/0x20b0 kernel/sched/fair.c:3902 enqueue_task_fair+0x237/0x10c0 kernel/sched/fair.c:5133 enqueue_task kernel/sched/core.c:730 [inline] activate_task+0x11d/0x470 kernel/sched/core.c:751 ttwu_activate kernel/sched/core.c:1643 [inline] ttwu_do_activate+0xd4/0x1f0 kernel/sched/core.c:1702 ttwu_queue kernel/sched/core.c:1847 [inline] try_to_wake_up+0x997/0x1480 kernel/sched/core.c:2057 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 wake_up_worker kernel/workqueue.c:838 [inline] insert_work+0x42b/0x620 kernel/workqueue.c:1311 __queue_work+0x62f/0x1450 kernel/workqueue.c:1461 delayed_work_timer_fn+0x5d/0x90 kernel/workqueue.c:1500 call_timer_fn+0x254/0x900 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1358 [inline] __run_timers+0x4a2/0xd50 kernel/time/timer.c:1681 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1694 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1027 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:696 [inline] ip6_finish_output2+0xca9/0x28e0 net/ipv6/ip6_output.c:121 ip6_finish_output+0x577/0xc30 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x23c/0xa00 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0xc4/0x1b0 net/ipv6/output_core.c:176 ip6_send_skb+0xbb/0x350 net/ipv6/ip6_output.c:1727 udp_v6_send_skb.isra.0+0x834/0x14b0 net/ipv6/udp.c:1169 udpv6_sendmsg+0x2baa/0x3550 net/ipv6/udp.c:1466 inet_sendmsg+0x1af/0x740 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 ___sys_sendmsg+0x409/0x910 net/socket.c:2116 __sys_sendmmsg+0x246/0x730 net/socket.c:2211 __do_sys_sendmmsg net/socket.c:2240 [inline] __se_sys_sendmmsg net/socket.c:2237 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2237 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: (console_sem).lock --> &p->pi_lock --> &rq->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rq->lock); lock(&p->pi_lock); lock(&rq->lock); lock((console_sem).lock); *** DEADLOCK *** 4 locks held by syz-executor2/8854: #0: 0000000023dea195 (&(&bat_priv->mcast.work)->timer){..-.}, at: lockdep_copy_map include/linux/lockdep.h:171 [inline] #0: 0000000023dea195 (&(&bat_priv->mcast.work)->timer){..-.}, at: call_timer_fn+0x1b4/0x900 kernel/time/timer.c:1315 #1: 00000000ad7451e0 (&pool->lock/1){..-.}, at: spin_lock include/linux/spinlock.h:329 [inline] #1: 00000000ad7451e0 (&pool->lock/1){..-.}, at: __queue_work+0x2d9/0x1450 kernel/workqueue.c:1417 #2: 0000000005dded28 (&p->pi_lock){-.-.}, at: try_to_wake_up+0xb9/0x1480 kernel/sched/core.c:1965 #3: 0000000070ea16ff (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1149 [inline] #3: 0000000070ea16ff (&rq->lock){-.-.}, at: ttwu_queue kernel/sched/core.c:1845 [inline] #3: 0000000070ea16ff (&rq->lock){-.-.}, at: try_to_wake_up+0x933/0x1480 kernel/sched/core.c:2057 stack backtrace: CPU: 1 PID: 8854 Comm: syz-executor2 Not tainted 5.0.0-rc1+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1db/0x2d0 lib/dump_stack.c:113 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1224 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2350 [inline] __lock_acquire+0x3014/0x4a30 kernel/locking/lockdep.c:3338 lock_acquire+0x1db/0x570 kernel/locking/lockdep.c:3841 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 __down_trylock_console_sem+0xa8/0x210 kernel/printk/printk.c:219 console_trylock+0x15/0xa0 kernel/printk/printk.c:2242 console_trylock_spinning kernel/printk/printk.c:1662 [inline] vprintk_emit+0x351/0x960 kernel/printk/printk.c:1930 vprintk_default+0x28/0x30 kernel/printk/printk.c:1958 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:1991 __list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] account_entity_enqueue+0x3a0/0x660 kernel/sched/fair.c:2678 enqueue_entity+0x276/0x20b0 kernel/sched/fair.c:3902 enqueue_task_fair+0x237/0x10c0 kernel/sched/fair.c:5133 enqueue_task kernel/sched/core.c:730 [inline] activate_task+0x11d/0x470 kernel/sched/core.c:751 ttwu_activate kernel/sched/core.c:1643 [inline] ttwu_do_activate+0xd4/0x1f0 kernel/sched/core.c:1702 ttwu_queue kernel/sched/core.c:1847 [inline] try_to_wake_up+0x997/0x1480 kernel/sched/core.c:2057 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 wake_up_worker kernel/workqueue.c:838 [inline] insert_work+0x42b/0x620 kernel/workqueue.c:1311 __queue_work+0x62f/0x1450 kernel/workqueue.c:1461 delayed_work_timer_fn+0x5d/0x90 kernel/workqueue.c:1500 call_timer_fn+0x254/0x900 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1358 [inline] __run_timers+0x4a2/0xd50 kernel/time/timer.c:1681 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1694 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1027 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:696 [inline] ip6_finish_output2+0xca9/0x28e0 net/ipv6/ip6_output.c:121 ip6_finish_output+0x577/0xc30 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x23c/0xa00 net/ipv6/ip6_output.c:171 ? ip6_fragment+0x37 Lost 61 message(s)! Rebooting in 86400 seconds..