ci2 starts bisection 2023-12-04 11:05:04.169361787 +0000 UTC m=+382614.815939078 bisecting fixing commit since 35ecaa3632bff102decb9f2277cf99150b2bf690 building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit 35ecaa3632bff102decb9f2277cf99150b2bf690 testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cce9466fae4ae82f81cf5549f57a100a675dbfef9ad785cee74fe647ef742e4a run #0: crashed: KASAN: stack-out-of-bounds Read in xfs_buf_lock run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #3: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #8: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #9: crashed: INFO: task hung in unregister_shrinker run #10: crashed: INFO: task hung in xfs_qm_dqfree_one run #11: crashed: INFO: task hung in xfs_qm_dqfree_one run #12: crashed: INFO: task hung in unregister_shrinker run #13: crashed: INFO: task hung in unregister_shrinker run #14: crashed: INFO: task hung in unregister_shrinker run #15: crashed: INFO: task hung in unregister_shrinker run #16: crashed: INFO: task hung in unregister_shrinker run #17: crashed: INFO: task hung in unregister_shrinker run #18: crashed: INFO: task hung in unregister_shrinker run #19: crashed: INFO: task hung in xfs_buf_delwri_pushbuf representative crash: INFO: task hung in unregister_shrinker, types: [HANG] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN LOCKDEP], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a16fc9015c650aa95521194bff2741532c46738b52162f623b76faa691be3d0d run #0: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #1: crashed: INFO: task hung in xfs_qm_dqfree_one run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in register_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #6: crashed: INFO: task hung in xfs_qm_dqfree_one run #7: crashed: INFO: task hung in xfs_qm_dqfree_one run #8: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #9: crashed: INFO: task hung in unregister_shrinker representative crash: INFO: task hung in xfs_buf_delwri_pushbuf, types: [HANG] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP LEAK UBSAN BUG KASAN LOCKDEP], they are not needed kconfig minimization: base=3703 full=7268 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 [ATOMIC_SLEEP LEAK UBSAN BUG KASAN LOCKDEP], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 041820904b3f74e416538cd59e45d0cb7ebb031567008ed7aa61e2e9e4215728 run #0: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: OK run #7: OK run #8: OK run #9: OK representative crash: INFO: task hung in xfs_buf_delwri_pushbuf, types: [HANG] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [BUG KASAN LOCKDEP ATOMIC_SLEEP LEAK UBSAN], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8c5c617769c4c8183ce8c002ab38edeb1a6776928ff54a75cded90f8de140ad6 run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in iterate_supers run #2: crashed: INFO: task hung in xfs_qm_dqfree_one run #3: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #4: crashed: INFO: task hung in xfs_qm_dqfree_one run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: INFO: task hung in unregister_shrinker, types: [HANG] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP LEAK UBSAN BUG KASAN], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 970828400d52eecc5be49ebce4ed177d2322a461e38009dc6d8e89f2d6602976 run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in iterate_supers run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in iterate_supers run #8: crashed: INFO: task hung in unregister_shrinker run #9: OK representative crash: INFO: task hung in unregister_shrinker, types: [HANG] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG KASAN LOCKDEP ATOMIC_SLEEP LEAK UBSAN], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 278b7da09c20279e58994b4f3bb900863ad5f2bd1ad1d93081855fe3b169cff2 run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in iterate_supers run #5: OK run #6: crashed: INFO: task hung in unregister_shrinker run #7: OK run #8: OK run #9: OK representative crash: INFO: task hung in unregister_shrinker, types: [HANG] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 35ecaa3632bff102decb9f2277cf99150b2bf690 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 416f29629b2f7c875bf0ca58292691764339af12c8b2e12070639a2e63be175e 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 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 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 [LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 9b91d36ba301db86bbf9e783169f7f6abf2585d8 testing commit 9b91d36ba301db86bbf9e783169f7f6abf2585d8 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7d2218287fa7e3d1628f464de45a582d3eab7748e6d2b102d29a722e5a38fffe all runs: OK false negative chance: 0.000 # git bisect start 9b91d36ba301db86bbf9e783169f7f6abf2585d8 35ecaa3632bff102decb9f2277cf99150b2bf690 Bisecting: 659 revisions left to test after this (roughly 9 steps) [f2c3a3aa6f11ad9878dbc3a067b0633e07b586c1] ext4: fix BUG in ext4_mb_new_inode_pa() due to overflow determine whether the revision contains the guilty commit revision 35ecaa3632bff102decb9f2277cf99150b2bf690 crashed and is reachable testing commit f2c3a3aa6f11ad9878dbc3a067b0633e07b586c1 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e4e468e049fa1896e7969480a78ff9194b6cc6a9b2cc43523039f216dcb01674 run #0: crashed: INFO: task hung in iterate_supers run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in iterate_supers run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in iterate_supers run #8: crashed: INFO: task hung in unregister_shrinker run #9: OK representative crash: INFO: task hung in iterate_supers, types: [HANG] # git bisect good f2c3a3aa6f11ad9878dbc3a067b0633e07b586c1 Bisecting: 329 revisions left to test after this (roughly 8 steps) [a237675aa1e62bbfaa341c535331c8656a508fa1] drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga determine whether the revision contains the guilty commit revision 35ecaa3632bff102decb9f2277cf99150b2bf690 crashed and is reachable testing commit a237675aa1e62bbfaa341c535331c8656a508fa1 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3c98447aed5959c229733c4e83842dcca21ec48bbc983d51cb7afbf8ab002ae8 run #0: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in unregister_shrinker run #8: crashed: INFO: task hung in unregister_shrinker run #9: crashed: INFO: task hung in unregister_shrinker representative crash: INFO: task hung in xfs_buf_delwri_pushbuf, types: [HANG] # git bisect good a237675aa1e62bbfaa341c535331c8656a508fa1 Bisecting: 164 revisions left to test after this (roughly 7 steps) [4584a421a6d965e060e40de6c382fab5872ec4ba] ima: annotate iint mutex to avoid lockdep false positive warnings determine whether the revision contains the guilty commit revision 35ecaa3632bff102decb9f2277cf99150b2bf690 crashed and is reachable testing commit 4584a421a6d965e060e40de6c382fab5872ec4ba gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8b5f013c61619005242ecb3bbae520730f362b4beea3c4ca125d94f04152fe51 all runs: OK false negative chance: 0.000 # git bisect bad 4584a421a6d965e060e40de6c382fab5872ec4ba Bisecting: 82 revisions left to test after this (roughly 6 steps) [8531a4194e59c57cd5043359a30e4925dbac4b38] ppp: limit MRU to 64K determine whether the revision contains the guilty commit revision 35ecaa3632bff102decb9f2277cf99150b2bf690 crashed and is reachable testing commit 8531a4194e59c57cd5043359a30e4925dbac4b38 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d66ee6a4ad98e90cc869cc2071b653565124a2e69911b7a83a084bb0f7b1f6bd run #0: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in iterate_supers run #4: crashed: INFO: task hung in iterate_supers run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in unregister_shrinker run #8: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #9: crashed: INFO: task hung in unregister_shrinker representative crash: INFO: task hung in xfs_buf_delwri_pushbuf, types: [HANG] # git bisect good 8531a4194e59c57cd5043359a30e4925dbac4b38 Bisecting: 41 revisions left to test after this (roughly 5 steps) [35c17257ef099c90e4fe5538bca8aa2d47d83505] xfs: Fix unreferenced object reported by kmemleak in xfs_sysfs_init() determine whether the revision contains the guilty commit revision 8531a4194e59c57cd5043359a30e4925dbac4b38 crashed and is reachable testing commit 35c17257ef099c90e4fe5538bca8aa2d47d83505 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0489429456fa62b2345abb7fc09ed5d1740833f81e0f4b3f4f71fe2b1050b0a3 all runs: OK false negative chance: 0.000 # git bisect bad 35c17257ef099c90e4fe5538bca8aa2d47d83505 Bisecting: 20 revisions left to test after this (roughly 4 steps) [7574b5e65e92ee5ae34eb70a029ffcb2446eec15] net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors determine whether the revision contains the guilty commit revision 8531a4194e59c57cd5043359a30e4925dbac4b38 crashed and is reachable testing commit 7574b5e65e92ee5ae34eb70a029ffcb2446eec15 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5e551185c6c211f0d034828a0110e7c76ed1f5a4b922626698e100db872bd96c run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #2: crashed: INFO: task hung in iterate_supers run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #6: crashed: INFO: task hung in iterate_supers run #7: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #8: crashed: INFO: task hung in unregister_shrinker run #9: OK representative crash: INFO: task hung in unregister_shrinker, types: [HANG] # git bisect good 7574b5e65e92ee5ae34eb70a029ffcb2446eec15 Bisecting: 10 revisions left to test after this (roughly 3 steps) [188594c64a1e5f1e67c9b1fd7d60aa29c74616c2] xfs: prevent a UAF when log IO errors race with unmount determine whether the revision contains the guilty commit revision 7574b5e65e92ee5ae34eb70a029ffcb2446eec15 crashed and is reachable testing commit 188594c64a1e5f1e67c9b1fd7d60aa29c74616c2 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 62f29609d1cc8a43cf3ca137fe92c7b810ed599f31b582d760610f6e91b20beb run #0: crashed: INFO: task hung in iterate_supers run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in iterate_supers run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #5: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #6: crashed: INFO: task hung in corrupted run #7: crashed: INFO: task hung in iterate_supers run #8: crashed: INFO: task hung in unregister_shrinker run #9: crashed: INFO: task hung in unregister_shrinker representative crash: INFO: task hung in iterate_supers, types: [HANG] # git bisect good 188594c64a1e5f1e67c9b1fd7d60aa29c74616c2 Bisecting: 5 revisions left to test after this (roughly 3 steps) [92d38b87e8868754e06ec808ba12daa8a1d1ecd7] xfs: add missing cmap->br_state = XFS_EXT_NORM update determine whether the revision contains the guilty commit revision 35ecaa3632bff102decb9f2277cf99150b2bf690 crashed and is reachable testing commit 92d38b87e8868754e06ec808ba12daa8a1d1ecd7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bc659a4c77d85afdcffdbb84b9736907581c463a31a32973859f00f307e840c8 all runs: OK false negative chance: 0.000 # git bisect bad 92d38b87e8868754e06ec808ba12daa8a1d1ecd7 Bisecting: 2 revisions left to test after this (roughly 1 step) [eb888caf27d95483e2bb13c7f6f45eac62b0b390] xfs: fix use-after-free in xattr node block inactivation determine whether the revision contains the guilty commit revision 7574b5e65e92ee5ae34eb70a029ffcb2446eec15 crashed and is reachable testing commit eb888caf27d95483e2bb13c7f6f45eac62b0b390 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 06ee86cfb9a15a1308a6dd06526a0cc7ad8f0ffe61ee21e3ce15573ee0ad2205 run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in unregister_shrinker run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in unregister_shrinker run #8: crashed: INFO: task hung in unregister_shrinker run #9: crashed: INFO: task hung in iterate_supers representative crash: INFO: task hung in unregister_shrinker, types: [HANG] # git bisect good eb888caf27d95483e2bb13c7f6f45eac62b0b390 Bisecting: 0 revisions left to test after this (roughly 1 step) [8d0baec78e8a7abe03b449820507c9777dae7f7b] xfs: fix intermittent hang during quotacheck determine whether the revision contains the guilty commit revision f2c3a3aa6f11ad9878dbc3a067b0633e07b586c1 crashed and is reachable testing commit 8d0baec78e8a7abe03b449820507c9777dae7f7b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c91e84218e81778b362bfcbaa8d490812317ed86d5c15f6388e731e99828276d all runs: OK false negative chance: 0.000 # git bisect bad 8d0baec78e8a7abe03b449820507c9777dae7f7b Bisecting: 0 revisions left to test after this (roughly 0 steps) [76545c0e881b9c0fcd6ad50bb5ea3cee3bee7a5b] xfs: don't leak memory when attr fork loading fails determine whether the revision contains the guilty commit revision 8531a4194e59c57cd5043359a30e4925dbac4b38 crashed and is reachable testing commit 76545c0e881b9c0fcd6ad50bb5ea3cee3bee7a5b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4581e55da8dd1fb95d3b389f720c682721ecc16e63f9428d2be004790fe16061 run #0: crashed: INFO: task hung in unregister_shrinker run #1: crashed: INFO: task hung in unregister_shrinker run #2: crashed: INFO: task hung in unregister_shrinker run #3: crashed: INFO: task hung in xfs_buf_delwri_pushbuf run #4: crashed: INFO: task hung in unregister_shrinker run #5: crashed: INFO: task hung in unregister_shrinker run #6: crashed: INFO: task hung in unregister_shrinker run #7: crashed: INFO: task hung in unregister_shrinker run #8: crashed: INFO: task hung in unregister_shrinker run #9: OK representative crash: INFO: task hung in unregister_shrinker, types: [HANG] # git bisect good 76545c0e881b9c0fcd6ad50bb5ea3cee3bee7a5b 8d0baec78e8a7abe03b449820507c9777dae7f7b is the first bad commit commit 8d0baec78e8a7abe03b449820507c9777dae7f7b Author: Darrick J. Wong Date: Wed Nov 15 18:28:26 2023 -0800 xfs: fix intermittent hang during quotacheck [ Upstream commit f0c2d7d2abca24d19831c99edea458704fac8087 ] Every now and then, I see the following hang during mount time quotacheck when running fstests. Turning on KASAN seems to make it happen somewhat more frequently. I've edited the backtrace for brevity. XFS (sdd): Quotacheck needed: Please wait. XFS: Assertion failed: bp->b_flags & _XBF_DELWRI_Q, file: fs/xfs/xfs_buf.c, line: 2411 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1831409 at fs/xfs/xfs_message.c:104 assfail+0x46/0x4a [xfs] CPU: 0 PID: 1831409 Comm: mount Tainted: G W 5.19.0-rc6-xfsx #rc6 09911566947b9f737b036b4af85e399e4b9aef64 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014 RIP: 0010:assfail+0x46/0x4a [xfs] Code: a0 8f 41 a0 e8 45 fe ff ff 8a 1d 2c 36 10 00 80 fb 01 76 0f 0f b6 f3 48 c7 c7 c0 f0 4f a0 e8 10 f0 02 e1 80 e3 01 74 02 0f 0b <0f> 0b 5b c3 48 8d 45 10 48 89 e2 4c 89 e6 48 89 1c 24 48 89 44 24 RSP: 0018:ffffc900078c7b30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880099ac000 RCX: 000000007fffffff RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa0418fa0 RBP: ffff8880197bc1c0 R08: 0000000000000000 R09: 000000000000000a R10: 000000000000000a R11: f000000000000000 R12: ffffc900078c7d20 R13: 00000000fffffff5 R14: ffffc900078c7d20 R15: 0000000000000000 FS: 00007f0449903800(0000) GS:ffff88803ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005610ada631f0 CR3: 0000000014dd8002 CR4: 00000000001706f0 Call Trace: xfs_buf_delwri_pushbuf+0x150/0x160 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_qm_flush_one+0xd6/0x130 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_qm_dquot_walk.isra.0+0x109/0x1e0 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_qm_quotacheck+0x319/0x490 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_qm_mount_quotas+0x65/0x2c0 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_mountfs+0x6b5/0xab0 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] xfs_fs_fill_super+0x781/0x990 [xfs 4561f5b32c9bfb874ec98d58d0719464e1f87368] get_tree_bdev+0x175/0x280 vfs_get_tree+0x1a/0x80 path_mount+0x6f5/0xaa0 __x64_sys_mount+0x103/0x140 do_syscall_64+0x2b/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 I /think/ this can happen if xfs_qm_flush_one is racing with xfs_qm_dquot_isolate (i.e. dquot reclaim) when the second function has taken the dquot flush lock but xfs_qm_dqflush hasn't yet locked the dquot buffer, let alone queued it to the delwri list. In this case, flush_one will fail to get the dquot flush lock, but it can lock the incore buffer, but xfs_buf_delwri_pushbuf will then trip over this ASSERT, which checks that the buffer isn't on a delwri list. The hang results because the _delwri_submit_buffers ignores non DELWRI_Q buffers, which means that xfs_buf_iowait waits forever for an IO that has not yet been scheduled. AFAICT, a reasonable solution here is to detect a dquot buffer that is not on a DELWRI list, drop it, and return -EAGAIN to try the flush again. It's not /that/ big of a deal if quotacheck writes the dquot buffer repeatedly before we even set QUOTA_CHKD. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Leah Rumancik Acked-by: Chandan Babu R Signed-off-by: Sasha Levin fs/xfs/xfs_qm.c | 7 +++++++ 1 file changed, 7 insertions(+) accumulated error probability: 0.00 culprit signature: c91e84218e81778b362bfcbaa8d490812317ed86d5c15f6388e731e99828276d parent signature: 4581e55da8dd1fb95d3b389f720c682721ecc16e63f9428d2be004790fe16061 revisions tested: 19, total time: 4h49m58.885509947s (build: 57m7.355910212s, test: 3h48m38.04775413s) first good commit: 8d0baec78e8a7abe03b449820507c9777dae7f7b xfs: fix intermittent hang during quotacheck recipients (to): ["chandanbabu@kernel.org" "dchinner@redhat.com" "djwong@kernel.org" "leah.rumancik@gmail.com" "sashal@kernel.org"] recipients (cc): []