======================================================== WARNING: possible irq lock inversion dependency detected 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0 Not tainted -------------------------------------------------------- syz.3.714/8284 just changed the state of lock: ffff888027a1c9e0 (&pch->downl){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff888027a1c9e0 (&pch->downl){+.+.}-{2:2}, at: ppp_channel_bridge_input drivers/net/ppp/ppp_generic.c:2272 [inline] ffff888027a1c9e0 (&pch->downl){+.+.}-{2:2}, at: ppp_input+0x104/0xbb0 drivers/net/ppp/ppp_generic.c:2304 but this lock was taken by another, SOFTIRQ-READ-safe lock in the past: (&pch->upl){++.-}-{2:2} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &pch->upl --> &ppp->rlock --> &pch->downl Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&pch->downl); local_irq_disable(); lock(&pch->upl); lock(&ppp->rlock); lock(&pch->upl); *** DEADLOCK *** 2 locks held by syz.3.714/8284: #0: ffff88802ac4d258 (sk_lock-AF_PPPOX){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1609 [inline] #0: ffff88802ac4d258 (sk_lock-AF_PPPOX){+.+.}-{0:0}, at: pppoe_sendmsg+0xbb/0x770 drivers/net/ppp/pppoe.c:849 #1: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #1: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: ppp_channel_bridge_input drivers/net/ppp/ppp_generic.c:2267 [inline] #1: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: ppp_input+0x70/0xbb0 drivers/net/ppp/ppp_generic.c:2304 the shortest dependencies between 2nd lock and 1st lock: -> (&pch->upl){++.-}-{2:2} { HARDIRQ-ON-W at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_write_lock_bh include/linux/rwlock_api_smp.h:202 [inline] _raw_write_lock_bh+0x33/0x40 kernel/locking/spinlock.c:334 ppp_disconnect_channel+0x25/0x340 drivers/net/ppp/ppp_generic.c:3522 ppp_unregister_channel+0xb2/0x380 drivers/net/ppp/ppp_generic.c:2996 ppp_asynctty_close+0xe4/0x1b0 drivers/net/ppp/ppp_async.c:238 tty_ldisc_close+0x111/0x1a0 drivers/tty/tty_ldisc.c:455 tty_ldisc_kill+0x8e/0x150 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x116/0x2a0 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x23/0xe0 drivers/tty/tty_io.c:1690 tty_release+0xe25/0x1410 drivers/tty/tty_io.c:1861 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f HARDIRQ-ON-R at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_bh include/linux/rwlock_api_smp.h:176 [inline] _raw_read_lock_bh+0x3f/0x70 kernel/locking/spinlock.c:252 ppp_input+0x40c/0xbb0 drivers/net/ppp/ppp_generic.c:2307 ppp_sync_process+0xa3/0x160 drivers/net/ppp/ppp_synctty.c:490 tasklet_action_common+0x24c/0x3e0 kernel/softirq.c:784 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:927 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:919 smpboot_thread_fn+0x661/0xa30 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 IN-SOFTIRQ-R at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_bh include/linux/rwlock_api_smp.h:176 [inline] _raw_read_lock_bh+0x3f/0x70 kernel/locking/spinlock.c:252 ppp_input+0x40c/0xbb0 drivers/net/ppp/ppp_generic.c:2307 ppp_sync_process+0xa3/0x160 drivers/net/ppp/ppp_synctty.c:490 tasklet_action_common+0x24c/0x3e0 kernel/softirq.c:784 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:927 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:919 smpboot_thread_fn+0x661/0xa30 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INITIAL USE at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_write_lock_bh include/linux/rwlock_api_smp.h:202 [inline] _raw_write_lock_bh+0x33/0x40 kernel/locking/spinlock.c:334 ppp_disconnect_channel+0x25/0x340 drivers/net/ppp/ppp_generic.c:3522 ppp_unregister_channel+0xb2/0x380 drivers/net/ppp/ppp_generic.c:2996 ppp_asynctty_close+0xe4/0x1b0 drivers/net/ppp/ppp_async.c:238 tty_ldisc_close+0x111/0x1a0 drivers/tty/tty_ldisc.c:455 tty_ldisc_kill+0x8e/0x150 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x116/0x2a0 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x23/0xe0 drivers/tty/tty_io.c:1690 tty_release+0xe25/0x1410 drivers/tty/tty_io.c:1861 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_bh include/linux/rwlock_api_smp.h:176 [inline] _raw_read_lock_bh+0x3f/0x70 kernel/locking/spinlock.c:252 ppp_input+0x40c/0xbb0 drivers/net/ppp/ppp_generic.c:2307 ppp_sync_process+0xa3/0x160 drivers/net/ppp/ppp_synctty.c:490 tasklet_action_common+0x24c/0x3e0 kernel/softirq.c:784 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:927 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:919 smpboot_thread_fn+0x661/0xa30 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 } ... key at: [] __key.10+0x0/0x40 ... acquired at: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_connect_channel drivers/net/ppp/ppp_generic.c:3484 [inline] ppp_ioctl+0x192d/0x2590 drivers/net/ppp/ppp_generic.c:761 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&ppp->wlock){+...}-{2:2} { HARDIRQ-ON-W at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_get_stats64+0xcf/0x3a0 drivers/net/ppp/ppp_generic.c:1539 dev_get_stats+0xae/0xa00 net/core/dev.c:10937 rtnl_fill_stats+0x48/0xa90 net/core/rtnetlink.c:1268 rtnl_fill_ifinfo.constprop.0+0x1622/0x4b50 net/core/rtnetlink.c:1909 rtmsg_ifinfo_build_skb+0x151/0x280 net/core/rtnetlink.c:4079 rtmsg_ifinfo_event net/core/rtnetlink.c:4112 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4102 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4121 register_netdevice+0x18b5/0x1e90 net/core/dev.c:10534 ppp_unit_register drivers/net/ppp/ppp_generic.c:1219 [inline] ppp_dev_configure+0x99e/0xc80 drivers/net/ppp/ppp_generic.c:1275 ppp_create_interface drivers/net/ppp/ppp_generic.c:3348 [inline] ppp_unattached_ioctl drivers/net/ppp/ppp_generic.c:1060 [inline] ppp_ioctl+0x17eb/0x2590 drivers/net/ppp/ppp_generic.c:733 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_get_stats64+0xcf/0x3a0 drivers/net/ppp/ppp_generic.c:1539 dev_get_stats+0xae/0xa00 net/core/dev.c:10937 rtnl_fill_stats+0x48/0xa90 net/core/rtnetlink.c:1268 rtnl_fill_ifinfo.constprop.0+0x1622/0x4b50 net/core/rtnetlink.c:1909 rtmsg_ifinfo_build_skb+0x151/0x280 net/core/rtnetlink.c:4079 rtmsg_ifinfo_event net/core/rtnetlink.c:4112 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4102 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4121 register_netdevice+0x18b5/0x1e90 net/core/dev.c:10534 ppp_unit_register drivers/net/ppp/ppp_generic.c:1219 [inline] ppp_dev_configure+0x99e/0xc80 drivers/net/ppp/ppp_generic.c:1275 ppp_create_interface drivers/net/ppp/ppp_generic.c:3348 [inline] ppp_unattached_ioctl drivers/net/ppp/ppp_generic.c:1060 [inline] ppp_ioctl+0x17eb/0x2590 drivers/net/ppp/ppp_generic.c:733 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_dev_uninit+0x67/0x1b0 drivers/net/ppp/ppp_generic.c:1572 unregister_netdevice_many_notify+0xf77/0x1e50 net/core/dev.c:11421 unregister_netdevice_many net/core/dev.c:11461 [inline] unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11335 unregister_netdevice include/linux/netdevice.h:3118 [inline] ppp_release+0x209/0x230 drivers/net/ppp/ppp_generic.c:410 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&ppp->rlock){+...}-{2:2} { HARDIRQ-ON-W at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_get_stats64+0x24/0x3a0 drivers/net/ppp/ppp_generic.c:1534 dev_get_stats+0xae/0xa00 net/core/dev.c:10937 rtnl_fill_stats+0x48/0xa90 net/core/rtnetlink.c:1268 rtnl_fill_ifinfo.constprop.0+0x1622/0x4b50 net/core/rtnetlink.c:1909 rtmsg_ifinfo_build_skb+0x151/0x280 net/core/rtnetlink.c:4079 rtmsg_ifinfo_event net/core/rtnetlink.c:4112 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4102 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4121 register_netdevice+0x18b5/0x1e90 net/core/dev.c:10534 ppp_unit_register drivers/net/ppp/ppp_generic.c:1219 [inline] ppp_dev_configure+0x99e/0xc80 drivers/net/ppp/ppp_generic.c:1275 ppp_create_interface drivers/net/ppp/ppp_generic.c:3348 [inline] ppp_unattached_ioctl drivers/net/ppp/ppp_generic.c:1060 [inline] ppp_ioctl+0x17eb/0x2590 drivers/net/ppp/ppp_generic.c:733 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_get_stats64+0x24/0x3a0 drivers/net/ppp/ppp_generic.c:1534 dev_get_stats+0xae/0xa00 net/core/dev.c:10937 rtnl_fill_stats+0x48/0xa90 net/core/rtnetlink.c:1268 rtnl_fill_ifinfo.constprop.0+0x1622/0x4b50 net/core/rtnetlink.c:1909 rtmsg_ifinfo_build_skb+0x151/0x280 net/core/rtnetlink.c:4079 rtmsg_ifinfo_event net/core/rtnetlink.c:4112 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4102 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4121 register_netdevice+0x18b5/0x1e90 net/core/dev.c:10534 ppp_unit_register drivers/net/ppp/ppp_generic.c:1219 [inline] ppp_dev_configure+0x99e/0xc80 drivers/net/ppp/ppp_generic.c:1275 ppp_create_interface drivers/net/ppp/ppp_generic.c:3348 [inline] ppp_unattached_ioctl drivers/net/ppp/ppp_generic.c:1060 [inline] ppp_ioctl+0x17eb/0x2590 drivers/net/ppp/ppp_generic.c:733 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.1+0x0/0x40 ... acquired at: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_connect_channel drivers/net/ppp/ppp_generic.c:3485 [inline] ppp_ioctl+0x1955/0x2590 drivers/net/ppp/ppp_generic.c:761 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&pch->downl){+.+.}-{2:2} { HARDIRQ-ON-W at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_unregister_channel+0x6d/0x380 drivers/net/ppp/ppp_generic.c:2992 ppp_asynctty_close+0xe4/0x1b0 drivers/net/ppp/ppp_async.c:238 tty_ldisc_close+0x111/0x1a0 drivers/tty/tty_ldisc.c:455 tty_ldisc_kill+0x8e/0x150 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x116/0x2a0 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x23/0xe0 drivers/tty/tty_io.c:1690 tty_release+0xe25/0x1410 drivers/tty/tty_io.c:1861 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f SOFTIRQ-ON-W at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ppp_channel_bridge_input drivers/net/ppp/ppp_generic.c:2272 [inline] ppp_input+0x104/0xbb0 drivers/net/ppp/ppp_generic.c:2304 pppoe_rcv_core+0x22c/0x320 drivers/net/ppp/pppoe.c:379 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x35f/0x400 net/core/sock.c:3072 release_sock+0x5a/0x220 net/core/sock.c:3626 pppoe_sendmsg+0x5e6/0x770 drivers/net/ppp/pppoe.c:903 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg net/socket.c:744 [inline] ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2602 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2656 __sys_sendmmsg+0x1a1/0x450 net/socket.c:2742 __do_sys_sendmmsg net/socket.c:2771 [inline] __se_sys_sendmmsg net/socket.c:2768 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2768 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ppp_unregister_channel+0x6d/0x380 drivers/net/ppp/ppp_generic.c:2992 ppp_asynctty_close+0xe4/0x1b0 drivers/net/ppp/ppp_async.c:238 tty_ldisc_close+0x111/0x1a0 drivers/tty/tty_ldisc.c:455 tty_ldisc_kill+0x8e/0x150 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x116/0x2a0 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x23/0xe0 drivers/tty/tty_io.c:1690 tty_release+0xe25/0x1410 drivers/tty/tty_io.c:1861 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.11+0x0/0x40 ... acquired at: mark_usage kernel/locking/lockdep.c:4638 [inline] __lock_acquire+0x8ee/0x3ce0 kernel/locking/lockdep.c:5156 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ppp_channel_bridge_input drivers/net/ppp/ppp_generic.c:2272 [inline] ppp_input+0x104/0xbb0 drivers/net/ppp/ppp_generic.c:2304 pppoe_rcv_core+0x22c/0x320 drivers/net/ppp/pppoe.c:379 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x35f/0x400 net/core/sock.c:3072 release_sock+0x5a/0x220 net/core/sock.c:3626 pppoe_sendmsg+0x5e6/0x770 drivers/net/ppp/pppoe.c:903 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg net/socket.c:744 [inline] ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2602 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2656 __sys_sendmmsg+0x1a1/0x450 net/socket.c:2742 __do_sys_sendmmsg net/socket.c:2771 [inline] __se_sys_sendmmsg net/socket.c:2768 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2768 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 2 UID: 0 PID: 8284 Comm: syz.3.714 Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_irq_inversion_bug.part.0+0x3ee/0x5a0 kernel/locking/lockdep.c:4121 print_irq_inversion_bug kernel/locking/lockdep.c:4072 [inline] check_usage_forwards kernel/locking/lockdep.c:4154 [inline] mark_lock_irq kernel/locking/lockdep.c:4290 [inline] mark_lock+0x574/0xc60 kernel/locking/lockdep.c:4725 mark_usage kernel/locking/lockdep.c:4638 [inline] __lock_acquire+0x8ee/0x3ce0 kernel/locking/lockdep.c:5156 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ppp_channel_bridge_input drivers/net/ppp/ppp_generic.c:2272 [inline] ppp_input+0x104/0xbb0 drivers/net/ppp/ppp_generic.c:2304 pppoe_rcv_core+0x22c/0x320 drivers/net/ppp/pppoe.c:379 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x35f/0x400 net/core/sock.c:3072 release_sock+0x5a/0x220 net/core/sock.c:3626 pppoe_sendmsg+0x5e6/0x770 drivers/net/ppp/pppoe.c:903 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg net/socket.c:744 [inline] ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2602 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2656 __sys_sendmmsg+0x1a1/0x450 net/socket.c:2742 __do_sys_sendmmsg net/socket.c:2771 [inline] __se_sys_sendmmsg net/socket.c:2768 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2768 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8bc477dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8bc55d2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f8bc4935f80 RCX: 00007f8bc477dff9 RDX: 0400000000000026 RSI: 0000000020001cc0 RDI: 0000000000000004 RBP: 00007f8bc47f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8bc4935f80 R15: 00007ffc43450a18