ci2 starts bisection 2023-11-29 02:55:18.058714783 +0000 UTC m=+24983.767792924 bisecting fixing commit since aff03380bda4d25717170b42c92b54143aec0a36 building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit aff03380bda4d25717170b42c92b54143aec0a36 testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ca6bd82d4140cefa122f42640894a3be3aaa80431c3ef4e831ad38f255014ec8 all runs: crashed: possible deadlock in hfsplus_file_truncate representative crash: possible deadlock in hfsplus_file_truncate, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7ea5e0be7484f03727a40fccd49527d4288b05a4ac7325c566953d25fd56c00e run #0: crashed: possible deadlock in hfsplus_file_truncate run #1: crashed: possible deadlock in hfsplus_file_truncate run #2: crashed: possible deadlock in hfsplus_file_extend run #3: crashed: possible deadlock in hfsplus_file_truncate run #4: crashed: possible deadlock in hfsplus_file_truncate run #5: crashed: possible deadlock in hfsplus_file_truncate run #6: crashed: possible deadlock in hfsplus_file_truncate run #7: crashed: possible deadlock in hfsplus_file_truncate run #8: crashed: possible deadlock in hfsplus_file_truncate run #9: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_truncate, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed kconfig minimization: base=3703 full=7269 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 HANG LEAK UBSAN BUG KASAN], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26ca8fecf54e98525a6fa57152dca2e1af44fe0a06efaa0f226d9cd058af3e3e run #0: crashed: possible deadlock in hfsplus_file_extend run #1: crashed: possible deadlock in hfsplus_file_truncate run #2: crashed: possible deadlock in hfsplus_file_extend run #3: crashed: possible deadlock in hfsplus_file_truncate run #4: crashed: possible deadlock in hfsplus_file_extend run #5: crashed: possible deadlock in hfsplus_file_extend run #6: crashed: possible deadlock in hfsplus_file_extend run #7: crashed: possible deadlock in hfsplus_file_truncate run #8: crashed: possible deadlock in hfsplus_file_truncate run #9: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b76655fed3346bf350c8c94f75083dc55446c21fbd5293080525f206ce85599c all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bfa89dbd08f14d52d63e3796656517937e1fd507c6971eec5833baad8cedf544 run #0: crashed: possible deadlock in hfsplus_file_extend run #1: crashed: possible deadlock in hfsplus_file_extend run #2: crashed: possible deadlock in hfsplus_file_extend run #3: crashed: possible deadlock in hfsplus_file_extend run #4: crashed: possible deadlock in hfsplus_file_extend run #5: crashed: possible deadlock in hfsplus_file_extend run #6: crashed: possible deadlock in hfsplus_file_extend run #7: crashed: possible deadlock in hfsplus_file_extend run #8: crashed: possible deadlock in hfsplus_file_extend run #9: crashed: possible deadlock in hfsplus_file_truncate representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0b74c8200949c9443143d03ba4059e8e2d0abc2f5ffbd010897a7892edcc59f3 run #0: crashed: possible deadlock in hfsplus_file_extend run #1: crashed: possible deadlock in hfsplus_file_extend run #2: crashed: possible deadlock in hfsplus_file_truncate run #3: crashed: possible deadlock in hfsplus_file_extend run #4: crashed: possible deadlock in hfsplus_file_extend run #5: crashed: possible deadlock in hfsplus_file_extend run #6: crashed: possible deadlock in hfsplus_file_extend run #7: crashed: possible deadlock in hfsplus_file_extend run #8: crashed: possible deadlock in hfsplus_file_extend run #9: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit aff03380bda4d25717170b42c92b54143aec0a36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 81a5a66184e99687f9dd55d6aec6e1e7e28c691616c85fdab6338d09f12bd8b4 all runs: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] the chunk can be dropped minimized to 398 configs; suspects: [6LOWPAN ACPI_WMI ARCH_ENABLE_MEMORY_HOTREMOVE ASUS_WMI CMA DAX_DRIVER DLM DRM DRM_BRIDGE DRM_FBDEV_EMULATION DRM_MIPI_DSI DRM_PANEL DRM_PANEL_BRIDGE DRM_PANEL_ORIENTATION_QUIRKS DRM_SIMPLEDRM DRM_TTM DRM_TTM_HELPER DRM_UDL DRM_VGEM DRM_VIRTIO_GPU DRM_VKMS DRM_VMWGFX DRM_VMWGFX_FBCON DRM_VRAM_HELPER 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_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_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 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_BOOT_VESA_SUPPORT FB_CFB_COPYAREA FB_CFB_FILLRECT FB_CFB_IMAGEBLIT FB_CMDLINE FB_DEFERRED_IO FB_NOTIFY FB_SYS_COPYAREA FB_SYS_FILLRECT FB_SYS_FOPS 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_VERITY FS_VERITY_BUILTIN_SIGNATURES FTL FUSE_DAX FUSE_FS FW_LOADER_COMPRESS FW_LOADER_PAGED_BUF FW_LOADER_USER_HELPER FW_LOADER_USER_HELPER_FALLBACK GACT_PROB GARP GENERIC_PHY GFS2_FS GFS2_FS_LOCKING_DLM GOOGLE_COREBOOT_TABLE GOOGLE_FIRMWARE GOOGLE_MEMCONSOLE GOOGLE_MEMCONSOLE_COREBOOT GOOGLE_VPD GPIOLIB GPIOLIB_IRQCHIP GPIO_ACPI GPIO_DLN2 GPIO_VIPERBOARD GREENASIA_FF GREYBUS GREYBUS_BRIDGED_PHY GREYBUS_ES2 GREYBUS_HID GREYBUS_USB GTP GVE HAVE_ARCH_USERFAULTFD_MINOR HAVE_ARCH_USERFAULTFD_WP HAVE_BOOTMEM_INFO_NODE HAVE_KVM_CPU_RELAX_INTERCEPT HAVE_KVM_EVENTFD HAVE_KVM_IRQCHIP HAVE_KVM_IRQFD HAVE_KVM_IRQ_BYPASS HAVE_KVM_IRQ_ROUTING HAVE_KVM_MSI HAVE_KVM_NO_POLL HAVE_KVM_PM_NOTIFIER 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_CMEDIA HID_CORSAIR HID_CP2112 HID_ELECOM HID_ELO HID_EMS_FF HID_GEMBIRD HID_GFRM HID_GREENASIA HID_GT683R HID_HOLTEK HID_ICADE HID_KEYTOUCH HID_KYE HID_LCPOWER HID_LED HID_LENOVO HID_LOGITECH_DJ HID_LOGITECH_HIDPP HID_MAGICMOUSE HID_MAYFLASH 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_RETRODE HID_RMI HID_ROCCAT HID_SAITEK HID_SENSOR_ACCEL_3D HID_SENSOR_ALS 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_SPEEDLINK HID_STEELSERIES HID_THINGM HID_TIVO HID_TWINHAN HID_UCLOGIC HID_UDRAW_PS3 HID_WACOM HID_WALTOP HID_WIIMOTE HID_XINMO HID_ZYDACRON HMM_MIRROR HOLTEK_FF HOTPLUG_PCI_PCIE HPET_MMAP HPET_MMAP_DEFAULT HPFS_FS I2C_ALGOBIT I2C_CHARDEV I2C_DIOLAN_U2C I2C_DLN2 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_IDMA64 INTEL_IOATDMA INTEL_IOMMU_DEFAULT_ON INTEL_IOMMU_SVM INTERVAL_TREE IOMMU_SVA_LIB 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_CLUSTERIP 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 IP_VS_FTP IP_VS_IPV6 IP_VS_LBLC IP_VS_LBLCR IP_VS_LC IP_VS_MH IP_VS_NFCT IP_VS_NQ IP_VS_OVF IP_VS_PE_SIP IP_VS_PROTO_AH IP_VS_PROTO_AH_ESP IP_VS_PROTO_ESP IP_VS_PROTO_SCTP IP_VS_PROTO_TCP IP_VS_PROTO_UDP IP_VS_RR IP_VS_SED IP_VS_SH IP_VS_TWOS IP_VS_WLC IP_VS_WRR IRQ_BYPASS_MANAGER IRQ_POLL IRQ_TIME_ACCOUNTING IR_IGORPLUGUSB IR_IGUANA IR_IMON IR_MCEUSB IR_REDRAT3 IR_STREAMZAP IR_TTUSBIR ISDN ISDN_CAPI_MIDDLEWARE 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_FWD_NETDEV NF_TABLES NF_TABLES_NETDEV RADIO_ADAPTERS RADIO_SI4713 RAS RC_CORE RC_DEVICES RFKILL SND SOUND STAGING TRANSPARENT_HUGEPAGE VIDEO_DEV VIDEO_V4L2 VIRTIO_FS WAN ZONE_DEVICE] disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed determining the merge base between aff03380bda4d25717170b42c92b54143aec0a36 and 18d46e76d7c2eedd8577fae67e3f1d4db25018b0 8bb7eca972ad531c9b149c0a51ab43a417385813/Linux 5.15 is a merge base, check if it has the bug testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 91fedfd4a15ae9a6f87e266569f073d28faf493540d800173827631c5506cf02 all runs: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] testing current HEAD 18d46e76d7c2eedd8577fae67e3f1d4db25018b0 testing commit 18d46e76d7c2eedd8577fae67e3f1d4db25018b0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a5c43ffd6050490a7dcba8e547f96a03665ea369cf81c8250d79e4e3421cafd2 all runs: crashed: possible deadlock in hfsplus_file_extend representative crash: possible deadlock in hfsplus_file_extend, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 9, total time: 1h45m32.066703165s (build: 56m1.730688458s, test: 35m21.144895855s) crash still not fixed or there were kernel test errors commit msg: Merge tag 'for-6.7-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux crash: possible deadlock in hfsplus_file_extend hfsplus: inconsistency in B*Tree (1792,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (1792,1,255,1,0) ====================================================== WARNING: possible circular locking dependency detected 6.7.0-rc3-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/2512 is trying to acquire lock: ffff88816ffb0d88 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0xba/0x590 fs/hfsplus/extents.c:457 but task is already holding lock: ffff8881099490b0 (&tree->tree_lock/2){+.+.}-{3:3}, at: hfsplus_find_init+0x73/0x80 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&tree->tree_lock/2){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x96/0x950 kernel/locking/mutex.c:747 hfsplus_find_init+0x73/0x80 hfsplus_attr_exists+0x7e/0xd0 fs/hfsplus/attributes.c:178 __hfsplus_setxattr+0x13e/0xae0 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0x7f/0xb0 fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x28/0x30 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x151/0x160 fs/xattr.c:201 __vfs_setxattr_noperm+0x92/0x1f0 fs/xattr.c:235 vfs_setxattr+0xe2/0x170 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x10c/0x160 fs/xattr.c:653 path_setxattr+0xab/0x120 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __x64_sys_lsetxattr+0x23/0x30 fs/xattr.c:691 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b -> #1 (&tree->tree_lock){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x96/0x950 kernel/locking/mutex.c:747 hfsplus_file_truncate+0x21d/0x2e0 fs/hfsplus/extents.c:595 hfsplus_setattr+0x5f/0xa0 fs/hfsplus/inode.c:269 notify_change+0x2e8/0x360 fs/attr.c:499 do_truncate+0xe1/0x120 fs/open.c:66 handle_truncate fs/namei.c:3280 [inline] do_open fs/namei.c:3626 [inline] path_openat+0xc89/0xd80 fs/namei.c:3779 do_filp_open+0xac/0x150 fs/namei.c:3809 do_sys_openat2+0x7e/0xd0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x7c/0xa0 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b -> #0 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x1323/0x26a0 kernel/locking/lockdep.c:5137 lock_acquire+0xd2/0x260 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x96/0x950 kernel/locking/mutex.c:747 hfsplus_file_extend+0xba/0x590 fs/hfsplus/extents.c:457 hfsplus_bmap_reserve+0x37/0xb0 fs/hfsplus/btree.c:358 hfsplus_create_attr+0xd1/0x260 fs/hfsplus/attributes.c:221 __hfsplus_setxattr+0x676/0xae0 hfsplus_setxattr+0x7f/0xb0 fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x28/0x30 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x151/0x160 fs/xattr.c:201 __vfs_setxattr_noperm+0x92/0x1f0 fs/xattr.c:235 vfs_setxattr+0xe2/0x170 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x10c/0x160 fs/xattr.c:653 path_setxattr+0xab/0x120 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __x64_sys_lsetxattr+0x23/0x30 fs/xattr.c:691 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b other info that might help us debug this: Chain exists of: &HFSPLUS_I(inode)->extents_lock --> &tree->tree_lock --> &tree->tree_lock/2 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&tree->tree_lock/2); lock(&tree->tree_lock); lock(&tree->tree_lock/2); lock(&HFSPLUS_I(inode)->extents_lock); *** DEADLOCK *** 4 locks held by syz-executor.0/2512: #0: ffff888109bbc408 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x12/0x30 fs/namespace.c:404 #1: ffff888178e58300 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888178e58300 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: vfs_setxattr+0xc1/0x170 fs/xattr.c:321 #2: ffff888109bba0b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x73/0x80 #3: ffff8881099490b0 (&tree->tree_lock/2){+.+.}-{3:3}, at: hfsplus_find_init+0x73/0x80 stack backtrace: CPU: 1 PID: 2512 Comm: syz-executor.0 Not tainted 6.7.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x8d/0xe0 lib/dump_stack.c:106 print_circular_bug+0x31e/0x360 kernel/locking/lockdep.c:2060 check_noncircular+0x113/0x130 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x1323/0x26a0 kernel/locking/lockdep.c:5137 lock_acquire+0xd2/0x260 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x96/0x950 kernel/locking/mutex.c:747 hfsplus_file_extend+0xba/0x590 fs/hfsplus/extents.c:457 hfsplus_bmap_reserve+0x37/0xb0 fs/hfsplus/btree.c:358 hfsplus_create_attr+0xd1/0x260 fs/hfsplus/attributes.c:221 __hfsplus_setxattr+0x676/0xae0 hfsplus_setxattr+0x7f/0xb0 fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x28/0x30 fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x151/0x160 fs/xattr.c:201 __vfs_setxattr_noperm+0x92/0x1f0 fs/xattr.c:235 vfs_setxattr+0xe2/0x170 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] setxattr+0x10c/0x160 fs/xattr.c:653 path_setxattr+0xab/0x120 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __x64_sys_lsetxattr+0x23/0x30 fs/xattr.c:691 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f3114e7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3115b130c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f3114f9bf80 RCX: 00007f3114e7cae9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000020000040 RBP: 00007f3114ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f3114f9bf80 R15: 00007ffcad196f18 hfsplus: inconsistency in B*Tree (2,0,1,0,1)