ci2 starts bisection 2024-08-10 12:20:04.567942071 +0000 UTC m=+29567.144652340 bisecting fixing commit since 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 building syzkaller on c8349e48534ea6d8f01515335d95de8ebf5da8df ensuring issue is reproducible on original commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: be5d1a7803801aaec0aa01b19828f2c1c21b6dc315ed45a7044503841d6ef06a all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3509df95461411979dae36f6a77530944a92f020ac41ee2b5ee3a504fcbbe737 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, 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=3703 full=7269 leaves diff=1981 split chunks (needed=false): <1981> split chunk #0 of len 1981 into 5 parts testing without sub-chunk 1/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7cb1c6591a7b05c6580d5fa94aa45476b6c0a1f87d06b301bae7612f421e695c all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3be1e724efb5ebd3ac2716680b7c87c8e4a74d785aa28b402baeb9e399ab876a all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 488f1de6bf660a39b65d089d19625134844d540d7aa6daf04f870c2f9da2158e all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1d6e334696d47229e74aafb4c1111b47962408e188abe0aa833d8466b1e001ca all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 990bb0b4dee51615aabacf831aaddb9d5811b0c4c96528a4e4ef6f22dee731be run #0: crashed: lost connection to test machine run #1: crashed: lost connection to test machine run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: lost connection to test machine, types: [UNKNOWN] minimized to 393 configs; suspects: [ARCH_ENABLE_MEMORY_HOTREMOVE ATM BCMA BLK_DEV_ZONED BPF_SYSCALL CARDBUS CFG80211 CFG80211_WEXT CMA CONTIG_ALLOC CRYPTO_842 CRYPTO_LZ4 CRYPTO_LZ4HC CRYPTO_LZO CRYPTO_ZSTD DVB_CORE EXTCON FB FRONTSWAP GPIOLIB HID_ZEROPLUS I2C_MUX IIO IRQ_REMAP 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_HOTPLUG_SPARSE 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_STKWEBCAM 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 USB_ZR364XX USERFAULTFD USERIO USERMODE_DRIVER USER_RETURN_NOTIFIER U_SERIAL_CONSOLE V4L2_MEM2MEM_DEV V4L_TEST_DRIVERS VALIDATE_FS_PARSER VDPA 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 VIDEOBUF_GEN VIDEOBUF_VMALLOC VIDEO_AU0828 VIDEO_AU0828_RC VIDEO_AU0828_V4L2 VIDEO_CPIA2 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_TM6000 VIDEO_TM6000_ALSA VIDEO_TM6000_DVB VIDEO_TUNER VIDEO_TVEEPROM VIDEO_USBTV VIDEO_V4L2 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 X86_SGX X86_X2APIC X86_X32 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 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 [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed determining the merge base between 7c6d66f0266faf94d04b3bfe0d7a06eae3484c50 and 34ac1e82e5a78d5ed7f647766f5b1b51ca4d983a 8bb7eca972ad531c9b149c0a51ab43a417385813/Linux 5.15 is a merge base, check if it has the bug testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 96c005050bc589c9138fcb8de31411d8b9b8e1c843b5598a615eee57f1e503b2 run #0: crashed: lost connection to test machine run #1: crashed: lost connection to test machine run #2: crashed: lost connection to test machine run #3: crashed: lost connection to test machine run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: lost connection to test machine, types: [UNKNOWN] testing current HEAD 34ac1e82e5a78d5ed7f647766f5b1b51ca4d983a testing commit 34ac1e82e5a78d5ed7f647766f5b1b51ca4d983a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bdea67037920c3c075facd9ffd5bc9c5fdeeff4b00205f3417ed3e4fb553003c all runs: OK false negative chance: 0.000 # git bisect start 34ac1e82e5a78d5ed7f647766f5b1b51ca4d983a 8bb7eca972ad531c9b149c0a51ab43a417385813 Bisecting: 125187 revisions left to test after this (roughly 17 steps) [534293368afa1a953c283310b82e4dc58309d51e] Merge tag 'kbuild-fixes-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 534293368afa1a953c283310b82e4dc58309d51e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6c681bfa9091eef9a156b9f26af634d1c4e3002af33379e385e8c5d5de09fc37 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 534293368afa1a953c283310b82e4dc58309d51e Bisecting: 62583 revisions left to test after this (roughly 16 steps) [dc1434801d2ee8b57286f587877e67d2f9b699d6] Merge tag 'gpio-pinctrl-updates-for-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux determine whether the revision contains the guilty commit revision 534293368afa1a953c283310b82e4dc58309d51e crashed and is reachable testing commit dc1434801d2ee8b57286f587877e67d2f9b699d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ca6245e0e36754ef96e126c9a62ff3a41d3a97791bb78b925715e146e61c57e8 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good dc1434801d2ee8b57286f587877e67d2f9b699d6 Bisecting: 31412 revisions left to test after this (roughly 15 steps) [0a59b3f42e5703a89dd6ddf5bc818a4cff975302] Merge tag 'staging-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 0a59b3f42e5703a89dd6ddf5bc818a4cff975302 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f18b8995a666798ed1c6ab359e738d1810c96e855f27df2b2b58fc693ef43846 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 0a59b3f42e5703a89dd6ddf5bc818a4cff975302 Bisecting: 15717 revisions left to test after this (roughly 14 steps) [3a390f24b77328395cb7dfe05739889aff6897a6] Merge tag 'x86-urgent-2024-05-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip determine whether the revision contains the guilty commit revision 534293368afa1a953c283310b82e4dc58309d51e crashed and is reachable testing commit 3a390f24b77328395cb7dfe05739889aff6897a6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 98784dc2a4d51b96559678b69b166a7bdb768ed338c08ab167f8444cce5304bf all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 3a390f24b77328395cb7dfe05739889aff6897a6 Bisecting: 8021 revisions left to test after this (roughly 13 steps) [280e36f0d5b997173d014c07484c03a7f7750668] nsfs: use cleanup guard determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 280e36f0d5b997173d014c07484c03a7f7750668 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3d244bf5cecba529bdd79524a6bfb17bc3f5b73abc6ea68f43c19fd9115009e9 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 280e36f0d5b997173d014c07484c03a7f7750668 Bisecting: 3853 revisions left to test after this (roughly 12 steps) [12cc3d5389f313f07222b000fefa2cd8fc98c4f8] Merge tag 'sound-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 12cc3d5389f313f07222b000fefa2cd8fc98c4f8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 71cc117586066a5e06d627cd25b51e971726fe3d5067cc98d99e32742c7cbe5f all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 12cc3d5389f313f07222b000fefa2cd8fc98c4f8 Bisecting: 1792 revisions left to test after this (roughly 11 steps) [fbc90c042cd1dc7258ebfebe6d226017e5b5ac8c] Merge tag 'mm-stable-2024-07-21-14-50' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit fbc90c042cd1dc7258ebfebe6d226017e5b5ac8c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d8720715df93be5e00860f4003f93ce443b7b06d40e2e5227224d3c1b7a202e1 all runs: OK false negative chance: 0.000 # git bisect bad fbc90c042cd1dc7258ebfebe6d226017e5b5ac8c Bisecting: 1006 revisions left to test after this (roughly 10 steps) [3c3ff7be9729959699eb6cbc7fd7303566d74069] Merge tag 'powerpc-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux determine whether the revision contains the guilty commit revision 534293368afa1a953c283310b82e4dc58309d51e crashed and is reachable testing commit 3c3ff7be9729959699eb6cbc7fd7303566d74069 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b2f1af714537ff54d7fcb38f864603a2b2418aab2d15b23852499435e1fd521b all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 3c3ff7be9729959699eb6cbc7fd7303566d74069 Bisecting: 550 revisions left to test after this (roughly 9 steps) [2c9b3512402ed192d1f43f4531fb5da947e72bd0] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm determine whether the revision contains the guilty commit revision 534293368afa1a953c283310b82e4dc58309d51e crashed and is reachable testing commit 2c9b3512402ed192d1f43f4531fb5da947e72bd0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c11c3427afb47b4a449c0395ebdc57db47514903f3758372029278ea85795dbb all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 2c9b3512402ed192d1f43f4531fb5da947e72bd0 Bisecting: 275 revisions left to test after this (roughly 8 steps) [87024f5837485c2f9541283747428df54c0f9183] mm: memcg: rename soft limit reclaim-related functions determine whether the revision contains the guilty commit revision 3a390f24b77328395cb7dfe05739889aff6897a6 crashed and is reachable testing commit 87024f5837485c2f9541283747428df54c0f9183 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2fc66c57d0de224f38d6625b1d0d69f96036a7542ee61ac10eb930767fb9fc3f all runs: OK false negative chance: 0.000 # git bisect bad 87024f5837485c2f9541283747428df54c0f9183 Bisecting: 137 revisions left to test after this (roughly 7 steps) [5a8b01be4f6f50838b094509a49e1e5ed32c1c5c] mm/memory-failure: don't export hwpoison_filter() when !CONFIG_HWPOISON_INJECT determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 5a8b01be4f6f50838b094509a49e1e5ed32c1c5c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4fe8c560c28853facaabd2ae5aad1068fbee8371c7521dae4ec1e6fa36418202 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good 5a8b01be4f6f50838b094509a49e1e5ed32c1c5c Bisecting: 68 revisions left to test after this (roughly 6 steps) [c02525a33969000fa7b595b743deb4d79804916b] ftrace: unpoison ftrace_regs in ftrace_ops_list_func() determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit c02525a33969000fa7b595b743deb4d79804916b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 72e5203a0bed77dbc1d61610d199c3c850c731d5378e1aaeedd2fe9526f62985 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good c02525a33969000fa7b595b743deb4d79804916b Bisecting: 34 revisions left to test after this (roughly 5 steps) [e0bebfd63af82e69419165770002420830fd32ec] s390/uaccess: add the missing linux/instrumented.h #include determine whether the revision contains the guilty commit revision 0a59b3f42e5703a89dd6ddf5bc818a4cff975302 crashed and is reachable testing commit e0bebfd63af82e69419165770002420830fd32ec gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 613ab8e7469b5e4f6ec9372d4e094ee3ff434d4d22499bc361d0edaf5bb37cd4 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good e0bebfd63af82e69419165770002420830fd32ec Bisecting: 17 revisions left to test after this (roughly 4 steps) [a6eccd5be3e99fd7e707edd73e959d38722bbade] readahead: fold try_context_readahead() into its single caller determine whether the revision contains the guilty commit revision 0a59b3f42e5703a89dd6ddf5bc818a4cff975302 crashed and is reachable testing commit a6eccd5be3e99fd7e707edd73e959d38722bbade gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 551eff6bda4f3196cee7ffaa3cb70cf2d8f4193ef89049a2e2c8805e80d67cdd all runs: OK false negative chance: 0.000 # git bisect bad a6eccd5be3e99fd7e707edd73e959d38722bbade Bisecting: 8 revisions left to test after this (roughly 3 steps) [ee86814b0562f18255b55c5e6a01a022895994cf] mm/migrate: move NUMA hinting fault folio isolation + checks under PTL determine whether the revision contains the guilty commit revision dc1434801d2ee8b57286f587877e67d2f9b699d6 crashed and is reachable testing commit ee86814b0562f18255b55c5e6a01a022895994cf gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f57d9f7af66f82dbff3584181498b70a553df08ac0a9048becf4cf4f15c13ca5 all runs: OK false negative chance: 0.000 # git bisect bad ee86814b0562f18255b55c5e6a01a022895994cf Bisecting: 3 revisions left to test after this (roughly 2 steps) [b072880d69adf2e3dd3e4320f553cc8b9174fea6] kmsan: add missing __user tags determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit b072880d69adf2e3dd3e4320f553cc8b9174fea6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a2db856a82807359023b974da26610ab69e9beb8d4b71a9b3e33daf4594a522c all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good b072880d69adf2e3dd3e4320f553cc8b9174fea6 Bisecting: 1 revision left to test after this (roughly 1 step) [7d6be67cfdd4a53cea7147313ca13c531e3a470f] mm: mmap_lock: replace get_memcg_path_buf() with on-stack buffer determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit 7d6be67cfdd4a53cea7147313ca13c531e3a470f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 91690f5c6fe0788132c91f53c9e0f6d0428a8d1bcacdd68f01b4aed207791314 all runs: OK false negative chance: 0.000 # git bisect bad 7d6be67cfdd4a53cea7147313ca13c531e3a470f Bisecting: 0 revisions left to test after this (roughly 0 steps) [b1a80f4be7691a1ea007e24ebb3c8ca2e4a20f00] kmsan: do not pass NULL pointers as 0 determine whether the revision contains the guilty commit revision 8bb7eca972ad531c9b149c0a51ab43a417385813 crashed and is reachable testing commit b1a80f4be7691a1ea007e24ebb3c8ca2e4a20f00 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dbc5a02b7d9a832163a490f4d37196d23ebeb306d4dcce2a89f483ed96930702 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: inconsistent lock state in __mmap_lock_do_trace_acquire_returned, types: [LOCKDEP] # git bisect good b1a80f4be7691a1ea007e24ebb3c8ca2e4a20f00 7d6be67cfdd4a53cea7147313ca13c531e3a470f is the first bad commit commit 7d6be67cfdd4a53cea7147313ca13c531e3a470f Author: Tetsuo Handa Date: Fri Jun 21 10:08:41 2024 +0900 mm: mmap_lock: replace get_memcg_path_buf() with on-stack buffer Commit 2b5067a8143e ("mm: mmap_lock: add tracepoints around lock acquisition") introduced TRACE_MMAP_LOCK_EVENT() macro using preempt_disable() in order to let get_mm_memcg_path() return a percpu buffer exclusively used by normal, softirq, irq and NMI contexts respectively. Commit 832b50725373 ("mm: mmap_lock: use local locks instead of disabling preemption") replaced preempt_disable() with local_lock(&memcg_paths.lock) based on an argument that preempt_disable() has to be avoided because get_mm_memcg_path() might sleep if PREEMPT_RT=y. But syzbot started reporting inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. and inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. messages, for local_lock() does not disable IRQ. We could replace local_lock() with local_lock_irqsave() in order to suppress these messages. But this patch instead replaces percpu buffers with on-stack buffer, for the size of each buffer returned by get_memcg_path_buf() is only 256 bytes which is tolerable for allocating from current thread's kernel stack memory. Link: https://lkml.kernel.org/r/ef22d289-eadb-4ed9-863b-fbc922b33d8d@I-love.SAKURA.ne.jp Reported-by: syzbot Closes: https://syzkaller.appspot.com/bug?extid=40905bca570ae6784745 Fixes: 832b50725373 ("mm: mmap_lock: use local locks instead of disabling preemption") Signed-off-by: Tetsuo Handa Reviewed-by: Axel Rasmussen Cc: Nicolas Saenz Julienne Cc: Signed-off-by: Andrew Morton mm/mmap_lock.c | 175 +++++++-------------------------------------------------- 1 file changed, 20 insertions(+), 155 deletions(-) accumulated error probability: 0.00 culprit signature: 91690f5c6fe0788132c91f53c9e0f6d0428a8d1bcacdd68f01b4aed207791314 parent signature: dbc5a02b7d9a832163a490f4d37196d23ebeb306d4dcce2a89f483ed96930702 reproducer is flaky (1.00 repro chance estimate) revisions tested: 27, total time: 4h38m37.368167718s (build: 1h55m26.917512463s, test: 2h33m21.382651435s) first good commit: 7d6be67cfdd4a53cea7147313ca13c531e3a470f mm: mmap_lock: replace get_memcg_path_buf() with on-stack buffer recipients (to): ["akpm@linux-foundation.org" "axelrasmussen@google.com" "penguin-kernel@i-love.sakura.ne.jp"] recipients (cc): []