ci2 starts bisection 2024-06-25 02:13:30.687923119 +0000 UTC m=+26358.528409457
bisecting fixing commit since e7cddbb41b63252ddb5b7f8247da5d0b24adfac5
building syzkaller on 28b24332d95f2f7df44ec7e7a5e0025bcadc6277
ensuring issue is reproducible on original commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 009d71a0bcee0115db47ecc21d118b88c0c10a64d868961118f756351c777894
run #0: crashed: possible deadlock in task_fork_fair
run #1: crashed: possible deadlock in console_emit_next_record
run #2: crashed: possible deadlock in console_emit_next_record
run #3: crashed: INFO: rcu detected stall in corrupted
run #4: crashed: possible deadlock in console_emit_next_record
run #5: crashed: INFO: rcu detected stall in corrupted
run #6: crashed: INFO: rcu detected stall in corrupted
run #7: crashed: possible deadlock in console_emit_next_record
run #8: crashed: possible deadlock in console_emit_next_record
run #9: crashed: INFO: rcu detected stall in corrupted
run #10: crashed: INFO: rcu detected stall in corrupted
run #11: crashed: INFO: rcu detected stall in corrupted
run #12: crashed: INFO: rcu detected stall in corrupted
run #13: crashed: INFO: rcu detected stall in corrupted
run #14: crashed: INFO: rcu detected stall in corrupted
run #15: crashed: INFO: rcu detected stall in corrupted
run #16: crashed: INFO: rcu detected stall in corrupted
run #17: crashed: INFO: rcu detected stall in corrupted
run #18: crashed: INFO: rcu detected stall in corrupted
run #19: OK
representative crash: INFO: rcu detected stall in corrupted, types: [HANG LOCKDEP]
check whether we can drop unnecessary instrumentation
disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: c190ee8362c3c0a7ab51ff1a8e7604f33c953eea97ce84f6c6934d89717f57a6
run #0: crashed: possible deadlock in console_emit_next_record
run #1: crashed: possible deadlock in console_emit_next_record
run #2: crashed: possible deadlock in task_fork_fair
run #3: crashed: possible deadlock in task_fork_fair
run #4: crashed: INFO: rcu detected stall in corrupted
run #5: crashed: INFO: rcu detected stall in corrupted
run #6: crashed: INFO: rcu detected stall in corrupted
run #7: crashed: INFO: rcu detected stall in corrupted
run #8: crashed: INFO: rcu detected stall in corrupted
run #9: crashed: INFO: rcu detected stall in corrupted
representative crash: INFO: rcu detected stall in corrupted, types: [HANG LOCKDEP]
the bug reproduces without the instrumentation
disabling configs for [KASAN ATOMIC_SLEEP LEAK UBSAN BUG], they are not needed
kconfig minimization: base=3820 full=7526 leaves diff=1994
split chunks (needed=false): <1994>
split chunk #0 of len 1994 into 5 parts
testing without sub-chunk 1/5
disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 7e99dbfa280df8a493195851a636cbf1cae3f4d8225951a4a816a353f419e397
run #0: crashed: possible deadlock in console_emit_next_record
run #1: crashed: possible deadlock in console_emit_next_record
run #2: crashed: possible deadlock in console_emit_next_record
run #3: crashed: possible deadlock in console_emit_next_record
run #4: crashed: INFO: rcu detected stall in corrupted
run #5: crashed: INFO: rcu detected stall in corrupted
run #6: crashed: INFO: rcu detected stall in corrupted
run #7: crashed: INFO: rcu detected stall in corrupted
run #8: crashed: INFO: rcu detected stall in corrupted
run #9: OK
representative crash: INFO: rcu detected stall in corrupted, types: [HANG LOCKDEP]
the chunk can be dropped
testing without sub-chunk 2/5
disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: dc1432b707cd2b5f7c4d4528755362aaacf57051d6fed42aed65651e68bc179b
run #0: crashed: possible deadlock in console_emit_next_record
run #1: crashed: possible deadlock in console_emit_next_record
run #2: crashed: possible deadlock in task_fork_fair
run #3: crashed: possible deadlock in task_fork_fair
run #4: crashed: INFO: rcu detected stall in corrupted
run #5: crashed: INFO: rcu detected stall in corrupted
run #6: crashed: INFO: rcu detected stall in corrupted
run #7: crashed: INFO: rcu detected stall in corrupted
run #8: crashed: INFO: rcu detected stall in corrupted
run #9: OK
representative crash: INFO: rcu detected stall in corrupted, types: [HANG LOCKDEP]
the chunk can be dropped
testing without sub-chunk 3/5
disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: d37d4e1da753f144b229fcb9f1646afdc08f067ee21a30af96e4d13b52e8bbaf
run #0: crashed: possible deadlock in console_emit_next_record
run #1: crashed: possible deadlock in task_fork_fair
run #2: crashed: possible deadlock in task_fork_fair
run #3: crashed: possible deadlock in console_emit_next_record
run #4: crashed: possible deadlock in task_fork_fair
run #5: crashed: possible deadlock in console_emit_next_record
run #6: crashed: possible deadlock in task_fork_fair
run #7: crashed: possible deadlock in console_emit_next_record
run #8: crashed: possible deadlock in console_emit_next_record
run #9: OK
representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP]
the chunk can be dropped
testing without sub-chunk 4/5
disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: bedcdfb60918868098b73cca63883ed9ac245fe7a70eb4e38171e9cddc9489e7
run #0: crashed: possible deadlock in __schedule
run #1: crashed: possible deadlock in __schedule
run #2: crashed: possible deadlock in console_emit_next_record
run #3: crashed: possible deadlock in console_emit_next_record
run #4: crashed: possible deadlock in console_emit_next_record
run #5: crashed: possible deadlock in console_emit_next_record
run #6: crashed: possible deadlock in console_emit_next_record
run #7: crashed: possible deadlock in console_emit_next_record
run #8: OK
run #9: OK
representative crash: possible deadlock in __schedule, types: [LOCKDEP]
the chunk can be dropped
testing without sub-chunk 5/5
disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP LEAK], they are not needed
testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 83ea08e6b51df73eb55ea56aae112b97e7734dfd5f8107816b3b05354bbf770b
all runs: OK
false negative chance: 0.000
minimized to 398 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_LZO CRYPTO_ZSTD DVB_CORE EXTCON FB GPIOLIB HID_ZEROPLUS I2C_MUX IIO 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 TUN USB_AMD5536UDC USB_ATM USB_CONFIGFS 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_FOTG210_HCD USB_FOTG210_UDC USB_FTDI_ELAN 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_RNDIS_WLAN 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_U132_HCD 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 U_SERIAL_CONSOLE V4L2_ASYNC V4L2_FWNODE V4L2_MEM2MEM_DEV V4L_TEST_DRIVERS VALIDATE_FS_PARSER VDPA VDPA_SIM VDPA_SIM_BLOCK VDPA_SIM_NET VDPA_USER VETH VFIO VFIO_IOMMU_TYPE1 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_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_CAMERA_SENSOR 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_PVRUSB2 VIDEO_PVRUSB2_DVB VIDEO_PVRUSB2_SYSFS VIDEO_SAA711X VIDEO_STK1160 VIDEO_STK1160_COMMON 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_X2APIC X86_X32_ABI XARRAY_MULTI 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 ZBUD 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_ZBUD]
disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP LEAK], they are not needed
testing current HEAD a6398e37309000e35cedb5cc328a0f8d00d7d7b9
testing commit a6398e37309000e35cedb5cc328a0f8d00d7d7b9 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 2c7d78b858a4e8be820fcd561dcf8d2e5b905b1affc9cf328201f25e6a487346
run #0: crashed: possible deadlock in __schedule
run #1: crashed: possible deadlock in __schedule
run #2: crashed: possible deadlock in console_emit_next_record
run #3: crashed: possible deadlock in __schedule
run #4: crashed: possible deadlock in __schedule
run #5: crashed: possible deadlock in __schedule
run #6: crashed: possible deadlock in __schedule
run #7: crashed: possible deadlock in console_emit_next_record
run #8: crashed: possible deadlock in __schedule
run #9: crashed: possible deadlock in __schedule
representative crash: possible deadlock in __schedule, types: [LOCKDEP]
crash still not fixed/happens on the oldest tested release
revisions tested: 8, total time: 1h52m10.277886656s (build: 42m49.340983299s, test: 1h1m26.168119402s)
crash still not fixed or there were kernel test errors
commit msg: Linux 6.1.95
crash: possible deadlock in __schedule
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.1.95-syzkaller #0 Not tainted
------------------------------------------------------
syz-executor.3/3930 is trying to acquire lock:
ffffffff83185100 (console_owner){....}-{0:0}, at: console_trylock_spinning kernel/printk/printk.c:1935 [inline]
ffffffff83185100 (console_owner){....}-{0:0}, at: vprintk_emit+0x1b4/0x3e0 kernel/printk/printk.c:2302
but task is already holding lock:
ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline]
ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x167/0x9c0 kernel/sched/core.c:6475
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #4 (&rq->__lock){-.-.}-{2:2}:
_raw_spin_lock_nested+0x2d/0x40 kernel/locking/spinlock.c:378
raw_spin_rq_lock_nested+0x1b/0x50 kernel/sched/core.c:537
raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
rq_lock kernel/sched/sched.h:1644 [inline]
task_fork_fair+0x35/0xf0 kernel/sched/fair.c:11884
sched_cgroup_fork+0xdb/0xf0 kernel/sched/core.c:4686
copy_process+0xbed/0x1490 kernel/fork.c:2384
kernel_clone+0xec/0x320 kernel/fork.c:2682
user_mode_thread+0xb7/0xe0 kernel/fork.c:2758
rest_init+0x1a/0x1e0 init/main.c:698
start_kernel+0x0/0x380 init/main.c:893
start_kernel+0x34d/0x380 init/main.c:1140
secondary_startup_64_no_verify+0xcf/0xdb
-> #3 (&p->pi_lock){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162
try_to_wake_up+0x4e/0x5f0 kernel/sched/core.c:4112
__wake_up_common+0xc9/0x140 kernel/sched/wait.c:107
__wake_up_common_lock kernel/sched/wait.c:138 [inline]
__wake_up+0x7a/0xc0 kernel/sched/wait.c:160
tty_port_default_wakeup+0x52/0x80 drivers/tty/tty_port.c:71
serial8250_tx_chars+0x133/0x160 drivers/tty/serial/8250/8250_port.c:1854
serial8250_handle_irq+0x169/0x1a0 drivers/tty/serial/8250/8250_port.c:1961
serial8250_default_handle_irq+0x36/0x70 drivers/tty/serial/8250/8250_port.c:1981
serial8250_interrupt+0x50/0xf0 drivers/tty/serial/8250/8250_core.c:126
__handle_irq_event_percpu+0xb4/0x220 kernel/irq/handle.c:158
handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
handle_irq_event+0x2c/0x60 kernel/irq/handle.c:210
handle_edge_irq+0xca/0x1e0 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+0x4a/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
debug_rcu_head_unqueue kernel/rcu/rcu.h:201 [inline]
rcu_do_batch kernel/rcu/tree.c:2289 [inline]
rcu_core+0x3de/0x9b0 kernel/rcu/tree.c:2556
handle_softirqs+0x14b/0x3b0 kernel/softirq.c:571
__do_softirq kernel/softirq.c:605 [inline]
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0xb4/0x140 kernel/softirq.c:654
irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
acpi_idle_do_entry+0x5f/0xd0 drivers/acpi/processor_idle.c:572
acpi_idle_enter+0xb9/0xd0 drivers/acpi/processor_idle.c:709
cpuidle_enter_state+0x128/0x420 drivers/cpuidle/cpuidle.c:239
cpuidle_enter+0x24/0x40 drivers/cpuidle/cpuidle.c:356
call_cpuidle kernel/sched/idle.c:155 [inline]
cpuidle_idle_call kernel/sched/idle.c:236 [inline]
do_idle+0x1bf/0x270 kernel/sched/idle.c:303
cpu_startup_entry+0x20/0x30 kernel/sched/idle.c:401
start_secondary+0x7d/0x80 arch/x86/kernel/smpboot.c:281
secondary_startup_64_no_verify+0xcf/0xdb
-> #2 (&tty->write_wait){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0x62/0xc0 kernel/sched/wait.c:160
tty_port_default_wakeup+0x52/0x80 drivers/tty/tty_port.c:71
serial8250_tx_chars+0x133/0x160 drivers/tty/serial/8250/8250_port.c:1854
serial8250_handle_irq+0x169/0x1a0 drivers/tty/serial/8250/8250_port.c:1961
serial8250_default_handle_irq+0x36/0x70 drivers/tty/serial/8250/8250_port.c:1981
serial8250_interrupt+0x50/0xf0 drivers/tty/serial/8250/8250_core.c:126
__handle_irq_event_percpu+0xb4/0x220 kernel/irq/handle.c:158
handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
handle_irq_event+0x2c/0x60 kernel/irq/handle.c:210
handle_edge_irq+0xca/0x1e0 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+0x4a/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
debug_rcu_head_unqueue kernel/rcu/rcu.h:201 [inline]
rcu_do_batch kernel/rcu/tree.c:2289 [inline]
rcu_core+0x3de/0x9b0 kernel/rcu/tree.c:2556
handle_softirqs+0x14b/0x3b0 kernel/softirq.c:571
__do_softirq kernel/softirq.c:605 [inline]
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0xb4/0x140 kernel/softirq.c:654
irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
acpi_idle_do_entry+0x5f/0xd0 drivers/acpi/processor_idle.c:572
acpi_idle_enter+0xb9/0xd0 drivers/acpi/processor_idle.c:709
cpuidle_enter_state+0x128/0x420 drivers/cpuidle/cpuidle.c:239
cpuidle_enter+0x24/0x40 drivers/cpuidle/cpuidle.c:356
call_cpuidle kernel/sched/idle.c:155 [inline]
cpuidle_idle_call kernel/sched/idle.c:236 [inline]
do_idle+0x1bf/0x270 kernel/sched/idle.c:303
cpu_startup_entry+0x20/0x30 kernel/sched/idle.c:401
start_secondary+0x7d/0x80 arch/x86/kernel/smpboot.c:281
secondary_startup_64_no_verify+0xcf/0xdb
-> #1 (&port_lock_key){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x5d/0x90 kernel/locking/spinlock.c:162
serial8250_console_write+0x75/0x590 drivers/tty/serial/8250/8250_port.c:3404
call_console_driver kernel/printk/printk.c:1977 [inline]
console_emit_next_record+0x4b4/0x5d0 kernel/printk/printk.c:2777
console_unlock+0xee/0x1e0 kernel/printk/printk.c:2906
vprintk_emit+0x2ad/0x3e0 kernel/printk/printk.c:2303
_printk+0x54/0x6e kernel/printk/printk.c:2328
register_console+0x1e7/0x240 kernel/printk/printk.c:3269
univ8250_console_init+0x20/0x23 drivers/tty/serial/8250/8250_core.c:687
console_init+0x6a/0x183 kernel/printk/printk.c:3359
start_kernel+0x299/0x380 init/main.c:1076
secondary_startup_64_no_verify+0xcf/0xdb
-> #0 (console_owner){....}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3090 [inline]
check_prevs_add kernel/locking/lockdep.c:3209 [inline]
validate_chain kernel/locking/lockdep.c:3825 [inline]
__lock_acquire+0x146d/0x2830 kernel/locking/lockdep.c:5049
lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662
console_trylock_spinning kernel/printk/printk.c:1935 [inline]
vprintk_emit+0x1d1/0x3e0 kernel/printk/printk.c:2302
_printk+0x54/0x6e kernel/printk/printk.c:2328
fail_dump lib/fault-inject.c:45 [inline]
should_fail_ex+0x125/0x140 lib/fault-inject.c:147
strncpy_from_user+0x30/0x130 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x24/0x50 mm/maccess.c:186
bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:204 [inline]
____bpf_probe_read_user_str kernel/trace/bpf_trace.c:213 [inline]
bpf_probe_read_user_str+0x16/0x40 kernel/trace/bpf_trace.c:210
___bpf_prog_run+0x816/0x1b20 kernel/bpf/core.c:1842
__bpf_prog_run32+0xb7/0xe0 kernel/bpf/core.c:2066
bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
__bpf_prog_run include/linux/filter.h:603 [inline]
bpf_prog_run include/linux/filter.h:610 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
bpf_trace_run4+0xcd/0x1a0 kernel/trace/bpf_trace.c:2314
__traceiter_sched_switch+0x36/0x50 include/trace/events/sched.h:222
trace_sched_switch include/trace/events/sched.h:222 [inline]
__schedule+0x81c/0x9c0 kernel/sched/core.c:6555
schedule+0x50/0xb0 kernel/sched/core.c:6634
exit_to_user_mode_loop+0x44/0xe0 kernel/entry/common.c:165
exit_to_user_mode_prepare+0xa2/0x100 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x5e/0x210 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
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 ***
2 locks held by syz-executor.3/3930:
#0: ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
#0: ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
#0: ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline]
#0: ffff888237c2d7d8 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x167/0x9c0 kernel/sched/core.c:6475
#1: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
#1: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
#1: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline]
#1: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run4+0x5a/0x1a0 kernel/trace/bpf_trace.c:2314
stack backtrace:
CPU: 0 PID: 3930 Comm: syz-executor.3 Not tainted 6.1.95-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x89/0xd7 lib/dump_stack.c:106
print_circular_bug+0x2c5/0x300 kernel/locking/lockdep.c:2048
check_noncircular+0x106/0x110 kernel/locking/lockdep.c:2170
check_prev_add kernel/locking/lockdep.c:3090 [inline]
check_prevs_add kernel/locking/lockdep.c:3209 [inline]
validate_chain kernel/locking/lockdep.c:3825 [inline]
__lock_acquire+0x146d/0x2830 kernel/locking/lockdep.c:5049
lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5662
console_trylock_spinning kernel/printk/printk.c:1935 [inline]
vprintk_emit+0x1d1/0x3e0 kernel/printk/printk.c:2302
_printk+0x54/0x6e kernel/printk/printk.c:2328
fail_dump lib/fault-inject.c:45 [inline]
should_fail_ex+0x125/0x140 lib/fault-inject.c:147
strncpy_from_user+0x30/0x130 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x24/0x50 mm/maccess.c:186
bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:204 [inline]
____bpf_probe_read_user_str kernel/trace/bpf_trace.c:213 [inline]
bpf_probe_read_user_str+0x16/0x40 kernel/trace/bpf_trace.c:210
___bpf_prog_run+0x816/0x1b20 kernel/bpf/core.c:1842
__bpf_prog_run32+0xb7/0xe0 kernel/bpf/core.c:2066
bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
__bpf_prog_run include/linux/filter.h:603 [inline]
bpf_prog_run include/linux/filter.h:610 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
bpf_trace_run4+0xcd/0x1a0 kernel/trace/bpf_trace.c:2314
__traceiter_sched_switch+0x36/0x50 include/trace/events/sched.h:222
trace_sched_switch include/trace/events/sched.h:222 [inline]
__schedule+0x81c/0x9c0 kernel/sched/core.c:6555
schedule+0x50/0xb0 kernel/sched/core.c:6634
exit_to_user_mode_loop+0x44/0xe0 kernel/entry/common.c:165
exit_to_user_mode_prepare+0xa2/0x100 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x5e/0x210 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f9491472ba9
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:00007f9490ff50c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 00000000000000d8 RBX: 00007f9491591f80 RCX: 00007f9491472ba9
RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000003
RBP: 00007f9490ff5120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 000000000000000b R14: 00007f9491591f80 R15: 00007ffcc48bde98
CPU: 0 PID: 3930 Comm: syz-executor.3 Not tainted 6.1.95-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x89/0xd7 lib/dump_stack.c:106
fail_dump lib/fault-inject.c:52 [inline]
should_fail_ex+0x131/0x140 lib/fault-inject.c:147
strncpy_from_user+0x30/0x130 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x24/0x50 mm/maccess.c:186
bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:204 [inline]
____bpf_probe_read_user_str kernel/trace/bpf_trace.c:213 [inline]
bpf_probe_read_user_str+0x16/0x40 kernel/trace/bpf_trace.c:210
___bpf_prog_run+0x816/0x1b20 kernel/bpf/core.c:1842
__bpf_prog_run32+0xb7/0xe0 kernel/bpf/core.c:2066
bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
__bpf_prog_run include/linux/filter.h:603 [inline]
bpf_prog_run include/linux/filter.h:610 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
bpf_trace_run4+0xcd/0x1a0 kernel/trace/bpf_trace.c:2314
__traceiter_sched_switch+0x36/0x50 include/trace/events/sched.h:222
trace_sched_switch include/trace/events/sched.h:222 [inline]
__schedule+0x81c/0x9c0 kernel/sched/core.c:6555
schedule+0x50/0xb0 kernel/sched/core.c:6634
exit_to_user_mode_loop+0x44/0xe0 kernel/entry/common.c:165
exit_to_user_mode_prepare+0xa2/0x100 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x5e/0x210 kernel/entry/common.c:303
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f9491472ba9
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:00007f9490ff50c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 00000000000000d8 RBX: 00007f9491591f80 RCX: 00007f9491472ba9
RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000003
RBP: 00007f9490ff5120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 000000000000000b R14: 00007f9491591f80 R15: 00007ffcc48bde98