ci2 starts bisection 2024-01-05 22:45:22.706921999 +0000 UTC m=+102.833100276 bisecting fixing commit since d54cfc420586425d418a53871290cc4a59d33501 building syzkaller on 022df2bb9a105c303cf24c910b8e787cf642a3f3 ensuring issue is reproducible on original commit d54cfc420586425d418a53871290cc4a59d33501 testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c54bfd2b2aff0f8efbaf8a7872162f0e40742671e80c66b73138375d223bd579 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 [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e6e95968ef1daf39a65bbdcac5311a613de38057ae67c16064d0efd9a4dd25de 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 [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=3703 full=7267 leaves diff=1985 split chunks (needed=false): <1985> split chunk #0 of len 1985 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 492fc1b21a86d63c0eb5c2417b6a34725c79ed86f6ab3f6d412ded13d597e0ce 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 d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 92be2cd8dfde7f21d70833f18c4a1d2a81ed65310cfbaed4f711c7ba830d90c4 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 [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f423fa753b230cbf4d7ecc9347936c57debb02efa86dbfc52d13089f8851e8a0 all runs: OK false negative chance: 0.000 testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5cdb2678808a9f01cd935917c622acc1ed393b15b0cddc16449d79668b9b6fa5 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 [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b1f120b4e8ad2cd5afaceedb5b6a68b46e2712c8abf053d2003d541d0e84ed2a all runs: crashed: possible deadlock in input_event representative crash: possible deadlock in input_event, types: [LOCKDEP] the chunk can be dropped minimized to 397 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 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_INTEL 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 LIBNVDIMM LINEAR_RANGES LLC LLC2 LOGIG940_FF LOGIRUMBLEPAD2_FF LOGO LOGO_LINUX_MONO LOGO_LINUX_VGA16 LPC_ICH 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 MEDIA_TUNER_XC2028 MEDIA_TUNER_XC5000 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_BLK 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 NETFS_SUPPORT 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_CGROUP 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_EGRESS 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 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_COUNTER 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_OBJREF 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_FLOW_TABLE_IPV4 NF_FLOW_TABLE_IPV6 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 NF_TPROXY_IPV4 NF_TPROXY_IPV6 NILFS2_FS NLMON NLS_CODEPAGE_1250 NLS_CODEPAGE_1251 PARTITION_ADVANCED PSAMPLE RFKILL SPI USB_GADGET USB_MUSB_HDRC VIDEO_DEV VIDEO_V4L2 WAN WATCH_QUEUE WIRELESS WLAN WWAN X25 X86_X32] disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 26c690eff0a56293e0b6911a38e406c211b35547 testing commit 26c690eff0a56293e0b6911a38e406c211b35547 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f2a12ded8cee6599a638e6229e5032f5851b76932dad6a10a71bef237adbd060 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: 1h53m25.698900503s (build: 34m24.543003987s, test: 47m17.615989538s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.146 crash: possible deadlock in input_event ===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.146-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/2794 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88810c5c7080 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1014 [inline] ffff88810c5c7080 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1035 [inline] ffff88810c5c7080 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0xc7/0x3b0 fs/fcntl.c:1028 and this task is already holding: ffff888112948028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] ffff888112948028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0x6a/0x330 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 kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x50 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:456 [inline] input_event+0x6c/0xa0 drivers/input/input.c:449 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x2c/0x80 drivers/input/mouse/psmouse-base.c:123 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:141 [inline] psmouse_process_byte+0xa5/0x390 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x15/0xc0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x17a/0x650 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x47/0xc0 drivers/input/serio/serio.c:1001 i8042_interrupt+0x259/0x420 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x15c/0x310 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x57/0xd0 kernel/irq/handle.c:213 handle_edge_irq+0xcd/0x330 kernel/irq/chip.c:822 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x40/0xd0 arch/x86/kernel/irq.c:250 common_interrupt+0x7b/0xa0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:629 __preempt_count_sub arch/x86/include/asm/preempt.h:85 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0x3a/0x50 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command+0x12e/0x150 drivers/input/serio/i8042.c:356 i8042_aux_write+0x4c/0x60 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x136/0x350 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x39/0x90 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte+0x25/0xc0 drivers/input/mouse/cypress_ps2.c:42 cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x13f/0x630 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x33/0xf0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol+0x128/0x1c0 drivers/input/mouse/psmouse-base.c:1023 psmouse_extensions+0x4d3/0x830 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x1d4/0x250 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x26a/0x5c0 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x36/0x50 drivers/input/serio/serio.c:778 call_driver_probe drivers/base/dd.c:516 [inline] really_probe+0x138/0x520 drivers/base/dd.c:595 __driver_probe_device+0x149/0x1c0 drivers/base/dd.c:755 driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 __driver_attach+0x178/0x290 drivers/base/dd.c:1164 bus_for_each_dev+0xac/0x100 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x311/0x400 drivers/input/serio/serio.c:227 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:228 do_wait+0xe6/0x4c0 kernel/exit.c:1576 kernel_wait+0x4b/0xb0 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xa9/0x120 kernel/umh.c:166 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 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/2794: #0: ffff888101db3110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0xd4/0x360 drivers/input/evdev.c:513 #1: ffff88810279c230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0x79/0x330 drivers/input/input.c:482 #2: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:64 [inline] #2: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:61 [inline] #2: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x65/0x330 drivers/input/input.c:481 #3: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x460 include/linux/rcupdate.h:725 #4: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x0/0x310 drivers/input/evdev.c:283 #5: ffff888112948028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff888112948028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values.part.0+0x6a/0x330 drivers/input/evdev.c:261 #6: ffffffff839a2600 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x22/0x3b0 fs/fcntl.c:1033 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x50 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:456 [inline] input_event+0x6c/0xa0 drivers/input/input.c:449 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x2c/0x80 drivers/input/mouse/psmouse-base.c:123 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:141 [inline] psmouse_process_byte+0xa5/0x390 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x15/0xc0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x17a/0x650 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x47/0xc0 drivers/input/serio/serio.c:1001 i8042_interrupt+0x259/0x420 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x15c/0x310 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x57/0xd0 kernel/irq/handle.c:213 handle_edge_irq+0xcd/0x330 kernel/irq/chip.c:822 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x40/0xd0 arch/x86/kernel/irq.c:250 common_interrupt+0x7b/0xa0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:629 __preempt_count_sub arch/x86/include/asm/preempt.h:85 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0x3a/0x50 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command+0x12e/0x150 drivers/input/serio/i8042.c:356 i8042_aux_write+0x4c/0x60 drivers/input/serio/i8042.c:391 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x136/0x350 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x39/0x90 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte+0x25/0xc0 drivers/input/mouse/cypress_ps2.c:42 cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x13f/0x630 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x33/0xf0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol+0x128/0x1c0 drivers/input/mouse/psmouse-base.c:1023 psmouse_extensions+0x4d3/0x830 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x1d4/0x250 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x26a/0x5c0 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x36/0x50 drivers/input/serio/serio.c:778 call_driver_probe drivers/base/dd.c:516 [inline] really_probe+0x138/0x520 drivers/base/dd.c:595 __driver_probe_device+0x149/0x1c0 drivers/base/dd.c:755 driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 __driver_attach+0x178/0x290 drivers/base/dd.c:1164 bus_for_each_dev+0xac/0x100 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x311/0x400 drivers/input/serio/serio.c:227 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x36/0x50 kernel/locking/spinlock.c:162 input_inject_event+0x79/0x330 drivers/input/input.c:482 kbd_update_leds_helper+0x5e/0xc0 drivers/tty/vt/keyboard.c:1111 kbd_start+0x4e/0x60 drivers/tty/vt/keyboard.c:1610 input_register_handle+0x127/0x1b0 drivers/input/input.c:2537 kbd_connect+0x4a/0xb0 drivers/tty/vt/keyboard.c:1577 input_attach_handler+0xd5/0x120 drivers/input/input.c:1046 input_register_device.cold+0xdf/0x1c5 drivers/input/input.c:2354 atkbd_connect+0x379/0x4c0 drivers/input/keyboard/atkbd.c:1293 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x36/0x50 drivers/input/serio/serio.c:778 call_driver_probe drivers/base/dd.c:516 [inline] really_probe+0x138/0x520 drivers/base/dd.c:595 __driver_probe_device+0x149/0x1c0 drivers/base/dd.c:755 driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 __driver_attach+0x178/0x290 drivers/base/dd.c:1164 bus_for_each_dev+0xac/0x100 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x311/0x400 drivers/input/serio/serio.c:227 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 } ... key at: [] __key.7+0x0/0x10 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values.part.0+0x6a/0x330 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x2ec/0x310 drivers/input/evdev.c:306 input_to_handler+0xe4/0x150 drivers/input/input.c:126 input_pass_values.part.0+0x2ab/0x460 drivers/input/input.c:156 input_pass_values drivers/input/input.c:145 [inline] input_handle_event+0x20f/0xa70 drivers/input/input.c:415 input_inject_event+0x17a/0x330 drivers/input/input.c:487 evdev_write+0x218/0x360 drivers/input/evdev.c:530 vfs_write+0x156/0x560 fs/read_write.c:592 ksys_write+0x137/0x170 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] __key.1+0x0/0x10 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values.part.0+0x6a/0x330 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x2ec/0x310 drivers/input/evdev.c:306 input_to_handler+0xe4/0x150 drivers/input/input.c:126 input_pass_values.part.0+0x2ab/0x460 drivers/input/input.c:156 input_pass_values drivers/input/input.c:145 [inline] input_handle_event+0x20f/0xa70 drivers/input/input.c:415 input_inject_event+0x17a/0x330 drivers/input/input.c:487 evdev_write+0x218/0x360 drivers/input/evdev.c:530 vfs_write+0x156/0x560 fs/read_write.c:592 ksys_write+0x137/0x170 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:228 do_wait+0xe6/0x4c0 kernel/exit.c:1576 kernel_wait+0x4b/0xb0 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xa9/0x120 kernel/umh.c:166 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:228 do_wait+0xe6/0x4c0 kernel/exit.c:1576 kernel_wait+0x4b/0xb0 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xa9/0x120 kernel/umh.c:166 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x2f/0x40 kernel/locking/spinlock.c:316 copy_process+0x1d28/0x33e0 kernel/fork.c:2337 kernel_clone+0xf3/0x5a0 kernel/fork.c:2604 kernel_thread+0x61/0x80 kernel/fork.c:2656 rest_init+0x1f/0x3d0 init/main.c:703 start_kernel+0x69e/0x6c5 init/main.c:1137 secondary_startup_64_no_verify+0xb0/0xbb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:228 do_wait+0xe6/0x4c0 kernel/exit.c:1576 kernel_wait+0x4b/0xb0 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xa9/0x120 kernel/umh.c:166 process_one_work+0x32a/0x680 kernel/workqueue.c:2310 worker_thread+0x5b/0x520 kernel/workqueue.c:2457 kthread+0x148/0x170 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x58/0x70 kernel/locking/spinlock.c:228 send_sigio+0x67/0x2d0 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x11d/0x3b0 fs/fcntl.c:1028 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x212/0xb60 fs/locks.c:1560 break_lease include/linux/fs.h:2619 [inline] break_lease include/linux/fs.h:2609 [inline] do_dentry_open+0x2ce/0x660 fs/open.c:817 do_open fs/namei.c:3614 [inline] path_openat+0xe39/0x1380 fs/namei.c:3748 do_filp_open+0xc1/0x1b0 fs/namei.c:3775 do_sys_openat2+0xed/0x260 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_open fs/open.c:1235 [inline] __se_sys_open fs/open.c:1231 [inline] __x64_sys_open+0x7d/0xe0 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x2f/0x40 kernel/locking/spinlock.c:316 f_modown+0x27/0x150 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown_ex fs/fcntl.c:200 [inline] do_fcntl+0x78a/0xc00 fs/fcntl.c:399 __do_sys_fcntl fs/fcntl.c:472 [inline] __se_sys_fcntl fs/fcntl.c:457 [inline] __x64_sys_fcntl+0xd7/0x120 fs/fcntl.c:457 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x6d/0x90 kernel/locking/spinlock.c:236 send_sigio+0x24/0x2d0 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x11d/0x3b0 fs/fcntl.c:1028 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x212/0xb60 fs/locks.c:1560 break_lease include/linux/fs.h:2619 [inline] break_lease include/linux/fs.h:2609 [inline] do_dentry_open+0x2ce/0x660 fs/open.c:817 do_open fs/namei.c:3614 [inline] path_openat+0xe39/0x1380 fs/namei.c:3748 do_filp_open+0xc1/0x1b0 fs/namei.c:3775 do_sys_openat2+0xed/0x260 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_open fs/open.c:1235 [inline] __se_sys_open fs/open.c:1231 [inline] __x64_sys_open+0x7d/0xe0 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] __key.3+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x6d/0x90 kernel/locking/spinlock.c:236 send_sigio+0x24/0x2d0 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0x11d/0x3b0 fs/fcntl.c:1028 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x212/0xb60 fs/locks.c:1560 break_lease include/linux/fs.h:2619 [inline] break_lease include/linux/fs.h:2609 [inline] do_dentry_open+0x2ce/0x660 fs/open.c:817 do_open fs/namei.c:3614 [inline] path_openat+0xe39/0x1380 fs/namei.c:3748 do_filp_open+0xc1/0x1b0 fs/namei.c:3775 do_sys_openat2+0xed/0x260 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_open fs/open.c:1235 [inline] __se_sys_open fs/open.c:1231 [inline] __x64_sys_open+0x7d/0xe0 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x6d/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0xc7/0x3b0 fs/fcntl.c:1028 lease_break_callback+0x1f/0x30 fs/locks.c:585 __break_lease+0x212/0xb60 fs/locks.c:1560 break_lease include/linux/fs.h:2619 [inline] break_lease include/linux/fs.h:2609 [inline] do_dentry_open+0x2ce/0x660 fs/open.c:817 do_open fs/namei.c:3614 [inline] path_openat+0xe39/0x1380 fs/namei.c:3748 do_filp_open+0xc1/0x1b0 fs/namei.c:3775 do_sys_openat2+0xed/0x260 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_open fs/open.c:1235 [inline] __se_sys_open fs/open.c:1231 [inline] __x64_sys_open+0x7d/0xe0 fs/open.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb } ... key at: [] __key.0+0x0/0x10 ... acquired at: lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x6d/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0xc7/0x3b0 fs/fcntl.c:1028 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x2cc/0x330 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x2ec/0x310 drivers/input/evdev.c:306 input_to_handler+0xe4/0x150 drivers/input/input.c:126 input_pass_values.part.0+0x2ab/0x460 drivers/input/input.c:156 input_pass_values drivers/input/input.c:145 [inline] input_handle_event+0x20f/0xa70 drivers/input/input.c:415 input_inject_event+0x17a/0x330 drivers/input/input.c:487 evdev_write+0x218/0x360 drivers/input/evdev.c:530 vfs_write+0x156/0x560 fs/read_write.c:592 ksys_write+0x137/0x170 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb stack backtrace: CPU: 0 PID: 2794 Comm: syz-executor.0 Not tainted 5.15.146-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+0xcd/0x134 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline] check_irq_usage.cold+0x251/0x256 kernel/locking/lockdep.c:2806 check_prev_add kernel/locking/lockdep.c:3057 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x10cc/0x1a40 kernel/locking/lockdep.c:5012 lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0x6d/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync fs/fcntl.c:1035 [inline] kill_fasync+0xc7/0x3b0 fs/fcntl.c:1028 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x2cc/0x330 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x2ec/0x310 drivers/input/evdev.c:306 input_to_handler+0xe4/0x150 drivers/input/input.c:126 input_pass_values.part.0+0x2ab/0x460 drivers/input/input.c:156 input_pass_values drivers/input/input.c:145 [inline] input_handle_event+0x20f/0xa70 drivers/input/input.c:415 input_inject_event+0x17a/0x330 drivers/input/input.c:487 evdev_write+0x218/0x360 drivers/input/evdev.c:530 vfs_write+0x156/0x560 fs/read_write.c:592 ksys_write+0x137/0x170 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea1382db29 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:00007fea133b00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fea1394cf80 RCX: 00007fea1382db29 RDX: 0000000000000079 RSI: 000000002004d000 RDI: 0000000000000005 RBP: 00007fea1387947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fea1394cf80 R15: 00007ffc81f23468