FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ====================================================== WARNING: possible circular locking dependency detected 5.15.113-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/29570 is trying to acquire lock: ffff80001498f7f8 ((console_sem).lock){-.-.}-{2:2}, at: down_trylock+0x28/0xd8 kernel/locking/semaphore.c:138 but task is already holding lock: ffff0001b47fc498 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x108/0x214 kernel/time/timer.c:946 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&base->lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xc4/0x14c kernel/locking/spinlock.c:162 lock_timer_base+0x108/0x214 kernel/time/timer.c:946 __mod_timer+0x1b4/0xd30 kernel/time/timer.c:1019 add_timer+0x6c/0x88 kernel/time/timer.c:1144 __queue_delayed_work kernel/workqueue.c:1687 [inline] queue_delayed_work_on+0x1f4/0x330 kernel/workqueue.c:1712 queue_delayed_work include/linux/workqueue.h:517 [inline] schedule_delayed_work include/linux/workqueue.h:621 [inline] psi_group_change+0xd50/0x12a0 kernel/sched/psi.c:758 psi_task_change+0x1dc/0x2e8 kernel/sched/psi.c:826 psi_enqueue kernel/sched/stats.h:104 [inline] enqueue_task kernel/sched/core.c:1973 [inline] activate_task+0x268/0x2d0 kernel/sched/core.c:2005 wake_up_new_task+0x314/0x964 kernel/sched/core.c:4518 kernel_clone+0x47c/0xa58 kernel/fork.c:2625 kernel_thread+0x148/0x1bc kernel/fork.c:2653 rest_init+0x2c/0x38c init/main.c:701 arch_call_rest_init+0x14/0x20 init/main.c:889 start_kernel+0x444/0x604 init/main.c:1144 __primary_switched+0xa8/0xb0 arch/arm64/kernel/head.S:468 -> #2 (&rq->__lock){-.-.}-{2:2}: _raw_spin_lock_nested+0xb4/0x110 kernel/locking/spinlock.c:368 raw_spin_rq_lock_nested+0x2c/0x44 kernel/sched/core.c:475 raw_spin_rq_lock kernel/sched/sched.h:1326 [inline] rq_lock kernel/sched/sched.h:1621 [inline] task_fork_fair+0x7c/0x23c kernel/sched/fair.c:11494 sched_cgroup_fork+0x334/0x3d8 kernel/sched/core.c:4462 copy_process+0x24d4/0x3750 kernel/fork.c:2312 kernel_clone+0x1d8/0xa58 kernel/fork.c:2601 kernel_thread+0x148/0x1bc kernel/fork.c:2653 rest_init+0x2c/0x38c init/main.c:701 arch_call_rest_init+0x14/0x20 init/main.c:889 start_kernel+0x444/0x604 init/main.c:1144 __primary_switched+0xa8/0xb0 arch/arm64/kernel/head.S:468 -> #1 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xc4/0x14c kernel/locking/spinlock.c:162 try_to_wake_up+0xb0/0xc2c kernel/sched/core.c:4026 wake_up_process+0x18/0x24 kernel/sched/core.c:4211 __up+0x11c/0x148 kernel/locking/semaphore.c:265 up+0x90/0xb0 kernel/locking/semaphore.c:190 __up_console_sem+0x8c/0x100 kernel/printk/printk.c:256 console_unlock+0x1160/0x1394 kernel/printk/printk.c:2750 vprintk_emit+0x13c/0x218 kernel/printk/printk.c:2268 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2279 vprintk+0x218/0x2f0 kernel/printk/printk_safe.c:50 _printk+0xdc/0x128 kernel/printk/printk.c:2289 tcp_syn_flood_action+0x1f4/0x23c net/ipv4/tcp_input.c:6775 tcp_conn_request+0x264/0x2500 net/ipv4/tcp_input.c:6865 tcp_v6_conn_request+0x264/0x388 net/ipv6/tcp_ipv6.c:1219 tcp_rcv_state_process+0x1174/0x3dd8 net/ipv4/tcp_input.c:6425 tcp_v6_do_rcv+0x704/0x135c net/ipv6/tcp_ipv6.c:1551 tcp_v6_rcv+0x1ba4/0x2360 net/ipv6/tcp_ipv6.c:1755 ip6_protocol_deliver_rcu+0x8f0/0x1134 net/ipv6/ip6_input.c:425 ip6_input_finish+0xc8/0x174 net/ipv6/ip6_input.c:466 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:307 ip6_input+0x70/0x84 net/ipv6/ip6_input.c:475 dst_input include/net/dst.h:459 [inline] ip6_rcv_finish+0x1fc/0x234 net/ipv6/ip6_input.c:79 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:307 ipv6_rcv+0x98/0xb8 net/ipv6/ip6_input.c:300 __netif_receive_skb_one_core net/core/dev.c:5460 [inline] __netif_receive_skb+0x18c/0x400 net/core/dev.c:5574 process_backlog+0x3ec/0x7e0 net/core/dev.c:6451 __napi_poll+0xb4/0x624 net/core/dev.c:7010 napi_poll net/core/dev.c:7077 [inline] net_rx_action+0x500/0xc10 net/core/dev.c:7164 __do_softirq+0x344/0xe20 kernel/softirq.c:558 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] do_softirq+0x120/0x20c kernel/softirq.c:459 __local_bh_enable_ip+0x2c0/0x4d0 kernel/softirq.c:383 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:766 [inline] ip6_finish_output2+0x13e4/0x1c48 net/ipv6/ip6_output.c:127 __ip6_finish_output+0x518/0x67c net/ipv6/ip6_output.c:191 ip6_finish_output+0x40/0x218 net/ipv6/ip6_output.c:201 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x270/0x594 net/ipv6/ip6_output.c:224 dst_output include/net/dst.h:449 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip6_xmit+0x1070/0x1a60 net/ipv6/ip6_output.c:324 inet6_csk_xmit+0x3b8/0x61c net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0x1954/0x3218 net/ipv4/tcp_output.c:1403 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline] tcp_send_syn_data net/ipv4/tcp_output.c:3831 [inline] tcp_connect+0x23c4/0x3e34 net/ipv4/tcp_output.c:3870 tcp_v6_connect+0x1010/0x1878 net/ipv6/tcp_ipv6.c:335 __inet_stream_connect+0x200/0xb78 net/ipv4/af_inet.c:664 tcp_sendmsg_fastopen+0x330/0x560 net/ipv4/tcp.c:1191 tcp_sendmsg_locked+0x2b6c/0x313c net/ipv4/tcp.c:1233 tcp_sendmsg+0x40/0x64 net/ipv4/tcp.c:1462 inet6_sendmsg+0xb4/0xd8 net/ipv6/af_inet6.c:657 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x388/0x4d0 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2047 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 -> #0 ((console_sem).lock){-.-.}-{2:2}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3787 [inline] __lock_acquire+0x32cc/0x7620 kernel/locking/lockdep.c:5011 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xc4/0x14c kernel/locking/spinlock.c:162 down_trylock+0x28/0xd8 kernel/locking/semaphore.c:138 __down_trylock_console_sem+0x80/0x144 kernel/printk/printk.c:239 console_trylock+0xb8/0x1f8 kernel/printk/printk.c:2565 console_trylock_spinning+0x1c/0x280 kernel/printk/printk.c:1867 vprintk_emit+0x120/0x218 kernel/printk/printk.c:2267 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2279 vprintk+0x218/0x2f0 kernel/printk/printk_safe.c:50 _printk+0xdc/0x128 kernel/printk/printk.c:2289 fail_dump lib/fault-inject.c:45 [inline] should_fail+0x3e0/0x5cc lib/fault-inject.c:146 __should_failslab+0xbc/0x110 mm/failslab.c:33 should_failslab+0x10/0x28 mm/slab_common.c:1337 slab_pre_alloc_hook+0x64/0xe8 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x98/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] fill_pool lib/debugobjects.c:171 [inline] debug_objects_fill_pool+0x3d0/0x814 lib/debugobjects.c:600 debug_object_activate+0x114/0x790 lib/debugobjects.c:696 debug_timer_activate kernel/time/timer.c:729 [inline] __mod_timer+0x830/0xd30 kernel/time/timer.c:1050 add_timer+0x6c/0x88 kernel/time/timer.c:1144 __queue_delayed_work kernel/workqueue.c:1687 [inline] queue_delayed_work_on+0x1f4/0x330 kernel/workqueue.c:1712 queue_delayed_work include/linux/workqueue.h:517 [inline] batadv_dat_start_timer net/batman-adv/distributed-arp-table.c:105 [inline] batadv_dat_init+0x190/0x258 net/batman-adv/distributed-arp-table.c:822 batadv_mesh_init+0x3cc/0x67c net/batman-adv/main.c:217 batadv_softif_init_late+0x734/0xb94 net/batman-adv/soft-interface.c:807 register_netdevice+0x440/0x1224 net/core/dev.c:10259 batadv_softif_newlink+0x90/0xa0 net/batman-adv/soft-interface.c:1071 __rtnl_newlink net/core/rtnetlink.c:3462 [inline] rtnl_newlink+0x1048/0x1ab8 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 other info that might help us debug this: Chain exists of: (console_sem).lock --> &rq->__lock --> &base->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&base->lock); lock(&rq->__lock); lock(&base->lock); lock((console_sem).lock); *** DEADLOCK *** 2 locks held by syz-executor.5/29570: #0: ffff8000169c5988 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff8000169c5988 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5584 #1: ffff0001b47fc498 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x108/0x214 kernel/time/timer.c:946 stack backtrace: CPU: 0 PID: 29570 Comm: syz-executor.5 Not tainted 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 print_circular_bug+0x150/0x1b8 kernel/locking/lockdep.c:2011 check_noncircular+0x2cc/0x378 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3787 [inline] __lock_acquire+0x32cc/0x7620 kernel/locking/lockdep.c:5011 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xc4/0x14c kernel/locking/spinlock.c:162 down_trylock+0x28/0xd8 kernel/locking/semaphore.c:138 __down_trylock_console_sem+0x80/0x144 kernel/printk/printk.c:239 console_trylock+0xb8/0x1f8 kernel/printk/printk.c:2565 console_trylock_spinning+0x1c/0x280 kernel/printk/printk.c:1867 vprintk_emit+0x120/0x218 kernel/printk/printk.c:2267 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2279 vprintk+0x218/0x2f0 kernel/printk/printk_safe.c:50 _printk+0xdc/0x128 kernel/printk/printk.c:2289 fail_dump lib/fault-inject.c:45 [inline] should_fail+0x3e0/0x5cc lib/fault-inject.c:146 __should_failslab+0xbc/0x110 mm/failslab.c:33 should_failslab+0x10/0x28 mm/slab_common.c:1337 slab_pre_alloc_hook+0x64/0xe8 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x98/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] fill_pool lib/debugobjects.c:171 [inline] debug_objects_fill_pool+0x3d0/0x814 lib/debugobjects.c:600 debug_object_activate+0x114/0x790 lib/debugobjects.c:696 debug_timer_activate kernel/time/timer.c:729 [inline] __mod_timer+0x830/0xd30 kernel/time/timer.c:1050 add_timer+0x6c/0x88 kernel/time/timer.c:1144 __queue_delayed_work kernel/workqueue.c:1687 [inline] queue_delayed_work_on+0x1f4/0x330 kernel/workqueue.c:1712 queue_delayed_work include/linux/workqueue.h:517 [inline] batadv_dat_start_timer net/batman-adv/distributed-arp-table.c:105 [inline] batadv_dat_init+0x190/0x258 net/batman-adv/distributed-arp-table.c:822 batadv_mesh_init+0x3cc/0x67c net/batman-adv/main.c:217 batadv_softif_init_late+0x734/0xb94 net/batman-adv/soft-interface.c:807 register_netdevice+0x440/0x1224 net/core/dev.c:10259 batadv_softif_newlink+0x90/0xa0 net/batman-adv/soft-interface.c:1071 __rtnl_newlink net/core/rtnetlink.c:3462 [inline] rtnl_newlink+0x1048/0x1ab8 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 CPU: 0 PID: 29570 Comm: syz-executor.5 Not tainted 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:52 [inline] should_fail+0x400/0x5cc lib/fault-inject.c:146 __should_failslab+0xbc/0x110 mm/failslab.c:33 should_failslab+0x10/0x28 mm/slab_common.c:1337 slab_pre_alloc_hook+0x64/0xe8 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x98/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] fill_pool lib/debugobjects.c:171 [inline] debug_objects_fill_pool+0x3d0/0x814 lib/debugobjects.c:600 debug_object_activate+0x114/0x790 lib/debugobjects.c:696 debug_timer_activate kernel/time/timer.c:729 [inline] __mod_timer+0x830/0xd30 kernel/time/timer.c:1050 add_timer+0x6c/0x88 kernel/time/timer.c:1144 __queue_delayed_work kernel/workqueue.c:1687 [inline] queue_delayed_work_on+0x1f4/0x330 kernel/workqueue.c:1712 queue_delayed_work include/linux/workqueue.h:517 [inline] batadv_dat_start_timer net/batman-adv/distributed-arp-table.c:105 [inline] batadv_dat_init+0x190/0x258 net/batman-adv/distributed-arp-table.c:822 batadv_mesh_init+0x3cc/0x67c net/batman-adv/main.c:217 batadv_softif_init_late+0x734/0xb94 net/batman-adv/soft-interface.c:807 register_netdevice+0x440/0x1224 net/core/dev.c:10259 batadv_softif_newlink+0x90/0xa0 net/batman-adv/soft-interface.c:1071 __rtnl_newlink net/core/rtnetlink.c:3462 [inline] rtnl_newlink+0x1048/0x1ab8 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584