ci2 starts bisection 2024-09-10 12:51:42.445724735 +0000 UTC m=+42811.725953214 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: 71498317bede0b7c928bbe92b14cc9d299b8c5800837d4f54867769ef8326b7d 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: possible deadlock in htab_lock_bucket run #5: crashed: INFO: rcu detected stall in corrupted run #6: crashed: INFO: rcu detected stall in corrupted 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 run #10: crashed: INFO: rcu detected stall in corrupted run #11: crashed: possible deadlock in htab_lock_bucket 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: 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: no output from test machine 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 [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: e67560e5ce639e5e4d1540a9076d78e0c6d9180a451ba1798613a659cd9ec544 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: 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: possible deadlock in htab_lock_bucket, types: [LOCKDEP HANG] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed kconfig minimization: base=3824 full=7455 leaves diff=1986 split chunks (needed=false): <1986> split chunk #0 of len 1986 into 5 parts testing without sub-chunk 1/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: c889b501746d48628326ee2b55c982d96ede1957358f0f67c29f4328e4e3b1cd 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: 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: no output from test machine run #9: crashed: no output from test machine representative crash: possible deadlock in htab_lock_bucket, types: [LOCKDEP 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: a2c2681a06f212fbb4227d01a8568577e573c2afaf64be1ca1d48367b0529c33 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: 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: possible deadlock in htab_lock_bucket, types: [LOCKDEP UNKNOWN] the chunk can be dropped testing without sub-chunk 3/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: 34d57d517fac84e5fe9cd84b0775d23882cab5f49e06a290ed060b7973f45989 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 4/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: 52e558eed064b96ba9a7323a19f85c2d2e50ed2ed4151ee383ef971442d8b4a4 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: 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: possible deadlock in htab_lock_bucket, types: [LOCKDEP UNKNOWN] the chunk can be dropped testing without sub-chunk 5/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: a05cd9634e533c56a2027bd1101996f3f35e454daa8fe2b3c7e8ab5ee4a0b87d all runs: OK false negative chance: 0.000 minimized to 394 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_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 [BUG KASAN ATOMIC_SLEEP LEAK UBSAN], they are not needed testing current HEAD 5ca5b389fddfe4ce3a698cbc1321fac3d8e3e5b1 testing commit 5ca5b389fddfe4ce3a698cbc1321fac3d8e3e5b1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3337d216baa007d3db0a59a7bf2c64e2d61db63324ffbd5817c5c7572ac84ab1 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: 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: possible deadlock in htab_lock_bucket, types: [LOCKDEP UNKNOWN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h29m7.783487166s (build: 27m11.056112304s, test: 59m18.022820727s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.109 crash: possible deadlock in htab_lock_bucket ====================================================== WARNING: possible circular locking dependency detected 6.1.109-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/1726 is trying to acquire lock: ffff8881001611a0 (&htab->lockdep_key#4){....}-{2:2}, at: htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 but task is already holding lock: ffff888100161a40 (&htab->lockdep_key#5){....}-{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#5){....}-{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:2068 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:2068 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 perf_event_exit_task+0x30/0x330 kernel/events/core.c:13082 do_exit+0x2e4/0xa30 kernel/exit.c:880 do_group_exit+0x97/0xa0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0xe/0x10 kernel/exit.c:1030 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 -> #0 (&htab->lockdep_key#4){....}-{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:2068 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:2068 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 xt_find_target+0x6b/0x110 net/netfilter/x_tables.c:254 xt_request_find_target+0x41/0x80 net/netfilter/x_tables.c:282 find_check_entry net/ipv6/netfilter/ip6_tables.c:565 [inline] translate_table+0x58c/0x7e0 net/ipv6/netfilter/ip6_tables.c:735 do_replace net/ipv6/netfilter/ip6_tables.c:1156 [inline] do_ip6t_set_ctl+0x4dc/0x5f0 net/ipv6/netfilter/ip6_tables.c:1646 nf_setsockopt+0x9a/0xd0 net/netfilter/nf_sockopt.c:101 __sys_setsockopt+0xca/0x100 net/socket.c:2283 __do_sys_setsockopt net/socket.c:2294 [inline] __se_sys_setsockopt net/socket.c:2291 [inline] __x64_sys_setsockopt+0x18/0x20 net/socket.c:2291 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#5); lock(&htab->lockdep_key#4); lock(&htab->lockdep_key#5); lock(&htab->lockdep_key#4); *** DEADLOCK *** 4 locks held by syz-executor.0/1726: #0: ffff88810628ad88 (&xt[i].mutex){+.+.}-{3:3}, at: xt_find_target+0x6b/0x110 net/netfilter/x_tables.c:254 #1: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #1: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #1: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline] #1: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x50/0x190 kernel/trace/bpf_trace.c:2312 #2: ffff888100161a40 (&htab->lockdep_key#5){....}-{2:2}, at: htab_lock_bucket+0x92/0x140 kernel/bpf/hashtab.c:166 #3: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #3: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #3: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2272 [inline] #3: ffffffff83186ee0 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x50/0x190 kernel/trace/bpf_trace.c:2312 stack backtrace: CPU: 0 PID: 1726 Comm: syz-executor.0 Not tainted 6.1.109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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:2068 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:2068 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 xt_find_target+0x6b/0x110 net/netfilter/x_tables.c:254 xt_request_find_target+0x41/0x80 net/netfilter/x_tables.c:282 find_check_entry net/ipv6/netfilter/ip6_tables.c:565 [inline] translate_table+0x58c/0x7e0 net/ipv6/netfilter/ip6_tables.c:735 do_replace net/ipv6/netfilter/ip6_tables.c:1156 [inline] do_ip6t_set_ctl+0x4dc/0x5f0 net/ipv6/netfilter/ip6_tables.c:1646 nf_setsockopt+0x9a/0xd0 net/netfilter/nf_sockopt.c:101 __sys_setsockopt+0xca/0x100 net/socket.c:2283 __do_sys_setsockopt net/socket.c:2294 [inline] __se_sys_setsockopt net/socket.c:2291 [inline] __x64_sys_setsockopt+0x18/0x20 net/socket.c:2291 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:0x7f6c9277bbfa Code: ff ff ff c3 0f 1f 40 00 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 49 89 ca b8 36 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:00007ffede1a9c28 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ffede1a9cb0 RCX: 00007f6c9277bbfa RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00000000000003b8 R09: 00007ffede1aa067 R10: 00007f6c92876ba0 R11: 0000000000000202 R12: 00007f6c92876b40 R13: 00007ffede1a9c4c R14: 0000000000000000 R15: 00007f6c92878d00