syzbot


possible deadlock in __dev_queue_xmit

Status: auto-obsoleted due to no activity on 2023/10/25 04:56
Reported-by: syzbot+72dcf9e94b570611775a@syzkaller.appspotmail.com
First crash: 550d, last: 415d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 possible deadlock in __dev_queue_xmit 4 1930d 2000d 0/3 auto-closed as invalid on 2019/10/25 08:36
upstream possible deadlock in __dev_queue_xmit (3) net C done inconclusive 1012 85d 1767d 0/28 upstream: reported C repro on 2019/12/03 09:55
linux-4.19 possible deadlock in __dev_queue_xmit C error 5 1108d 1526d 0/1 upstream: reported C repro on 2020/07/31 07:05
android-414 possible deadlock in __dev_queue_xmit 3 1989d 2000d 0/1 auto-closed as invalid on 2019/10/21 21:31
android-44 possible deadlock in __dev_queue_xmit 14 1766d 1827d 0/2 auto-closed as invalid on 2020/04/02 07:14
linux-6.1 possible deadlock in __dev_queue_xmit 98 350d 463d 0/3 auto-obsoleted due to no activity on 2023/12/28 22:22
linux-4.14 possible deadlock in __dev_queue_xmit 7 1476d 1921d 0/1 auto-closed as invalid on 2021/01/16 21:33
upstream possible deadlock in __dev_queue_xmit net 1 2088d 2088d 0/28 closed as invalid on 2019/03/10 18:51
linux-6.1 possible deadlock in __dev_queue_xmit (2) 7 149d 258d 0/3 auto-obsoleted due to no activity on 2024/08/16 05:44
linux-5.15 possible deadlock in __dev_queue_xmit (2) origin:lts-only C done 14 53d 294d 0/3 upstream: reported C repro on 2023/12/15 02:11
upstream possible deadlock in __dev_queue_xmit (2) kernel 2 1901d 2016d 0/28 auto-closed as invalid on 2019/11/19 09:01

Sample crash report:
=====================================================
WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected
5.15.126-syzkaller #0 Not tainted
-----------------------------------------------------
syz-executor.3/15934 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire:
ffffffff8c9dfba0 (fs_reclaim){+.+.}-{0:0}, at: might_alloc include/linux/sched/mm.h:206 [inline]
ffffffff8c9dfba0 (fs_reclaim){+.+.}-{0:0}, at: slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492

and this task is already holding:
ffff88801f9f8908 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x257/0x20c0 net/sched/sch_netem.c:972
which would create a new lock dependency:
 (&sch->q.lock){+.-.}-{2:2} -> (fs_reclaim){+.+.}-{0:0}

but this new dependency connects a SOFTIRQ-irq-safe lock:
 (&sch->q.lock){+.-.}-{2:2}

... which became SOFTIRQ-irq-safe at:
  lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
  __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
  _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
  spin_lock include/linux/spinlock.h:363 [inline]
  __dev_xmit_skb net/core/dev.c:3848 [inline]
  __dev_queue_xmit+0xad6/0x3230 net/core/dev.c:4190
  neigh_hh_output include/net/neighbour.h:493 [inline]
  neigh_output include/net/neighbour.h:507 [inline]
  ip_finish_output2+0xd62/0x1270 net/ipv4/ip_output.c:228
  igmpv3_send_cr net/ipv4/igmp.c:720 [inline]
  igmp_ifc_timer_expire+0xaa3/0xf60 net/ipv4/igmp.c:810
  call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
  expire_timers kernel/time/timer.c:1466 [inline]
  __run_timers+0x67c/0x890 kernel/time/timer.c:1737
  run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
  __do_softirq+0x3b3/0x93a kernel/softirq.c:558
  invoke_softirq kernel/softirq.c:432 [inline]
  __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
  irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
  sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
  asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
  __unwind_start+0x0/0x720
  unwind_start arch/x86/include/asm/unwind.h:60 [inline]
  arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24
  stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
  save_stack+0xf6/0x1e0 mm/page_owner.c:119
  __set_page_owner+0x37/0x300 mm/page_owner.c:181
  prep_new_page mm/page_alloc.c:2426 [inline]
  get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
  __alloc_pages+0x272/0x700 mm/page_alloc.c:5421
  alloc_pages_vma+0x39a/0x800 mm/mempolicy.c:2146
  shmem_alloc_page mm/shmem.c:1586 [inline]
  shmem_alloc_and_acct_page+0x4d1/0xd10 mm/shmem.c:1611
  shmem_getpage_gfp+0x17b1/0x3190 mm/shmem.c:1906
  shmem_getpage mm/shmem.c:151 [inline]
  shmem_write_begin+0xce/0x1a0 mm/shmem.c:2477
  generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776
  __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3903
  generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3935
  call_write_iter include/linux/fs.h:2103 [inline]
  new_sync_write fs/read_write.c:507 [inline]
  vfs_write+0xacf/0xe50 fs/read_write.c:594
  ksys_write+0x1a2/0x2c0 fs/read_write.c:647
  do_syscall_x64 arch/x86/entry/common.c:50 [inline]
  do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
  entry_SYSCALL_64_after_hwframe+0x61/0xcb

