ci starts bisection 2024-09-30 00:14:06.75579441 +0000 UTC m=+112230.049308782 bisecting cause commit starting from 3efc57369a0ce8f76bf0804f7e673982384e4ac9 building syzkaller on ba29ff75d05fca62258d71ffc063e70f0d7b8b09 ensuring issue is reproducible on original commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 13a5d9ed94b80c0a81ba82a31f45bc7f35a29bbc9bbd09007c5acb45536fee58 all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f3110da5138ef5678ac9644c723e6bc0e973c6dd0e97a2733fd53db777055268 all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed kconfig minimization: base=4045 full=8195 leaves diff=2110 split chunks (needed=false): <2110> split chunk #0 of len 2110 into 5 parts testing without sub-chunk 1/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c398b55c59c29cca7cef435249d2b9cd1ac6edcc94940c1ae57f5fe199518d39 run #0: crashed: possible deadlock in process_measurement run #1: crashed: possible deadlock in shmem_file_write_iter run #2: crashed: possible deadlock in shmem_file_write_iter run #3: crashed: possible deadlock in shmem_file_write_iter run #4: crashed: possible deadlock in shmem_file_write_iter run #5: crashed: possible deadlock in shmem_file_write_iter run #6: crashed: possible deadlock in shmem_file_write_iter run #7: crashed: possible deadlock in shmem_file_write_iter run #8: crashed: possible deadlock in shmem_file_write_iter run #9: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in process_measurement, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2d0ed061f31a1b1e91b49707beb7839756bd4eaacbd6a219bf066405cf251b36 all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a794464d8782d9e8163f4f2933ab99ac48d05aee3f0b1da7473e4ecae3df46c5 all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2428d7c58fde3ef8d98bd72b7fcbf926b182c1147f8ec4ec844ec39b0a509e00 all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit 3efc57369a0ce8f76bf0804f7e673982384e4ac9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5cea58ae78a372da4d5ac0fe0a2dfcc9f7de231b6ee49adb1660dafd9205c2db all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] the chunk can be dropped minimized to 422 configs; suspects: [6LOWPAN ARCH_ENABLE_MEMORY_HOTREMOVE ASUS_WMI CHARGER_BQ24190 CMA COMMON_CLK DAX DLM DRM 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_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_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_LBLCR IP_VS_LC 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 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 [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed picked [v6.11 v6.10 v6.9 v6.7 v6.5 v6.3 v6.1 v5.19 v5.16 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 34 release tags testing release v6.11 testing commit 98f7e32f20d28ec452afb208f9cffc08448a2652 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 400588eeae07208b7cd976e47ec9124733795c07b0591c4ac2b295719664a54a all runs: OK false negative chance: 0.000 # git bisect start 3efc57369a0ce8f76bf0804f7e673982384e4ac9 98f7e32f20d28ec452afb208f9cffc08448a2652 Bisecting: 6214 revisions left to test after this (roughly 13 steps) [176000734ee2978121fde22a954eb1eabb204329] Merge tag 'ata-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux testing commit 176000734ee2978121fde22a954eb1eabb204329 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 35f2e555a2f9f9ee4b8fb973bf5fa7f86977177c19e0878e2c85b33b51ab0861 all runs: OK false negative chance: 0.000 # git bisect good 176000734ee2978121fde22a954eb1eabb204329 Bisecting: 3152 revisions left to test after this (roughly 12 steps) [f8ffbc365f703d74ecca8ca787318d05bbee2bf7] Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs testing commit f8ffbc365f703d74ecca8ca787318d05bbee2bf7 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 65ba4001a1b0310f28c87e949377a16ef81e726aaa850848da1a8a3fabfed605 all runs: OK false negative chance: 0.000 # git bisect good f8ffbc365f703d74ecca8ca787318d05bbee2bf7 Bisecting: 1590 revisions left to test after this (roughly 11 steps) [fa8380a06bd0523e51f826520aac1beb8c585521] Merge tag 'bpf-next-6.12-struct-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit fa8380a06bd0523e51f826520aac1beb8c585521 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ce51543ffa26a5078d9c4c11f7c495cd6f83d17eca95a931fbccc7fd99af28c all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad fa8380a06bd0523e51f826520aac1beb8c585521 Bisecting: 835 revisions left to test after this (roughly 10 steps) [4e2c9cd7dce6c7480f236c3ead196ff4e92ed597] Merge tag 'i2c-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux testing commit 4e2c9cd7dce6c7480f236c3ead196ff4e92ed597 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 177206dc65b679680fdee042a3a0e9570612cc189a838d5d66411130c6a962c2 all runs: OK false negative chance: 0.000 # git bisect good 4e2c9cd7dce6c7480f236c3ead196ff4e92ed597 Bisecting: 417 revisions left to test after this (roughly 9 steps) [e1b061b444fb01c237838f0d8238653afe6a8094] Merge tag 'landlock-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux testing commit e1b061b444fb01c237838f0d8238653afe6a8094 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4f7c6f48b9ff80cc787452654789362d2ef3b2d2ca2265b7e783a130cbfcacce all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad e1b061b444fb01c237838f0d8238653afe6a8094 Bisecting: 211 revisions left to test after this (roughly 8 steps) [9ab27b018649c9504e894496cb4d7d8afcffd897] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux testing commit 9ab27b018649c9504e894496cb4d7d8afcffd897 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1665764f7f2c28f6e944bbddbb8f1dbb9374ae45e659ae43f46f378a995ebb4e all runs: OK false negative chance: 0.000 # git bisect good 9ab27b018649c9504e894496cb4d7d8afcffd897 Bisecting: 105 revisions left to test after this (roughly 7 steps) [afe6ec667e8846c8470d32789cebbc435588972d] media: imagination: VIDEO_E5010_JPEG_ENC should depend on ARCH_K3 testing commit afe6ec667e8846c8470d32789cebbc435588972d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 060861542ee18c22f1b34531135e6be28bb046be9281de50fc1db52a3bd2b1c6 all runs: OK false negative chance: 0.000 # git bisect good afe6ec667e8846c8470d32789cebbc435588972d Bisecting: 52 revisions left to test after this (roughly 6 steps) [b16042064919e81d84d5566fdf82f660f9616e7a] media: i2c: mt9v111: Drop redundant comma testing commit b16042064919e81d84d5566fdf82f660f9616e7a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3a395b50f5a0f8f6b88fdc2c1b5474dd2ec67ca171f4bf2e38ca72128a13f414 all runs: OK false negative chance: 0.000 # git bisect good b16042064919e81d84d5566fdf82f660f9616e7a Bisecting: 26 revisions left to test after this (roughly 5 steps) [ffe3dc5acaa2477276011d6eb61373220217cd9d] media: atomisp: Fix eed1_8 code assigning signed values to an unsigned variable testing commit ffe3dc5acaa2477276011d6eb61373220217cd9d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8fafdbf4d41b7e3ede1c3bfc09613fc2f4dd2624d1dc6bfb923545f43c4c5904 all runs: OK false negative chance: 0.000 # git bisect good ffe3dc5acaa2477276011d6eb61373220217cd9d Bisecting: 13 revisions left to test after this (roughly 4 steps) [f490e205bcbada6eb6dca8b75a2511685e6bd0f0] samples/landlock: Add support for signal scoping testing commit f490e205bcbada6eb6dca8b75a2511685e6bd0f0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 23004a46c0d0179b8168e437fffe227ac6b5c1516f26b5d5ee9a46b7404e4a0b all runs: OK false negative chance: 0.000 # git bisect good f490e205bcbada6eb6dca8b75a2511685e6bd0f0 Bisecting: 7 revisions left to test after this (roughly 3 steps) [5c36498d06b9b00393c2f35edbf16b28194375fa] Merge tag 'lsm-pr-20240923' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm testing commit 5c36498d06b9b00393c2f35edbf16b28194375fa gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fde0f8349483c68e4d91cb2733cc41caafb5ba3c0ba407a91d6e3990ac93b8ba all runs: crashed: possible deadlock in shmem_file_write_iter representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad 5c36498d06b9b00393c2f35edbf16b28194375fa Bisecting: 2 revisions left to test after this (roughly 2 steps) [f89722faa31466ff41aed21bdeb9cf34c2312858] ipe: Add missing terminator to list of unit tests testing commit f89722faa31466ff41aed21bdeb9cf34c2312858 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a8130a530cb7f00b19c070756d444db7b0129338beefda25b1b9df70abb3265b run #0: crashed: possible deadlock in shmem_file_write_iter run #1: crashed: possible deadlock in shmem_file_write_iter run #2: crashed: possible deadlock in shmem_file_write_iter run #3: crashed: possible deadlock in shmem_file_write_iter run #4: crashed: possible deadlock in shmem_file_write_iter run #5: crashed: possible deadlock in shmem_file_write_iter run #6: crashed: possible deadlock in shmem_file_write_iter run #7: crashed: possible deadlock in shmem_file_write_iter run #8: crashed: possible deadlock in shmem_file_write_iter run #9: OK representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad f89722faa31466ff41aed21bdeb9cf34c2312858 Bisecting: 0 revisions left to test after this (roughly 1 step) [8a23c9e1ba4642b60420e8caa75859883a509c24] selinux,smack: properly reference the LSM blob in security_watch_key() testing commit 8a23c9e1ba4642b60420e8caa75859883a509c24 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 48638c9c8e19c3bf1f06aa83610e97562c187952fd527f5b370be8eaeab53664 run #0: crashed: possible deadlock in shmem_file_write_iter run #1: crashed: possible deadlock in shmem_file_write_iter run #2: crashed: possible deadlock in shmem_file_write_iter run #3: crashed: possible deadlock in shmem_file_write_iter run #4: crashed: possible deadlock in shmem_file_write_iter run #5: crashed: possible deadlock in shmem_file_write_iter run #6: crashed: possible deadlock in shmem_file_write_iter run #7: crashed: possible deadlock in shmem_file_write_iter run #8: crashed: possible deadlock in shmem_file_write_iter run #9: OK representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad 8a23c9e1ba4642b60420e8caa75859883a509c24 Bisecting: 0 revisions left to test after this (roughly 0 steps) [ea7e2d5e49c05e5db1922387b09ca74aa40f46e2] mm: call the security_mmap_file() LSM hook in remap_file_pages() testing commit ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bc3c3410e4b856edf5ce08b20702473e0bd9039d32b1f33049d2b1beeb42d398 run #0: crashed: possible deadlock in shmem_file_write_iter run #1: crashed: possible deadlock in shmem_file_write_iter run #2: crashed: possible deadlock in shmem_file_write_iter run #3: crashed: possible deadlock in shmem_file_write_iter run #4: crashed: possible deadlock in shmem_file_write_iter run #5: crashed: possible deadlock in shmem_file_write_iter run #6: crashed: possible deadlock in shmem_file_write_iter run #7: crashed: possible deadlock in shmem_file_write_iter run #8: crashed: possible deadlock in shmem_file_write_iter run #9: OK representative crash: possible deadlock in shmem_file_write_iter, types: [LOCKDEP] # git bisect bad ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 is the first bad commit commit ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 Author: Shu Han Date: Tue Sep 17 17:41:04 2024 +0800 mm: call the security_mmap_file() LSM hook in remap_file_pages() The remap_file_pages syscall handler calls do_mmap() directly, which doesn't contain the LSM security check. And if the process has called personality(READ_IMPLIES_EXEC) before and remap_file_pages() is called for RW pages, this will actually result in remapping the pages to RWX, bypassing a W^X policy enforced by SELinux. So we should check prot by security_mmap_file LSM hook in the remap_file_pages syscall handler before do_mmap() is called. Otherwise, it potentially permits an attacker to bypass a W^X policy enforced by SELinux. The bypass is similar to CVE-2016-10044, which bypass the same thing via AIO and can be found in [1]. The PoC: $ cat > test.c int main(void) { size_t pagesz = sysconf(_SC_PAGE_SIZE); int mfd = syscall(SYS_memfd_create, "test", 0); const char *buf = mmap(NULL, 4 * pagesz, PROT_READ | PROT_WRITE, MAP_SHARED, mfd, 0); unsigned int old = syscall(SYS_personality, 0xffffffff); syscall(SYS_personality, READ_IMPLIES_EXEC | old); syscall(SYS_remap_file_pages, buf, pagesz, 0, 2, 0); syscall(SYS_personality, old); // show the RWX page exists even if W^X policy is enforced int fd = open("/proc/self/maps", O_RDONLY); unsigned char buf2[1024]; while (1) { int ret = read(fd, buf2, 1024); if (ret <= 0) break; write(1, buf2, ret); } close(fd); } $ gcc test.c -o test $ ./test | grep rwx 7f1836c34000-7f1836c35000 rwxs 00002000 00:01 2050 /memfd:test (deleted) Link: https://project-zero.issues.chromium.org/issues/42452389 [1] Cc: stable@vger.kernel.org Signed-off-by: Shu Han Acked-by: Stephen Smalley [PM: subject line tweaks] Signed-off-by: Paul Moore mm/mmap.c | 4 ++++ 1 file changed, 4 insertions(+) accumulated error probability: 0.00 parent commit 19c9d55d72a9040cf9dc8de62633e6217381106b wasn't tested testing commit 19c9d55d72a9040cf9dc8de62633e6217381106b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d45d38c7f5a5219b581542d9797841b4262a6c95c046dfd8650188f7bca5c315 culprit signature: bc3c3410e4b856edf5ce08b20702473e0bd9039d32b1f33049d2b1beeb42d398 parent signature: d45d38c7f5a5219b581542d9797841b4262a6c95c046dfd8650188f7bca5c315 revisions tested: 22, total time: 6h36m37.307942154s (build: 2h42m2.416491299s, test: 3h37m52.655764512s) first bad commit: ea7e2d5e49c05e5db1922387b09ca74aa40f46e2 mm: call the security_mmap_file() LSM hook in remap_file_pages() recipients (to): ["ebpqwerty472123@gmail.com" "paul@paul-moore.com" "stephen.smalley.work@gmail.com"] recipients (cc): [] crash: possible deadlock in shmem_file_write_iter ====================================================== WARNING: possible circular locking dependency detected 6.11.0-rc1-syzkaller #0 Not tainted ------------------------------------------------------ syz.3.225/4710 is trying to acquire lock: ffff888102eac798 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock_killable+0x13/0x50 include/linux/mmap_lock.h:153 but task is already holding lock: ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: shmem_file_write_iter+0x2f/0x90 mm/shmem.c:3068 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}: down_write+0x29/0xb0 kernel/locking/rwsem.c:1579 inode_lock include/linux/fs.h:799 [inline] process_measurement+0x154/0x900 security/integrity/ima/ima_main.c:250 ima_file_mmap+0x74/0xe0 security/integrity/ima/ima_main.c:455 security_mmap_file+0x3a7/0x480 security/security.c:2977 __do_sys_remap_file_pages mm/mmap.c:3201 [inline] __se_sys_remap_file_pages+0x278/0x370 mm/mmap.c:3133 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa0/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&mm->mmap_lock){++++}-{3:3}: check_prev_add kernel/locking/lockdep.c:3133 [inline] check_prevs_add kernel/locking/lockdep.c:3252 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x122b/0x2530 kernel/locking/lockdep.c:5142 lock_acquire+0xeb/0x270 kernel/locking/lockdep.c:5759 down_read_killable+0x50/0x610 kernel/locking/rwsem.c:1549 mmap_read_lock_killable+0x13/0x50 include/linux/mmap_lock.h:153 get_mmap_lock_carefully mm/memory.c:5879 [inline] lock_mm_and_find_vma+0x11a/0x130 mm/memory.c:5930 do_user_addr_fault arch/x86/mm/fault.c:1361 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x1d3/0x6a0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 fault_in_readable+0x3c/0xd0 fault_in_iov_iter_readable+0x3c/0xd0 lib/iov_iter.c:94 generic_perform_write+0xaa/0x3d0 mm/filemap.c:4009 shmem_file_write_iter+0x67/0x90 mm/shmem.c:3078 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x342/0x3d0 fs/read_write.c:590 ksys_write+0x70/0xe0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa0/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sb->s_type->i_mutex_key#12); lock(&mm->mmap_lock); lock(&sb->s_type->i_mutex_key#12); rlock(&mm->mmap_lock); *** DEADLOCK *** 3 locks held by syz.3.225/4710: #0: ffff8881023668c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x71/0xa0 fs/file.c:1191 #1: ffff8881023cf410 (sb_writers#5){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #1: ffff8881023cf410 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x111/0x3d0 fs/read_write.c:586 #2: ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] #2: ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: shmem_file_write_iter+0x2f/0x90 mm/shmem.c:3068 stack backtrace: CPU: 1 UID: 0 PID: 4710 Comm: syz.3.225 Not tainted 6.11.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xa3/0x100 lib/dump_stack.c:119 check_noncircular+0x119/0x140 kernel/locking/lockdep.c:2186 check_prev_add kernel/locking/lockdep.c:3133 [inline] check_prevs_add kernel/locking/lockdep.c:3252 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x122b/0x2530 kernel/locking/lockdep.c:5142 lock_acquire+0xeb/0x270 kernel/locking/lockdep.c:5759 down_read_killable+0x50/0x610 kernel/locking/rwsem.c:1549 mmap_read_lock_killable+0x13/0x50 include/linux/mmap_lock.h:153 get_mmap_lock_carefully mm/memory.c:5879 [inline] lock_mm_and_find_vma+0x11a/0x130 mm/memory.c:5930 do_user_addr_fault arch/x86/mm/fault.c:1361 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x1d3/0x6a0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:fault_in_readable+0x3c/0xd0 mm/gup.c:2237 Code: 00 00 00 48 89 f8 48 01 f0 0f 88 8d 00 00 00 48 39 f8 0f 82 84 00 00 00 0f 01 cb 0f ae e8 48 89 f8 48 c1 e0 34 74 1b 48 89 f9 <8a> 07 88 04 24 4c 8d 87 ff 0f 00 00 4c 89 c1 48 81 e1 00 f0 ff ff RSP: 0018:ffffc90003507d5f EFLAGS: 00050207 RAX: 2400000000000000 RBX: 0000000000069000 RCX: 0000000020197240 RDX: 0000000000000001 RSI: 0000000000069000 RDI: 0000000020197240 RBP: 0000000001ef724b R08: 0000000000000000 R09: 0000000000000000 R10: ffff88816020d000 R11: ffffffff81256410 R12: 0000000000197000 R13: ffff888107ffad18 R14: 0000000000069000 R15: 0000000000197000 fault_in_iov_iter_readable+0x3c/0xd0 lib/iov_iter.c:94 generic_perform_write+0xaa/0x3d0 mm/filemap.c:4009 shmem_file_write_iter+0x67/0x90 mm/shmem.c:3078 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x342/0x3d0 fs/read_write.c:590 ksys_write+0x70/0xe0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xa0/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4d3b97dff9 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:00007f4d3c6a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4d3bb36058 RCX: 00007f4d3b97dff9 RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000003 RBP: 00007f4d3b9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4d3bb36058 R15: 00007ffe5a9561c8 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 48 89 add %cl,-0x77(%rax) 5: f8 clc 6: 48 01 f0 add %rsi,%rax 9: 0f 88 8d 00 00 00 js 0x9c f: 48 39 f8 cmp %rdi,%rax 12: 0f 82 84 00 00 00 jb 0x9c 18: 0f 01 cb stac 1b: 0f ae e8 lfence 1e: 48 89 f8 mov %rdi,%rax 21: 48 c1 e0 34 shl $0x34,%rax 25: 74 1b je 0x42 27: 48 89 f9 mov %rdi,%rcx * 2a: 8a 07 mov (%rdi),%al <-- trapping instruction 2c: 88 04 24 mov %al,(%rsp) 2f: 4c 8d 87 ff 0f 00 00 lea 0xfff(%rdi),%r8 36: 4c 89 c1 mov %r8,%rcx 39: 48 81 e1 00 f0 ff ff and $0xfffffffffffff000,%rcx