ci starts bisection 2023-09-30 12:08:21.290837095 +0000 UTC m=+58906.932824803 bisecting fixing commit since f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a building syzkaller on bfc478367b83b3fda580f54964aa9f3651beeb3d ensuring issue is reproducible on original commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fbead3b8cd42ef135500a24db29b55c6b81120fac4b429a5f1828c3f44f65928 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: aa1851840ab15f611a5631abad3d08d3781d1c4d19735ee115af4515310ca201 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] the bug reproduces without the instrumentation disabling configs for [HANG LEAK BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=3877 full=7618 leaves diff=1995 split chunks (needed=false): <1995> split chunk #0 of len 1995 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK BUG KASAN LOCKDEP], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b3655ad540ff96ca5d422c0ff106379016e32ea03ad0d1926d28fb75e1ce19af all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [BUG KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: efeb764e57fb337443990a91b3631c64479bf6af155f757d1c1e8d6de96f5aa0 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [BUG KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9ca2700793cd37f846a174c434a0920eb80c80178f0778d5e3980791169bcf5e all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bf84b67285e59aed51e9a693bede416624d0b91a7dcf88a5b380407ec2b79d52 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK BUG], they are not needed testing commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 23479d4f81876d98244a916be4b71777307367d85a37c0c82ebe3dda7df1e60b all runs: OK false negative chance: 0.000 minimized to 399 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 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_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_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_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_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 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_CMDLINE 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_NOMODESET VIDEO_PVRUSB2 VIDEO_PVRUSB2_DVB VIDEO_PVRUSB2_SYSFS VIDEO_SAA711X 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 XFS_SUPPORT_V4 XOR_BLOCKS YENTA YENTA_ENE_TUNE YENTA_O2 YENTA_RICOH YENTA_TI YENTA_TOSHIBA ZBUD ZEROPLUS_FF ZLIB_DEFLATE ZONEFS_FS ZPOOL ZRAM ZRAM_DEF_COMP_LZORLE ZSMALLOC ZSTD_COMPRESS ZSWAP ZSWAP_COMPRESSOR_DEFAULT_LZO ZSWAP_DEFAULT_ON ZSWAP_ZPOOL_DEFAULT_ZBUD] disabling configs for [LEAK BUG KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing current HEAD 9f3ebbef746f89f860a90ced99a359202ea86fde testing commit 9f3ebbef746f89f860a90ced99a359202ea86fde gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 353499394808feb45d063055ecc8673b1fe9c6c0f3803e129675006a1b8be844 all runs: OK false negative chance: 0.000 # git bisect start 9f3ebbef746f89f860a90ced99a359202ea86fde f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a Bisecting: 9319 revisions left to test after this (roughly 13 steps) [c1b7fcf3f6d94c2c3528bf77054bf174a5ef63d7] Merge tag 'for-6.6/io_uring-2023-08-28' of git://git.kernel.dk/linux determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit c1b7fcf3f6d94c2c3528bf77054bf174a5ef63d7 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5baa2a74db616d5203b1650e00bd51a4e2b76ee0f1f3ad8ad2bcb594cf9fbca2 all runs: OK false negative chance: 0.000 # git bisect bad c1b7fcf3f6d94c2c3528bf77054bf174a5ef63d7 Bisecting: 4620 revisions left to test after this (roughly 12 steps) [81083076a007d3af3f2216ad9be1374de0687d49] Merge tag 'wireless-next-2023-08-04' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit 81083076a007d3af3f2216ad9be1374de0687d49 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 531a92d4d615fe9b18d3e19e8cd6a004e645ea16a4b085d07a6627a4c27608b0 all runs: OK false negative chance: 0.000 # git bisect bad 81083076a007d3af3f2216ad9be1374de0687d49 Bisecting: 2313 revisions left to test after this (roughly 11 steps) [c206353dfdf026dafd42679cf82d6f0a89781e36] Merge tag 'perf-tools-for-v6.5-2-2023-07-06' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit c206353dfdf026dafd42679cf82d6f0a89781e36 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a4a847d3dde041b7691a82ce97fe79ad27438c3dd4fa7c1b39b81c67b7bd74aa all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good c206353dfdf026dafd42679cf82d6f0a89781e36 Bisecting: 1156 revisions left to test after this (roughly 10 steps) [94c43de73521d8ed7ebcfc6191d9dace1cbf7caa] erofs: fix wrong primary bvec selection on deduplicated extents determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit 94c43de73521d8ed7ebcfc6191d9dace1cbf7caa gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 62eccd9ef7064260d4da304644795f52df09bf4352ab2d65c687fc7861f3b9b0 all runs: OK false negative chance: 0.000 # git bisect bad 94c43de73521d8ed7ebcfc6191d9dace1cbf7caa Bisecting: 578 revisions left to test after this (roughly 9 steps) [17a0a64448b568442a101de09575f81ffdc45d15] vxlan: generalize vxlan_parse_gpe_hdr and remove unused args determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit 17a0a64448b568442a101de09575f81ffdc45d15 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a18b12a6c3f2ba654c60181cf0b9b4f2e91b01c998b31af49cb7d549a31bcf4a all runs: OK false negative chance: 0.000 # git bisect bad 17a0a64448b568442a101de09575f81ffdc45d15 Bisecting: 288 revisions left to test after this (roughly 8 steps) [78a93c31003cc53aca5d67b1bbe2d5b9fc37cc4d] drivers: net: fix return value check in emac_tso_csum() determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit 78a93c31003cc53aca5d67b1bbe2d5b9fc37cc4d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bce54a87d735fee0105066560202d5b11a2a5a41fcac6c7e9962095caa608073 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good 78a93c31003cc53aca5d67b1bbe2d5b9fc37cc4d Bisecting: 144 revisions left to test after this (roughly 7 steps) [ede950b01922778ade5ba0d0834f25fca4ed1d88] Merge tag 'pinctrl-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit ede950b01922778ade5ba0d0834f25fca4ed1d88 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f820712ad9aded036bf4c87f727d5ba7fe8da166c13c41c1bd312870b6f149c1 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good ede950b01922778ade5ba0d0834f25fca4ed1d88 Bisecting: 77 revisions left to test after this (roughly 6 steps) [2922800a1803f6319e329bdbfd2962fd83eb5360] Merge tag 'regulator-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit 2922800a1803f6319e329bdbfd2962fd83eb5360 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ab6c2dfce61141446931fb114aa087e975d4994abcb22a763b2fdeb7c17a3a7 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good 2922800a1803f6319e329bdbfd2962fd83eb5360 Bisecting: 39 revisions left to test after this (roughly 5 steps) [9b39f758974ff8dfa721e68c6cecfd37e6ddb206] Merge tag 'nf-23-07-20' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf determine whether the revision contains the guilty commit revision 78a93c31003cc53aca5d67b1bbe2d5b9fc37cc4d crashed and is reachable testing commit 9b39f758974ff8dfa721e68c6cecfd37e6ddb206 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e3ad836832d6e5e2d8844e53ae54b0400aa08039faa4d4ea6594a6bd9e07c5e9 all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good 9b39f758974ff8dfa721e68c6cecfd37e6ddb206 Bisecting: 20 revisions left to test after this (roughly 4 steps) [e599e16c16a16be9907fb00608212df56d08d57b] Merge tag 'iomap-6.5-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit e599e16c16a16be9907fb00608212df56d08d57b gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ee1cf70a177ee125ec5329e7f6e2029d751c7d1cb733be2ae135a8127595c609 all runs: OK false negative chance: 0.000 # git bisect bad e599e16c16a16be9907fb00608212df56d08d57b Bisecting: 9 revisions left to test after this (roughly 3 steps) [17b17fcd6d446b95904a6929c40012ee7f0afc0c] btrfs: set_page_extent_mapped after read_folio in btrfs_cont_expand determine whether the revision contains the guilty commit checking the merge base 8a4a0b2a3eaf75ca8854f856ef29690c12b2f531 no existing result, test the revision testing commit 8a4a0b2a3eaf75ca8854f856ef29690c12b2f531 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c8dc3061116caa115b40b97160d0dc8a29bdfb502a54980d1b606bfb77d926a9 all runs: OK false negative chance: 0.000 the bug was not introduced yet; pretend that kernel crashed # git bisect good 17b17fcd6d446b95904a6929c40012ee7f0afc0c Bisecting: 6 revisions left to test after this (roughly 2 steps) [f6250e205691a58c81be041b1809a2e706852641] xfs: convert flex-array declarations in xfs attr shortform objects determine whether the revision contains the guilty commit revision c206353dfdf026dafd42679cf82d6f0a89781e36 crashed and is reachable testing commit f6250e205691a58c81be041b1809a2e706852641 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 051e901ed75ec9e84afcc391966ac20aa38500f2c561eb9d36c1fd6f7b29583c all runs: OK false negative chance: 0.000 # git bisect bad f6250e205691a58c81be041b1809a2e706852641 Bisecting: 0 revisions left to test after this (roughly 1 step) [a49bbce58ea90b14d4cb1d00681023a8606955f2] xfs: convert flex-array declarations in xfs attr leaf blocks determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit a49bbce58ea90b14d4cb1d00681023a8606955f2 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4cdb72107d973e1a9427ec6bb96739f021082d196b2bc273125c7773e00fc2f3 all runs: OK false negative chance: 0.000 # git bisect bad a49bbce58ea90b14d4cb1d00681023a8606955f2 Bisecting: 0 revisions left to test after this (roughly 0 steps) [371baf5c9750a258fee21d0cb8c8d683bb057429] xfs: convert flex-array declarations in struct xfs_attrlist* determine whether the revision contains the guilty commit revision f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a crashed and is reachable testing commit 371baf5c9750a258fee21d0cb8c8d683bb057429 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 05b550df405ab51cfbe0cbf49f371a418a99efffb79fc8b9e3088dcd6e73181a all runs: crashed: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work representative crash: UBSAN: array-index-out-of-bounds in xfs_attr3_leaf_add_work, types: [UBSAN] # git bisect good 371baf5c9750a258fee21d0cb8c8d683bb057429 a49bbce58ea90b14d4cb1d00681023a8606955f2 is the first bad commit commit a49bbce58ea90b14d4cb1d00681023a8606955f2 Author: Darrick J. Wong Date: Mon Jul 10 09:12:20 2023 -0700 xfs: convert flex-array declarations in xfs attr leaf blocks As of 6.5-rc1, UBSAN trips over the ondisk extended attribute leaf block definitions using an array length of 1 to pretend to be a flex array. Kernel compilers have to support unbounded array declarations, so let's correct this. ================================================================================ UBSAN: array-index-out-of-bounds in fs/xfs/libxfs/xfs_attr_leaf.c:2535:24 index 2 is out of range for type '__u8 [1]' Call Trace: dump_stack_lvl+0x33/0x50 __ubsan_handle_out_of_bounds+0x9c/0xd0 xfs_attr3_leaf_getvalue+0x2ce/0x2e0 [xfs 4a986a89a77bb77402ab8a87a37da369ef6a3f09] xfs_attr_leaf_get+0x148/0x1c0 [xfs 4a986a89a77bb77402ab8a87a37da369ef6a3f09] xfs_attr_get_ilocked+0xae/0x110 [xfs 4a986a89a77bb77402ab8a87a37da369ef6a3f09] xfs_attr_get+0xee/0x150 [xfs 4a986a89a77bb77402ab8a87a37da369ef6a3f09] xfs_xattr_get+0x7d/0xc0 [xfs 4a986a89a77bb77402ab8a87a37da369ef6a3f09] __vfs_getxattr+0xa3/0x100 vfs_getxattr+0x87/0x1d0 do_getxattr+0x17a/0x220 getxattr+0x89/0xf0 Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Kees Cook fs/xfs/libxfs/xfs_da_format.h | 73 ++++++++++++++++++++++++++++++++++++++----- fs/xfs/xfs_ondisk.h | 4 +-- 2 files changed, 67 insertions(+), 10 deletions(-) accumulated error probability: 0.00 culprit signature: 4cdb72107d973e1a9427ec6bb96739f021082d196b2bc273125c7773e00fc2f3 parent signature: 05b550df405ab51cfbe0cbf49f371a418a99efffb79fc8b9e3088dcd6e73181a revisions tested: 22, total time: 5h48m23.100083554s (build: 2h17m6.497935426s, test: 3h9m55.207103088s) first good commit: a49bbce58ea90b14d4cb1d00681023a8606955f2 xfs: convert flex-array declarations in xfs attr leaf blocks recipients (to): ["djwong@kernel.org" "hch@lst.de" "keescook@chromium.org"] recipients (cc): []