ci2 starts bisection 2024-05-22 21:38:50.872074803 +0000 UTC m=+42109.631454752 bisecting fixing commit since 6741e066ec7633450d3186946035c1f80c4226b8 building syzkaller on 18f6e127bf6e515fc3eee0936bde2415e676e160 ensuring issue is reproducible on original commit 6741e066ec7633450d3186946035c1f80c4226b8 testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9f1f7dfe245adaf243a3a52297914ce646452ef8ef591eea992b9f21909d5b9d run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: INFO: rcu detected stall in corrupted run #2: crashed: INFO: rcu detected stall in corrupted run #3: crashed: possible deadlock in htab_lock_bucket run #4: crashed: INFO: rcu detected stall in corrupted run #5: crashed: possible deadlock in htab_lock_bucket 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 run #10: crashed: INFO: rcu detected stall in corrupted run #11: crashed: INFO: rcu detected stall in corrupted run #12: crashed: possible deadlock in htab_lock_bucket run #13: crashed: possible deadlock in htab_lock_bucket run #14: crashed: INFO: rcu detected stall in corrupted run #15: crashed: possible deadlock in htab_lock_bucket 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: crashed: no output from test machine representative crash: INFO: rcu detected stall in corrupted, types: [HANG LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [BUG KASAN ATOMIC_SLEEP LEAK UBSAN], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 32e7c46cc7b6ee891c7cf959ccb00ada85be8509e3e8fcc9107ea030083eacb4 run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: possible deadlock in htab_lock_bucket run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: possible deadlock in htab_lock_bucket 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 [UBSAN BUG KASAN ATOMIC_SLEEP LEAK], they are not needed kconfig minimization: base=3820 full=7455 leaves diff=1990 split chunks (needed=false): <1990> split chunk #0 of len 1990 into 5 parts testing without sub-chunk 1/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 470bff5baf38e582487286ca7d4fd90b56ae663e3a93ce4b8c652dc9a9c0904e run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: INFO: rcu detected stall in corrupted run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: INFO: rcu detected stall in corrupted 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: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine representative crash: INFO: rcu detected stall in corrupted, types: [HANG UNKNOWN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [KASAN ATOMIC_SLEEP LEAK UBSAN BUG], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2fb94abfe92e197fa63e219894d1d705a5ccc7ebc25901725dd7ae496621830 run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: possible deadlock in htab_lock_bucket run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: possible deadlock in htab_lock_bucket run #4: crashed: INFO: rcu detected stall in corrupted run #5: crashed: INFO: rcu detected stall in corrupted run #6: crashed: possible deadlock in htab_lock_bucket run #7: crashed: possible deadlock in htab_lock_bucket run #8: crashed: INFO: rcu detected stall in corrupted run #9: crashed: INFO: rcu detected stall in corrupted representative crash: possible deadlock in htab_lock_bucket, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 12acbc4c401ccb0ff8610398b3e82d1875d58b09ec8fa82f28ab979240f0647f run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: possible deadlock in htab_lock_bucket run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: no output from test machine run #4: crashed: no output from test machine run #5: crashed: no output from test machine run #6: crashed: no output from test machine run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine representative crash: no output from test machine, types: [UNKNOWN LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP LEAK], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 07ee1f0a717a7c7ce1db5d55d2409834d05d04d077fb3941c7e4f880bd9f0df5 run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: possible deadlock in htab_lock_bucket run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: possible deadlock in htab_lock_bucket run #4: crashed: no output from test machine run #5: crashed: no output from test machine run #6: crashed: no output from test machine run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine representative crash: no output from test machine, types: [UNKNOWN LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [BUG KASAN ATOMIC_SLEEP LEAK UBSAN], they are not needed testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b7160791414491afdaf875e903e8ce32e684b33ca34fbc848a57e43f16fbd2dc 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 TARGET_CORE TUN USB_AMD5536UDC USB_ATM USB_CONFIGFS 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_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 [LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing current HEAD 4078fa637fcd80c8487680ec2e4ef7c58308e9aa testing commit 4078fa637fcd80c8487680ec2e4ef7c58308e9aa gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 78de396052c19f8c667d773a3a7b7b7f9529c42d794348a01804003263261052 run #0: crashed: possible deadlock in htab_lock_bucket run #1: crashed: possible deadlock in htab_lock_bucket run #2: crashed: possible deadlock in htab_lock_bucket run #3: crashed: possible deadlock in htab_lock_bucket run #4: crashed: possible deadlock in htab_lock_bucket run #5: crashed: possible deadlock in htab_lock_bucket run #6: crashed: possible deadlock in htab_lock_bucket run #7: crashed: no output from test machine run #8: crashed: no output from test machine run #9: crashed: no output from test machine representative crash: possible deadlock in htab_lock_bucket, types: [LOCKDEP UNKNOWN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 2h47m58.849768277s (build: 1h49m44.426576918s, test: 55m41.25109798s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.91 crash: possible deadlock in htab_lock_bucket ====================================================== WARNING: possible circular locking dependency detected 6.1.91-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/1824 is trying to acquire lock: ffff88811db6ce60 (&htab->lockdep_key#8){....}-{2:2}, at: htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 but task is already holding lock: ffff8881001615c0 (&htab->lockdep_key#11){....}-{2:2}, at: htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&htab->lockdep_key#11){....}-{2:2}: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __pv_queued_spin_lock_slowpath+0x468/0x480 kernel/locking/qspinlock.c:560 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x95/0xa0 kernel/locking/spinlock_debug.c:115 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __mutex_lock_common kernel/locking/mutex.c:612 [inline] __mutex_lock+0x808/0x970 kernel/locking/mutex.c:747 arch_jump_label_transform_queue+0x1e/0x60 arch/x86/kernel/jump_label.c:136 __jump_label_update+0x85/0xd0 kernel/jump_label.c:447 __static_key_slow_dec_cpuslocked kernel/jump_label.c:248 [inline] __static_key_slow_dec+0x3f/0x60 kernel/jump_label.c:255 bpf_stats_release+0x1a/0x30 kernel/bpf/syscall.c:4817 __fput+0xe1/0x210 fs/file_table.c:320 task_work_run+0x79/0xa0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd2/0xe0 kernel/entry/common.c:177 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 -> #0 (&htab->lockdep_key#8){....}-{2:2}: 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 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __pv_queued_spin_lock_slowpath+0x468/0x480 kernel/locking/qspinlock.c:560 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x95/0xa0 kernel/locking/spinlock_debug.c:115 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __mutex_lock_common kernel/locking/mutex.c:612 [inline] __mutex_lock+0x808/0x970 kernel/locking/mutex.c:747 nf_sockopt_find net/netfilter/nf_sockopt.c:67 [inline] nf_getsockopt+0x28/0xc0 net/netfilter/nf_sockopt.c:113 ip_getsockopt+0xa6/0xf0 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0x56/0x70 net/ipv4/tcp.c:4445 __sys_getsockopt+0xaa/0xe0 net/socket.c:2327 __do_sys_getsockopt net/socket.c:2342 [inline] __se_sys_getsockopt net/socket.c:2339 [inline] __x64_sys_getsockopt+0x18/0x20 net/socket.c:2339 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&htab->lockdep_key#11); lock(&htab->lockdep_key#8); lock(&htab->lockdep_key#11); lock(&htab->lockdep_key#8); *** DEADLOCK *** 4 locks held by syz-executor.4/1824: #0: ffffffff833090e8 (nf_sockopt_mutex){+.+.}-{3:3}, at: nf_sockopt_find net/netfilter/nf_sockopt.c:67 [inline] #0: ffffffff833090e8 (nf_sockopt_mutex){+.+.}-{3:3}, at: nf_getsockopt+0x28/0xc0 net/netfilter/nf_sockopt.c:113 #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_run2+0x50/0x190 kernel/trace/bpf_trace.c:2312 #2: ffff8881001615c0 (&htab->lockdep_key#11){....}-{2:2}, at: htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 #3: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #3: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #3: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline] #3: ffffffff83186e20 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x50/0x190 kernel/trace/bpf_trace.c:2312 stack backtrace: CPU: 1 PID: 1824 Comm: syz-executor.4 Not tainted 6.1.91-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __pv_queued_spin_lock_slowpath+0x468/0x480 kernel/locking/qspinlock.c:560 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x95/0xa0 kernel/locking/spinlock_debug.c:115 htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 htab_map_delete_elem+0x91/0x210 kernel/bpf/hashtab.c:1399 ____bpf_map_delete_elem kernel/bpf/helpers.c:73 [inline] bpf_map_delete_elem+0x38/0x40 kernel/bpf/helpers.c:69 ___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:596 [inline] bpf_prog_run include/linux/filter.h:610 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline] bpf_trace_run2+0x161/0x190 kernel/trace/bpf_trace.c:2312 __traceiter_contention_end+0x26/0x40 include/trace/events/lock.h:122 trace_contention_end include/trace/events/lock.h:122 [inline] __mutex_lock_common kernel/locking/mutex.c:612 [inline] __mutex_lock+0x808/0x970 kernel/locking/mutex.c:747 nf_sockopt_find net/netfilter/nf_sockopt.c:67 [inline] nf_getsockopt+0x28/0xc0 net/netfilter/nf_sockopt.c:113 ip_getsockopt+0xa6/0xf0 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0x56/0x70 net/ipv4/tcp.c:4445 __sys_getsockopt+0xaa/0xe0 net/socket.c:2327 __do_sys_getsockopt net/socket.c:2342 [inline] __se_sys_getsockopt net/socket.c:2339 [inline] __x64_sys_getsockopt+0x18/0x20 net/socket.c:2339 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f615fa9ba4a Code: c4 c1 e0 1a 0d 00 00 04 00 89 01 e9 e0 fe ff ff e8 3b 05 00 00 66 2e 0f 1f 84 00 00 00 00 00 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b0 ff ff ff f7 RSP: 002b:00007fff6210b718 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fff6210b7a0 RCX: 00007f615fa9ba4a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007fff6210b73c R09: 00007fff6210bb57 R10: 00007fff6210b7a0 R11: 0000000000000212 R12: 00007f615fb99a80 R13: 00007fff6210b73c R14: 0000000000000000 R15: 00007f615fb9aec0