ci2 starts bisection 2024-08-27 19:06:55.905323954 +0000 UTC m=+9885.372794487 bisecting fixing commit since f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de building syzkaller on 0f90262589ccdf81ff02549bb70e898886f75852 ensuring issue is reproducible on original commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d56c06330ce7e7ea26fd39849dd72febf344e7b2669d919f69140faad557998d run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: KASAN: use-after-free Read in nilfs_set_link run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: KASAN: use-after-free Read in nilfs_set_link run #9: crashed: KASAN: use-after-free Read in nilfs_set_link run #10: crashed: KASAN: use-after-free Read in nilfs_set_link run #11: crashed: KASAN: use-after-free Read in nilfs_set_link run #12: crashed: KASAN: use-after-free Read in nilfs_set_link run #13: crashed: kernel BUG in __block_write_begin_int run #14: crashed: kernel BUG in __block_write_begin_int run #15: crashed: kernel BUG in __block_write_begin_int run #16: crashed: kernel BUG in __block_write_begin_int run #17: crashed: kernel BUG in __block_write_begin_int run #18: crashed: kernel BUG in __block_write_begin_int run #19: crashed: kernel BUG in __block_write_begin_int representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da2abc0c367499182fee9f8141dc02f447af3c12fa71f099bfb66fd2b54d21c7 run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: go runtime error run #2: crashed: kernel BUG in __block_write_begin_int run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: kernel BUG in __block_write_begin_int representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] the bug reproduces without the instrumentation disabling configs for [UBSAN LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed kconfig minimization: base=3703 full=7269 leaves diff=1983 split chunks (needed=false): <1983> split chunk #0 of len 1983 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN LOCKDEP], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 60885521e15d95542101e32133f87d12aa4325c7037dd9c858901a6ee772ba44 all runs: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c1175fbfff8b35d2fc410f588e93fc8068b14929a66ccf267a5d01310bcfcd0 run #0: crashed: kernel BUG in __block_write_begin_int run #1: crashed: KASAN: use-after-free Read in nilfs_set_link run #2: crashed: kernel BUG in __block_write_begin_int run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: kernel BUG in __block_write_begin_int run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: KASAN: use-after-free Read in nilfs_set_link run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a75e7d9cbad74b234766a374ac79a4aa9856a0a27fadfbd9ba8874c6cdeb8564 all runs: OK false negative chance: 0.000 testing without sub-chunk 4/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 464c00d267e3e5733264942b9f6c7a1f0f545ffafe7f860fea73714395142e4f run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: kernel BUG in __block_write_begin_int run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: kernel BUG in __block_write_begin_int representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dec3313594f5338b473c9797c6a3c0567c542af622719090481cf71294c0e95a run #0: crashed: kernel BUG in __block_write_begin_int run #1: crashed: kernel BUG in __block_write_begin_int run #2: crashed: kernel BUG in __block_write_begin_int run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: kernel BUG in __block_write_begin_int run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: kernel BUG in __block_write_begin_int, types: [BUG KASAN] the chunk can be dropped minimized to 397 configs; suspects: [AX25 BRIDGE BRIDGE_NETFILTER CAN CFG80211 CHECKPOINT_RESTORE CPU_MITIGATIONS DVB_CORE FB FSCACHE HAMRADIO HSR INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_USER_ACCESS INPUT_JOYSTICK INPUT_MOUSE IP6_NF_RAW IPV6_MULTIPLE_TABLES IP_NF_RAW IP_SET IP_VS IR_TTUSBIR ISDN ISDN_CAPI_MIDDLEWARE JFFS2_CMODE_PRIORITY JFFS2_COMPRESSION_OPTIONS JFFS2_FS JFFS2_FS_POSIX_ACL JFFS2_FS_SECURITY JFFS2_FS_WRITEBUFFER JFFS2_FS_XATTR JFFS2_LZO JFFS2_RTIME JFFS2_RUBIN JFFS2_SUMMARY JFFS2_ZLIB JFS_DEBUG JFS_FS JFS_POSIX_ACL JFS_SECURITY JOYSTICK_IFORCE JOYSTICK_IFORCE_USB JOYSTICK_XPAD JOYSTICK_XPAD_FF JOYSTICK_XPAD_LEDS KARMA_PARTITION KCOV KCOV_ENABLE_COMPARISONS KCOV_INSTRUMENT_ALL KEYS_REQUEST_CACHE KEY_DH_OPERATIONS KEY_NOTIFICATIONS KSM KVM KVM_AMD KVM_ASYNC_PF KVM_COMPAT KVM_GENERIC_DIRTYLOG_READ_PROTECT KVM_INTEL KVM_MMIO KVM_VFIO KVM_XEN KVM_XFER_TO_GUEST_WORK L2TP L2TP_ETH L2TP_IP L2TP_V3 LAPB LAPBETHER LDM_PARTITION LEDS_TRIGGER_AUDIO LEGACY_PTYS LIBNVDIMM LINEAR_RANGES LLC LLC2 LOGIG940_FF LOGIRUMBLEPAD2_FF LOGO LOGO_LINUX_MONO LOGO_LINUX_VGA16 LPC_ICH LWTUNNEL LWTUNNEL_BPF LZ4HC_COMPRESS LZ4_COMPRESS MAC80211 MAC80211_DEBUGFS MAC80211_HAS_RC MAC80211_HWSIM MAC80211_MESH MAC80211_RC_DEFAULT_MINSTREL MAC80211_RC_MINSTREL MACSEC MACVLAN MACVTAP MAC_PARTITION MAPPING_DIRTY_HELPERS MD_LINEAR MD_MULTIPATH MD_RAID0 MD_RAID1 MD_RAID10 MD_RAID456 MEDIA_ANALOG_TV_SUPPORT MEDIA_ATTACH MEDIA_CONTROLLER MEDIA_CONTROLLER_DVB MEDIA_CONTROLLER_REQUEST_API MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_SUPPORT_FILTER MEDIA_TUNER MEDIA_TUNER_MSI001 MEDIA_TUNER_XC2028 MEDIA_TUNER_XC5000 MEMORY_BALLOON MEMORY_HOTPLUG MEMORY_HOTPLUG_DEFAULT_ONLINE MEMORY_ISOLATION MEMREGION MEMSTICK MEMSTICK_REALTEK_USB MEM_SOFT_DIRTY MFD_CORE MFD_SYSCON MHI_BUS MHI_WWAN_CTRL MHP_MEMMAP_ON_MEMORY MICROCHIP_PHY MINIX_FS MINIX_SUBPARTITION MISC_RTSX MISC_RTSX_USB MISDN MISDN_DSP MISDN_HFCUSB MISDN_L1OIP MITIGATION_RFDS MITIGATION_SPECTRE_BHI MKISS MLX4_CORE MLX4_INFINIBAND MMC MMC_REALTEK_USB MMC_USHC MMC_VUB300 MMU_NOTIFIER MODULE_SRCVERSION_ALL MODVERSIONS MOST MOUSE_APPLETOUCH MOUSE_BCM5974 MOUSE_PS2 MOUSE_PS2_ALPS MOUSE_PS2_BYD MOUSE_PS2_CYPRESS MOUSE_PS2_FOCALTECH MOUSE_PS2_LIFEBOOK MOUSE_PS2_LOGIPS2PP MOUSE_PS2_SMBUS MOUSE_PS2_SYNAPTICS MOUSE_PS2_SYNAPTICS_SMBUS MOUSE_PS2_TRACKPOINT MOUSE_SYNAPTICS_USB MPLS MPLS_IPTUNNEL MPLS_ROUTING MPTCP MPTCP_IPV6 MRP MTD MTD_BLKDEVS MTD_BLOCK MTD_BLOCK2MTD MTD_CFI_I1 MTD_CFI_I2 MTD_MAP_BANK_WIDTH_1 MTD_MAP_BANK_WIDTH_2 MTD_MAP_BANK_WIDTH_4 MTD_MTDRAM MTD_PHRAM MTD_SLRAM MUSB_PIO_ONLY ND_BLK ND_BTT ND_CLAIM ND_PFN NETDEVSIM NETFILTER_ADVANCED NETFILTER_FAMILY_ARP NETFILTER_FAMILY_BRIDGE NETFILTER_NETLINK_ACCT NETFILTER_NETLINK_GLUE_CT NETFILTER_NETLINK_OSF NETFILTER_NETLINK_QUEUE NETFILTER_SYNPROXY NETFILTER_XT_CONNMARK NETFILTER_XT_MATCH_BPF NETFILTER_XT_MATCH_CGROUP NETFILTER_XT_MATCH_CLUSTER NETFILTER_XT_MATCH_COMMENT NETFILTER_XT_MATCH_CONNBYTES NETFILTER_XT_MATCH_CONNLABEL NETFILTER_XT_MATCH_CONNLIMIT NETFILTER_XT_MATCH_CONNMARK NETFILTER_XT_MATCH_CPU NETFILTER_XT_MATCH_DCCP NETFILTER_XT_MATCH_DEVGROUP NETFILTER_XT_MATCH_DSCP NETFILTER_XT_MATCH_ECN NETFILTER_XT_MATCH_ESP NETFILTER_XT_MATCH_HASHLIMIT NETFILTER_XT_MATCH_HELPER NETFILTER_XT_MATCH_HL NETFILTER_XT_MATCH_IPCOMP NETFILTER_XT_MATCH_IPRANGE NETFILTER_XT_MATCH_IPVS NETFILTER_XT_MATCH_L2TP NETFILTER_XT_MATCH_LENGTH NETFILTER_XT_MATCH_LIMIT NETFILTER_XT_MATCH_MAC NETFILTER_XT_MATCH_MARK NETFILTER_XT_MATCH_MULTIPORT NETFILTER_XT_MATCH_NFACCT NETFILTER_XT_MATCH_OSF NETFILTER_XT_MATCH_OWNER NETFILTER_XT_MATCH_PHYSDEV NETFILTER_XT_MATCH_PKTTYPE NETFILTER_XT_MATCH_QUOTA NETFILTER_XT_MATCH_RATEEST NETFILTER_XT_MATCH_REALM NETFILTER_XT_MATCH_RECENT NETFILTER_XT_MATCH_SCTP NETFILTER_XT_MATCH_SOCKET NETFILTER_XT_MATCH_STATISTIC NETFILTER_XT_MATCH_STRING NETFILTER_XT_MATCH_TCPMSS NETFILTER_XT_MATCH_TIME NETFILTER_XT_MATCH_U32 NETFILTER_XT_SET NETFILTER_XT_TARGET_AUDIT NETFILTER_XT_TARGET_CHECKSUM NETFILTER_XT_TARGET_CLASSIFY NETFILTER_XT_TARGET_CONNMARK NETFILTER_XT_TARGET_CT NETFILTER_XT_TARGET_DSCP NETFILTER_XT_TARGET_HL NETFILTER_XT_TARGET_HMARK NETFILTER_XT_TARGET_IDLETIMER NETFILTER_XT_TARGET_LED NETFILTER_XT_TARGET_MARK NETFILTER_XT_TARGET_NETMAP NETFILTER_XT_TARGET_NFQUEUE NETFILTER_XT_TARGET_NOTRACK NETFILTER_XT_TARGET_RATEEST NETFILTER_XT_TARGET_REDIRECT NETFILTER_XT_TARGET_TCPOPTSTRIP NETFILTER_XT_TARGET_TEE NETFILTER_XT_TARGET_TPROXY NETFILTER_XT_TARGET_TRACE NETFS_SUPPORT NETLABEL NETLINK_DIAG NETROM NET_9P_RDMA NET_ACT_BPF NET_ACT_CONNMARK NET_ACT_CSUM NET_ACT_CT NET_ACT_CTINFO NET_ACT_GATE NET_ACT_IFE NET_ACT_IPT NET_ACT_MPLS NET_ACT_NAT NET_ACT_PEDIT NET_ACT_POLICE NET_ACT_SAMPLE NET_ACT_SIMP NET_ACT_SKBEDIT NET_ACT_SKBMOD NET_ACT_TUNNEL_KEY NET_ACT_VLAN NET_CLS_BASIC NET_CLS_BPF NET_CLS_CGROUP NET_CLS_FLOW NET_CLS_FLOWER NET_CLS_FW NET_CLS_MATCHALL NET_CLS_ROUTE4 NET_DEVLINK NET_DROP_MONITOR NET_DSA NET_DSA_TAG_BRCM NET_DSA_TAG_BRCM_COMMON NET_DSA_TAG_BRCM_PREPEND NET_DSA_TAG_MTK NET_DSA_TAG_QCA NET_DSA_TAG_RTL4_A NET_EGRESS NET_EMATCH_CANID NET_EMATCH_CMP NET_EMATCH_IPSET NET_EMATCH_IPT NET_EMATCH_META NET_EMATCH_NBYTE NET_EMATCH_TEXT NET_EMATCH_U32 NET_FC NET_FOU NET_FOU_IP_TUNNELS NET_IFE NET_IFE_SKBMARK NET_IFE_SKBPRIO NET_IFE_SKBTCINDEX NET_IPGRE NET_IPGRE_BROADCAST NET_IPGRE_DEMUX NET_IPIP NET_IPVTI NET_KEY NET_KEY_MIGRATE NET_L3_MASTER_DEV NET_MPLS_GSO NET_NCSI NET_NSH NET_REDIRECT NET_SCH_CAKE NET_SCH_CBS NET_SCH_CHOKE NET_SCH_CODEL NET_SCH_DRR NET_SCH_ETF NET_SCH_ETS NET_SCH_FQ NET_SCH_FQ_CODEL NET_SCH_FQ_PIE NET_SCH_GRED NET_SCH_HFSC NET_SCH_HHF NET_SCH_HTB NET_SCH_INGRESS NET_SCH_MQPRIO NET_SCH_MULTIQ NET_SCH_NETEM NET_SCH_PIE NET_SCH_PLUG NET_SCH_PRIO NET_SCH_QFQ NET_SCH_RED NET_SCH_SFB NET_SCH_SFQ NET_SCH_SKBPRIO NET_SCH_TAPRIO NET_SCH_TBF NET_SCH_TEQL NET_SOCK_MSG NET_SWITCHDEV NET_TC_SKB_EXT NET_TEAM NET_TEAM_MODE_ACTIVEBACKUP NET_TEAM_MODE_BROADCAST NET_TEAM_MODE_LOADBALANCE NET_TEAM_MODE_RANDOM NET_TEAM_MODE_ROUNDROBIN NET_UDP_TUNNEL NET_VRF NFC NFC_DIGITAL NFC_FDP NFC_HCI NFC_MRVL NFC_MRVL_USB NFC_NCI NFC_NCI_UART NFC_PN533 NFC_PN533_USB NFC_PORT100 NFC_SHDLC NFC_SIM NFC_VIRTUAL_NCI NFSD NFSD_BLOCKLAYOUT NFSD_FLEXFILELAYOUT NFSD_PNFS NFSD_SCSILAYOUT NFSD_V3_ACL NFSD_V4 NFSD_V4_2_INTER_SSC NFSD_V4_SECURITY_LABEL NFS_FSCACHE NFS_V4_1 NFS_V4_2 NFS_V4_2_READ_PLUS NFS_V4_2_SSC_HELPER NFS_V4_SECURITY_LABEL NFT_BRIDGE_META NFT_BRIDGE_REJECT NFT_COMPAT NFT_CONNLIMIT NFT_COUNTER NFT_CT NFT_DUP_IPV4 NFT_DUP_IPV6 NFT_DUP_NETDEV NFT_FIB NFT_FIB_INET NFT_FIB_IPV4 NFT_FIB_IPV6 NFT_FIB_NETDEV NFT_FLOW_OFFLOAD NFT_HASH NFT_LIMIT NFT_LOG NFT_MASQ NFT_NAT NFT_NUMGEN NFT_OBJREF NFT_OSF NFT_QUEUE NFT_QUOTA NFT_REDIR NFT_REJECT NFT_REJECT_INET NFT_REJECT_IPV4 NFT_REJECT_IPV6 NFT_REJECT_NETDEV NFT_SOCKET NFT_SYNPROXY NFT_TPROXY NFT_TUNNEL NFT_XFRM NF_CONNTRACK_AMANDA NF_CONNTRACK_BRIDGE NF_CONNTRACK_BROADCAST NF_CONNTRACK_EVENTS NF_CONNTRACK_H323 NF_CONNTRACK_LABELS NF_CONNTRACK_MARK NF_CONNTRACK_NETBIOS_NS NF_CONNTRACK_PPTP NF_CONNTRACK_SANE NF_CONNTRACK_SNMP NF_CONNTRACK_TFTP NF_CONNTRACK_TIMEOUT NF_CONNTRACK_TIMESTAMP NF_CONNTRACK_ZONES NF_CT_NETLINK_HELPER NF_CT_NETLINK_TIMEOUT NF_CT_PROTO_DCCP NF_CT_PROTO_GRE NF_CT_PROTO_SCTP NF_CT_PROTO_UDPLITE NF_DUP_IPV4 NF_DUP_IPV6 NF_DUP_NETDEV NF_FLOW_TABLE NF_FLOW_TABLE_INET NF_FLOW_TABLE_IPV4 NF_FLOW_TABLE_IPV6 NF_FLOW_TABLE_PROCFS NF_NAT_AMANDA NF_NAT_H323 NF_NAT_PPTP NF_NAT_REDIRECT NF_NAT_SNMP_BASIC NF_NAT_TFTP NF_SOCKET_IPV4 NF_SOCKET_IPV6 NF_TABLES NF_TABLES_ARP NF_TABLES_BRIDGE NF_TABLES_INET NF_TABLES_IPV4 NF_TABLES_IPV6 NF_TABLES_NETDEV NF_TPROXY_IPV4 NF_TPROXY_IPV6 NILFS2_FS NLMON NLS_CODEPAGE_1250 NLS_CODEPAGE_1251 NLS_CODEPAGE_737 NLS_CODEPAGE_775 PARTITION_ADVANCED PSAMPLE RC_CORE RC_DEVICES RFKILL SPI USB_GADGET USB_MUSB_HDRC VIDEO_DEV VIDEO_V4L2 WAN WATCH_QUEUE WIRELESS WLAN WWAN X25 X86_X32] disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN LOCKDEP], they are not needed testing current HEAD fa93fa65db6e232b5f2226dd86c9f066ec6dfd97 testing commit fa93fa65db6e232b5f2226dd86c9f066ec6dfd97 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26b51011bc5f8d66db3c12bf4b65de559e5f0a6c59ee4a079cf8afc58afc894f all runs: OK false negative chance: 0.000 # git bisect start fa93fa65db6e232b5f2226dd86c9f066ec6dfd97 f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de Bisecting: 356 revisions left to test after this (roughly 9 steps) [3bff42b29a24a645389996ace2e64b5349211876] Input: qt1050 - handle CHIP_ID reading error determine whether the revision contains the guilty commit revision f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de crashed and is reachable testing commit 3bff42b29a24a645389996ace2e64b5349211876 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 80ca19ebd5db3029312798975531af2ac9422c11f25535edcadf6a85d67879ba all runs: OK false negative chance: 0.000 # git bisect bad 3bff42b29a24a645389996ace2e64b5349211876 Bisecting: 177 revisions left to test after this (roughly 8 steps) [b26c8c85463ef27a522d24fcd05651f0bb039e47] KVM: PPC: Book3S HV: Prevent UAF in kvm_spapr_tce_attach_iommu_group() determine whether the revision contains the guilty commit revision f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de crashed and is reachable testing commit b26c8c85463ef27a522d24fcd05651f0bb039e47 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e65414e3bfc01e2cb84337b37934ba76b9a93c5a395e89b0aec13842b8f9e29f all runs: OK false negative chance: 0.000 # git bisect bad b26c8c85463ef27a522d24fcd05651f0bb039e47 Bisecting: 88 revisions left to test after this (roughly 7 steps) [15298ff0f6d2307d375301e315c36f8ae528ac8d] net: lantiq_etop: add blank line after declaration determine whether the revision contains the guilty commit revision f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de crashed and is reachable testing commit 15298ff0f6d2307d375301e315c36f8ae528ac8d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7725fbed46893e394cf409bfb8e2f6b5665a872b65e3006ebfe05b1366712302 run #0: crashed: kernel BUG in __block_write_begin_int run #1: crashed: KASAN: use-after-free Read in nilfs_set_link run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: kernel BUG in __block_write_begin_int run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] # git bisect good 15298ff0f6d2307d375301e315c36f8ae528ac8d Bisecting: 44 revisions left to test after this (roughly 6 steps) [7000b438dda9d0f41a956fc9bffed92d2eb6be0d] nilfs2: fix kernel bug on rename operation of broken directory determine whether the revision contains the guilty commit revision 15298ff0f6d2307d375301e315c36f8ae528ac8d crashed and is reachable testing commit 7000b438dda9d0f41a956fc9bffed92d2eb6be0d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b6635e32ce8767b319f53b483ea4abd8d728dd6b2365ab565c7725682b24b6dd all runs: OK false negative chance: 0.000 # git bisect bad 7000b438dda9d0f41a956fc9bffed92d2eb6be0d Bisecting: 21 revisions left to test after this (roughly 5 steps) [d2e942dc1cf03f1681296b3db41df2428a60e45d] USB: serial: option: add support for Foxconn T99W651 determine whether the revision contains the guilty commit revision 15298ff0f6d2307d375301e315c36f8ae528ac8d crashed and is reachable testing commit d2e942dc1cf03f1681296b3db41df2428a60e45d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 75345d2bd0726c5a98181164357f61c8987bf3446f83fdc971848a816bf2bd10 run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: kernel BUG in __block_write_begin_int run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: kernel BUG in __block_write_begin_int run #8: crashed: KASAN: use-after-free Read in nilfs_set_link run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN] # git bisect good d2e942dc1cf03f1681296b3db41df2428a60e45d Bisecting: 10 revisions left to test after this (roughly 4 steps) [fb9e1ee1aec126f55f11180269f78cec5809b339] ALSA: hda/realtek: add quirk for Clevo V5[46]0TU determine whether the revision contains the guilty commit revision d2e942dc1cf03f1681296b3db41df2428a60e45d crashed and is reachable testing commit fb9e1ee1aec126f55f11180269f78cec5809b339 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f0344df48b00f4f5611ba558ec383dc5d7347723937e3a2f5fd3fd9dba1c1902 run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: kernel BUG in __block_write_begin_int run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: kernel BUG in __block_write_begin_int run #4: crashed: kernel BUG in __block_write_begin_int run #5: crashed: kernel BUG in __block_write_begin_int run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] # git bisect good fb9e1ee1aec126f55f11180269f78cec5809b339 Bisecting: 5 revisions left to test after this (roughly 3 steps) [b4764f0ad3d68de8a0b847c05f427afb86dd54e6] wireguard: allowedips: avoid unaligned 64-bit memory accesses determine whether the revision contains the guilty commit revision d2e942dc1cf03f1681296b3db41df2428a60e45d crashed and is reachable testing commit b4764f0ad3d68de8a0b847c05f427afb86dd54e6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f0344df48b00f4f5611ba558ec383dc5d7347723937e3a2f5fd3fd9dba1c1902 run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: kernel BUG in __block_write_begin_int run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: kernel BUG in __block_write_begin_int run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: KASAN: use-after-free Read in nilfs_set_link run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: KASAN: use-after-free Read in nilfs_set_link run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN] # git bisect good b4764f0ad3d68de8a0b847c05f427afb86dd54e6 Bisecting: 2 revisions left to test after this (roughly 2 steps) [e79f46ba8e55c12d31960155a46141eff30f2565] ipv6: annotate data-races around cnf.disable_ipv6 determine whether the revision contains the guilty commit revision b4764f0ad3d68de8a0b847c05f427afb86dd54e6 crashed and is reachable testing commit e79f46ba8e55c12d31960155a46141eff30f2565 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d503a676027e3e8f40ad1f2375902e52cba2468dc8a7c19989765e275c250fd6 run #0: crashed: KASAN: use-after-free Read in nilfs_set_link run #1: crashed: KASAN: use-after-free Read in nilfs_set_link run #2: crashed: KASAN: use-after-free Read in nilfs_set_link run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: KASAN: use-after-free Read in nilfs_set_link run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: kernel BUG in __block_write_begin_int run #7: crashed: kernel BUG in __block_write_begin_int run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: KASAN: use-after-free Read in nilfs_set_link, types: [KASAN BUG] # git bisect good e79f46ba8e55c12d31960155a46141eff30f2565 Bisecting: 0 revisions left to test after this (roughly 1 step) [e30bc19a9ee8a78be60b20449bba78215cd899e3] bpf: Allow reads from uninit stack determine whether the revision contains the guilty commit revision f45bea23c39cbd0d9b89d6b43563b02aa2dfe5de crashed and is reachable testing commit e30bc19a9ee8a78be60b20449bba78215cd899e3 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f266189942d4f8edeadb2fb9e7aeb58043584d00a3b46f6dbb02f9ca2bd052dd run #0: crashed: kernel BUG in __block_write_begin_int run #1: crashed: KASAN: use-after-free Read in nilfs_set_link run #2: crashed: kernel BUG in __block_write_begin_int run #3: crashed: KASAN: use-after-free Read in nilfs_set_link run #4: crashed: kernel BUG in __block_write_begin_int run #5: crashed: KASAN: use-after-free Read in nilfs_set_link run #6: crashed: kernel BUG in __block_write_begin_int run #7: crashed: KASAN: use-after-free Read in nilfs_set_link run #8: crashed: kernel BUG in __block_write_begin_int run #9: crashed: KASAN: use-after-free Read in nilfs_set_link representative crash: kernel BUG in __block_write_begin_int, types: [BUG KASAN] # git bisect good e30bc19a9ee8a78be60b20449bba78215cd899e3 7000b438dda9d0f41a956fc9bffed92d2eb6be0d is the first bad commit commit 7000b438dda9d0f41a956fc9bffed92d2eb6be0d Author: Ryusuke Konishi Date: Sat Jun 29 01:51:07 2024 +0900 nilfs2: fix kernel bug on rename operation of broken directory commit a9e1ddc09ca55746079cc479aa3eb6411f0d99d4 upstream. Syzbot reported that in rename directory operation on broken directory on nilfs2, __block_write_begin_int() called to prepare block write may fail BUG_ON check for access exceeding the folio/page size. This is because nilfs_dotdot(), which gets parent directory reference entry ("..") of the directory to be moved or renamed, does not check consistency enough, and may return location exceeding folio/page size for broken directories. Fix this issue by checking required directory entries ("." and "..") in the first chunk of the directory in nilfs_dotdot(). Link: https://lkml.kernel.org/r/20240628165107.9006-1-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi Reported-by: syzbot+d3abed1ad3d367fa2627@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=d3abed1ad3d367fa2627 Fixes: 2ba466d74ed7 ("nilfs2: directory entry operations") Tested-by: Ryusuke Konishi Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman fs/nilfs2/dir.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) accumulated error probability: 0.00 culprit signature: b6635e32ce8767b319f53b483ea4abd8d728dd6b2365ab565c7725682b24b6dd parent signature: f266189942d4f8edeadb2fb9e7aeb58043584d00a3b46f6dbb02f9ca2bd052dd revisions tested: 17, total time: 6h1m45.528662078s (build: 3h54m48.546584442s, test: 2h3m22.944641918s) first good commit: 7000b438dda9d0f41a956fc9bffed92d2eb6be0d nilfs2: fix kernel bug on rename operation of broken directory recipients (to): ["akpm@linux-foundation.org" "gregkh@linuxfoundation.org" "konishi.ryusuke@gmail.com"] recipients (cc): []