ci starts bisection 2024-08-13 12:59:53.205082732 +0000 UTC m=+4415.253510953 bisecting cause commit starting from 9e6869691724b12e1f43655eeedc35fade38120c building syzkaller on 6f4edef43e90da260aa93c16da223a2a5569c978 fetch other tags and check if the commit is present ensuring issue is reproducible on original commit 9e6869691724b12e1f43655eeedc35fade38120c testing commit 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fc0dc19551c79404173da80a9b20968b46cccea08281408cdef43e91719791a5 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, 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 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2642a9f3e9b1ccfbee453bf0dcd50a0123776ace1eb60a0bda16bbb9effd71bf all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed kconfig minimization: base=4001 full=8179 leaves diff=2140 split chunks (needed=false): <2140> split chunk #0 of len 2140 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 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 01afed366bea70da299f74548f00b0718e71bf2b7cc46f028c5da1589483e008 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 98a3fa43f8e3b0fb3c77a0b29816f8b021a60543ae03c90d70bcb7b9821e6a69 all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 11a5b92ead1ab719d38aa4c869ce57712468940797f5fea24f89b7c4aa820986 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 442c8d0f1ed0995a83fd3ef742baad2eab1ae1ad3fd86965d1ea3615e979f6a2 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 9e6869691724b12e1f43655eeedc35fade38120c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d7ab713dd823d731c6ed9d85c5d0114589f50423d2c8ccd94095fdb3519c2d5e all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] the chunk can be dropped minimized to 428 configs; suspects: [6LOWPAN ARCH_ENABLE_MEMORY_HOTREMOVE ASUS_WMI CHARGER_BQ24190 CMA COMMON_CLK DAX DLM DRM DRM_BRIDGE 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 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_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_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 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 HUGETLB_PMD_PAGE_TABLE_SHARING 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_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 IP_VS_FTP IP_VS_IPV6 IP_VS_LBLC IP_VS_PROTO_TCP 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 SPLIT_PMD_PTLOCKS SPLIT_PTE_PTLOCKS 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 [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed picked [v6.10 v6.9 v6.8 v6.6 v6.4 v6.2 v6.0 v5.18 v5.15 v5.12 v5.9 v5.6 v5.3 v5.0 v4.19] out of 33 release tags testing release v6.10 testing commit 0c3836482481200ead7b416ca80c68a29cfdaabd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9ac24b6ef1c6522b12ecbd5c9aa471b4b8798869dea43c89bd18cf6d52f5dce0 all runs: OK false negative chance: 0.000 # git bisect start 9e6869691724b12e1f43655eeedc35fade38120c 0c3836482481200ead7b416ca80c68a29cfdaabd Bisecting: 8820 revisions left to test after this (roughly 13 steps) [3d51520954154a476bfdacf9427acd1d9538734c] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma testing commit 3d51520954154a476bfdacf9427acd1d9538734c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: adf9e676da387df853b4569f8f1d8634fd2ed295e6b263b3344948d7d749a21f all runs: OK false negative chance: 0.000 # git bisect good 3d51520954154a476bfdacf9427acd1d9538734c Bisecting: 4409 revisions left to test after this (roughly 12 steps) [953f776459a83f00ac940dd67c96d226d7041550] Merge tag 'irq-urgent-2024-08-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 953f776459a83f00ac940dd67c96d226d7041550 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ea0891cdd1d9238e6f4798fc0e5d6945d6edcab3ae55f1f1188b608e8c846dc3 all runs: OK false negative chance: 0.000 # git bisect good 953f776459a83f00ac940dd67c96d226d7041550 Bisecting: 2221 revisions left to test after this (roughly 11 steps) [9cf0f32b0018cd53d555f8ce72c854ea8d23fda8] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git testing commit 9cf0f32b0018cd53d555f8ce72c854ea8d23fda8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1ffcc7eeb9168a14f72a2c5f6deab5ca780a987c9e5bf3b82bb794fa8827ab2f all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad 9cf0f32b0018cd53d555f8ce72c854ea8d23fda8 Bisecting: 1071 revisions left to test after this (roughly 10 steps) [da0bb50fcdbad9b0d48a2633b2ed11da8c1abdf1] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git testing commit da0bb50fcdbad9b0d48a2633b2ed11da8c1abdf1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 35d325e62d623e7b602c773aad0632921981a2b731b99e581aba50bc760cb5de all runs: OK false negative chance: 0.000 # git bisect good da0bb50fcdbad9b0d48a2633b2ed11da8c1abdf1 Bisecting: 536 revisions left to test after this (roughly 9 steps) [a73950e9592bc2524808af044813b2b80f534564] Merge branch 'for-next/pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git testing commit a73950e9592bc2524808af044813b2b80f534564 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6853d0b5232cff8fd5db56f2cfde6745b4d0990d6d91b35bba5302ae24ae60a8 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad a73950e9592bc2524808af044813b2b80f534564 Bisecting: 268 revisions left to test after this (roughly 8 steps) [805dcc3e06d12701b84f25263f92a67fda705e5d] Merge branch 'renesas-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git testing commit 805dcc3e06d12701b84f25263f92a67fda705e5d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 16124439305c46ca6c692ac4b8de242c39a70e49ecdccf9f3518f1f89249b203 all runs: OK false negative chance: 0.000 # git bisect good 805dcc3e06d12701b84f25263f92a67fda705e5d Bisecting: 146 revisions left to test after this (roughly 7 steps) [cc370e2074b8d4bf13a9dfaaf9cd9ff44ef101e1] Merge branch '9p-next' of git://github.com/martinetd/linux testing commit cc370e2074b8d4bf13a9dfaaf9cd9ff44ef101e1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2ff60b9e8702730bb786f433618ca1697172714067bf5168e83ebff2bc80721c all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad cc370e2074b8d4bf13a9dfaaf9cd9ff44ef101e1 Bisecting: 59 revisions left to test after this (roughly 6 steps) [a8f50eb4890c18b2db00f59f116d1d9847283538] Merge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git testing commit a8f50eb4890c18b2db00f59f116d1d9847283538 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d1b5301a9610db0b4ad4600a5feb8022abb4b31a97e5c3fc4f37b9ba9521d4a7 all runs: OK false negative chance: 0.000 # git bisect good a8f50eb4890c18b2db00f59f116d1d9847283538 Bisecting: 30 revisions left to test after this (roughly 5 steps) [2beb1fcae84a3b763da5a497b2a092b307a39bd4] Merge branch 'ksmbd-for-next' of https://github.com/smfrench/smb3-kernel.git testing commit 2beb1fcae84a3b763da5a497b2a092b307a39bd4 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5e2193c35cf6507eeedcd5325efefaaef5f1a60dff3e260c41f3cebaa7705c91 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad 2beb1fcae84a3b763da5a497b2a092b307a39bd4 Bisecting: 14 revisions left to test after this (roughly 4 steps) [8ce36b8b1150446d1e65937a31cfb4e4f251ce0e] f2fs: get rid of buffer_head use testing commit 8ce36b8b1150446d1e65937a31cfb4e4f251ce0e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 24204fd6d14ac4f103cc5df246fdc18fd4d6c7bf87171674c930a48de3e9c278 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad 8ce36b8b1150446d1e65937a31cfb4e4f251ce0e Bisecting: 6 revisions left to test after this (roughly 3 steps) [d72750e4a7528b83a07b65335c35b454a98593d4] f2fs: fix macro definition stat_inc_cp_count testing commit d72750e4a7528b83a07b65335c35b454a98593d4 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 83928e9df8e5f42b87e3662f1f54ea967f859887e97964e6799029638ad5a8ed all runs: OK false negative chance: 0.000 # git bisect good d72750e4a7528b83a07b65335c35b454a98593d4 Bisecting: 3 revisions left to test after this (roughly 2 steps) [374a8881ce4ccf787f5381a39f825cb17a3f6b14] f2fs: atomic: fix to forbid dio in atomic_file testing commit 374a8881ce4ccf787f5381a39f825cb17a3f6b14 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f4ff52f69a3860563700d7f175118096637d6d7502e1ea5ce2766743f4cde784 all runs: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad 374a8881ce4ccf787f5381a39f825cb17a3f6b14 Bisecting: 0 revisions left to test after this (roughly 1 step) [7566a155c666dd23b413a002a50cd9ae7b95f053] f2fs: atomic: fix to not allow GC to pollute atomic_file testing commit 7566a155c666dd23b413a002a50cd9ae7b95f053 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c9963b9306a77b1e546fba2b5967776cd20f6c6ed7c7c3abed4c93c53f01d54c run #0: basic kernel testing failed: lost connection to test machine run #1: basic kernel testing failed: lost connection to test machine run #2: basic kernel testing failed: lost connection to test machine run #3: basic kernel testing failed: lost connection to test machine run #4: basic kernel testing failed: lost connection to test machine run #5: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write run #6: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write run #7: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write run #8: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write run #9: crashed: WARNING: lock held when returning to user space in f2fs_commit_atomic_write representative crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write, types: [LOCKDEP] # git bisect bad 7566a155c666dd23b413a002a50cd9ae7b95f053 Bisecting: 0 revisions left to test after this (roughly 0 steps) [1a0bd289a5db1df8df8fab949633a0b8d3f235ee] f2fs: atomic: fix to avoid racing w/ GC testing commit 1a0bd289a5db1df8df8fab949633a0b8d3f235ee gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f3e9bf95307ac181dc55c2f0fd227fbdf03adb000af44f4adcf51281a4804eb3 all runs: OK false negative chance: 0.000 # git bisect good 1a0bd289a5db1df8df8fab949633a0b8d3f235ee 7566a155c666dd23b413a002a50cd9ae7b95f053 is the first bad commit commit 7566a155c666dd23b413a002a50cd9ae7b95f053 Author: Chao Yu Date: Tue Jun 25 11:13:49 2024 +0800 f2fs: atomic: fix to not allow GC to pollute atomic_file SQLite App GC Thread Shrinker - f2fs_ioc_start_atomic_write - f2fs_ioc_commit_atomic_write - f2fs_commit_atomic_write - filemap_write_and_wait_range : write atomic_file's data to cow_inode echo 3 > drop_caches - f2fs_gc - gc_data_segment - move_data_page - set_page_dirty : it may load data of previous transaction into pagecache. - f2fs_down_write(&fi->i_gc_rwsem[WRITE]) - __f2fs_commit_atomic_write - f2fs_up_write(&fi->i_gc_rwsem[WRITE]) During committing atomic_file, GC may be triggered to migrate atomic_file's block, so it may contain data of previous transaction in page cache, we should drop atomic_file's cache once it was migrated by GC. And also, we should writeback atomic_file and cow_file's data w/ i_gc_rwsem lock held, in order to avoid block address change during __f2fs_commit_atomic_write(). Meahwhile, this patch adds f2fs_wait_on_block_writeback_range() to wait completion of block migration. Fixes: 3db1de0e582c ("f2fs: change the current atomic write way") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim fs/f2fs/segment.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) accumulated error probability: 0.00 culprit signature: c9963b9306a77b1e546fba2b5967776cd20f6c6ed7c7c3abed4c93c53f01d54c parent signature: f3e9bf95307ac181dc55c2f0fd227fbdf03adb000af44f4adcf51281a4804eb3 revisions tested: 22, total time: 7h8m18.246444222s (build: 4h17m21.370678232s, test: 2h33m53.74179627s) first bad commit: 7566a155c666dd23b413a002a50cd9ae7b95f053 f2fs: atomic: fix to not allow GC to pollute atomic_file recipients (to): ["chao@kernel.org" "chao@kernel.org" "jaegeuk@kernel.org" "jaegeuk@kernel.org" "linux-f2fs-devel@lists.sourceforge.net"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write F2FS-fs (loop0): Invalid Fs Meta Ino: node(0) meta(2) root(0) F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4 syz.0.15: attempt to access beyond end of device loop0: rw=2049, sector=45096, nr_sectors = 64 limit=40427 ================================================ WARNING: lock held when returning to user space! 6.11.0-rc2-syzkaller #0 Not tainted ------------------------------------------------ syz.0.15/3470 is leaving the kernel with locks still held! 1 lock held by syz.0.15/3470: #0: ffff88817d058718 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2185 [inline] #0: ffff88817d058718 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_commit_atomic_write+0x47/0x620 fs/f2fs/segment.c:388