ci starts bisection 2024-08-27 22:19:29.86169867 +0000 UTC m=+21158.523561291 bisecting fixing commit since 36534d3c54537bf098224a32dc31397793d4594d building syzkaller on f429ab00b60520c365d122f14c46235ca0aa11ef ensuring issue is reproducible on original commit 36534d3c54537bf098224a32dc31397793d4594d testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 49ec3647526ceda97f886e21f62dabe80b67843bfb62d7ea69c0e99f2ec6b4de run #0: crashed: inconsistent lock state in valid_state run #1: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #2: crashed: inconsistent lock state in valid_state run #3: crashed: inconsistent lock state in valid_state run #4: crashed: inconsistent lock state in valid_state run #5: crashed: inconsistent lock state in valid_state run #6: crashed: inconsistent lock state in valid_state run #7: crashed: inconsistent lock state in valid_state run #8: crashed: inconsistent lock state in valid_state run #9: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #10: crashed: inconsistent lock state in valid_state run #11: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #12: crashed: inconsistent lock state in valid_state run #13: crashed: inconsistent lock state in valid_state run #14: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #15: crashed: inconsistent lock state in valid_state run #16: crashed: inconsistent lock state in valid_state run #17: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #18: crashed: possible deadlock in __mmap_lock_do_trace_start_locking run #19: crashed: possible deadlock in __mmap_lock_do_trace_start_locking representative crash: inconsistent lock state in valid_state, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 22fb5506ff2fc57a3329e82c5796fc78802d38a3f8ed7e0208803595d45896ea all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_released representative crash: inconsistent lock state in __mmap_lock_do_trace_released, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed kconfig minimization: base=4001 full=8044 leaves diff=2009 split chunks (needed=false): <2009> split chunk #0 of len 2009 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9ecbf4a070fed263d19e25e6c5f7ef8acdd86c4087b55a9c2f5010aeda54b235 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_released representative crash: inconsistent lock state in __mmap_lock_do_trace_released, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 08a2a5006de6328f1283817e67d1e276533cf3b2f84b3b78254025e03c1a0f2c all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_released representative crash: inconsistent lock state in __mmap_lock_do_trace_released, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7d8ff2d4dfdadc09388388408e368b6903ab904deed82462133743d108d377bd all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_released representative crash: inconsistent lock state in __mmap_lock_do_trace_released, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: abb4549ba9b8d6b07a24f6dfcddf50c3a58107e753f26817329aacb031b39e1d run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 36534d3c54537bf098224a32dc31397793d4594d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 05f7a534d0360ba86b2eb924fd6153a77b041734940add34a5ee7ed8806240ce all runs: OK false negative chance: 0.000 minimized to 401 configs; suspects: [ARCH_ENABLE_MEMORY_HOTREMOVE ATM BCMA BLK_DEV_ZONED BPF_SYSCALL CARDBUS CFG80211 CFG80211_WEXT CMA COMMON_CLK CONTIG_ALLOC CRYPTO_842 CRYPTO_LZ4 CRYPTO_LZ4HC CRYPTO_ZSTD DVB_CORE EXTCON FB GPIOLIB HID_ZEROPLUS I2C_MUX IIO IOMMUFD IRQ_REMAP KVM KVM_INTEL LIBNVDIMM MEDIA_ANALOG_TV_SUPPORT MEDIA_CAMERA_SUPPORT MEDIA_CEC_SUPPORT MEDIA_CONTROLLER MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_TEST_SUPPORT MEDIA_USB_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_VIPERBOARD PARPORT PCCARD PCMCIA PHONET RADIO_ADAPTERS RADIO_SI470X RADIO_SI4713 RC_CORE RFKILL SND SOUND SPI SSB TAP TARGET_CORE TUN USB_AMD5536UDC USB_ATM USB_CONFIGFS USB_CONFIGFS_ECM_SUBSET USB_CONFIGFS_EEM USB_CONFIGFS_F_FS USB_CONFIGFS_F_HID USB_CONFIGFS_F_LB_SS USB_CONFIGFS_F_MIDI USB_CONFIGFS_F_PRINTER USB_CONFIGFS_F_TCM USB_CONFIGFS_F_UAC1 USB_CONFIGFS_F_UAC1_LEGACY USB_CONFIGFS_F_UAC2 USB_CONFIGFS_F_UVC USB_CONFIGFS_MASS_STORAGE USB_CONFIGFS_NCM USB_CONFIGFS_OBEX USB_CONFIGFS_PHONET USB_CONFIGFS_RNDIS USB_CONFIGFS_SERIAL USB_CXACRU USB_CYPRESS_CY7C63 USB_CYTHERM USB_DSBR USB_DUMMY_HCD USB_DWC2 USB_DWC2_HOST USB_DWC2_PCI USB_DWC3 USB_DWC3_GADGET USB_DWC3_OF_SIMPLE USB_DWC3_PCI USB_DWC3_ULPI USB_DYNAMIC_MINORS USB_EG20T USB_EHCI_HCD_PLATFORM USB_EHCI_ROOT_HUB_TT USB_EHSET_TEST_FIXTURE USB_EMI26 USB_EMI62 USB_EPSON2888 USB_EZUSB_FX2 USB_FEW_INIT_RETRIES USB_F_ACM USB_F_ECM USB_F_EEM USB_F_FS USB_F_HID USB_F_MASS_STORAGE USB_F_MIDI USB_F_NCM USB_F_OBEX USB_F_PHONET USB_F_PRINTER USB_F_RNDIS USB_F_SERIAL USB_F_SS_LB USB_F_SUBSET USB_F_TCM USB_F_UAC1 USB_F_UAC1_LEGACY USB_F_UAC2 USB_F_UVC USB_GADGET USB_GADGETFS USB_GADGET_DEBUG_FILES USB_GADGET_DEBUG_FS USB_GL860 USB_GOKU USB_GPIO_VBUS USB_GR_UDC USB_GSPCA USB_GSPCA_BENQ USB_GSPCA_CONEX USB_GSPCA_CPIA1 USB_GSPCA_DTCS033 USB_GSPCA_ETOMS USB_GSPCA_FINEPIX USB_GSPCA_JEILINJ USB_GSPCA_JL2005BCD USB_GSPCA_KINECT USB_GSPCA_KONICA USB_GSPCA_MARS USB_GSPCA_MR97310A USB_GSPCA_NW80X USB_GSPCA_OV519 USB_GSPCA_OV534 USB_GSPCA_OV534_9 USB_GSPCA_PAC207 USB_GSPCA_PAC7302 USB_GSPCA_PAC7311 USB_GSPCA_SE401 USB_GSPCA_SN9C2028 USB_GSPCA_SN9C20X USB_GSPCA_SONIXB USB_GSPCA_SONIXJ USB_GSPCA_SPCA1528 USB_GSPCA_SPCA500 USB_GSPCA_SPCA501 USB_GSPCA_SPCA505 USB_GSPCA_SPCA506 USB_GSPCA_SPCA508 USB_GSPCA_SPCA561 USB_GSPCA_SQ905 USB_GSPCA_SQ905C USB_GSPCA_SQ930X USB_GSPCA_STK014 USB_GSPCA_STK1135 USB_GSPCA_STV0680 USB_GSPCA_SUNPLUS USB_GSPCA_T613 USB_GSPCA_TOPRO USB_GSPCA_TOUPTEK USB_GSPCA_TV8532 USB_GSPCA_VC032X USB_GSPCA_VICAM USB_GSPCA_XIRLINK_CIT USB_GSPCA_ZC3XX USB_HACKRF USB_HCD_BCMA USB_HCD_SSB USB_HSIC_USB3503 USB_HSIC_USB4604 USB_HSO USB_HUB_USB251XB USB_IDMOUSE USB_IOWARRIOR USB_IPHETH USB_ISIGHTFW USB_ISP116X_HCD USB_ISP1301 USB_ISP1760 USB_ISP1760_DUAL_ROLE USB_ISP1760_HCD USB_ISP1761_UDC USB_KAWETH USB_KC2190 USB_KEENE USB_LAN78XX USB_LCD USB_LD USB_LEDS_TRIGGER_USBPORT USB_LED_TRIG USB_LEGOTOWER USB_LIBCOMPOSITE USB_LINK_LAYER_TEST USB_M5602 USB_MA901 USB_MAX3421_HCD USB_MDC800 USB_MICROTEK USB_MR800 USB_MSI2500 USB_MUSB_DUAL_ROLE USB_MUSB_HDRC USB_MV_U3D USB_MV_UDC USB_NET2272 USB_NET2272_DMA USB_NET2280 USB_NET_AX88179_178A USB_NET_AX8817X USB_NET_CDCETHER USB_NET_CDC_EEM USB_NET_CDC_MBIM USB_NET_CDC_NCM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_CH9200 USB_NET_CX82310_ETH USB_NET_DM9601 USB_NET_GL620A USB_NET_HUAWEI_CDC_NCM USB_NET_INT51X1 USB_NET_KALMIA USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_QMI_WWAN USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_OXU210HP_HCD USB_PEGASUS USB_PULSE8_CEC USB_PWC USB_PWC_INPUT_EVDEV USB_PXA27X USB_R8A66597 USB_R8A66597_HCD USB_RAINSHADOW_CEC USB_RAREMONO USB_RAW_GADGET USB_RTL8150 USB_RTL8152 USB_RTL8153_ECM USB_S2255 USB_SERIAL USB_SERIAL_AIRCABLE USB_SERIAL_ARK3116 USB_SERIAL_BELKIN USB_SERIAL_CH341 USB_SERIAL_CONSOLE USB_SERIAL_CP210X USB_SERIAL_CYBERJACK USB_SERIAL_CYPRESS_M8 USB_SERIAL_DEBUG USB_SERIAL_DIGI_ACCELEPORT USB_SERIAL_EDGEPORT USB_SERIAL_EDGEPORT_TI USB_SERIAL_EMPEG USB_SERIAL_F81232 USB_SERIAL_F8153X USB_SERIAL_FTDI_SIO USB_SERIAL_GARMIN USB_SERIAL_GENERIC USB_SERIAL_IPAQ USB_SERIAL_IPW USB_SERIAL_IR USB_SERIAL_IUU USB_SERIAL_KEYSPAN USB_SERIAL_KEYSPAN_PDA USB_SERIAL_KLSI USB_SERIAL_KOBIL_SCT USB_SERIAL_MCT_U232 USB_SERIAL_METRO USB_SERIAL_MOS7715_PARPORT USB_SERIAL_MOS7720 USB_SERIAL_MOS7840 USB_SERIAL_MXUPORT USB_SERIAL_NAVMAN USB_SERIAL_OMNINET USB_SERIAL_OPTICON USB_SERIAL_OPTION USB_SERIAL_OTI6858 USB_SERIAL_PL2303 USB_SERIAL_QCAUX USB_SERIAL_QT2 USB_SERIAL_QUALCOMM USB_SERIAL_SAFE USB_SERIAL_SIERRAWIRELESS USB_SERIAL_SIMPLE USB_SERIAL_SPCP8X5 USB_SERIAL_SSU100 USB_SERIAL_SYMBOL USB_SERIAL_TI USB_SERIAL_UPD78F0730 USB_SERIAL_VISOR USB_SERIAL_WHITEHEAT USB_SERIAL_WISHBONE USB_SERIAL_WWAN USB_SERIAL_XR USB_SERIAL_XSENS_MT USB_SEVSEG USB_SI470X USB_SI4713 USB_SIERRA_NET USB_SISUSBVGA USB_SL811_CS USB_SL811_HCD USB_SL811_HCD_ISO USB_SNP_CORE USB_SPEEDTOUCH USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_ENE_UB6250 USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_STV06XX USB_TEST USB_TMC USB_TRANCEVIBRATOR USB_UAS USB_UEAGLEATM USB_ULPI_BUS USB_USBNET USB_USS720 USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_VIDEO_CLASS USB_VIDEO_CLASS_INPUT_EVDEV USB_VL600 USB_WDM USB_XHCI_DBGCAP USB_XHCI_PLATFORM USB_XUSBATM USB_YUREX USERFAULTFD USERIO USERMODE_DRIVER USER_RETURN_NOTIFIER UVC_COMMON U_SERIAL_CONSOLE V4L2_MEM2MEM_DEV V4L_TEST_DRIVERS VALIDATE_FS_PARSER VDPA VDPA_SIM VDPA_SIM_BLOCK VDPA_SIM_NET VDPA_USER VETH VFIO VFIO_DEVICE_CDEV VFIO_PCI VFIO_PCI_CORE VFIO_PCI_INTX VFIO_PCI_MMAP VFIO_VIRQFD VGASTATE VHOST VHOST_CROSS_ENDIAN_LEGACY VHOST_IOTLB VHOST_NET VHOST_RING VHOST_TASK VHOST_VDPA VHOST_VSOCK VIDEO VIDEOBUF2_CORE VIDEOBUF2_DMA_CONTIG VIDEOBUF2_DMA_SG VIDEOBUF2_MEMOPS VIDEOBUF2_V4L2 VIDEOBUF2_VMALLOC VIDEOMODE_HELPERS VIDEO_AU0828 VIDEO_AU0828_RC VIDEO_AU0828_V4L2 VIDEO_CS53L32A VIDEO_CX231XX VIDEO_CX231XX_ALSA VIDEO_CX231XX_DVB VIDEO_CX231XX_RC VIDEO_CX2341X VIDEO_CX25840 VIDEO_DEV VIDEO_EM28XX VIDEO_EM28XX_ALSA VIDEO_EM28XX_DVB VIDEO_EM28XX_RC VIDEO_EM28XX_V4L2 VIDEO_GO7007 VIDEO_GO7007_LOADER VIDEO_GO7007_USB VIDEO_GO7007_USB_S2250_BOARD VIDEO_HDPVR VIDEO_MSP3400 VIDEO_PVRUSB2 VIDEO_PVRUSB2_DVB VIDEO_PVRUSB2_SYSFS VIDEO_SAA711X VIDEO_STK1160 VIDEO_TUNER VIDEO_TVEEPROM VIDEO_USBTV VIDEO_V4L2_I2C VIDEO_V4L2_SUBDEV_API VIDEO_V4L2_TPG VIDEO_VICODEC VIDEO_VIM2M VIDEO_VIMC VIDEO_VIVID VIDEO_VIVID_CEC VIDEO_WM8775 VIPERBOARD_ADC VIRTIO_BALLOON VIRTIO_DMA_SHARED_BUFFER VIRTIO_MEM VIRTIO_MMIO VIRTIO_MMIO_CMDLINE_DEVICES VIRTIO_PMEM VIRTIO_VDPA VIRTIO_VSOCKETS VIRTIO_VSOCKETS_COMMON VIRT_WIFI VLAN_8021Q VLAN_8021Q_GVRP VLAN_8021Q_MVRP VMAP_PFN VMWARE_VMCI VMXNET3 VP_VDPA VSOCKETS VSOCKETS_DIAG VSOCKETS_LOOPBACK VSOCKMON VT_HW_CONSOLE_BINDING VXFS_FS WANT_DEV_COREDUMP WEXT_CORE WEXT_PRIV WEXT_PROC WIREGUARD WIRELESS WIRELESS_EXT WLAN WLAN_VENDOR_ADMTEK WLAN_VENDOR_PURELIFI WLAN_VENDOR_SILABS X86_SGX X86_SGX_KVM X86_USER_SHADOW_STACK X86_X2APIC X86_X32_ABI XDP_SOCKETS XDP_SOCKETS_DIAG XFRM_ESPINTCP XFRM_INTERFACE XFRM_IPCOMP XFRM_MIGRATE XFRM_OFFLOAD XFRM_STATISTICS XFRM_SUB_POLICY XFRM_USER_COMPAT XFS_FS XFS_POSIX_ACL XFS_QUOTA XFS_RT XOR_BLOCKS YENTA YENTA_ENE_TUNE YENTA_O2 YENTA_RICOH YENTA_TI YENTA_TOSHIBA ZEROPLUS_FF ZLIB_DEFLATE ZONEFS_FS ZPOOL ZRAM ZRAM_DEF_COMP_LZORLE ZSMALLOC ZSTD_COMPRESS ZSWAP ZSWAP_COMPRESSOR_DEFAULT_LZO ZSWAP_DEFAULT_ON ZSWAP_SHRINKER_DEFAULT_ON ZSWAP_ZPOOL_DEFAULT_ZSMALLOC] disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing current HEAD 872cf28b8df9c5c3a1e71a88ee750df7c2513971 testing commit 872cf28b8df9c5c3a1e71a88ee750df7c2513971 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bdff4cf3eb7a5b51400dc7c6b44fa87698bacd615eed82e4d30431621a68f8c8 all runs: OK false negative chance: 0.000 # git bisect start 872cf28b8df9c5c3a1e71a88ee750df7c2513971 36534d3c54537bf098224a32dc31397793d4594d Bisecting: 8500 revisions left to test after this (roughly 13 steps) [280e36f0d5b997173d014c07484c03a7f7750668] nsfs: use cleanup guard determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d 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: e6f560b49d955a6f0c25a6455a05711c832b42e9076f23c4d82fbd50e6ad055f run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: possible deadlock in try_to_wake_up run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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: 4266 revisions left to test after this (roughly 12 steps) [af65ea42bd1d28d818b74b9b3b4f8da7ada9f88b] Merge branch 'tap-tun-harden-by-dropping-short-frame' determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit af65ea42bd1d28d818b74b9b3b4f8da7ada9f88b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 57a71d8002d5c9f85aba742cf247a5a70bac0c9958317dfc6cc26f7c649a665f 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 af65ea42bd1d28d818b74b9b3b4f8da7ada9f88b Bisecting: 2134 revisions left to test after this (roughly 11 steps) [527eff227d4321c6ea453db1083bc4fdd4d3a3e8] Merge tag 'mm-nonmm-stable-2024-07-21-15-07' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 527eff227d4321c6ea453db1083bc4fdd4d3a3e8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 95474153375b806149718ba8a36065c0b4daec5187999359f8b97398e94e6a5c all runs: OK false negative chance: 0.000 # git bisect bad 527eff227d4321c6ea453db1083bc4fdd4d3a3e8 Bisecting: 1045 revisions left to test after this (roughly 10 steps) [d2be38b9a5514dbc7dc0c96a2a7f619fcddce00d] Merge tag 'mips_6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit d2be38b9a5514dbc7dc0c96a2a7f619fcddce00d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2f25446c36f2d995e1f9e941c102a68cac3ee916b62e4a1225d75fdfd89ac128 run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #4: crashed: possible deadlock in try_to_wake_up run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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 d2be38b9a5514dbc7dc0c96a2a7f619fcddce00d Bisecting: 528 revisions left to test after this (roughly 9 steps) [33c9de2960d347c06d016c2c07ac4aa855cd75f0] Merge tag '6.11-rc-part1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 33c9de2960d347c06d016c2c07ac4aa855cd75f0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6aa607fa4fcc9e9e38f5a4c0684197d47eb72b294d9ee149a7cc651ae93238f0 all runs: crashed: inconsistent lock state in __mmap_lock_do_trace_released representative crash: inconsistent lock state in __mmap_lock_do_trace_released, types: [LOCKDEP] # git bisect good 33c9de2960d347c06d016c2c07ac4aa855cd75f0 Bisecting: 264 revisions left to test after this (roughly 8 steps) [781497347d1bcb8c95fca8356575cfd42fff1354] selftests/damon: implement test for min/max_nr_regions determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 781497347d1bcb8c95fca8356575cfd42fff1354 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2cf5ea4a75c71246051a2592b16d60377c7427e7d55d35910e4f3c776b5d5293 all runs: OK false negative chance: 0.000 # git bisect bad 781497347d1bcb8c95fca8356575cfd42fff1354 Bisecting: 131 revisions left to test after this (roughly 7 steps) [ceb32d6aa93ce3282a724f3a0828b4b84d5035f1] mm/memory-failure: remove MF_MSG_SLAB determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit ceb32d6aa93ce3282a724f3a0828b4b84d5035f1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2130734ff736f1e6c73d2d600508a2ed36b93a82f42b80d15ef26a7cbfa48de3 run #0: crashed: possible deadlock in try_to_wake_up run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: possible deadlock in try_to_wake_up, types: [LOCKDEP] # git bisect good ceb32d6aa93ce3282a724f3a0828b4b84d5035f1 Bisecting: 65 revisions left to test after this (roughly 6 steps) [08af2c12e3ef379de94ba5653f2f9ae9a588ecd9] mm/page_alloc: reword the comment of buddy_merge_likely() determine whether the revision contains the guilty commit revision ceb32d6aa93ce3282a724f3a0828b4b84d5035f1 crashed and is reachable testing commit 08af2c12e3ef379de94ba5653f2f9ae9a588ecd9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d9e2e90f2a3f0e151031db28782156f4c467ebf929c3188d33fca462f129846d run #0: crashed: possible deadlock in try_to_wake_up run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #4: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned representative crash: possible deadlock in try_to_wake_up, types: [LOCKDEP] # git bisect good 08af2c12e3ef379de94ba5653f2f9ae9a588ecd9 Bisecting: 32 revisions left to test after this (roughly 5 steps) [8c208bc5b299a817beafbda239800d4d1eca48db] s390/cpacf: unpoison the results of cpacf_trng() determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 8c208bc5b299a817beafbda239800d4d1eca48db gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6ef24410b7f20519f17a378a6c1467df6d5a28c9b226bc6cecaf2ef3f47b5aad 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 8c208bc5b299a817beafbda239800d4d1eca48db Bisecting: 16 revisions left to test after this (roughly 4 steps) [4b88c23ab8c9bc3857f7c8847e2c6bed95185530] mm/migrate: make migrate_misplaced_folio() return 0 on success determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 4b88c23ab8c9bc3857f7c8847e2c6bed95185530 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 18cba09fadab44149c5dc300c31eb9643763f902b1386278d087abe65e8bf84c all runs: OK false negative chance: 0.000 # git bisect bad 4b88c23ab8c9bc3857f7c8847e2c6bed95185530 Bisecting: 7 revisions left to test after this (roughly 3 steps) [eb6efdfeaeca355f12967d8109bc313213678c9b] s390/uaccess: add KMSAN support to put_user() and get_user() determine whether the revision contains the guilty commit revision 8c208bc5b299a817beafbda239800d4d1eca48db crashed and is reachable testing commit eb6efdfeaeca355f12967d8109bc313213678c9b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 922c3c13cea66fdd369547840a02b1dd15be8fb544e9e5ac4a53797059914e84 run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: possible deadlock in try_to_wake_up run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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 eb6efdfeaeca355f12967d8109bc313213678c9b Bisecting: 3 revisions left to test after this (roughly 2 steps) [3a8f6f3b469b4075919a3613e182f9a70df92d46] kmsan: enable on s390 determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d crashed and is reachable testing commit 3a8f6f3b469b4075919a3613e182f9a70df92d46 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cc09eea20b978fff858ed9678a1c1418f387d97fa715addad903bdd595d8bbfd run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #3: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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 3a8f6f3b469b4075919a3613e182f9a70df92d46 Bisecting: 1 revision left to test after this (roughly 1 step) [b1a80f4be7691a1ea007e24ebb3c8ca2e4a20f00] kmsan: do not pass NULL pointers as 0 determine whether the revision contains the guilty commit revision 3a8f6f3b469b4075919a3613e182f9a70df92d46 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: a2887bd3e8811dbf3ac7968baabf9bd62493afdc44693f3a52ede7eeee81f6a2 run #0: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #1: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #2: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #3: crashed: possible deadlock in __mmap_lock_do_trace_acquire_returned run #4: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #5: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #6: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #7: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #8: crashed: inconsistent lock state in __mmap_lock_do_trace_acquire_returned run #9: 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 Bisecting: 0 revisions left to test after this (roughly 0 steps) [7d6be67cfdd4a53cea7147313ca13c531e3a470f] mm: mmap_lock: replace get_memcg_path_buf() with on-stack buffer determine whether the revision contains the guilty commit revision 36534d3c54537bf098224a32dc31397793d4594d 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: 44f624d52e6a645e6dabcfdc6e6d71978e6bce3870c29178e787f201fc201d1e all runs: OK false negative chance: 0.000 # git bisect bad 7d6be67cfdd4a53cea7147313ca13c531e3a470f 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: 44f624d52e6a645e6dabcfdc6e6d71978e6bce3870c29178e787f201fc201d1e parent signature: a2887bd3e8811dbf3ac7968baabf9bd62493afdc44693f3a52ede7eeee81f6a2 revisions tested: 22, total time: 5h11m13.952546053s (build: 2h42m46.510781854s, test: 2h13m47.883795135s) 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): []