ci starts bisection 2024-11-24 14:27:34.808959574 +0000 UTC m=+166126.365996601 bisecting fixing commit since 2ebe81c814355d000fe49d9c4213983844dcb32b building syzkaller on 28b24332d95f2f7df44ec7e7a5e0025bcadc6277 ensuring issue is reproducible on original commit 2ebe81c814355d000fe49d9c4213983844dcb32b testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a1847790f74a0832f7ded789363b9eea0d28a4fdc3b042a6bedc2cb172836a66 all runs: crashed: possible deadlock in console_flush_all representative crash: possible deadlock in console_flush_all, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a7a9c38c56e3291c3973b2a43e13b0f3f931b0e113a267e567608f7c77e5e268 run #0: crashed: possible deadlock in console_flush_all run #1: crashed: possible deadlock in console_flush_all run #2: crashed: possible deadlock in console_flush_all run #3: crashed: possible deadlock in console_flush_all run #4: crashed: possible deadlock in task_fork_fair run #5: crashed: possible deadlock in task_fork_fair run #6: crashed: possible deadlock in console_flush_all run #7: crashed: possible deadlock in console_flush_all run #8: crashed: possible deadlock in console_flush_all run #9: crashed: possible deadlock in console_flush_all representative crash: possible deadlock in console_flush_all, 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=4045 full=7654 leaves diff=2013 split chunks (needed=false): <2013> split chunk #0 of len 2013 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: de1f0f3b85ce8edca719d23042f12f7441ade0e6e69dfdcd6d57ac6c57d505b3 run #0: crashed: possible deadlock in console_flush_all run #1: crashed: possible deadlock in console_flush_all run #2: crashed: possible deadlock in console_flush_all run #3: crashed: possible deadlock in console_flush_all run #4: crashed: possible deadlock in task_fork_fair run #5: crashed: possible deadlock in task_fork_fair run #6: crashed: possible deadlock in console_flush_all run #7: crashed: possible deadlock in console_flush_all run #8: crashed: possible deadlock in task_fork_fair run #9: crashed: possible deadlock in task_fork_fair representative crash: possible deadlock in console_flush_all, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d7eb68a4e9c2daf5863f377eca0d1b81aafb6225eeb3ecb15bae7a7b9bcbace2 run #0: crashed: possible deadlock in console_flush_all run #1: crashed: possible deadlock in console_flush_all run #2: crashed: possible deadlock in console_flush_all run #3: crashed: possible deadlock in console_flush_all run #4: crashed: possible deadlock in console_flush_all run #5: crashed: possible deadlock in console_flush_all run #6: crashed: possible deadlock in task_fork_fair run #7: crashed: possible deadlock in console_flush_all run #8: crashed: possible deadlock in console_flush_all run #9: crashed: possible deadlock in console_flush_all representative crash: possible deadlock in console_flush_all, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 08e2195991d89ba5d39e695c218dc7b463dcb7d215a2df956ff2439614dcd4f4 run #0: crashed: possible deadlock in task_fork_fair run #1: crashed: possible deadlock in task_fork_fair run #2: crashed: possible deadlock in console_flush_all run #3: crashed: possible deadlock in task_fork_fair run #4: crashed: possible deadlock in task_fork_fair run #5: crashed: possible deadlock in task_fork_fair run #6: crashed: possible deadlock in task_fork_fair run #7: crashed: possible deadlock in task_fork_fair run #8: crashed: possible deadlock in console_flush_all run #9: crashed: possible deadlock in task_fork_fair representative crash: possible deadlock in task_fork_fair, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 168900be40cefe03898a285b76a44c7689dd0174901621900db06faf08c2aa52 run #0: crashed: possible deadlock in console_flush_all run #1: crashed: possible deadlock in console_flush_all run #2: crashed: possible deadlock in task_fork_fair run #3: crashed: possible deadlock in task_fork_fair run #4: crashed: possible deadlock in console_flush_all run #5: crashed: possible deadlock in console_flush_all run #6: crashed: possible deadlock in console_flush_all run #7: crashed: possible deadlock in console_flush_all run #8: crashed: possible deadlock in console_flush_all run #9: crashed: possible deadlock in task_fork_fair representative crash: possible deadlock in console_flush_all, 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 2ebe81c814355d000fe49d9c4213983844dcb32b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1578edc735855881daa4f77296de9c00a966cef558262339149688fac7e9c270 all runs: OK false negative chance: 0.000 minimized to 401 configs; suspects: [ARCH_ENABLE_MEMORY_HOTREMOVE ATM BCMA BLK_DEV_ZONED BPF_SYSCALL CARDBUS CFG80211 CFG80211_WEXT CMA COMMON_CLK CONTIG_ALLOC CRYPTO_842 CRYPTO_LZ4 CRYPTO_LZ4HC CRYPTO_ZSTD DVB_CORE EXTCON FB GPIOLIB HAVE_KVM HID_ZEROPLUS HW_CONSOLE I2C_MUX IIO IOMMUFD IRQ_REMAP KVM KVM_INTEL LIBNVDIMM MEDIA_ANALOG_TV_SUPPORT MEDIA_CAMERA_SUPPORT MEDIA_CEC_SUPPORT MEDIA_CONTROLLER MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_TEST_SUPPORT MEDIA_USB_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_VIPERBOARD PARPORT PCCARD PCMCIA PHONET RADIO_ADAPTERS RADIO_SI470X RADIO_SI4713 RC_CORE RFKILL SND SOUND SPI SSB TAP TARGET_CORE TUN USB_AMD5536UDC USB_ATM USB_CONFIGFS USB_CONFIGFS_ECM_SUBSET USB_CONFIGFS_EEM USB_CONFIGFS_F_FS USB_CONFIGFS_F_HID USB_CONFIGFS_F_LB_SS USB_CONFIGFS_F_MIDI USB_CONFIGFS_F_PRINTER USB_CONFIGFS_F_TCM USB_CONFIGFS_F_UAC1 USB_CONFIGFS_F_UAC1_LEGACY USB_CONFIGFS_F_UAC2 USB_CONFIGFS_F_UVC USB_CONFIGFS_MASS_STORAGE USB_CONFIGFS_NCM USB_CONFIGFS_OBEX USB_CONFIGFS_PHONET USB_CONFIGFS_RNDIS USB_CONFIGFS_SERIAL USB_CXACRU USB_CYPRESS_CY7C63 USB_CYTHERM USB_DSBR USB_DUMMY_HCD USB_DWC2 USB_DWC2_HOST USB_DWC2_PCI USB_DWC3 USB_DWC3_GADGET USB_DWC3_OF_SIMPLE USB_DWC3_PCI USB_DWC3_ULPI USB_DYNAMIC_MINORS USB_EG20T USB_EHCI_HCD_PLATFORM USB_EHCI_ROOT_HUB_TT USB_EHSET_TEST_FIXTURE USB_EMI26 USB_EMI62 USB_EPSON2888 USB_EZUSB_FX2 USB_FEW_INIT_RETRIES USB_F_ACM USB_F_ECM USB_F_EEM USB_F_FS USB_F_HID USB_F_MASS_STORAGE USB_F_MIDI USB_F_NCM USB_F_OBEX USB_F_PHONET USB_F_PRINTER USB_F_RNDIS USB_F_SERIAL USB_F_SS_LB USB_F_SUBSET USB_F_TCM USB_F_UAC1 USB_F_UAC1_LEGACY USB_F_UAC2 USB_F_UVC USB_GADGET USB_GADGETFS USB_GADGET_DEBUG_FILES USB_GADGET_DEBUG_FS USB_GL860 USB_GOKU USB_GPIO_VBUS USB_GR_UDC USB_GSPCA USB_GSPCA_BENQ USB_GSPCA_CONEX USB_GSPCA_CPIA1 USB_GSPCA_DTCS033 USB_GSPCA_ETOMS USB_GSPCA_FINEPIX USB_GSPCA_JEILINJ USB_GSPCA_JL2005BCD USB_GSPCA_KINECT USB_GSPCA_KONICA USB_GSPCA_MARS USB_GSPCA_MR97310A USB_GSPCA_NW80X USB_GSPCA_OV519 USB_GSPCA_OV534 USB_GSPCA_OV534_9 USB_GSPCA_PAC207 USB_GSPCA_PAC7302 USB_GSPCA_PAC7311 USB_GSPCA_SE401 USB_GSPCA_SN9C2028 USB_GSPCA_SN9C20X USB_GSPCA_SONIXB USB_GSPCA_SONIXJ USB_GSPCA_SPCA1528 USB_GSPCA_SPCA500 USB_GSPCA_SPCA501 USB_GSPCA_SPCA505 USB_GSPCA_SPCA506 USB_GSPCA_SPCA508 USB_GSPCA_SPCA561 USB_GSPCA_SQ905 USB_GSPCA_SQ905C USB_GSPCA_SQ930X USB_GSPCA_STK014 USB_GSPCA_STK1135 USB_GSPCA_STV0680 USB_GSPCA_SUNPLUS USB_GSPCA_T613 USB_GSPCA_TOPRO USB_GSPCA_TOUPTEK USB_GSPCA_TV8532 USB_GSPCA_VC032X USB_GSPCA_VICAM USB_GSPCA_XIRLINK_CIT USB_GSPCA_ZC3XX USB_HACKRF USB_HCD_BCMA USB_HCD_SSB USB_HSIC_USB3503 USB_HSIC_USB4604 USB_HSO USB_HUB_USB251XB USB_IDMOUSE USB_IOWARRIOR USB_IPHETH USB_ISIGHTFW USB_ISP116X_HCD USB_ISP1301 USB_ISP1760 USB_ISP1760_DUAL_ROLE USB_ISP1760_HCD USB_ISP1761_UDC USB_KAWETH USB_KC2190 USB_KEENE USB_LAN78XX USB_LCD USB_LD USB_LEDS_TRIGGER_USBPORT USB_LED_TRIG USB_LEGOTOWER USB_LIBCOMPOSITE USB_LINK_LAYER_TEST USB_M5602 USB_MA901 USB_MAX3421_HCD USB_MDC800 USB_MICROTEK USB_MR800 USB_MSI2500 USB_MUSB_DUAL_ROLE USB_MUSB_HDRC USB_MV_U3D USB_MV_UDC USB_NET2272 USB_NET2272_DMA USB_NET2280 USB_NET_AX88179_178A USB_NET_AX8817X USB_NET_CDCETHER USB_NET_CDC_EEM USB_NET_CDC_MBIM USB_NET_CDC_NCM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_CH9200 USB_NET_CX82310_ETH USB_NET_DM9601 USB_NET_GL620A USB_NET_HUAWEI_CDC_NCM USB_NET_INT51X1 USB_NET_KALMIA USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_QMI_WWAN USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_OXU210HP_HCD USB_PEGASUS USB_PULSE8_CEC USB_PWC USB_PWC_INPUT_EVDEV USB_PXA27X USB_R8A66597 USB_R8A66597_HCD USB_RAINSHADOW_CEC USB_RAREMONO USB_RAW_GADGET USB_RTL8150 USB_RTL8152 USB_RTL8153_ECM USB_S2255 USB_SERIAL USB_SERIAL_AIRCABLE USB_SERIAL_ARK3116 USB_SERIAL_BELKIN USB_SERIAL_CH341 USB_SERIAL_CONSOLE USB_SERIAL_CP210X USB_SERIAL_CYBERJACK USB_SERIAL_CYPRESS_M8 USB_SERIAL_DEBUG USB_SERIAL_DIGI_ACCELEPORT USB_SERIAL_EDGEPORT USB_SERIAL_EDGEPORT_TI USB_SERIAL_EMPEG USB_SERIAL_F81232 USB_SERIAL_F8153X USB_SERIAL_FTDI_SIO USB_SERIAL_GARMIN USB_SERIAL_GENERIC USB_SERIAL_IPAQ USB_SERIAL_IPW USB_SERIAL_IR USB_SERIAL_IUU USB_SERIAL_KEYSPAN USB_SERIAL_KEYSPAN_PDA USB_SERIAL_KLSI USB_SERIAL_KOBIL_SCT USB_SERIAL_MCT_U232 USB_SERIAL_METRO USB_SERIAL_MOS7715_PARPORT USB_SERIAL_MOS7720 USB_SERIAL_MOS7840 USB_SERIAL_MXUPORT USB_SERIAL_NAVMAN USB_SERIAL_OMNINET USB_SERIAL_OPTICON USB_SERIAL_OPTION USB_SERIAL_OTI6858 USB_SERIAL_PL2303 USB_SERIAL_QCAUX USB_SERIAL_QT2 USB_SERIAL_QUALCOMM USB_SERIAL_SAFE USB_SERIAL_SIERRAWIRELESS USB_SERIAL_SIMPLE USB_SERIAL_SPCP8X5 USB_SERIAL_SSU100 USB_SERIAL_SYMBOL USB_SERIAL_TI USB_SERIAL_UPD78F0730 USB_SERIAL_VISOR USB_SERIAL_WHITEHEAT USB_SERIAL_WISHBONE USB_SERIAL_WWAN USB_SERIAL_XR USB_SERIAL_XSENS_MT USB_SEVSEG USB_SI470X USB_SI4713 USB_SIERRA_NET USB_SISUSBVGA USB_SL811_CS USB_SL811_HCD USB_SL811_HCD_ISO USB_SNP_CORE USB_SPEEDTOUCH USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_ENE_UB6250 USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_STV06XX USB_TEST USB_TMC USB_TRANCEVIBRATOR USB_UAS USB_UEAGLEATM USB_ULPI_BUS USB_USBNET USB_USS720 USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_VIDEO_CLASS USB_VIDEO_CLASS_INPUT_EVDEV USB_VL600 USB_WDM USB_XHCI_DBGCAP USB_XHCI_PLATFORM USB_XUSBATM USB_YUREX USERFAULTFD USERIO USERMODE_DRIVER USER_RETURN_NOTIFIER UVC_COMMON U_SERIAL_CONSOLE V4L2_MEM2MEM_DEV V4L_TEST_DRIVERS VALIDATE_FS_PARSER VDPA VDPA_SIM VDPA_SIM_BLOCK VDPA_SIM_NET VDPA_USER VETH VFIO VFIO_DEVICE_CDEV VFIO_PCI VFIO_PCI_CORE VFIO_PCI_INTX VFIO_PCI_MMAP VFIO_VIRQFD VGASTATE VHOST VHOST_CROSS_ENDIAN_LEGACY VHOST_IOTLB VHOST_NET VHOST_RING VHOST_TASK VHOST_VDPA VHOST_VSOCK VIDEOBUF2_CORE VIDEOBUF2_DMA_CONTIG VIDEOBUF2_DMA_SG VIDEOBUF2_MEMOPS VIDEOBUF2_V4L2 VIDEOBUF2_VMALLOC VIDEOMODE_HELPERS VIDEO_AU0828 VIDEO_AU0828_RC VIDEO_AU0828_V4L2 VIDEO_CMDLINE VIDEO_CS53L32A VIDEO_CX231XX VIDEO_CX231XX_ALSA VIDEO_CX231XX_DVB VIDEO_CX231XX_RC VIDEO_CX2341X VIDEO_CX25840 VIDEO_DEV VIDEO_EM28XX VIDEO_EM28XX_ALSA VIDEO_EM28XX_DVB VIDEO_EM28XX_RC VIDEO_EM28XX_V4L2 VIDEO_GO7007 VIDEO_GO7007_LOADER VIDEO_GO7007_USB VIDEO_GO7007_USB_S2250_BOARD VIDEO_HDPVR VIDEO_MSP3400 VIDEO_NOMODESET VIDEO_PVRUSB2 VIDEO_PVRUSB2_DVB VIDEO_PVRUSB2_SYSFS VIDEO_SAA711X VIDEO_STK1160 VIDEO_TUNER VIDEO_TVEEPROM VIDEO_USBTV VIDEO_V4L2_I2C VIDEO_V4L2_SUBDEV_API VIDEO_V4L2_TPG VIDEO_VICODEC VIDEO_VIM2M VIDEO_VIMC VIDEO_VIVID VIDEO_VIVID_CEC VIDEO_WM8775 VIPERBOARD_ADC VIRTIO_BALLOON VIRTIO_DMA_SHARED_BUFFER VIRTIO_MEM VIRTIO_MMIO VIRTIO_MMIO_CMDLINE_DEVICES VIRTIO_PMEM VIRTIO_VDPA VIRTIO_VSOCKETS VIRTIO_VSOCKETS_COMMON VIRT_WIFI VLAN_8021Q VLAN_8021Q_GVRP VLAN_8021Q_MVRP VMAP_PFN VMWARE_VMCI VMXNET3 VP_VDPA VSOCKETS VSOCKETS_DIAG VSOCKETS_LOOPBACK VSOCKMON VT_HW_CONSOLE_BINDING VXFS_FS WANT_DEV_COREDUMP WEXT_CORE WEXT_PRIV WEXT_PROC WIREGUARD WIRELESS WIRELESS_EXT WLAN WLAN_VENDOR_ADMTEK WLAN_VENDOR_PURELIFI WLAN_VENDOR_SILABS X86_SGX X86_SGX_KVM X86_USER_SHADOW_STACK X86_X2APIC X86_X32_ABI XDP_SOCKETS XDP_SOCKETS_DIAG XFRM_ESPINTCP XFRM_INTERFACE XFRM_IPCOMP XFRM_MIGRATE XFRM_OFFLOAD XFRM_STATISTICS XFRM_SUB_POLICY XFRM_USER_COMPAT XFS_FS XFS_POSIX_ACL XFS_QUOTA XFS_RT XOR_BLOCKS YENTA YENTA_ENE_TUNE YENTA_O2 YENTA_RICOH YENTA_TI YENTA_TOSHIBA ZEROPLUS_FF ZLIB_DEFLATE ZONEFS_FS ZPOOL ZRAM ZRAM_DEF_COMP_LZORLE ZSMALLOC ZSTD_COMPRESS ZSWAP ZSWAP_COMPRESSOR_DEFAULT_LZO ZSWAP_DEFAULT_ON ZSWAP_ZPOOL_DEFAULT_ZSMALLOC] disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing current HEAD 28eb75e178d389d325f1666e422bc13bbbb9804c testing commit 28eb75e178d389d325f1666e422bc13bbbb9804c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c7de6d96b7457369692ca5dcff556f65e2c3b41e1517836f498c16e6f503dc0a run #0: crashed: possible deadlock in console_flush_all run #1: crashed: possible deadlock in console_flush_all run #2: crashed: possible deadlock in console_flush_all run #3: crashed: possible deadlock in console_flush_all run #4: crashed: possible deadlock in console_flush_all run #5: crashed: possible deadlock in console_flush_all run #6: crashed: possible deadlock in __task_rq_lock run #7: crashed: possible deadlock in __task_rq_lock run #8: crashed: possible deadlock in console_flush_all run #9: crashed: possible deadlock in console_flush_all representative crash: possible deadlock in console_flush_all, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h58m34.706719376s (build: 1h15m38.815953339s, test: 37m20.872056541s) crash still not fixed or there were kernel test errors commit msg: Merge tag 'drm-next-2024-11-21' of https://gitlab.freedesktop.org/drm/kernel crash: possible deadlock in console_flush_all netlink: 'syz-executor.3': attribute type 21 has an invalid length. FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 ====================================================== WARNING: possible circular locking dependency detected 6.12.0-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.3/6759 is trying to acquire lock: ffffffff834aa738 (console_owner){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:342 [inline] ffffffff834aa738 (console_owner){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:297 [inline] ffffffff834aa738 (console_owner){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:288 [inline] ffffffff834aa738 (console_owner){....}-{0:0}, at: console_flush_all+0xba/0x4c0 kernel/printk/printk.c:3187 but task is already holding lock: ffff888237d31118 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x1f/0x70 kernel/sched/core.c:598 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #5 (&rq->__lock){-.-.}-{2:2}: _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x1f/0x70 kernel/sched/core.c:598 raw_spin_rq_lock kernel/sched/sched.h:1514 [inline] __task_rq_lock+0x48/0xa0 kernel/sched/core.c:676 wake_up_new_task+0x109/0x310 kernel/sched/core.c:4866 kernel_clone+0x1f8/0x3b0 kernel/fork.c:2818 user_mode_thread+0xbb/0xe0 kernel/fork.c:2865 rest_init+0x1a/0x1f0 init/main.c:712 start_kernel+0x318/0x330 init/main.c:1102 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0x9a/0xa0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x147 -> #4 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x61/0xa0 kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:551 [inline] try_to_wake_up+0x5c/0x7a0 kernel/sched/core.c:4205 create_worker+0x1fa/0x260 kernel/workqueue.c:2825 workqueue_init+0x1e8/0x330 kernel/workqueue.c:7916 kernel_init_freeable+0x150/0x1f0 init/main.c:1561 kernel_init+0x15/0x190 init/main.c:1466 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 -> #3 (&pool->lock){-.-.}-{2:2}: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 __queue_work+0x267/0x5f0 queue_work_on+0xb8/0x100 kernel/workqueue.c:2390 queue_work include/linux/workqueue.h:662 [inline] rpm_suspend+0x48d/0x730 drivers/base/power/runtime.c:662 __pm_runtime_idle+0x81/0x120 drivers/base/power/runtime.c:1104 pm_runtime_put include/linux/pm_runtime.h:448 [inline] __device_attach+0x10c/0x190 drivers/base/dd.c:1048 bus_probe_device+0x94/0x110 drivers/base/bus.c:534 device_add+0x25e/0x450 drivers/base/core.c:3672 serial_base_port_add+0xe0/0x150 drivers/tty/serial/serial_base_bus.c:179 serial_core_port_device_add drivers/tty/serial/serial_core.c:3370 [inline] serial_core_register_port+0xfc/0x9d0 drivers/tty/serial/serial_core.c:3411 serial8250_register_8250_port+0x59e/0x700 drivers/tty/serial/8250/8250_core.c:820 serial_pnp_probe+0x24b/0x310 drivers/tty/serial/8250/8250_pnp.c:490 pnp_device_probe+0xd9/0x130 drivers/pnp/driver.c:111 really_probe+0x133/0x420 drivers/base/dd.c:658 __driver_probe_device+0x77/0x140 drivers/base/dd.c:800 driver_probe_device+0x1e/0x1b0 drivers/base/dd.c:830 __driver_attach+0x11a/0x270 drivers/base/dd.c:1216 bus_for_each_dev+0x101/0x150 drivers/base/bus.c:370 bus_add_driver+0x164/0x2b0 drivers/base/bus.c:675 driver_register+0x5d/0xf0 drivers/base/driver.c:246 serial8250_init+0x6e/0x110 drivers/tty/serial/8250/8250_platform.c:324 do_one_initcall+0x134/0x320 init/main.c:1266 do_initcall_level+0x92/0x100 init/main.c:1328 do_initcalls+0x3a/0x70 init/main.c:1344 kernel_init_freeable+0x182/0x1f0 init/main.c:1577 kernel_init+0x15/0x190 init/main.c:1466 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 -> #2 (&dev->power.lock){-.-.}-{3:3}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x61/0xa0 kernel/locking/spinlock.c:162 __pm_runtime_resume+0x49/0x80 drivers/base/power/runtime.c:1171 pm_runtime_get include/linux/pm_runtime.h:396 [inline] __uart_start+0x51/0xd0 drivers/tty/serial/serial_core.c:148 uart_write+0xca/0x270 drivers/tty/serial/serial_core.c:635 process_output_block drivers/tty/n_tty.c:574 [inline] n_tty_write+0x348/0x4c0 drivers/tty/n_tty.c:2389 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x1f7/0x340 drivers/tty/tty_io.c:1090 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x30e/0x3a0 fs/read_write.c:679 ksys_write+0x73/0xe0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa0/0x1b0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&port_lock_key){-...}-{3:3}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x61/0xa0 kernel/locking/spinlock.c:162 uart_port_lock_irqsave include/linux/serial_core.h:715 [inline] serial8250_console_write+0x7b/0x730 drivers/tty/serial/8250/8250_port.c:3371 console_emit_next_record kernel/printk/printk.c:3122 [inline] console_flush_all+0x319/0x4c0 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0x6c/0x100 kernel/printk/printk.c:3309 vprintk_emit+0x248/0x400 kernel/printk/printk.c:2432 _printk+0x58/0x80 kernel/printk/printk.c:2457 register_console+0x354/0x3b0 kernel/printk/printk.c:4099 univ8250_console_init+0x1e/0x30 drivers/tty/serial/8250/8250_core.c:513 console_init+0x73/0x1a0 kernel/printk/printk.c:4292 start_kernel+0x25c/0x330 init/main.c:1037 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0x9a/0xa0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x147 -> #0 (console_owner){....}-{0:0}: check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x1236/0x2570 kernel/locking/lockdep.c:5226 lock_acquire+0xeb/0x270 kernel/locking/lockdep.c:5849 console_lock_spinning_enable kernel/printk/printk.c:1924 [inline] console_emit_next_record kernel/printk/printk.c:3116 [inline] console_flush_all+0x2db/0x4c0 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0x6c/0x100 kernel/printk/printk.c:3309 vprintk_emit+0x248/0x400 kernel/printk/printk.c:2432 _printk+0x58/0x80 kernel/printk/printk.c:2457 fail_dump lib/fault-inject.c:46 [inline] should_fail_ex+0x12f/0x140 lib/fault-inject.c:154 strncpy_from_user+0x31/0x110 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x29/0x60 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:215 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:224 [inline] bpf_probe_read_user_str+0x1a/0x50 kernel/trace/bpf_trace.c:221 ___bpf_prog_run+0x5f6/0x2280 kernel/bpf/core.c:2011 __bpf_prog_run32+0xbb/0xe0 kernel/bpf/core.c:2252 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x110/0x210 kernel/trace/bpf_trace.c:2394 __traceiter_sched_switch+0x3b/0x60 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x9c0/0xba0 kernel/sched/core.c:6753 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xac/0x140 kernel/sched/core.c:6848 exit_to_user_mode_loop kernel/entry/common.c:102 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x9f/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xad/0x1b0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: console_owner --> &p->pi_lock --> &rq->__lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rq->__lock); lock(&p->pi_lock); lock(&rq->__lock); lock(console_owner); *** DEADLOCK *** 4 locks held by syz-executor.3/6759: #0: ffff888237d31118 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x1f/0x70 kernel/sched/core.c:598 #1: ffffffff8358c7d0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #1: ffffffff8358c7d0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8358c7d0 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2350 [inline] #1: ffffffff8358c7d0 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run4+0x97/0x210 kernel/trace/bpf_trace.c:2394 #2: ffffffff834aa760 (console_lock){+.+.}-{0:0}, at: _printk+0x58/0x80 kernel/printk/printk.c:2457 #3: ffffffff834aa520 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:342 [inline] #3: ffffffff834aa520 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:297 [inline] #3: ffffffff834aa520 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:288 [inline] #3: ffffffff834aa520 (console_srcu){....}-{0:0}, at: console_flush_all+0xba/0x4c0 kernel/printk/printk.c:3187 stack backtrace: CPU: 1 UID: 0 PID: 6759 Comm: syz-executor.3 Not tainted 6.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xa3/0x100 lib/dump_stack.c:120 print_circular_bug+0x28d/0x2a0 kernel/locking/lockdep.c:2074 check_noncircular+0x119/0x140 kernel/locking/lockdep.c:2206 check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x1236/0x2570 kernel/locking/lockdep.c:5226 lock_acquire+0xeb/0x270 kernel/locking/lockdep.c:5849 console_lock_spinning_enable kernel/printk/printk.c:1924 [inline] console_emit_next_record kernel/printk/printk.c:3116 [inline] console_flush_all+0x2db/0x4c0 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0x6c/0x100 kernel/printk/printk.c:3309 vprintk_emit+0x248/0x400 kernel/printk/printk.c:2432 _printk+0x58/0x80 kernel/printk/printk.c:2457 fail_dump lib/fault-inject.c:46 [inline] should_fail_ex+0x12f/0x140 lib/fault-inject.c:154 strncpy_from_user+0x31/0x110 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x29/0x60 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:215 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:224 [inline] bpf_probe_read_user_str+0x1a/0x50 kernel/trace/bpf_trace.c:221 ___bpf_prog_run+0x5f6/0x2280 kernel/bpf/core.c:2011 __bpf_prog_run32+0xbb/0xe0 kernel/bpf/core.c:2252 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x110/0x210 kernel/trace/bpf_trace.c:2394 __traceiter_sched_switch+0x3b/0x60 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x9c0/0xba0 kernel/sched/core.c:6753 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xac/0x140 kernel/sched/core.c:6848 exit_to_user_mode_loop kernel/entry/common.c:102 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x9f/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xad/0x1b0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f241314cba9 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:00007f2412cc90c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: 00000000000000d8 RBX: 00007f241326bf80 RCX: 00007f241314cba9 RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000003 RBP: 00007f2412cc9120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f241326bf80 R15: 00007ffc6c4a2b58 CPU: 1 UID: 0 PID: 6759 Comm: syz-executor.3 Not tainted 6.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xa3/0x100 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:53 [inline] should_fail_ex+0x13b/0x140 lib/fault-inject.c:154 strncpy_from_user+0x31/0x110 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x29/0x60 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:215 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:224 [inline] bpf_probe_read_user_str+0x1a/0x50 kernel/trace/bpf_trace.c:221 ___bpf_prog_run+0x5f6/0x2280 kernel/bpf/core.c:2011 __bpf_prog_run32+0xbb/0xe0 kernel/bpf/core.c:2252 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x110/0x210 kernel/trace/bpf_trace.c:2394 __traceiter_sched_switch+0x3b/0x60 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x9c0/0xba0 kernel/sched/core.c:6753 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xac/0x140 kernel/sched/core.c:6848 exit_to_user_mode_loop kernel/entry/common.c:102 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x9f/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xad/0x1b0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f241314cba9 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:00007f2412cc90c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: 00000000000000d8 RBX: 00007f241326bf80 RCX: 00007f241314cba9 RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000003 RBP: 00007f2412cc9120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f241326bf80 R15: 00007ffc6c4a2b58