ci2 starts bisection 2024-08-04 08:45:51.318879395 +0000 UTC m=+122509.936412258 bisecting fixing commit since 347385861c50adc8d4801d4b899eded38a2f04cd building syzkaller on ca620dd8f97f5b3a9134b687b5584203019518fb ensuring issue is reproducible on original commit 347385861c50adc8d4801d4b899eded38a2f04cd testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7bf1721e0afdf7b3648118f282222d66ed0bec6a5aa98cfc6c6f1ab146a99595 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: WARNING in sock_hash_delete_elem 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: WARNING in sock_hash_delete_elem run #8: crashed: WARNING in sock_hash_delete_elem run #9: crashed: WARNING in sock_hash_delete_elem run #10: crashed: possible deadlock in console_emit_next_record run #11: crashed: WARNING in sock_hash_delete_elem run #12: crashed: possible deadlock in task_fork_fair run #13: crashed: possible deadlock in console_emit_next_record run #14: crashed: WARNING in sock_hash_delete_elem run #15: crashed: possible deadlock in console_emit_next_record run #16: crashed: WARNING in sock_hash_delete_elem run #17: crashed: possible deadlock in console_emit_next_record run #18: crashed: possible deadlock in console_emit_next_record run #19: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN KASAN], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 96d6cec7266ab83ec2483e13fa0e5aa970590b4988b4774c89cb620fc181065c run #0: crashed: possible deadlock in console_emit_next_record run #1: crashed: WARNING in sock_hash_delete_elem run #2: crashed: possible deadlock in console_emit_next_record run #3: crashed: possible deadlock in console_emit_next_record run #4: crashed: WARNING in sock_hash_delete_elem run #5: crashed: possible deadlock in console_emit_next_record run #6: crashed: possible deadlock in console_emit_next_record run #7: crashed: WARNING in sock_hash_delete_elem run #8: crashed: possible deadlock in console_emit_next_record run #9: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN KASAN ATOMIC_SLEEP], they are not needed kconfig minimization: base=3822 full=7454 leaves diff=1988 split chunks (needed=false): <1988> split chunk #0 of len 1988 into 5 parts testing without sub-chunk 1/5 disabling configs for [UBSAN KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dae3bf52e6b108ed30bd1cdbc7fa2f3e184adb4cb9df25020e8052b148327801 run #0: crashed: possible deadlock in console_emit_next_record run #1: crashed: inconsistent lock state in sock_hash_delete_elem 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: WARNING in sock_hash_delete_elem run #6: crashed: WARNING in sock_hash_delete_elem run #7: crashed: WARNING in sock_hash_delete_elem run #8: crashed: possible deadlock in console_emit_next_record run #9: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN KASAN], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 01fa3dbbb561535b456ac6d6728ecd0ffc268f13b5d8ac2944f8247edce417c4 run #0: crashed: WARNING in sock_hash_delete_elem run #1: crashed: possible deadlock in console_emit_next_record run #2: crashed: WARNING in sock_hash_delete_elem 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: WARNING in sock_hash_delete_elem run #7: crashed: possible deadlock in console_emit_next_record run #8: crashed: possible deadlock in console_emit_next_record run #9: crashed: WARNING in sock_hash_delete_elem representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN KASAN ATOMIC_SLEEP], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2681096de512124980620750c0470bab8ff175acfbf67aab6b9cae277132fe3a run #0: crashed: inconsistent lock state in sock_hash_delete_elem run #1: crashed: WARNING in sock_hash_delete_elem 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: crashed: possible deadlock in console_emit_next_record run #9: crashed: possible deadlock in console_emit_next_record 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 [LEAK UBSAN KASAN ATOMIC_SLEEP HANG], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2395c3ab68a3b33c925445454004208b1c420d25362ddb7559ae3f0680cd2ffd run #0: crashed: WARNING in sock_hash_delete_elem run #1: crashed: possible deadlock in console_emit_next_record run #2: crashed: possible deadlock in console_emit_next_record run #3: crashed: WARNING in sock_hash_delete_elem run #4: crashed: WARNING in sock_hash_delete_elem run #5: crashed: WARNING in sock_hash_delete_elem run #6: crashed: possible deadlock in console_emit_next_record run #7: crashed: possible deadlock in console_emit_next_record run #8: crashed: WARNING in sock_hash_delete_elem run #9: crashed: possible deadlock in console_emit_next_record representative crash: WARNING in sock_hash_delete_elem, types: [WARNING LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 347385861c50adc8d4801d4b899eded38a2f04cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1ddcb143c2da99ba38fb5242eb3008e04168cc70c56f3eae1303ffe4436c5da5 all runs: OK false negative chance: 0.000 minimized to 396 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 TARGET_CORE TUN USB_AMD5536UDC USB_ATM USB_CONFIGFS 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_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_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_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 [KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD 48d525b0e4634c487cf46a41c1e2824e9ee258ce testing commit 48d525b0e4634c487cf46a41c1e2824e9ee258ce gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 33cb60e5798b642ca172e3d17798bd4cf23d18528d646230863f59349548bb9e all runs: OK false negative chance: 0.000 # git bisect start 48d525b0e4634c487cf46a41c1e2824e9ee258ce 347385861c50adc8d4801d4b899eded38a2f04cd Bisecting: 1316 revisions left to test after this (roughly 10 steps) [e7d48faa15dd5d300f3d7de228a23a4dc78c7667] mptcp: avoid some duplicate code in socket option handling determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit e7d48faa15dd5d300f3d7de228a23a4dc78c7667 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: de0c95edf49b366535b4af9063e5e840661b520428ffe6462008a4fb227a4769 all runs: OK false negative chance: 0.000 # git bisect bad e7d48faa15dd5d300f3d7de228a23a4dc78c7667 Bisecting: 658 revisions left to test after this (roughly 9 steps) [e04539f513e72f892ea0590d00668e314cb78537] btrfs: always clear PERTRANS metadata during commit determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit e04539f513e72f892ea0590d00668e314cb78537 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0350d84e6bce406e187a466b537b4fda0369e26b81b3c5f27fe9da39ab1e40ba all runs: OK false negative chance: 0.000 # git bisect bad e04539f513e72f892ea0590d00668e314cb78537 Bisecting: 328 revisions left to test after this (roughly 8 steps) [41d8fdf3afaff312e17466e4ab732937738d5644] netfilter: nft_set_pipapo: do not free live element determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit 41d8fdf3afaff312e17466e4ab732937738d5644 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a82a91d19ac0bf357718974915f44409c0a80f56a1c987ee524ab18b7a74407 all runs: OK false negative chance: 0.000 # git bisect bad 41d8fdf3afaff312e17466e4ab732937738d5644 Bisecting: 164 revisions left to test after this (roughly 7 steps) [d7ee3bf0caf599c14db0bf4af7aacd6206ef8a23] net/smc: reduce rtnl pressure in smc_pnet_create_pnetids_list() determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit d7ee3bf0caf599c14db0bf4af7aacd6206ef8a23 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5337067f7ba6170b57c12b495258b03ac0e79c819d13bb14a95a2da1191632fa all runs: OK false negative chance: 0.000 # git bisect bad d7ee3bf0caf599c14db0bf4af7aacd6206ef8a23 Bisecting: 81 revisions left to test after this (roughly 6 steps) [f9690dfa181434d828f7583e83d3176116f88566] net: ravb: Always process TX descriptor ring determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit f9690dfa181434d828f7583e83d3176116f88566 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3be997b409b94dfc2b160aaa212d1f376fc88310248ec9b01ab2c10c4f62b907 all runs: OK false negative chance: 0.000 # git bisect bad f9690dfa181434d828f7583e83d3176116f88566 Bisecting: 40 revisions left to test after this (roughly 5 steps) [4e8447a9a3d367b5065a0b7abe101da6e0037b6e] netfilter: nf_tables: flush pending destroy work before exit_net release determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit 4e8447a9a3d367b5065a0b7abe101da6e0037b6e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cb095762edf05c16b6ff8d21f32a72941ef9096e03ddf3465f5bd245f3bbbb64 run #0: crashed: possible deadlock in console_emit_next_record run #1: crashed: possible deadlock in console_emit_next_record run #2: crashed: WARNING in sock_hash_delete_elem 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: WARNING in sock_hash_delete_elem run #7: crashed: possible deadlock in console_emit_next_record run #8: crashed: possible deadlock in console_emit_next_record run #9: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP] # git bisect good 4e8447a9a3d367b5065a0b7abe101da6e0037b6e Bisecting: 20 revisions left to test after this (roughly 4 steps) [d12245080cb259d82b34699f6cd4ec11bdb688bd] udp: do not accept non-tunnel GSO skbs landing in a tunnel determine whether the revision contains the guilty commit revision 4e8447a9a3d367b5065a0b7abe101da6e0037b6e crashed and is reachable testing commit d12245080cb259d82b34699f6cd4ec11bdb688bd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 75bd808f6c32d3a8fe3f97fa5eb16649ac25f8a4d260bffe752bba6dd575837c all runs: OK false negative chance: 0.000 # git bisect bad d12245080cb259d82b34699f6cd4ec11bdb688bd Bisecting: 9 revisions left to test after this (roughly 3 steps) [66cb6659008b7b723ee558ff6df9e5459360b28d] selftests: net: gro fwd: update vxlan GRO test expectations determine whether the revision contains the guilty commit revision 4e8447a9a3d367b5065a0b7abe101da6e0037b6e crashed and is reachable testing commit 66cb6659008b7b723ee558ff6df9e5459360b28d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5d3a28986f026c370d96a7a9e6175d374d6a44efb5a9d646482e6290c1b59ed3 all runs: OK false negative chance: 0.000 # git bisect bad 66cb6659008b7b723ee558ff6df9e5459360b28d Bisecting: 4 revisions left to test after this (roughly 2 steps) [55d3fe7b2b7bc354e7cbc1f7b8f98a29ccd5a366] net/sched: act_skbmod: prevent kernel-infoleak determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit 55d3fe7b2b7bc354e7cbc1f7b8f98a29ccd5a366 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 19466fca772f2c75cd5395ddac28f076f1ebce8405a59b645f7b810ca7a5f369 all runs: OK false negative chance: 0.000 # git bisect bad 55d3fe7b2b7bc354e7cbc1f7b8f98a29ccd5a366 Bisecting: 2 revisions left to test after this (roughly 1 step) [18aae2cb87e5faa9c5bd865260ceadac60d5a6c5] netfilter: validate user input for expected length determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ebc4f2d3398c7b753a33a034fd54f31cbdf336d6804d9d06a75aaecdfb272cfb run #0: crashed: possible deadlock in console_emit_next_record run #1: crashed: WARNING in sock_hash_delete_elem run #2: crashed: WARNING in sock_hash_delete_elem 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: WARNING in sock_hash_delete_elem run #7: crashed: possible deadlock in console_emit_next_record run #8: crashed: WARNING in sock_hash_delete_elem run #9: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] # git bisect good 18aae2cb87e5faa9c5bd865260ceadac60d5a6c5 Bisecting: 0 revisions left to test after this (roughly 1 step) [a44770fed86515eedb5a7c00b787f847ebb134a5] bpf, sockmap: Prevent lock inversion deadlock in map delete elem determine whether the revision contains the guilty commit revision 4e8447a9a3d367b5065a0b7abe101da6e0037b6e crashed and is reachable testing commit a44770fed86515eedb5a7c00b787f847ebb134a5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 163dd27745dd44da689561cfeaae91e10e4ce5e363b88c0fa9df13cb6eafc93d all runs: OK false negative chance: 0.000 # git bisect bad a44770fed86515eedb5a7c00b787f847ebb134a5 Bisecting: 0 revisions left to test after this (roughly 0 steps) [8a57544e9285a16dce8e58f470a1b30f426812c4] vboxsf: Avoid an spurious warning if load_nls_xxx() fails determine whether the revision contains the guilty commit revision 347385861c50adc8d4801d4b899eded38a2f04cd crashed and is reachable testing commit 8a57544e9285a16dce8e58f470a1b30f426812c4 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 02ee20b02e43c257f790bfdfcf9392b80e17f167e0943575d66c2d5c4177a213 run #0: crashed: possible deadlock in console_emit_next_record run #1: crashed: WARNING in sock_hash_delete_elem run #2: crashed: possible deadlock in console_emit_next_record run #3: crashed: WARNING in sock_hash_delete_elem run #4: crashed: WARNING in sock_hash_delete_elem run #5: crashed: WARNING in sock_hash_delete_elem run #6: crashed: possible deadlock in console_emit_next_record run #7: crashed: possible deadlock in console_emit_next_record run #8: crashed: possible deadlock in console_emit_next_record run #9: crashed: possible deadlock in console_emit_next_record representative crash: possible deadlock in console_emit_next_record, types: [LOCKDEP WARNING] # git bisect good 8a57544e9285a16dce8e58f470a1b30f426812c4 a44770fed86515eedb5a7c00b787f847ebb134a5 is the first bad commit commit a44770fed86515eedb5a7c00b787f847ebb134a5 Author: Jakub Sitnicki Date: Tue Apr 2 12:46:21 2024 +0200 bpf, sockmap: Prevent lock inversion deadlock in map delete elem commit ff91059932401894e6c86341915615c5eb0eca48 upstream. 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 Signed-off-by: Greg Kroah-Hartman net/core/sock_map.c | 6 ++++++ 1 file changed, 6 insertions(+) accumulated error probability: 0.00 culprit signature: 163dd27745dd44da689561cfeaae91e10e4ce5e363b88c0fa9df13cb6eafc93d parent signature: 02ee20b02e43c257f790bfdfcf9392b80e17f167e0943575d66c2d5c4177a213 revisions tested: 20, total time: 4h29m48.772991395s (build: 1h40m11.837266042s, test: 2h43m16.221664994s) first good commit: a44770fed86515eedb5a7c00b787f847ebb134a5 bpf, sockmap: Prevent lock inversion deadlock in map delete elem recipients (to): ["daniel@iogearbox.net" "gregkh@linuxfoundation.org" "jakub@cloudflare.com" "john.fastabend@gmail.com" "syzbot+d4066896495db380182e@syzkaller.appspotmail.com"] recipients (cc): []