to a SOFTIRQ-irq-unsafe lock:
 (fs_reclaim){+.+.}-{0:0}

... which became SOFTIRQ-irq-unsafe at:
...
  lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
  __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
  fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
  might_alloc include/linux/sched/mm.h:206 [inline]
  slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
  slab_alloc_node mm/slub.c:3134 [inline]
  slab_alloc mm/slub.c:3228 [inline]
  kmem_cache_alloc_trace+0x49/0x290 mm/slub.c:3245
  kmalloc include/linux/slab.h:591 [inline]
  kzalloc include/linux/slab.h:721 [inline]
  alloc_workqueue_attrs kernel/workqueue.c:3406 [inline]
  wq_numa_init+0x122/0x49f kernel/workqueue.c:5997
  workqueue_init+0x18/0x5e1 kernel/workqueue.c:6124
  kernel_init_freeable+0x40a/0x5c5 init/main.c:1592
  kernel_init+0x19/0x290 init/main.c:1499
  ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

other info that might help us debug this:

 Possible interrupt unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(fs_reclaim);
                               local_irq_disable();
                               lock(&sch->q.lock);
                               lock(fs_reclaim);
  <Interrupt>
    lock(&sch->q.lock);

 *** DEADLOCK ***

2 locks held by syz-executor.3/15934:
 #0: ffffffff8d9e1148 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
 #0: ffffffff8d9e1148 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5600
 #1: ffff88801f9f8908 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x257/0x20c0 net/sched/sch_netem.c:972

