ci2 starts bisection 2023-12-23 12:11:42.013267922 +0000 UTC m=+73305.337153493 bisecting fixing commit since 59b13c2b647e464dd85622c89d7f16c15d681e96 building syzkaller on 59da83662ae7076f1369c8a5b9dd1245223039df ensuring issue is reproducible on original commit 59b13c2b647e464dd85622c89d7f16c15d681e96 testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d7dfc354390186ec59096f9b593158935b09208a4f5c5e99c36a76b5f052cbe4 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 49367d1f223c9c5d9c804a4865febacfefe85b3e0ce5f27e567ce0d426f6b037 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed kconfig minimization: base=3820 full=7525 leaves diff=1996 split chunks (needed=false): <1996> split chunk #0 of len 1996 into 5 parts testing without sub-chunk 1/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 791c6d0dbd0570f8c4b25902b246edcf25aefed4f588dc0ad43e8496c6230957 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cfedbef9b771a4cefaa26dddbecd08e4b52a571ac8e4711ca841b346eaddc6c6 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9ba68b26e174ca5f069cff539679c82831a0fff8a0e1e1c9c5cb7f14818bb0d7 all runs: OK false negative chance: 0.000 testing without sub-chunk 4/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 394bba0f189e0d288b022f1756613af8b3b507b4cd5512d0691bc223b129a020 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 59b13c2b647e464dd85622c89d7f16c15d681e96 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: eafa7bcbb131598810b1ecd88f3c6c5cde56523a1df8adcc1cfa75114ac3f6c0 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the chunk can be dropped minimized to 400 configs; suspects: [ATM AX25 BRIDGE BRIDGE_NETFILTER CAN CFG80211 CHECKPOINT_RESTORE DVB_CORE FB FSCACHE HAMRADIO HSR INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_USER_ACCESS INPUT_JOYSTICK INPUT_MOUSE IP6_NF_RAW IPV6_MULTIPLE_TABLES IP_NF_RAW IP_SET IP_VS IP_VS_PROTO_ESP IP_VS_PROTO_SCTP IP_VS_RR IP_VS_SED IP_VS_SH IP_VS_TWOS IP_VS_WLC IP_VS_WRR IRQ_BYPASS_MANAGER IRQ_POLL IR_IGORPLUGUSB IR_IGUANA IR_IMON IR_MCEUSB IR_REDRAT3 IR_STREAMZAP IR_TTUSBIR ISDN ISDN_CAPI_MIDDLEWARE JFFS2_CMODE_PRIORITY JFFS2_COMPRESSION_OPTIONS JFFS2_FS JFFS2_FS_POSIX_ACL JFFS2_FS_SECURITY JFFS2_FS_WRITEBUFFER JFFS2_FS_XATTR JFFS2_LZO JFFS2_RTIME JFFS2_RUBIN JFFS2_SUMMARY JFFS2_ZLIB JFS_DEBUG JFS_FS JFS_POSIX_ACL JFS_SECURITY JOYSTICK_IFORCE JOYSTICK_IFORCE_USB JOYSTICK_XPAD JOYSTICK_XPAD_FF JOYSTICK_XPAD_LEDS KARMA_PARTITION KCOV KCOV_ENABLE_COMPARISONS KCOV_INSTRUMENT_ALL KEYS_REQUEST_CACHE KEY_DH_OPERATIONS KEY_NOTIFICATIONS KSM KVM KVM_AMD KVM_ASYNC_PF KVM_COMPAT KVM_GENERIC_DIRTYLOG_READ_PROTECT KVM_MMIO KVM_VFIO KVM_XEN KVM_XFER_TO_GUEST_WORK L2TP L2TP_ETH L2TP_IP L2TP_V3 LAPB LAPBETHER LDM_PARTITION LEDS_TRIGGER_AUDIO LEGACY_PTYS LIBCRC32C LIBNVDIMM LINEAR_RANGES LLC LLC2 LOCK_MM_AND_FIND_VMA LOGIG940_FF LOGIRUMBLEPAD2_FF LOGO LOGO_LINUX_MONO LOGO_LINUX_VGA16 LPC_ICH LRU_GEN LRU_GEN_ENABLED LWTUNNEL LWTUNNEL_BPF LZ4HC_COMPRESS LZ4_COMPRESS MAC80211 MAC80211_DEBUGFS MAC80211_HAS_RC MAC80211_HWSIM MAC80211_MESH MAC80211_RC_DEFAULT_MINSTREL MAC80211_RC_MINSTREL MACSEC MACVLAN MACVTAP MAC_PARTITION MAPPING_DIRTY_HELPERS MD_LINEAR MD_MULTIPATH MD_RAID0 MD_RAID1 MD_RAID10 MD_RAID456 MEDIA_ANALOG_TV_SUPPORT MEDIA_ATTACH MEDIA_CONTROLLER MEDIA_CONTROLLER_DVB MEDIA_CONTROLLER_REQUEST_API MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_SUPPORT_FILTER MEDIA_TUNER MEDIA_TUNER_MSI001 MEMORY_BALLOON MEMORY_HOTPLUG MEMORY_HOTPLUG_DEFAULT_ONLINE MEMORY_ISOLATION MEMREGION MEMSTICK MEMSTICK_REALTEK_USB MEM_SOFT_DIRTY MFD_CORE MFD_SYSCON MHI_BUS MHI_WWAN_CTRL MHP_MEMMAP_ON_MEMORY MICROCHIP_PHY MINIX_FS MINIX_SUBPARTITION MISC_RTSX MISC_RTSX_USB MISDN MISDN_DSP MISDN_HFCUSB MISDN_L1OIP MKISS MLX4_CORE MLX4_INFINIBAND MMC MMC_REALTEK_USB MMC_USHC MMC_VUB300 MMU_NOTIFIER MODULE_SRCVERSION_ALL MODVERSIONS MOST MOUSE_APPLETOUCH MOUSE_BCM5974 MOUSE_PS2 MOUSE_PS2_ALPS MOUSE_PS2_BYD MOUSE_PS2_CYPRESS MOUSE_PS2_FOCALTECH MOUSE_PS2_LIFEBOOK MOUSE_PS2_LOGIPS2PP MOUSE_PS2_SMBUS MOUSE_PS2_SYNAPTICS MOUSE_PS2_SYNAPTICS_SMBUS MOUSE_PS2_TRACKPOINT MOUSE_SYNAPTICS_USB MPLS MPLS_IPTUNNEL MPLS_ROUTING MPTCP MPTCP_IPV6 MRP MTD MTD_BLKDEVS MTD_BLOCK MTD_BLOCK2MTD MTD_CFI_I1 MTD_CFI_I2 MTD_MAP_BANK_WIDTH_1 MTD_MAP_BANK_WIDTH_2 MTD_MAP_BANK_WIDTH_4 MTD_MTDRAM MTD_PHRAM MTD_SLRAM MUSB_PIO_ONLY ND_BTT ND_CLAIM ND_PFN NETDEVSIM NETFILTER_ADVANCED NETFILTER_FAMILY_ARP NETFILTER_FAMILY_BRIDGE NETFILTER_NETLINK_ACCT NETFILTER_NETLINK_GLUE_CT NETFILTER_NETLINK_OSF NETFILTER_NETLINK_QUEUE NETFILTER_SYNPROXY NETFILTER_XT_CONNMARK NETFILTER_XT_MATCH_BPF NETFILTER_XT_MATCH_CGROUP NETFILTER_XT_MATCH_CLUSTER NETFILTER_XT_MATCH_COMMENT NETFILTER_XT_MATCH_CONNBYTES NETFILTER_XT_MATCH_CONNLABEL NETFILTER_XT_MATCH_CONNLIMIT NETFILTER_XT_MATCH_CONNMARK NETFILTER_XT_MATCH_CPU NETFILTER_XT_MATCH_DCCP NETFILTER_XT_MATCH_DEVGROUP NETFILTER_XT_MATCH_DSCP NETFILTER_XT_MATCH_ECN NETFILTER_XT_MATCH_ESP NETFILTER_XT_MATCH_HASHLIMIT NETFILTER_XT_MATCH_HELPER NETFILTER_XT_MATCH_HL NETFILTER_XT_MATCH_IPCOMP NETFILTER_XT_MATCH_IPRANGE NETFILTER_XT_MATCH_IPVS NETFILTER_XT_MATCH_L2TP NETFILTER_XT_MATCH_LENGTH NETFILTER_XT_MATCH_LIMIT NETFILTER_XT_MATCH_MAC NETFILTER_XT_MATCH_MARK NETFILTER_XT_MATCH_MULTIPORT NETFILTER_XT_MATCH_NFACCT NETFILTER_XT_MATCH_OSF NETFILTER_XT_MATCH_OWNER NETFILTER_XT_MATCH_PHYSDEV NETFILTER_XT_MATCH_PKTTYPE NETFILTER_XT_MATCH_QUOTA NETFILTER_XT_MATCH_RATEEST NETFILTER_XT_MATCH_REALM NETFILTER_XT_MATCH_RECENT NETFILTER_XT_MATCH_SCTP NETFILTER_XT_MATCH_SOCKET NETFILTER_XT_MATCH_STATISTIC NETFILTER_XT_MATCH_STRING NETFILTER_XT_MATCH_TCPMSS NETFILTER_XT_MATCH_TIME NETFILTER_XT_MATCH_U32 NETFILTER_XT_SET NETFILTER_XT_TARGET_AUDIT NETFILTER_XT_TARGET_CHECKSUM NETFILTER_XT_TARGET_CLASSIFY NETFILTER_XT_TARGET_CONNMARK NETFILTER_XT_TARGET_CT NETFILTER_XT_TARGET_DSCP NETFILTER_XT_TARGET_HL NETFILTER_XT_TARGET_HMARK NETFILTER_XT_TARGET_IDLETIMER NETFILTER_XT_TARGET_LED NETFILTER_XT_TARGET_MARK NETFILTER_XT_TARGET_NETMAP NETFILTER_XT_TARGET_NFQUEUE NETFILTER_XT_TARGET_NOTRACK NETFILTER_XT_TARGET_RATEEST NETFILTER_XT_TARGET_REDIRECT NETFILTER_XT_TARGET_TCPOPTSTRIP NETFILTER_XT_TARGET_TEE NETFILTER_XT_TARGET_TPROXY NETFILTER_XT_TARGET_TRACE NETLABEL NETLINK_DIAG NETROM NET_9P_RDMA NET_ACT_BPF NET_ACT_CONNMARK NET_ACT_CSUM NET_ACT_CT NET_ACT_CTINFO NET_ACT_GATE NET_ACT_IFE NET_ACT_IPT NET_ACT_MPLS NET_ACT_NAT NET_ACT_PEDIT NET_ACT_POLICE NET_ACT_SAMPLE NET_ACT_SIMP NET_ACT_SKBEDIT NET_ACT_SKBMOD NET_ACT_TUNNEL_KEY NET_ACT_VLAN NET_CLS_BASIC NET_CLS_BPF NET_CLS_FLOW NET_CLS_FLOWER NET_CLS_FW NET_CLS_MATCHALL NET_CLS_ROUTE4 NET_CLS_RSVP NET_CLS_RSVP6 NET_DEVLINK NET_DROP_MONITOR NET_DSA NET_DSA_TAG_BRCM NET_DSA_TAG_BRCM_COMMON NET_DSA_TAG_BRCM_PREPEND NET_DSA_TAG_MTK NET_DSA_TAG_QCA NET_DSA_TAG_RTL4_A NET_EMATCH_CANID NET_EMATCH_CMP NET_EMATCH_IPSET NET_EMATCH_IPT NET_EMATCH_META NET_EMATCH_NBYTE NET_EMATCH_TEXT NET_EMATCH_U32 NET_FC NET_FOU NET_FOU_IP_TUNNELS NET_IFE NET_IFE_SKBMARK NET_IFE_SKBPRIO NET_IFE_SKBTCINDEX NET_IPGRE NET_IPGRE_BROADCAST NET_IPGRE_DEMUX NET_IPIP NET_IPVTI NET_KEY NET_KEY_MIGRATE NET_L3_MASTER_DEV NET_MPLS_GSO NET_NCSI NET_NSH NET_REDIRECT NET_SCH_ATM NET_SCH_CAKE NET_SCH_CBQ NET_SCH_CBS NET_SCH_CHOKE NET_SCH_CODEL NET_SCH_DRR NET_SCH_DSMARK NET_SCH_ETF NET_SCH_ETS NET_SCH_FQ NET_SCH_FQ_CODEL NET_SCH_FQ_PIE NET_SCH_GRED NET_SCH_HFSC NET_SCH_HHF NET_SCH_HTB NET_SCH_INGRESS NET_SCH_MQPRIO NET_SCH_MULTIQ NET_SCH_NETEM NET_SCH_PIE NET_SCH_PLUG NET_SCH_PRIO NET_SCH_QFQ NET_SCH_RED NET_SCH_SFB NET_SCH_SFQ NET_SCH_SKBPRIO NET_SCH_TAPRIO NET_SCH_TBF NET_SCH_TEQL NET_SOCK_MSG NET_SWITCHDEV NET_TC_SKB_EXT NET_TEAM NET_TEAM_MODE_ACTIVEBACKUP NET_TEAM_MODE_BROADCAST NET_TEAM_MODE_LOADBALANCE NET_TEAM_MODE_RANDOM NET_TEAM_MODE_ROUNDROBIN NET_UDP_TUNNEL NET_VRF NFC NFC_DIGITAL NFC_FDP NFC_HCI NFC_MRVL NFC_MRVL_USB NFC_NCI NFC_NCI_UART NFC_PN533 NFC_PN533_USB NFC_PORT100 NFC_SHDLC NFC_SIM NFC_VIRTUAL_NCI NFSD NFSD_BLOCKLAYOUT NFSD_FLEXFILELAYOUT NFSD_PNFS NFSD_SCSILAYOUT NFSD_V2_ACL NFSD_V3_ACL NFSD_V4 NFSD_V4_2_INTER_SSC NFSD_V4_SECURITY_LABEL NFS_FSCACHE NFS_V4_1 NFS_V4_2 NFS_V4_2_READ_PLUS NFS_V4_2_SSC_HELPER NFS_V4_SECURITY_LABEL NFT_BRIDGE_META NFT_BRIDGE_REJECT NFT_COMPAT NFT_CONNLIMIT NFT_CT NFT_DUP_IPV4 NFT_DUP_IPV6 NFT_DUP_NETDEV NFT_FIB NFT_FIB_INET NFT_FIB_IPV4 NFT_FIB_IPV6 NFT_FIB_NETDEV NFT_FLOW_OFFLOAD NFT_HASH NFT_LIMIT NFT_LOG NFT_MASQ NFT_NAT NFT_NUMGEN NFT_OSF NFT_QUEUE NFT_QUOTA NFT_REDIR NFT_REJECT NFT_REJECT_INET NFT_REJECT_IPV4 NFT_REJECT_IPV6 NFT_REJECT_NETDEV NFT_SOCKET NFT_SYNPROXY NFT_TPROXY NFT_TUNNEL NFT_XFRM NF_CONNTRACK_AMANDA NF_CONNTRACK_BRIDGE NF_CONNTRACK_BROADCAST NF_CONNTRACK_EVENTS NF_CONNTRACK_H323 NF_CONNTRACK_LABELS NF_CONNTRACK_MARK NF_CONNTRACK_NETBIOS_NS NF_CONNTRACK_PPTP NF_CONNTRACK_SANE NF_CONNTRACK_SNMP NF_CONNTRACK_TFTP NF_CONNTRACK_TIMEOUT NF_CONNTRACK_TIMESTAMP NF_CONNTRACK_ZONES NF_CT_NETLINK_HELPER NF_CT_NETLINK_TIMEOUT NF_CT_PROTO_DCCP NF_CT_PROTO_GRE NF_CT_PROTO_SCTP NF_CT_PROTO_UDPLITE NF_DUP_IPV4 NF_DUP_IPV6 NF_DUP_NETDEV NF_FLOW_TABLE NF_FLOW_TABLE_INET NF_NAT_AMANDA NF_NAT_H323 NF_NAT_PPTP NF_NAT_REDIRECT NF_NAT_SNMP_BASIC NF_NAT_TFTP NF_SOCKET_IPV4 NF_SOCKET_IPV6 NF_TABLES NF_TABLES_ARP NF_TABLES_BRIDGE NF_TABLES_INET NF_TABLES_IPV4 NF_TABLES_IPV6 NF_TABLES_NETDEV PARTITION_ADVANCED PSAMPLE RC_CORE RC_DEVICES RFKILL SPI USB_GADGET USB_MUSB_HDRC VIDEO_DEV WAN WATCH_QUEUE WIRELESS WLAN WWAN X25 X86_X32_ABI] disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing current HEAD 4aa6747d935281df8a1888feeb6e22e0097d0b86 testing commit 4aa6747d935281df8a1888feeb6e22e0097d0b86 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ea348222f713d68bcc60fb98dcb689c6b93ad686f7b29ad833285d95c5c2486 all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h2m27.52995048s (build: 29m35.144630548s, test: 30m4.809435214s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.69 crash: possible deadlock in input_event ===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.1.69-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/2828 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888101bc2080 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:996 [inline] ffff888101bc2080 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x153/0x370 fs/fcntl.c:1017 and this task is already holding: ffff888105ee2028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff888105ee2028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0x81/0x3d0 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{2:2} -> (&new->fa_lock){....}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock){-...}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162 input_event+0x73/0xb0 drivers/input/input.c:430 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:121 [inline] psmouse_report_standard_packet+0x2f/0xf0 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x2a0/0x2d0 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x17/0x190 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x368/0x650 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x48/0xc0 drivers/input/serio/serio.c:998 i8042_interrupt+0x2be/0x540 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0xf3/0x460 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x35/0xa0 kernel/irq/handle.c:210 handle_edge_irq+0xff/0x370 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xa3/0x140 arch/x86/kernel/irq.c:250 common_interrupt+0x9a/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x63/0xb0 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x82/0xb0 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0xad/0x3e0 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x32/0x90 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x145/0x520 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x43/0xf0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1021 [inline] psmouse_extensions+0xa06/0xe10 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x244/0x370 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x404/0x7e0 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x37/0x50 drivers/input/serio/serio.c:775 really_probe+0x1c5/0x690 drivers/base/dd.c:639 __driver_probe_device+0xdf/0x1e0 drivers/base/dd.c:785 driver_probe_device+0x2e/0x240 drivers/base/dd.c:815 __device_attach_driver+0x183/0x2c0 drivers/base/dd.c:943 bus_for_each_drv+0xba/0x120 drivers/base/bus.c:427 __device_attach+0x158/0x230 drivers/base/dd.c:1015 bus_probe_device+0x5f/0x100 drivers/base/bus.c:487 device_add+0x740/0x8e0 drivers/base/core.c:3664 serio_add_port drivers/input/serio/serio.c:539 [inline] serio_handle_event+0x3bc/0x4d0 drivers/input/serio/serio.c:207 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0xf8/0x4b0 kernel/exit.c:1602 kernel_wait+0x9e/0x100 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0x8f/0x120 kernel/umh.c:167 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 other info that might help us debug this: Chain exists of: &dev->event_lock --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock); lock(&client->buffer_lock); lock(&dev->event_lock); *** DEADLOCK *** 7 locks held by syz-executor.0/2828: #0: ffff8881026f3110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x109/0x370 drivers/input/evdev.c:513 #1: ffff888106a41a30 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0x79/0x2c0 drivers/input/input.c:456 #2: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline] #2: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #2: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x89/0x2c0 drivers/input/input.c:458 #3: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline] #3: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #3: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: input_pass_values+0x67/0x720 drivers/input/input.c:151 #4: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline] #4: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #4: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x35/0x280 drivers/input/evdev.c:298 #5: ffff888105ee2028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #5: ffff888105ee2028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0x81/0x3d0 drivers/input/evdev.c:261 #6: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline] #6: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #6: ffffffff83ba8890 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x2c/0x370 fs/fcntl.c:1016 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162 input_event+0x73/0xb0 drivers/input/input.c:430 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:121 [inline] psmouse_report_standard_packet+0x2f/0xf0 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x2a0/0x2d0 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x17/0x190 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x368/0x650 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x48/0xc0 drivers/input/serio/serio.c:998 i8042_interrupt+0x2be/0x540 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0xf3/0x460 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x35/0xa0 kernel/irq/handle.c:210 handle_edge_irq+0xff/0x370 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xa3/0x140 arch/x86/kernel/irq.c:250 common_interrupt+0x9a/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:644 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x63/0xb0 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] i8042_command drivers/input/serio/i8042.c:356 [inline] i8042_aux_write+0x82/0xb0 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0xad/0x3e0 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x32/0x90 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x145/0x520 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x43/0xf0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1021 [inline] psmouse_extensions+0xa06/0xe10 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x244/0x370 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x404/0x7e0 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x37/0x50 drivers/input/serio/serio.c:775 really_probe+0x1c5/0x690 drivers/base/dd.c:639 __driver_probe_device+0xdf/0x1e0 drivers/base/dd.c:785 driver_probe_device+0x2e/0x240 drivers/base/dd.c:815 __device_attach_driver+0x183/0x2c0 drivers/base/dd.c:943 bus_for_each_drv+0xba/0x120 drivers/base/bus.c:427 __device_attach+0x158/0x230 drivers/base/dd.c:1015 bus_probe_device+0x5f/0x100 drivers/base/bus.c:487 device_add+0x740/0x8e0 drivers/base/core.c:3664 serio_add_port drivers/input/serio/serio.c:539 [inline] serio_handle_event+0x3bc/0x4d0 drivers/input/serio/serio.c:207 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INITIAL USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162 input_inject_event+0x79/0x2c0 drivers/input/input.c:456 kbd_update_leds_helper+0x5a/0xb0 drivers/tty/vt/keyboard.c:1118 kbd_start+0x4e/0x60 drivers/tty/vt/keyboard.c:1622 input_register_handle+0x13c/0x160 drivers/input/input.c:2579 kbd_connect+0x45/0xb0 drivers/tty/vt/keyboard.c:1589 input_attach_handler drivers/input/input.c:1060 [inline] input_register_device+0x754/0x8a0 drivers/input/input.c:2396 atkbd_connect+0x3ab/0x460 drivers/input/keyboard/atkbd.c:1278 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x37/0x50 drivers/input/serio/serio.c:775 really_probe+0x1c5/0x690 drivers/base/dd.c:639 __driver_probe_device+0xdf/0x1e0 drivers/base/dd.c:785 driver_probe_device+0x2e/0x240 drivers/base/dd.c:815 __device_attach_driver+0x183/0x2c0 drivers/base/dd.c:943 bus_for_each_drv+0xba/0x120 drivers/base/bus.c:427 __device_attach+0x158/0x230 drivers/base/dd.c:1015 bus_probe_device+0x5f/0x100 drivers/base/bus.c:487 device_add+0x740/0x8e0 drivers/base/core.c:3664 serio_add_port drivers/input/serio/serio.c:539 [inline] serio_handle_event+0x3bc/0x4d0 drivers/input/serio/serio.c:207 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 } ... key at: [] input_allocate_device.__key.6+0x0/0x10 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] evdev_pass_values+0x81/0x3d0 drivers/input/evdev.c:261 evdev_events+0x157/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x2fe/0x720 drivers/input/input.c:159 input_event_dispose+0x159/0x1d0 drivers/input/input.c:374 input_inject_event+0x1a7/0x2c0 drivers/input/input.c:461 evdev_write+0x2a3/0x370 drivers/input/evdev.c:530 vfs_write+0x153/0x460 fs/read_write.c:582 ksys_write+0xc2/0x170 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] evdev_open.__key.14+0x0/0x10 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] evdev_pass_values+0x81/0x3d0 drivers/input/evdev.c:261 evdev_events+0x157/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x2fe/0x720 drivers/input/input.c:159 input_event_dispose+0x159/0x1d0 drivers/input/input.c:374 input_inject_event+0x1a7/0x2c0 drivers/input/input.c:461 evdev_write+0x2a3/0x370 drivers/input/evdev.c:530 vfs_write+0x153/0x460 fs/read_write.c:582 ksys_write+0xc2/0x170 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0xf8/0x4b0 kernel/exit.c:1602 kernel_wait+0x9e/0x100 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0x8f/0x120 kernel/umh.c:167 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 SOFTIRQ-ON-R at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0xf8/0x4b0 kernel/exit.c:1602 kernel_wait+0x9e/0x100 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0x8f/0x120 kernel/umh.c:167 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INITIAL USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x58/0x80 kernel/locking/spinlock.c:326 copy_process+0x102d/0x1b00 kernel/fork.c:2401 kernel_clone+0x18b/0x570 kernel/fork.c:2682 user_mode_thread+0xca/0xf0 kernel/fork.c:2758 rest_init+0x21/0x290 init/main.c:696 start_kernel+0x0/0x415 init/main.c:891 start_kernel+0x3da/0x415 init/main.c:1138 secondary_startup_64_no_verify+0xcf/0xdb INITIAL READ USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0xf8/0x4b0 kernel/exit.c:1602 kernel_wait+0x9e/0x100 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0x8f/0x120 kernel/umh.c:167 process_one_work+0x30d/0x700 kernel/workqueue.c:2292 worker_thread+0x324/0x580 kernel/workqueue.c:2439 kthread+0xf5/0x120 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xbd/0x280 fs/fcntl.c:792 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1a7/0x370 fs/fcntl.c:1017 lease_break_callback+0x22/0x30 fs/locks.c:521 __break_lease+0x233/0x9b0 fs/locks.c:1521 break_lease include/linux/fs.h:2697 [inline] do_dentry_open+0x3e2/0x6a0 fs/open.c:873 do_open fs/namei.c:3558 [inline] path_openat+0x116c/0x1580 fs/namei.c:3715 do_filp_open+0xc5/0x1b0 fs/namei.c:3742 do_sys_openat2+0xb5/0x250 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0xc7/0xf0 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x58/0x80 kernel/locking/spinlock.c:326 f_modown+0x29/0x130 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown_ex fs/fcntl.c:200 [inline] do_fcntl+0xb3d/0xc00 fs/fcntl.c:383 __do_sys_fcntl fs/fcntl.c:454 [inline] __se_sys_fcntl+0xb6/0x170 fs/fcntl.c:439 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x65/0xa0 kernel/locking/spinlock.c:236 send_sigio+0x25/0x280 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1a7/0x370 fs/fcntl.c:1017 lease_break_callback+0x22/0x30 fs/locks.c:521 __break_lease+0x233/0x9b0 fs/locks.c:1521 break_lease include/linux/fs.h:2697 [inline] do_dentry_open+0x3e2/0x6a0 fs/open.c:873 do_open fs/namei.c:3558 [inline] path_openat+0x116c/0x1580 fs/namei.c:3715 do_filp_open+0xc5/0x1b0 fs/namei.c:3742 do_sys_openat2+0xb5/0x250 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0xc7/0xf0 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x65/0xa0 kernel/locking/spinlock.c:236 send_sigio+0x25/0x280 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1a7/0x370 fs/fcntl.c:1017 lease_break_callback+0x22/0x30 fs/locks.c:521 __break_lease+0x233/0x9b0 fs/locks.c:1521 break_lease include/linux/fs.h:2697 [inline] do_dentry_open+0x3e2/0x6a0 fs/open.c:873 do_open fs/namei.c:3558 [inline] path_openat+0x116c/0x1580 fs/namei.c:3715 do_filp_open+0xc5/0x1b0 fs/namei.c:3742 do_sys_openat2+0xb5/0x250 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0xc7/0xf0 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x65/0xa0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x153/0x370 fs/fcntl.c:1017 lease_break_callback+0x22/0x30 fs/locks.c:521 __break_lease+0x233/0x9b0 fs/locks.c:1521 break_lease include/linux/fs.h:2697 [inline] do_dentry_open+0x3e2/0x6a0 fs/open.c:873 do_open fs/namei.c:3558 [inline] path_openat+0x116c/0x1580 fs/namei.c:3715 do_filp_open+0xc5/0x1b0 fs/namei.c:3742 do_sys_openat2+0xb5/0x250 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0xc7/0xf0 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] fasync_insert_entry.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x65/0xa0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x153/0x370 fs/fcntl.c:1017 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x2e4/0x3d0 drivers/input/evdev.c:278 evdev_events+0x157/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x2fe/0x720 drivers/input/input.c:159 input_event_dispose+0x159/0x1d0 drivers/input/input.c:374 input_inject_event+0x1a7/0x2c0 drivers/input/input.c:461 evdev_write+0x2a3/0x370 drivers/input/evdev.c:530 vfs_write+0x153/0x460 fs/read_write.c:582 ksys_write+0xc2/0x170 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 0 PID: 2828 Comm: syz-executor.0 Not tainted 6.1.69-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xfa/0x181 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2604 [inline] check_irq_usage kernel/locking/lockdep.c:2843 [inline] check_prev_add kernel/locking/lockdep.c:3094 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain kernel/locking/lockdep.c:3825 [inline] __lock_acquire+0x2753/0x2830 kernel/locking/lockdep.c:5049 lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x65/0xa0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x153/0x370 fs/fcntl.c:1017 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x2e4/0x3d0 drivers/input/evdev.c:278 evdev_events+0x157/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x2fe/0x720 drivers/input/input.c:159 input_event_dispose+0x159/0x1d0 drivers/input/input.c:374 input_inject_event+0x1a7/0x2c0 drivers/input/input.c:461 evdev_write+0x2a3/0x370 drivers/input/evdev.c:530 vfs_write+0x153/0x460 fs/read_write.c:582 ksys_write+0xc2/0x170 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc0f8588ae9 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:00007fc0f810b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc0f86a7f80 RCX: 00007fc0f8588ae9 RDX: 0000000000000079 RSI: 000000002004d000 RDI: 0000000000000005 RBP: 00007fc0f85d447a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fc0f86a7f80 R15: 00007ffdaa9b25a8