ci starts bisection 2024-12-31 16:32:52.380858434 +0000 UTC m=+444361.285745013 bisecting cause commit starting from 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 building syzkaller on d3ccff6372e07c6aabd02b5da419aa6492b5f0ad ensuring issue is reproducible on original commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 06f073464d90d949349f7c38045c1c10e098057b5f977d65d09bfbab87f96566 all runs: crashed: KASAN: use-after-free Write in __put_unused_fd representative crash: KASAN: use-after-free Write in __put_unused_fd, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 932f5aaa34cf29bdbe59e2a1d1ed25b1c2fe1909cf7ff5ed8b5ef68216e915e4 run #0: crashed: KASAN: slab-use-after-free Read in put_unused_fd run #1: crashed: KASAN: use-after-free Write in put_unused_fd run #2: crashed: KASAN: use-after-free Write in put_unused_fd run #3: crashed: KASAN: use-after-free Write in put_unused_fd run #4: crashed: KASAN: use-after-free Write in put_unused_fd run #5: crashed: KASAN: use-after-free Write in put_unused_fd run #6: crashed: KASAN: use-after-free Write in put_unused_fd run #7: crashed: KASAN: use-after-free Write in put_unused_fd run #8: crashed: KASAN: use-after-free Write in put_unused_fd run #9: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: slab-use-after-free Read in put_unused_fd, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed kconfig minimization: base=4045 full=8253 leaves diff=2128 split chunks (needed=false): <2128> split chunk #0 of len 2128 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 119e62a8de150a9fc3778bb7c74f8f1eb24cfd3fed44e85f90bcac01d2c99969 run #0: crashed: KASAN: use-after-free Write in put_unused_fd run #1: crashed: KASAN: use-after-free Write in put_unused_fd run #2: crashed: KASAN: use-after-free Write in put_unused_fd run #3: crashed: KASAN: use-after-free Write in put_unused_fd run #4: crashed: KASAN: use-after-free Write in put_unused_fd run #5: crashed: KASAN: use-after-free Write in put_unused_fd run #6: crashed: KASAN: use-after-free Write in put_unused_fd run #7: crashed: KASAN: use-after-free Write in put_unused_fd run #8: crashed: KASAN: slab-out-of-bounds Read in put_unused_fd run #9: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2: drivers/gpu/drm/bridge/aux-bridge.c:116: undefined reference to `devm_drm_of_get_bridge' testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a8b99e617f9ef51ad3563bbd4f5aad8993425a867b9b35390ba109851181d69a all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bbdc6c218a3e78d903cf617e5a7479b07cf18d282846e11cab89319368d41fe1 all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1d5b363a7a560bd082210e6c2eca19b767965c5ecf8870d32f93f35566f034ad all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] the chunk can be dropped minimized to 426 configs; suspects: [6LOWPAN ARCH_ENABLE_MEMORY_HOTREMOVE ASUS_WMI CHARGER_BQ24190 CMA COMMON_CLK DAX DLM DRM DRM_BRIDGE DRM_GUD DRM_I915 DRM_I915_CAPTURE_ERROR DRM_I915_COMPRESS_ERROR DRM_I915_USERPTR DRM_KMS_HELPER DRM_MIPI_DSI DRM_PANEL DRM_PANEL_BRIDGE DRM_PANEL_EDP DRM_PANEL_ORIENTATION_QUIRKS DRM_SIMPLEDRM DRM_TTM DRM_TTM_HELPER DRM_UDL DRM_VGEM DRM_VIRTIO_GPU DRM_VIRTIO_GPU_KMS DRM_VKMS DRM_VMWGFX DUMMY DVB_AF9013 DVB_AF9033 DVB_AS102 DVB_AS102_FE DVB_B2C2_FLEXCOP DVB_B2C2_FLEXCOP_USB DVB_CORE DVB_DIB3000MB DVB_DIB3000MC DVB_EC100 DVB_GP8PSK_FE DVB_RTL2830 DVB_RTL2832 DVB_RTL2832_SDR DVB_TEST_DRIVERS DVB_TTUSB_BUDGET DVB_TTUSB_DEC DVB_USB DVB_USB_A800 DVB_USB_AF9005 DVB_USB_AF9005_REMOTE DVB_USB_AF9015 DVB_USB_AF9035 DVB_USB_ANYSEE DVB_USB_AU6610 DVB_USB_AZ6007 DVB_USB_AZ6027 DVB_USB_CE6230 DVB_USB_CINERGY_T2 DVB_USB_CXUSB DVB_USB_CXUSB_ANALOG DVB_USB_DIB0700 DVB_USB_DIB3000MC DVB_USB_DIBUSB_MB DVB_USB_DIBUSB_MC DVB_USB_DIGITV DVB_USB_DTT200U DVB_USB_DTV5100 DVB_USB_DVBSKY DVB_USB_DW2102 DVB_USB_EC168 DVB_USB_GL861 DVB_USB_GP8PSK DVB_USB_LME2510 DVB_USB_M920X DVB_USB_MXL111SF DVB_USB_NOVA_T_USB2 DVB_USB_OPERA1 DVB_USB_PCTV452E DVB_USB_RTL28XXU DVB_USB_TECHNISAT_USB2 DVB_USB_TTUSB2 DVB_USB_UMT_010 DVB_USB_V2 DVB_USB_VP702X DVB_USB_VP7045 DVB_USB_ZD1301 DVB_VIDTV DVB_ZL10353 ECRYPT_FS ECRYPT_FS_MESSAGING EDAC EEPROM_93CX6 EFS_FS ENCRYPTED_KEYS EQUALIZER EROFS_FS EROFS_FS_BACKED_BY_FILE EROFS_FS_POSIX_ACL EROFS_FS_SECURITY EROFS_FS_XATTR EROFS_FS_ZIP EVM EVM_ADD_XATTRS EVM_ATTR_FSUUID EXFAT_FS EXPORTFS_BLOCK_OPS EXT3_FS EXT3_FS_POSIX_ACL EXT3_FS_SECURITY EXTCON EXTCON_INTEL_CHT_WC EXTCON_PTN5150 EXTCON_USBC_TUSB320 F2FS_CHECK_FS F2FS_FAULT_INJECTION F2FS_FS F2FS_FS_COMPRESSION F2FS_FS_LZ4 F2FS_FS_LZ4HC F2FS_FS_LZO F2FS_FS_LZORLE F2FS_FS_POSIX_ACL F2FS_FS_SECURITY F2FS_FS_XATTR F2FS_FS_ZSTD F2FS_STAT_FS FANOTIFY FANOTIFY_ACCESS_PERMISSIONS FB FB_CFB_COPYAREA FB_CFB_FILLRECT FB_CFB_IMAGEBLIT FB_CORE FB_DEFERRED_IO FB_DEVICE FB_IOMEM_FOPS FB_IOMEM_HELPERS FB_NOTIFY FB_SYSMEM_FOPS FB_SYSMEM_HELPERS FB_SYSMEM_HELPERS_DEFERRED FB_SYS_COPYAREA FB_SYS_FILLRECT FB_SYS_IMAGEBLIT FB_TILEBLITTING FB_VESA FB_VGA16 FB_VIRTUAL FDDI FIREWIRE FIREWIRE_NET FIREWIRE_OHCI FIREWIRE_SBP2 FONT_8x16 FONT_8x8 FONT_SUPPORT FRAMEBUFFER_CONSOLE FRAMEBUFFER_CONSOLE_DETECT_PRIMARY FRAMEBUFFER_CONSOLE_ROTATION FS_DAX FS_DAX_PMD FS_ENCRYPTION FS_ENCRYPTION_ALGS FS_STACK FS_VERITY FS_VERITY_BUILTIN_SIGNATURES FTL FUSE_DAX FUSE_FS FW_LOADER_COMPRESS FW_LOADER_PAGED_BUF FW_LOADER_SYSFS FW_LOADER_USER_HELPER FW_LOADER_USER_HELPER_FALLBACK GACT_PROB GARP GENERIC_PHY GET_FREE_REGION GFS2_FS GFS2_FS_LOCKING_DLM GNSS GNSS_USB GOOGLE_COREBOOT_TABLE GOOGLE_FIRMWARE GOOGLE_MEMCONSOLE GOOGLE_MEMCONSOLE_COREBOOT GOOGLE_VPD GPIOLIB GPIOLIB_IRQCHIP GPIO_ACPI GPIO_DLN2 GPIO_LJCA GPIO_VIPERBOARD GREENASIA_FF GREYBUS GREYBUS_BRIDGED_PHY GREYBUS_ES2 GREYBUS_HID GREYBUS_USB GROUP_SCHED_WEIGHT GTP GUEST_PERF_EVENTS GVE HAVE_ARCH_NODE_DEV_GROUP HAVE_ARCH_USERFAULTFD_MINOR HAVE_ARCH_USERFAULTFD_WP HAVE_BOOTMEM_INFO_NODE HAVE_CLK_PREPARE HAVE_KVM_CPU_RELAX_INTERCEPT HAVE_KVM_DIRTY_RING HAVE_KVM_DIRTY_RING_ACQ_REL HAVE_KVM_DIRTY_RING_TSO HAVE_KVM_IRQCHIP HAVE_KVM_IRQ_BYPASS HAVE_KVM_IRQ_ROUTING HAVE_KVM_MSI HAVE_KVM_NO_POLL HAVE_KVM_PFNCACHE HAVE_KVM_PM_NOTIFIER HAVE_KVM_READONLY_MEM HAVE_SCHED_AVG_IRQ HDLC HDLC_CISCO HDLC_FR HDLC_PPP HDLC_RAW HDLC_RAW_ETH HDLC_X25 HDMI HFSPLUS_FS HFS_FS HID_ACCUTOUCH HID_ACRUX HID_ACRUX_FF HID_ALPS HID_APPLEIR HID_ASUS HID_AUREAL HID_BATTERY_STRENGTH HID_BETOP_FF HID_BIGBEN_FF HID_CMEDIA HID_CORSAIR HID_COUGAR HID_CP2112 HID_CREATIVE_SB0540 HID_ELAN HID_ELECOM HID_ELO HID_EMS_FF HID_EVISION HID_FT260 HID_GEMBIRD HID_GFRM HID_GLORIOUS HID_GOOGLE_STADIA_FF HID_GREENASIA HID_GT683R HID_HOLTEK HID_ICADE HID_JABRA HID_KEYTOUCH HID_KYE HID_LCPOWER HID_LED HID_LENOVO HID_LETSKETCH HID_LOGITECH_DJ HID_LOGITECH_HIDPP HID_MACALLY HID_MAGICMOUSE HID_MALTRON HID_MAYFLASH HID_MCP2200 HID_MCP2221 HID_MEGAWORLD_FF HID_MULTITOUCH HID_NTI HID_ORTEK HID_PENMOUNT HID_PICOLCD HID_PICOLCD_BACKLIGHT HID_PICOLCD_CIR HID_PICOLCD_FB HID_PICOLCD_LCD HID_PICOLCD_LEDS HID_PLANTRONICS HID_PRIMAX HID_PRODIKEYS HID_PXRC HID_RAZER HID_RETRODE HID_RMI HID_ROCCAT HID_SAITEK HID_SEMITEK HID_SENSOR_ACCEL_3D HID_SENSOR_ALS HID_SENSOR_CUSTOM_INTEL_HINGE HID_SENSOR_CUSTOM_SENSOR HID_SENSOR_DEVICE_ROTATION HID_SENSOR_GYRO_3D HID_SENSOR_HUB HID_SENSOR_HUMIDITY HID_SENSOR_IIO_COMMON HID_SENSOR_IIO_TRIGGER HID_SENSOR_INCLINOMETER_3D HID_SENSOR_MAGNETOMETER_3D HID_SENSOR_PRESS HID_SENSOR_PROX HID_SENSOR_TEMP HID_SIGMAMICRO HID_SPEEDLINK HID_STEELSERIES HID_THINGM HID_TIVO HID_TOPRE HID_TWINHAN HID_U2FZERO HID_UCLOGIC HID_UDRAW_PS3 HID_VIEWSONIC HID_VIVALDI HID_VIVALDI_COMMON HID_VRC2 HID_WACOM HID_WALTOP HID_WIIMOTE HID_XIAOMI HID_XINMO HID_ZYDACRON HMM_MIRROR HOLTEK_FF HOTPLUG_PCI_PCIE HPET_MMAP HPET_MMAP_DEFAULT HPFS_FS I2C_ALGOBIT I2C_CHARDEV I2C_CP2615 I2C_DESIGNWARE_CORE I2C_DESIGNWARE_PLATFORM I2C_DIOLAN_U2C I2C_DLN2 I2C_HID_ACPI I2C_HID_CORE I2C_HID_OF I2C_LJCA I2C_MUX I2C_MUX_REG I2C_ROBOTFUZZ_OSIF I2C_SI4713 I2C_SLAVE I2C_SLAVE_EEPROM I2C_TINY_USB I2C_VIPERBOARD IEEE802154 IEEE802154_6LOWPAN IEEE802154_ATUSB IEEE802154_DRIVERS IEEE802154_HWSIM IEEE802154_NL802154_EXPERIMENTAL IEEE802154_SOCKET IFB IIO IIO_BUFFER IIO_KFIFO_BUF IIO_TRIGGER IIO_TRIGGERED_BUFFER IKCONFIG IKCONFIG_PROC IMA IMA_APPRAISE IMA_APPRAISE_MODSIG IMA_DEFAULT_HASH_SHA256 IMA_LSM_RULES IMA_MEASURE_ASYMMETRIC_KEYS IMA_NG_TEMPLATE IMA_QUEUE_EARLY_BOOT_KEYS IMA_READ_POLICY IMA_WRITE_POLICY INET6_ESPINTCP INET6_ESP_OFFLOAD INET6_IPCOMP INET6_TUNNEL INET6_XFRM_TUNNEL INET_AH INET_DCCP_DIAG INET_DIAG INET_DIAG_DESTROY INET_ESP INET_ESPINTCP INET_ESP_OFFLOAD INET_IPCOMP INET_MPTCP_DIAG INET_RAW_DIAG INET_SCTP_DIAG INET_TCP_DIAG INET_UDP_DIAG INET_XFRM_TUNNEL INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_ADDR_TRANS_CONFIGFS INFINIBAND_IPOIB INFINIBAND_IPOIB_CM INFINIBAND_IPOIB_DEBUG INFINIBAND_ISER INFINIBAND_ON_DEMAND_PAGING INFINIBAND_RTRS INFINIBAND_SRP INFINIBAND_USER_ACCESS INFINIBAND_USER_MAD INFINIBAND_USER_MEM INPUT_ATI_REMOTE2 INPUT_CM109 INPUT_IMS_PCU INPUT_JOYDEV INPUT_KEYSPAN_REMOTE INPUT_LEDS INPUT_MOUSEDEV INPUT_MOUSEDEV_PSAUX INPUT_POWERMATE INPUT_UINPUT INPUT_YEALINK INTEGRITY INTEGRITY_ASYMMETRIC_KEYS INTEGRITY_AUDIT INTEGRITY_SIGNATURE INTEGRITY_TRUSTED_KEYRING INTEL_CHTWC_INT33FE INTEL_IDMA64 INTEL_IOATDMA INTEL_IOMMU_DEFAULT_ON INTEL_IOMMU_SVM INTEL_ISHTP_ECLITE INTEL_ISH_FIRMWARE_DOWNLOADER INTEL_ISH_HID INTEL_SOC_PMIC_CHTWC INTERVAL_TREE_SPAN_ITER IOMMUFD IOMMUFD_DRIVER IOMMUFD_DRIVER_CORE IOMMUFD_TEST IP6_NF_MATCH_AH IP6_NF_MATCH_EUI64 IP6_NF_MATCH_FRAG IP6_NF_MATCH_HL IP6_NF_MATCH_MH IP6_NF_MATCH_OPTS IP6_NF_MATCH_RPFILTER IP6_NF_MATCH_RT IP6_NF_MATCH_SRH IP6_NF_NAT IP6_NF_RAW IP6_NF_SECURITY IP6_NF_TARGET_HL IP6_NF_TARGET_MASQUERADE IP6_NF_TARGET_NPT IP6_NF_TARGET_SYNPROXY IPV6_FOU IPV6_FOU_TUNNEL IPV6_GRE IPV6_ILA IPV6_MIP6 IPV6_MROUTE IPV6_MROUTE_MULTIPLE_TABLES IPV6_MULTIPLE_TABLES IPV6_OPTIMISTIC_DAD IPV6_PIMSM_V2 IPV6_ROUTER_PREF IPV6_ROUTE_INFO IPV6_RPL_LWTUNNEL IPV6_SEG6_BPF IPV6_SEG6_HMAC IPV6_SEG6_LWTUNNEL IPV6_SIT_6RD IPV6_SUBTREES IPV6_TUNNEL IPV6_VTI IPVLAN IPVLAN_L3S IPVTAP IP_DCCP IP_DCCP_CCID3 IP_DCCP_TFRC_LIB IP_FIB_TRIE_STATS IP_MROUTE_MULTIPLE_TABLES IP_NF_ARPFILTER IP_NF_ARPTABLES IP_NF_ARP_MANGLE IP_NF_MATCH_AH IP_NF_MATCH_ECN IP_NF_MATCH_RPFILTER IP_NF_MATCH_TTL IP_NF_RAW IP_NF_SECURITY IP_NF_TARGET_ECN IP_NF_TARGET_NETMAP IP_NF_TARGET_REDIRECT IP_NF_TARGET_SYNPROXY IP_NF_TARGET_TTL IP_ROUTE_CLASSID IP_SCTP IP_SET IP_SET_BITMAP_IP IP_SET_BITMAP_IPMAC IP_SET_BITMAP_PORT IP_SET_HASH_IP IP_SET_HASH_IPMAC IP_SET_HASH_IPMARK IP_SET_HASH_IPPORT IP_SET_HASH_IPPORTIP IP_SET_HASH_IPPORTNET IP_SET_HASH_MAC IP_SET_HASH_NET IP_SET_HASH_NETIFACE IP_SET_HASH_NETNET IP_SET_HASH_NETPORT IP_SET_HASH_NETPORTNET IP_SET_LIST_SET IP_VS IP_VS_DH IP_VS_FO IRQ_TIME_ACCOUNTING LAPB LCD_CLASS_DEVICE MAC802154 MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_TEST_SUPPORT MEDIA_USB_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MFD_VIPERBOARD MPTCP MTD NETFILTER_ADVANCED NET_ACT_GACT NET_ACT_MIRRED NET_IPGRE_DEMUX NFT_COMPAT NFT_COMPAT_ARP NFT_FWD_NETDEV NF_TABLES NF_TABLES_ARP NF_TABLES_NETDEV RADIO_ADAPTERS RADIO_SI4713 RAS RC_CORE REGULATOR RFKILL SND SOUND STAGING TRANSPARENT_HUGEPAGE TYPEC TYPEC_MUX_PI3USB30532 USB_LJCA USB_ROLES_INTEL_XHCI USB_ROLE_SWITCH VIDEO_DEV VIRTIO_FS WAN ZONE_DEVICE] disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed picked [v6.12 v6.11 v6.10 v6.8 v6.6 v6.4 v6.2 v6.0 v5.17 v5.14 v5.11 v5.8 v5.5 v5.2 v4.20 v4.19] out of 35 release tags testing release v6.12 testing commit adc218676eef25575469234709c2d87185ca223a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8b7bf535ecaf6cd08799199684a59fb9afd65906f4583804b1c0579d1d84ddf2 all runs: OK false negative chance: 0.000 # git bisect start 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 adc218676eef25575469234709c2d87185ca223a Bisecting: 9102 revisions left to test after this (roughly 13 steps) [e2cf913314b9543f4479788443c7e9009c6c56d8] Merge branch 'fixes-for-stack-with-allow_ptr_leaks' testing commit e2cf913314b9543f4479788443c7e9009c6c56d8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 79630abd816e2e38e4b55fd14c169576a0b41d40057c0dbd85d40250f1a45f0a all runs: OK false negative chance: 0.000 # git bisect good e2cf913314b9543f4479788443c7e9009c6c56d8 Bisecting: 4545 revisions left to test after this (roughly 12 steps) [b86e29c311ae2ab6e88bdf162437dbc96cf97551] Merge branch 'mm-everything' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit b86e29c311ae2ab6e88bdf162437dbc96cf97551 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3c7a9557e86ec38b813228e8ca0a6dc8bfe1c0c69f59265d0a40e7e2bc47e5fa all runs: OK false negative chance: 0.000 # git bisect good b86e29c311ae2ab6e88bdf162437dbc96cf97551 Bisecting: 2317 revisions left to test after this (roughly 11 steps) [a682817489bc2821dbc304a23bb9dad07453ffec] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git testing commit a682817489bc2821dbc304a23bb9dad07453ffec gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 85792e0acd1744ddd066e8bca2314afce02f434179c895f05fd9ccfc29bf96c9 all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad a682817489bc2821dbc304a23bb9dad07453ffec Bisecting: 1071 revisions left to test after this (roughly 10 steps) [07ccd1271cec0338b16ad48d75dc83fc0512bfab] Merge branch 'fs-next' of linux-next testing commit 07ccd1271cec0338b16ad48d75dc83fc0512bfab gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8bfaf93bc8a62de80018dc87346b382f42a729df59d4534825d58bfedd542d4d all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad 07ccd1271cec0338b16ad48d75dc83fc0512bfab Bisecting: 578 revisions left to test after this (roughly 9 steps) [ebbe02007071f2a0607eab1196ca2f8c2de2ea67] Merge branch 'riscv-soc-for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git testing commit ebbe02007071f2a0607eab1196ca2f8c2de2ea67 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7e9f0026ee93f53170cd32e1bc55a973599c22df6e5b5184cd73247f186a4b59 all runs: OK false negative chance: 0.000 # git bisect good ebbe02007071f2a0607eab1196ca2f8c2de2ea67 Bisecting: 250 revisions left to test after this (roughly 8 steps) [389534fa27e02f918dc5dedcbdc6d2559e589fb3] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git testing commit 389534fa27e02f918dc5dedcbdc6d2559e589fb3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7ec796d8a3086cac617f235e07eddbee07942742ea997a9dbe37df1e77d56860 all runs: OK false negative chance: 0.000 # git bisect good 389534fa27e02f918dc5dedcbdc6d2559e589fb3 Bisecting: 117 revisions left to test after this (roughly 7 steps) [ef5bbd2a286805b0f97b5fa8616d28a84336ee7b] Merge branch 'vfs-6.14.mount' into vfs.all testing commit ef5bbd2a286805b0f97b5fa8616d28a84336ee7b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a3013a949f2ba4007422856d7c6c440ebb691886c79fa8f9d570b5f09bdb794 all runs: OK false negative chance: 0.000 # git bisect good ef5bbd2a286805b0f97b5fa8616d28a84336ee7b Bisecting: 65 revisions left to test after this (roughly 6 steps) [8dad5129f0a9ff3a5eb8caea0da6c776af6dfdb2] Merge branch 'for_next' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git testing commit 8dad5129f0a9ff3a5eb8caea0da6c776af6dfdb2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 648fe90473679ad7e2a57e2eddd448986aa6edacca930a0a11531daaa698d4ae all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad 8dad5129f0a9ff3a5eb8caea0da6c776af6dfdb2 Bisecting: 24 revisions left to test after this (roughly 5 steps) [7f8ba7d724034c63420c49a02a83c97cdc9170fd] Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git testing commit 7f8ba7d724034c63420c49a02a83c97cdc9170fd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bba013db0add67660c79dcf5ffc835a3be3b2f6398dba46d335857c842827326 all runs: OK false negative chance: 0.000 # git bisect good 7f8ba7d724034c63420c49a02a83c97cdc9170fd Bisecting: 12 revisions left to test after this (roughly 4 steps) [b4b2ff4f61ded819bfa22e50fdec7693f51cbbee] fanotify: allow to set errno in FAN_DENY permission response testing commit b4b2ff4f61ded819bfa22e50fdec7693f51cbbee gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6c5cb842ffc595eab383e80049eb7e89dbcb80f92432659cb75c065e28df72bf all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad b4b2ff4f61ded819bfa22e50fdec7693f51cbbee Bisecting: 5 revisions left to test after this (roughly 3 steps) [0a076036b631f086a6bce93a45eaa216f234f121] fanotify: reserve event bit of deprecated FAN_DIR_MODIFY testing commit 0a076036b631f086a6bce93a45eaa216f234f121 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c3f23386bfb2ac3d4a4e0794f3a7427a7fcafc3742c84ddf3e811c55bb9ccff0 all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad 0a076036b631f086a6bce93a45eaa216f234f121 Bisecting: 2 revisions left to test after this (roughly 2 steps) [318652e07fa5b1743d08eeccd69a1f47f2c15710] fsnotify: check if file is actually being watched for pre-content events on open testing commit 318652e07fa5b1743d08eeccd69a1f47f2c15710 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a919b03c1ce954a0a9fb5118840a6374cfec48c29ee948798717ff6e6e31d6a9 all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad 318652e07fa5b1743d08eeccd69a1f47f2c15710 Bisecting: 0 revisions left to test after this (roughly 1 step) [a94204f4d48e28a711b7ed10399f749286c433e3] fsnotify: opt-in for permission events at file open time testing commit a94204f4d48e28a711b7ed10399f749286c433e3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5b7222dff8348672cfc0fbf3730116491071ff453bf5d412e7bc0a3aa299d606 all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad a94204f4d48e28a711b7ed10399f749286c433e3 Bisecting: 0 revisions left to test after this (roughly 0 steps) [ebe559609d7829b52c6642b581860760984faf9d] fs: get rid of __FMODE_NONOTIFY kludge testing commit ebe559609d7829b52c6642b581860760984faf9d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e5544e3fd71c2fd07688b869a0c43e79af14553c943e73f73e2aeb8a41e39b6e all runs: crashed: KASAN: use-after-free Write in put_unused_fd representative crash: KASAN: use-after-free Write in put_unused_fd, types: [KASAN] # git bisect bad ebe559609d7829b52c6642b581860760984faf9d ebe559609d7829b52c6642b581860760984faf9d is the first bad commit commit ebe559609d7829b52c6642b581860760984faf9d Author: Al Viro Date: Fri Nov 15 10:30:14 2024 -0500 fs: get rid of __FMODE_NONOTIFY kludge All it takes to get rid of the __FMODE_NONOTIFY kludge is switching fanotify from anon_inode_getfd() to anon_inode_getfile_fmode() and adding a dentry_open_nonotify() helper to be used by fanotify on the other path. That's it - no more weird shit in OPEN_FMODE(), etc. Signed-off-by: Al Viro Link: https://lore.kernel.org/linux-fsdevel/20241113043003.GH3387508@ZenIV/ Signed-off-by: Amir Goldstein Signed-off-by: Jan Kara Link: https://patch.msgid.link/d1231137e7b661a382459e79a764259509a4115d.1731684329.git.josef@toxicpanda.com fs/fcntl.c | 4 ++-- fs/notify/fanotify/fanotify_user.c | 25 ++++++++++++++++--------- fs/open.c | 23 +++++++++++++++++++---- include/linux/fs.h | 6 +++--- include/uapi/asm-generic/fcntl.h | 1 - 5 files changed, 40 insertions(+), 19 deletions(-) accumulated error probability: 0.00 parent commit b86545e02e8c22fb89218f29d381fa8e8b91d815 wasn't tested testing commit b86545e02e8c22fb89218f29d381fa8e8b91d815 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9de20e55d4d5853b9d9bc055baf187d67796232ad7817ec9c86dd4065450acb3 culprit signature: e5544e3fd71c2fd07688b869a0c43e79af14553c943e73f73e2aeb8a41e39b6e parent signature: 9de20e55d4d5853b9d9bc055baf187d67796232ad7817ec9c86dd4065450acb3 revisions tested: 21, total time: 5h41m53.119866299s (build: 3h4m27.822035153s, test: 2h17m35.266165132s) first bad commit: ebe559609d7829b52c6642b581860760984faf9d fs: get rid of __FMODE_NONOTIFY kludge recipients (to): ["amir73il@gmail.com" "jack@suse.cz" "viro@zeniv.linux.org.uk"] recipients (cc): [] crash: KASAN: use-after-free Write in put_unused_fd RAX: ffffffffffffffda RBX: 00007f732e375fa0 RCX: 00007f732e185d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f732ef09090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000001 R14: 00007f732e375fa0 R15: 00007ffe01a888d8 ================================================================== BUG: KASAN: use-after-free in instrument_write include/linux/instrumented.h:40 [inline] BUG: KASAN: use-after-free in ___clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:44 [inline] BUG: KASAN: use-after-free in __clear_open_fd fs/file.c:323 [inline] BUG: KASAN: use-after-free in __put_unused_fd fs/file.c:599 [inline] BUG: KASAN: use-after-free in put_unused_fd+0xaa/0x1b0 fs/file.c:608 Write of size 8 at addr ffff88812cfeb478 by task syz.3.16/3552 CPU: 1 UID: 0 PID: 3552 Comm: syz.3.16 Not tainted 6.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 instrument_write include/linux/instrumented.h:40 [inline] ___clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:44 [inline] __clear_open_fd fs/file.c:323 [inline] __put_unused_fd fs/file.c:599 [inline] put_unused_fd+0xaa/0x1b0 fs/file.c:608 __do_sys_fanotify_init fs/notify/fanotify/fanotify_user.c:1565 [inline] __se_sys_fanotify_init+0x5cb/0x700 fs/notify/fanotify/fanotify_user.c:1403 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f732e185d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f732ef09038 EFLAGS: 00000246 ORIG_RAX: 000000000000012c RAX: ffffffffffffffda RBX: 00007f732e375fa0 RCX: 00007f732e185d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f732ef09090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000001 R14: 00007f732e375fa0 R15: 00007ffe01a888d8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12cfeb flags: 0x100000000000000(node=0|zone=2) raw: 0100000000000000 ffffea0004b3fac8 ffffea0004b3fac8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88812cfeb300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812cfeb380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88812cfeb400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88812cfeb480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812cfeb500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================