the dependencies between SOFTIRQ-irq-safe lock and the holding lock:
-> (&sch->q.lock){+.-.}-{2:2} {
   HARDIRQ-ON-W at:
                    lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                    __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
                    _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
                    spin_lock_bh include/linux/spinlock.h:368 [inline]
                    dev_reset_queue+0xc1/0x140 net/sched/sch_generic.c:1245
                    netdev_for_each_tx_queue include/linux/netdevice.h:2379 [inline]
                    dev_deactivate_many+0x6ad/0xbf0 net/sched/sch_generic.c:1313
                    dev_deactivate+0x177/0x270 net/sched/sch_generic.c:1336
                    linkwatch_do_dev+0x104/0x160 net/core/link_watch.c:165
                    __linkwatch_run_queue+0x4ca/0x7f0 net/core/link_watch.c:213
                    linkwatch_event+0x48/0x50 net/core/link_watch.c:252
                    process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
                    worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
                    kthread+0x3f6/0x4f0 kernel/kthread.c:319
                    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
   IN-SOFTIRQ-W at:
                    lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                    __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
                    _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
                    spin_lock include/linux/spinlock.h:363 [inline]
                    __dev_xmit_skb net/core/dev.c:3848 [inline]
                    __dev_queue_xmit+0xad6/0x3230 net/core/dev.c:4190
                    neigh_hh_output include/net/neighbour.h:493 [inline]
                    neigh_output include/net/neighbour.h:507 [inline]
                    ip_finish_output2+0xd62/0x1270 net/ipv4/ip_output.c:228
                    igmpv3_send_cr net/ipv4/igmp.c:720 [inline]
                    igmp_ifc_timer_expire+0xaa3/0xf60 net/ipv4/igmp.c:810
                    call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
                    expire_timers kernel/time/timer.c:1466 [inline]
                    __run_timers+0x67c/0x890 kernel/time/timer.c:1737
                    run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
                    __do_softirq+0x3b3/0x93a kernel/softirq.c:558
                    invoke_softirq kernel/softirq.c:432 [inline]
                    __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
                    irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
                    sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
                    asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
                    __unwind_start+0x0/0x720
                    unwind_start arch/x86/include/asm/unwind.h:60 [inline]
                    arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24
                    stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
                    save_stack+0xf6/0x1e0 mm/page_owner.c:119
                    __set_page_owner+0x37/0x300 mm/page_owner.c:181
                    prep_new_page mm/page_alloc.c:2426 [inline]
                    get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
                    __alloc_pages+0x272/0x700 mm/page_alloc.c:5421
                    alloc_pages_vma+0x39a/0x800 mm/mempolicy.c:2146
                    shmem_alloc_page mm/shmem.c:1586 [inline]
                    shmem_alloc_and_acct_page+0x4d1/0xd10 mm/shmem.c:1611
                    shmem_getpage_gfp+0x17b1/0x3190 mm/shmem.c:1906
                    shmem_getpage mm/shmem.c:151 [inline]
                    shmem_write_begin+0xce/0x1a0 mm/shmem.c:2477
                    generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776
                    __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3903
                    generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3935
                    call_write_iter include/linux/fs.h:2103 [inline]
                    new_sync_write fs/read_write.c:507 [inline]
                    vfs_write+0xacf/0xe50 fs/read_write.c:594
                    ksys_write+0x1a2/0x2c0 fs/read_write.c:647
                    do_syscall_x64 arch/x86/entry/common.c:50 [inline]
                    do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
                    entry_SYSCALL_64_after_hwframe+0x61/0xcb
   INITIAL USE at:
                   lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                   __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
                   _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
                   spin_lock_bh include/linux/spinlock.h:368 [inline]
                   dev_reset_queue+0xc1/0x140 net/sched/sch_generic.c:1245
                   netdev_for_each_tx_queue include/linux/netdevice.h:2379 [inline]
                   dev_deactivate_many+0x6ad/0xbf0 net/sched/sch_generic.c:1313
                   dev_deactivate+0x177/0x270 net/sched/sch_generic.c:1336
                   linkwatch_do_dev+0x104/0x160 net/core/link_watch.c:165
                   __linkwatch_run_queue+0x4ca/0x7f0 net/core/link_watch.c:213
                   linkwatch_event+0x48/0x50 net/core/link_watch.c:252
                   process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
                   worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
                   kthread+0x3f6/0x4f0 kernel/kthread.c:319
                   ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 }
 ... key      at: [<ffffffff917993c0>] qdisc_alloc.__key+0x0/0x20

the dependencies between the lock to be acquired
 and SOFTIRQ-irq-unsafe lock:
