ci starts bisection 2024-12-24 23:50:59.511764172 +0000 UTC m=+133830.506941259 bisecting fixing commit since fe46a7dd189e25604716c03576d05ac8a5209743 building syzkaller on c8349e48534ea6d8f01515335d95de8ebf5da8df ensuring issue is reproducible on original commit fe46a7dd189e25604716c03576d05ac8a5209743 testing commit fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8d066786c2a1b37d94d7477c70ea0dc27ffae3dea36a93f9e34d3f1ace99e4aa 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: WARNING in sock_hash_delete_elem run #5: crashed: possible deadlock in console_flush_all run #6: crashed: WARNING in sock_hash_delete_elem 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 run #10: crashed: possible deadlock in console_flush_all run #11: crashed: possible deadlock in console_flush_all run #12: crashed: possible deadlock in console_flush_all run #13: crashed: possible deadlock in console_flush_all run #14: crashed: possible deadlock in task_fork_fair run #15: crashed: possible deadlock in console_flush_all run #16: crashed: inconsistent lock state in sock_hash_delete_elem run #17: crashed: possible deadlock in console_flush_all run #18: crashed: possible deadlock in console_flush_all run #19: 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7b30d39e40a6e6251f52e78b3a0c7d016b3731a61b51537b9a0561ebfaca1757 all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed kconfig minimization: base=4046 full=7986 leaves diff=2004 split chunks (needed=false): <2004> split chunk #0 of len 2004 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1e890b25477e4646e5054526c008adf7d4ef68fa85f61ba6956a5076ff394bfc run #0: crashed: inconsistent lock state in sock_hash_delete_elem run #1: crashed: inconsistent lock state in sock_hash_delete_elem run #2: crashed: inconsistent lock state in sock_hash_delete_elem run #3: crashed: inconsistent lock state in sock_hash_delete_elem run #4: crashed: inconsistent lock state in sock_hash_delete_elem run #5: crashed: inconsistent lock state in sock_hash_delete_elem run #6: crashed: inconsistent lock state in sock_hash_delete_elem run #7: crashed: BUG: spinlock recursion in scheduler_tick run #8: crashed: inconsistent lock state in sock_hash_delete_elem run #9: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, 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 fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7fac2bf7ac2f67007254d36a4ef9b4db3de99832a0fff2569d41e97e33cd69dc run #0: crashed: inconsistent lock state in sock_hash_delete_elem run #1: crashed: inconsistent lock state in sock_hash_delete_elem run #2: crashed: inconsistent lock state in sock_hash_delete_elem run #3: crashed: inconsistent lock state in sock_hash_delete_elem run #4: crashed: inconsistent lock state in sock_hash_delete_elem run #5: crashed: inconsistent lock state in __do_softirq run #6: crashed: inconsistent lock state in sock_hash_delete_elem run #7: crashed: inconsistent lock state in sock_hash_delete_elem run #8: crashed: inconsistent lock state in sock_hash_delete_elem run #9: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, 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 fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 22c24ab8f5449d4bcb3e147963a1bf791ca6a56d992e4f3e74f74019da63bbb0 all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 72af7c4a34af63a32ea992d36f4ed5f601e29018815862c405060071808aa03b all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, 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 fe46a7dd189e25604716c03576d05ac8a5209743 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 88224729fc8e285169014be15266fe0327dd9ff35c0ad8e92b703e3a731ea121 all runs: OK false negative chance: 0.000 minimized to 400 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_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 VIDEO 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_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_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_SHRINKER_DEFAULT_ON ZSWAP_ZPOOL_DEFAULT_ZSMALLOC] disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing current HEAD 9b2ffa6148b1e4468d08f7e0e7e371c43cac9ffe testing commit 9b2ffa6148b1e4468d08f7e0e7e371c43cac9ffe gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8a46890cf8530b6501cd20a6af9638676988c0c5fa80f5ffcc5203f18780880a all runs: OK false negative chance: 0.000 # git bisect start 9b2ffa6148b1e4468d08f7e0e7e371c43cac9ffe fe46a7dd189e25604716c03576d05ac8a5209743 Bisecting: 32162 revisions left to test after this (roughly 15 steps) [f557af081de6b45a25e27d633b4d8d2dbc2f428e] Merge tag 'riscv-for-linus-6.11-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux determine whether the revision contains the guilty commit revision fe46a7dd189e25604716c03576d05ac8a5209743 crashed and is reachable testing commit f557af081de6b45a25e27d633b4d8d2dbc2f428e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 61bd4ca8e117710be86913c8d15ee8d7b9847ea9be50aa3e10f645630161088d all runs: OK false negative chance: 0.000 # git bisect bad f557af081de6b45a25e27d633b4d8d2dbc2f428e Bisecting: 15985 revisions left to test after this (roughly 14 steps) [61307b7be41a1f1039d1d1368810a1d92cb97b44] Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm determine whether the revision contains the guilty commit revision fe46a7dd189e25604716c03576d05ac8a5209743 crashed and is reachable testing commit 61307b7be41a1f1039d1d1368810a1d92cb97b44 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 48aeab3ec766efac872d47058500f42909676e292b7387841c94e83d0dae3dd9 all runs: OK false negative chance: 0.000 # git bisect bad 61307b7be41a1f1039d1d1368810a1d92cb97b44 Bisecting: 8080 revisions left to test after this (roughly 13 steps) [92f74f7f4083cb7b1fdab807cbbe4f5ece534fbc] Merge tag 'execve-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux determine whether the revision contains the guilty commit revision fe46a7dd189e25604716c03576d05ac8a5209743 crashed and is reachable testing commit 92f74f7f4083cb7b1fdab807cbbe4f5ece534fbc gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 638035b3552c3523819250cf511e367b96207d5768e04c18d222c2d8bb9c647b all runs: OK false negative chance: 0.000 # git bisect bad 92f74f7f4083cb7b1fdab807cbbe4f5ece534fbc Bisecting: 4038 revisions left to test after this (roughly 12 steps) [6b571e2676c8c2100c3395cdcb471c5ec6f8f98a] Merge tag 'sound-fix2-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound determine whether the revision contains the guilty commit revision fe46a7dd189e25604716c03576d05ac8a5209743 crashed and is reachable testing commit 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 91a1caa76957c897e6634cb2f02d0d291bdc681bfe5241a6b756078bc47753cf all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a Bisecting: 2019 revisions left to test after this (roughly 11 steps) [5b43efa158e0a972ac19c54d00600bfffb7db7f6] Merge tag 'cxl-fixes-6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl determine whether the revision contains the guilty commit revision 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a crashed and is reachable testing commit 5b43efa158e0a972ac19c54d00600bfffb7db7f6 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 64a1499a108542078ff6684abb486ab04f18079b57598bd285fa5053b167ce39 all runs: OK false negative chance: 0.000 # git bisect bad 5b43efa158e0a972ac19c54d00600bfffb7db7f6 Bisecting: 1007 revisions left to test after this (roughly 10 steps) [4f72ed492d7798919269a20d157d34495a988935] Merge tag 'io_uring-6.9-20240405' of git://git.kernel.dk/linux determine whether the revision contains the guilty commit revision 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a crashed and is reachable testing commit 4f72ed492d7798919269a20d157d34495a988935 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f90bcb4c97dcc49b61840e2dc073f4e3ff861c4a003454bfad36604d66d72a70 all runs: OK false negative chance: 0.000 # git bisect bad 4f72ed492d7798919269a20d157d34495a988935 Bisecting: 510 revisions left to test after this (roughly 9 steps) [1cfa2f10f4e90a353c3ee2150866b4cf72579153] Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf determine whether the revision contains the guilty commit revision fe46a7dd189e25604716c03576d05ac8a5209743 crashed and is reachable testing commit 1cfa2f10f4e90a353c3ee2150866b4cf72579153 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2a8e8da54db69c34bbbc50d966dd42a41f5f98292b0bc429188ca6ee8cea65a all runs: OK false negative chance: 0.000 # git bisect bad 1cfa2f10f4e90a353c3ee2150866b4cf72579153 Bisecting: 250 revisions left to test after this (roughly 8 steps) [5e74df2f8f15eaa1ebbdfc1f6fef27a26d789de8] Merge tag 'x86-urgent-2024-03-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip determine whether the revision contains the guilty commit revision 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a crashed and is reachable testing commit 5e74df2f8f15eaa1ebbdfc1f6fef27a26d789de8 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0776794a8d2adf45debd731bafc2c21efb37ad3b39037c0e47029d82b5b3794b all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 5e74df2f8f15eaa1ebbdfc1f6fef27a26d789de8 Bisecting: 91 revisions left to test after this (roughly 7 steps) [50108c352db70405b3d71d8099d0b3adc3b3352c] Merge tag 'net-6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net determine whether the revision contains the guilty commit revision 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a crashed and is reachable testing commit 50108c352db70405b3d71d8099d0b3adc3b3352c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b521bfe71196df3873a0ae36fae76e4389f0a3d33a31296dd1e594a99a16e3d1 run #0: crashed: inconsistent lock state in sock_hash_delete_elem run #1: crashed: inconsistent lock state in sock_hash_delete_elem run #2: crashed: inconsistent lock state in sock_hash_delete_elem run #3: crashed: inconsistent lock state in sock_hash_delete_elem run #4: crashed: inconsistent lock state in sock_hash_delete_elem run #5: crashed: inconsistent lock state in sock_hash_delete_elem run #6: crashed: inconsistent lock state in sock_hash_delete_elem run #7: crashed: inconsistent lock state in sock_hash_delete_elem run #8: crashed: inconsistent lock state in __do_softirq run #9: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 50108c352db70405b3d71d8099d0b3adc3b3352c Bisecting: 45 revisions left to test after this (roughly 6 steps) [fcf4692fa39e86a590c14a4af2de704e1d20a3b5] mptcp: prevent BPF accessing lowat from a subflow socket. determine whether the revision contains the guilty commit revision 6b571e2676c8c2100c3395cdcb471c5ec6f8f98a crashed and is reachable testing commit fcf4692fa39e86a590c14a4af2de704e1d20a3b5 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5deb4d7937a40dbf4520081b4e27a8b5a6af7258a3f652287d704fbeb6b0865f run #0: crashed: inconsistent lock state in __do_softirq run #1: crashed: inconsistent lock state in sock_hash_delete_elem run #2: crashed: inconsistent lock state in sock_hash_delete_elem run #3: crashed: inconsistent lock state in sock_hash_delete_elem run #4: crashed: inconsistent lock state in sock_hash_delete_elem run #5: crashed: inconsistent lock state in sock_hash_delete_elem run #6: crashed: inconsistent lock state in sock_hash_delete_elem run #7: crashed: inconsistent lock state in sock_hash_delete_elem run #8: crashed: inconsistent lock state in sock_hash_delete_elem run #9: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in __do_softirq, types: [LOCKDEP] # git bisect good fcf4692fa39e86a590c14a4af2de704e1d20a3b5 Bisecting: 22 revisions left to test after this (roughly 5 steps) [24cea9677025e0de419989ecb692acd4bb34cac2] netfilter: nf_tables: flush pending destroy work before exit_net release determine whether the revision contains the guilty commit revision fcf4692fa39e86a590c14a4af2de704e1d20a3b5 crashed and is reachable testing commit 24cea9677025e0de419989ecb692acd4bb34cac2 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 237d97a847adc7c1a5c884fb99cd1fa7805030237314e9fcc3f22763ec71a33b all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 24cea9677025e0de419989ecb692acd4bb34cac2 Bisecting: 9 revisions left to test after this (roughly 4 steps) [d432f7bdc1cddd37e73dbe6b53b48785ab789e92] Merge tag 'nf-24-04-04' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf determine whether the revision contains the guilty commit revision fcf4692fa39e86a590c14a4af2de704e1d20a3b5 crashed and is reachable testing commit d432f7bdc1cddd37e73dbe6b53b48785ab789e92 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ac93981472d11053a052e66272f17cee7b2c70706b6c8e594a6a6eeb499349aa all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good d432f7bdc1cddd37e73dbe6b53b48785ab789e92 Bisecting: 4 revisions left to test after this (roughly 2 steps) [9d98aa088386aee3db1b7b60b800c0fde0654a4a] x86/bpf: Fix IP after emitting call depth accounting determine whether the revision contains the guilty commit revision 5e74df2f8f15eaa1ebbdfc1f6fef27a26d789de8 crashed and is reachable testing commit 9d98aa088386aee3db1b7b60b800c0fde0654a4a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1e50e40a92867c08f14cd518657a2976d1adae44662d7081d2af5792a4901518 all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 9d98aa088386aee3db1b7b60b800c0fde0654a4a Bisecting: 2 revisions left to test after this (roughly 1 step) [8c3fe029d79ada599fa558fdf3da0322fc38de36] Merge branch 'x86-bpf-fixes-for-the-bpf-jit-with-retbleed-stuff' determine whether the revision contains the guilty commit revision 9d98aa088386aee3db1b7b60b800c0fde0654a4a crashed and is reachable testing commit 8c3fe029d79ada599fa558fdf3da0322fc38de36 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 07270bfcde2682a9329ba9dcb239880754d262f0b06e5ee40bac6ca2040fbf77 all runs: crashed: inconsistent lock state in sock_hash_delete_elem representative crash: inconsistent lock state in sock_hash_delete_elem, types: [LOCKDEP] # git bisect good 8c3fe029d79ada599fa558fdf3da0322fc38de36 Bisecting: 1 revision left to test after this (roughly 1 step) [ff91059932401894e6c86341915615c5eb0eca48] bpf, sockmap: Prevent lock inversion deadlock in map delete elem determine whether the revision contains the guilty commit revision 9d98aa088386aee3db1b7b60b800c0fde0654a4a crashed and is reachable testing commit ff91059932401894e6c86341915615c5eb0eca48 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4b7a61e081d955d3ffa5597889ac6ae99ae69e8a93ac7114c212a34b513d5fe4 all runs: OK false negative chance: 0.000 # git bisect bad ff91059932401894e6c86341915615c5eb0eca48 ff91059932401894e6c86341915615c5eb0eca48 is the first bad commit commit ff91059932401894e6c86341915615c5eb0eca48 Author: Jakub Sitnicki Date: Tue Apr 2 12:46:21 2024 +0200 bpf, sockmap: Prevent lock inversion deadlock in map delete elem syzkaller started using corpuses where a BPF tracing program deletes elements from a sockmap/sockhash map. Because BPF tracing programs can be invoked from any interrupt context, locks taken during a map_delete_elem operation must be hardirq-safe. Otherwise a deadlock due to lock inversion is possible, as reported by lockdep: CPU0 CPU1 ---- ---- lock(&htab->buckets[i].lock); local_irq_disable(); lock(&host->lock); lock(&htab->buckets[i].lock); lock(&host->lock); Locks in sockmap are hardirq-unsafe by design. We expects elements to be deleted from sockmap/sockhash only in task (normal) context with interrupts enabled, or in softirq context. Detect when map_delete_elem operation is invoked from a context which is _not_ hardirq-unsafe, that is interrupts are disabled, and bail out with an error. Note that map updates are not affected by this issue. BPF verifier does not allow updating sockmap/sockhash from a BPF tracing program today. Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface") Reported-by: xingwei lee Reported-by: yue sun Reported-by: syzbot+bc922f476bd65abbd466@syzkaller.appspotmail.com Reported-by: syzbot+d4066896495db380182e@syzkaller.appspotmail.com Signed-off-by: Jakub Sitnicki Signed-off-by: Daniel Borkmann Tested-by: syzbot+d4066896495db380182e@syzkaller.appspotmail.com Acked-by: John Fastabend Closes: https://syzkaller.appspot.com/bug?extid=d4066896495db380182e Closes: https://syzkaller.appspot.com/bug?extid=bc922f476bd65abbd466 Link: https://lore.kernel.org/bpf/20240402104621.1050319-1-jakub@cloudflare.com net/core/sock_map.c | 6 ++++++ 1 file changed, 6 insertions(+) accumulated error probability: 0.00 culprit signature: 4b7a61e081d955d3ffa5597889ac6ae99ae69e8a93ac7114c212a34b513d5fe4 parent signature: 07270bfcde2682a9329ba9dcb239880754d262f0b06e5ee40bac6ca2040fbf77 revisions tested: 23, total time: 7h3m40.245431183s (build: 3h15m18.262099597s, test: 3h28m42.475197864s) first good commit: ff91059932401894e6c86341915615c5eb0eca48 bpf, sockmap: Prevent lock inversion deadlock in map delete elem recipients (to): ["daniel@iogearbox.net" "jakub@cloudflare.com" "john.fastabend@gmail.com" "syzbot+d4066896495db380182e@syzkaller.appspotmail.com"] recipients (cc): []