-> (fs_reclaim){+.+.}-{0:0} {
   HARDIRQ-ON-W at:
                    lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                    __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
                    fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
                    might_alloc include/linux/sched/mm.h:206 [inline]
                    slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
                    slab_alloc_node mm/slub.c:3134 [inline]
                    slab_alloc mm/slub.c:3228 [inline]
                    kmem_cache_alloc_trace+0x49/0x290 mm/slub.c:3245
                    kmalloc include/linux/slab.h:591 [inline]
                    kzalloc include/linux/slab.h:721 [inline]
                    alloc_workqueue_attrs kernel/workqueue.c:3406 [inline]
                    wq_numa_init+0x122/0x49f kernel/workqueue.c:5997
                    workqueue_init+0x18/0x5e1 kernel/workqueue.c:6124
                    kernel_init_freeable+0x40a/0x5c5 init/main.c:1592
                    kernel_init+0x19/0x290 init/main.c:1499
                    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
   SOFTIRQ-ON-W at:
                    lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                    __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
                    fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
                    might_alloc include/linux/sched/mm.h:206 [inline]
                    slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
                    slab_alloc_node mm/slub.c:3134 [inline]
                    slab_alloc mm/slub.c:3228 [inline]
                    kmem_cache_alloc_trace+0x49/0x290 mm/slub.c:3245
                    kmalloc include/linux/slab.h:591 [inline]
                    kzalloc include/linux/slab.h:721 [inline]
                    alloc_workqueue_attrs kernel/workqueue.c:3406 [inline]
                    wq_numa_init+0x122/0x49f kernel/workqueue.c:5997
                    workqueue_init+0x18/0x5e1 kernel/workqueue.c:6124
                    kernel_init_freeable+0x40a/0x5c5 init/main.c:1592
                    kernel_init+0x19/0x290 init/main.c:1499
                    ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
   INITIAL USE at:
                   lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
                   __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
                   fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
                   might_alloc include/linux/sched/mm.h:206 [inline]
                   slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
                   slab_alloc_node mm/slub.c:3134 [inline]
                   slab_alloc mm/slub.c:3228 [inline]
                   kmem_cache_alloc_trace+0x49/0x290 mm/slub.c:3245
                   kmalloc include/linux/slab.h:591 [inline]
                   kzalloc include/linux/slab.h:721 [inline]
                   alloc_workqueue_attrs kernel/workqueue.c:3406 [inline]
                   wq_numa_init+0x122/0x49f kernel/workqueue.c:5997
                   workqueue_init+0x18/0x5e1 kernel/workqueue.c:6124
                   kernel_init_freeable+0x40a/0x5c5 init/main.c:1592
                   kernel_init+0x19/0x290 init/main.c:1499
                   ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 }
 ... key      at: [<ffffffff8c9dfba0>] __fs_reclaim_map+0x0/0x160
 ... acquired at:
   lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
   __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
   fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
   might_alloc include/linux/sched/mm.h:206 [inline]
   slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
   slab_alloc_node mm/slub.c:3134 [inline]
   __kmalloc_node+0x71/0x390 mm/slub.c:4451
   kmalloc_node include/linux/slab.h:614 [inline]
   kvmalloc_node+0x80/0x140 mm/util.c:619
   kvmalloc include/linux/mm.h:805 [inline]
   get_dist_table+0x83/0x2c0 net/sched/sch_netem.c:788
   netem_change+0xa05/0x20c0 net/sched/sch_netem.c:988
   netem_init+0x58/0xb0 net/sched/sch_netem.c:1075
   qdisc_create+0x8ae/0x1390 net/sched/sch_api.c:1264
   tc_modify_qdisc+0xac5/0x1710
   rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5603
   netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
   netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
   netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
   netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
   sock_sendmsg_nosec net/socket.c:704 [inline]
   sock_sendmsg net/socket.c:724 [inline]
   ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
   ___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
   __sys_sendmsg net/socket.c:2495 [inline]
   __do_sys_sendmsg net/socket.c:2504 [inline]
   __se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
   do_syscall_x64 arch/x86/entry/common.c:50 [inline]
   do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
   entry_SYSCALL_64_after_hwframe+0x61/0xcb


stack backtrace:
CPU: 1 PID: 15934 Comm: syz-executor.3 Not tainted 5.15.126-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline]
 check_irq_usage kernel/locking/lockdep.c:2806 [inline]
 check_prev_add kernel/locking/lockdep.c:3057 [inline]
 check_prevs_add kernel/locking/lockdep.c:3172 [inline]
 validate_chain+0x4cfe/0x58b0 kernel/locking/lockdep.c:3787
 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5011
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline]
 fs_reclaim_acquire+0x83/0x120 mm/page_alloc.c:4561
 might_alloc include/linux/sched/mm.h:206 [inline]
 slab_pre_alloc_hook+0x22/0xc0 mm/slab.h:492
 slab_alloc_node mm/slub.c:3134 [inline]
 __kmalloc_node+0x71/0x390 mm/slub.c:4451
 kmalloc_node include/linux/slab.h:614 [inline]
 kvmalloc_node+0x80/0x140 mm/util.c:619
 kvmalloc include/linux/mm.h:805 [inline]
 get_dist_table+0x83/0x2c0 net/sched/sch_netem.c:788
 netem_change+0xa05/0x20c0 net/sched/sch_netem.c:988
 netem_init+0x58/0xb0 net/sched/sch_netem.c:1075
 qdisc_create+0x8ae/0x1390 net/sched/sch_api.c:1264
 tc_modify_qdisc+0xac5/0x1710
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5603
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
 __sys_sendmsg net/socket.c:2495 [inline]
 __do_sys_sendmsg net/socket.c:2504 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f31e6850ae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f31e4dd20c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f31e696ff80 RCX: 00007f31e6850ae9
RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004
RBP: 00007f31e689c47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f31e696ff80 R15: 00007fff61070128
 </TASK>
BUG: sleeping function called from invalid context at include/linux/sched/mm.h:209
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 15934, name: syz-executor.3
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 15934 Comm: syz-executor.3 Not tainted 5.15.126-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9625
 might_alloc include/linux/sched/mm.h:209 [inline]
 slab_pre_alloc_hook+0x44/0xc0 mm/slab.h:492
 slab_alloc_node mm/slub.c:3134 [inline]
 __kmalloc_node+0x71/0x390 mm/slub.c:4451
 kmalloc_node include/linux/slab.h:614 [inline]
 kvmalloc_node+0x80/0x140 mm/util.c:619
 kvmalloc include/linux/mm.h:805 [inline]
 get_dist_table+0x83/0x2c0 net/sched/sch_netem.c:788
 netem_change+0xa05/0x20c0 net/sched/sch_netem.c:988
 netem_init+0x58/0xb0 net/sched/sch_netem.c:1075
 qdisc_create+0x8ae/0x1390 net/sched/sch_api.c:1264
 tc_modify_qdisc+0xac5/0x1710
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5603
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
 __sys_sendmsg net/socket.c:2495 [inline]
 __do_sys_sendmsg net/socket.c:2504 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f31e6850ae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f31e4dd20c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f31e696ff80 RCX: 00007f31e6850ae9
RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004
RBP: 00007f31e689c47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f31e696ff80 R15: 00007fff61070128
 </TASK>

Crashes (113):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/16 04:55 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/15 10:47 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/15 08:07 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/15 00:27 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/13 14:25 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/13 10:13 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/05 00:29 linux-5.15.y 38d4ca22a528 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/03 17:55 linux-5.15.y 38d4ca22a528 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/02 06:42 linux-5.15.y 09996673e313 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/02 01:33 linux-5.15.y 09996673e313 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/01 11:52 linux-5.15.y 09996673e313 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/31 02:06 linux-5.15.y 09996673e313 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/31 00:38 linux-5.15.y 09996673e313 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/29 02:39 linux-5.15.y 09996673e313 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/26 23:45 linux-5.15.y 5c6a716301d9 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/26 23:23 linux-5.15.y 5c6a716301d9 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/26 01:59 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/25 21:33 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/25 15:16 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/19 15:59 linux-5.15.y d54cfc420586 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/18 22:52 linux-5.15.y d54cfc420586 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/18 21:51 linux-5.15.y d54cfc420586 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/18 13:20 linux-5.15.y d54cfc420586 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/18 06:29 linux-5.15.y d54cfc420586 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/16 13:38 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/16 12:57 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/15 17:30 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/14 16:44 linux-5.15.y d54cfc420586 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/14 15:44 linux-5.15.y d54cfc420586 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/14 01:20 linux-5.15.y d54cfc420586 55eda22f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/12 23:54 linux-5.15.y d54cfc420586 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/12 21:45 linux-5.15.y d54cfc420586 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/07/12 01:41 linux-5.15.y d54cfc420586 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/04/02 16:12 linux-5.15.y c957cbb87315 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan possible deadlock in __dev_queue_xmit
2023/08/15 20:14 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/08/09 09:51 linux-5.15.y c275eaaaa342 8ad1a287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/08/07 23:23 linux-5.15.y 38d4ca22a528 b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/08/07 03:42 linux-5.15.y 38d4ca22a528 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/29 03:46 linux-5.15.y 09996673e313 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/26 05:54 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/26 03:12 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/25 20:28 linux-5.15.y 5c6a716301d9 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/18 19:52 linux-5.15.y d54cfc420586 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/17 19:27 linux-5.15.y d54cfc420586 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/16 17:35 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
2023/07/13 23:42 linux-5.15.y d54cfc420586 55eda22f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 possible deadlock in __dev_queue_xmit
* Struck through repros no longer work on HEAD.