ci starts bisection 2023-10-28 11:18:38.417221471 +0000 UTC m=+42829.700507610 bisecting cause commit starting from c17cda15cc86e65e9725641daddcd7a63cc9ad01 building syzkaller on 3c418d724accee0ff5b8487bdddeb5827ab216bd ensuring issue is reproducible on original commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ee2e6a37c8b78bde65e4f29af5e867ce8e21ea0d7e69b12513d806d2c8179e40 all runs: crashed: general protection fault in inherit_task_group representative crash: general protection fault in inherit_task_group, types: [UNKNOWN] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN LOCKDEP], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1ebe6f5f20403468ba103d98b29effaba897a1820c1005c893ad53df52f97c43 run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #1: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #3: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #4: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #7: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #8: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #9: ignore: SYZFAIL: clone failed representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=3938 full=7617 leaves diff=1992 split chunks (needed=false): <1992> split chunk #0 of len 1992 into 5 parts testing without sub-chunk 1/5 disabling configs for [UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f0b6bc66b4ecf31cf7c4c9f5507f572972418c6c054c0a0a9381234f16ad308c run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #1: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #3: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #4: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #7: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #8: ignore: SYZFAIL: clone failed run #9: ignore: SYZFAIL: clone failed representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d77f4668850c4db3d801be3dc1a97b6719299b8cb5105643736b00a73811489e all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e053d1b2c745e575a9d12afdfb034a4fa1a8ba20de5f6b729a00312b6ab03750 all runs: OK false negative chance: 0.000 testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 36e00c392949440f52c971bcfb4999239176448f811af842198d5f43ffafa556 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN LOCKDEP], they are not needed testing commit c17cda15cc86e65e9725641daddcd7a63cc9ad01 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 77efc297523ae89cfb23913f0e8289ee229c3ef5c79e83af35198fd23ecf1d3e all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] the chunk can be dropped minimized to 399 configs; suspects: [AX25 BRIDGE BRIDGE_NETFILTER CAN CFG80211 CHECKPOINT_RESTORE DVB_CORE FB_CORE 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 IP_VS_PROTO_AH_ESP IP_VS_PROTO_ESP IP_VS_PROTO_SCTP IP_VS_RR IP_VS_SED IP_VS_SH IP_VS_TWOS IP_VS_WLC IP_VS_WRR IRQ_BYPASS_MANAGER IRQ_POLL IR_IGORPLUGUSB IR_IGUANA IR_IMON IR_MCEUSB IR_REDRAT3 IR_STREAMZAP 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_GENERIC_HARDWARE_ENABLING KVM_MMIO KVM_PROVE_MMU 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 LRU_GEN LRU_GEN_ENABLED LWTUNNEL LWTUNNEL_BPF 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 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 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_BTT ND_CLAIM ND_PFN NETDEVSIM NETFILTER_ADVANCED NETFILTER_BPF_LINK NETFILTER_FAMILY_ARP NETFILTER_FAMILY_BRIDGE NETFILTER_NETLINK_ACCT NETFILTER_NETLINK_GLUE_CT NETFILTER_NETLINK_OSF NETFILTER_NETLINK_QUEUE NETFILTER_SYNPROXY NETFILTER_XTABLES_COMPAT 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 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_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_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_MQPRIO_LIB 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_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_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_OVS 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_NAT_AMANDA NF_NAT_H323 NF_NAT_OVS 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 PARTITION_ADVANCED PSAMPLE RC_CORE RC_DEVICES RFKILL SPI USB_GADGET USB_MUSB_HDRC VIDEO_DEV WAN WATCH_QUEUE WIRELESS WLAN WWAN X25 X86_X32_ABI] disabling configs for [HANG LEAK UBSAN BUG KASAN LOCKDEP ATOMIC_SLEEP], they are not needed picked [v6.5 v6.4 v6.3 v6.1 v5.19 v5.17 v5.15 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 28 release tags testing release v6.5 testing commit 2dde18cd1d8fac735875f2e4987f11817cc0bc2c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6e5069a62f14ffd654ffb679ca3dd7fdd96cddd3e9d4f56ef3de84ba49acc745 all runs: OK false negative chance: 0.000 # git bisect start c17cda15cc86e65e9725641daddcd7a63cc9ad01 2dde18cd1d8fac735875f2e4987f11817cc0bc2c Bisecting: 7775 revisions left to test after this (roughly 13 steps) [a1c19328a160c80251868dbd80066dce23d07995] Merge tag 'soc-arm-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit a1c19328a160c80251868dbd80066dce23d07995 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 147e9e0d816a36130bf4ff362a87bd42040055a2acfe2629827d027a8d6c30ac run #0: ignore: SYZFAIL: clone failed run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK false negative chance: 0.000 # git bisect good a1c19328a160c80251868dbd80066dce23d07995 Bisecting: 3906 revisions left to test after this (roughly 12 steps) [db906f0ca6bb55b7237b880e06ec2fc95ab67e16] Merge tag 'phy-for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy testing commit db906f0ca6bb55b7237b880e06ec2fc95ab67e16 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2e69d61b10953005604efe4107544ceeec1ef09db1dca8daf04dbe54391038d1 all runs: OK false negative chance: 0.000 # git bisect good db906f0ca6bb55b7237b880e06ec2fc95ab67e16 Bisecting: 1952 revisions left to test after this (roughly 11 steps) [847165d7c83ddb32aefab3ad4e7424fad919eb05] Merge tag 'parisc-for-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux testing commit 847165d7c83ddb32aefab3ad4e7424fad919eb05 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d72b055e253412097fe69bdaf7efe16dbc6bb2139e3ee64bc795c11d758951a1 run #0: ignore: SYZFAIL: clone failed run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK false negative chance: 0.000 # git bisect good 847165d7c83ddb32aefab3ad4e7424fad919eb05 Bisecting: 924 revisions left to test after this (roughly 10 steps) [f291209eca5eba0b4704fa0832af57b12dbc1a02] Merge tag 'net-6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit f291209eca5eba0b4704fa0832af57b12dbc1a02 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3d9ef7d46eff67a3b7e22e54dcbb99824c4e162135bf53fe6e3bccc55c735816 all runs: OK false negative chance: 0.000 # git bisect good f291209eca5eba0b4704fa0832af57b12dbc1a02 Bisecting: 471 revisions left to test after this (roughly 9 steps) [41226a360d8f51c13935bbc2ac8925c0fe8d41f7] Merge tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty testing commit 41226a360d8f51c13935bbc2ac8925c0fe8d41f7 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f2b4e0cf3c4d708a68eb636da4f52daff5b53f86c1d78af67f1dcc69eafa2bb5 all runs: OK false negative chance: 0.000 # git bisect good 41226a360d8f51c13935bbc2ac8925c0fe8d41f7 Bisecting: 235 revisions left to test after this (roughly 8 steps) [a40614fe885a46758105bfcc6761594af2c9155e] Merge branch 'r8152-reg-garbage' testing commit a40614fe885a46758105bfcc6761594af2c9155e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3dc05bc5d984bd706b48c5a5f2f61c143e0c594dbaa22ceba1803e2165158f38 run #0: ignore: SYZFAIL: clone failed run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK false negative chance: 0.000 # git bisect good a40614fe885a46758105bfcc6761594af2c9155e Bisecting: 121 revisions left to test after this (roughly 7 steps) [bfd4704c82d9041cdd611d5c577f1e57ebf91537] Merge tag 'usb-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit bfd4704c82d9041cdd611d5c577f1e57ebf91537 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 89c28a7d48e4db0f1aaf82ef7a3febe48a920de2ef483d6f416ddff0778bd63a all runs: OK false negative chance: 0.000 # git bisect good bfd4704c82d9041cdd611d5c577f1e57ebf91537 Bisecting: 61 revisions left to test after this (roughly 6 steps) [05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1] Linux 6.6-rc7 testing commit 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cddb3b9c077156e379dd18b7b1d3d3a1a19bef0adc4cac97dc5ec08fa883b2b1 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] # git bisect bad 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 Bisecting: 29 revisions left to test after this (roughly 5 steps) [03027aa3a5c698b8fe1a0254284198cb1423481e] Merge tag 'rust-fixes-6.6' of https://github.com/Rust-for-Linux/linux testing commit 03027aa3a5c698b8fe1a0254284198cb1423481e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 556ffdf54baef8e4e23f014482d50cf1737c5eb590512ebc8bc4661115b14136 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] # git bisect bad 03027aa3a5c698b8fe1a0254284198cb1423481e Bisecting: 13 revisions left to test after this (roughly 4 steps) [4d7b04c0cda365f190c4a8f7fddc535b93aae9f9] Merge tag 's390-6.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux testing commit 4d7b04c0cda365f190c4a8f7fddc535b93aae9f9 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 840ce28cd96081d38ff32b342e6822551a75901b55d434ac9bbc4cfb1568c728 all runs: OK false negative chance: 0.000 # git bisect good 4d7b04c0cda365f190c4a8f7fddc535b93aae9f9 Bisecting: 6 revisions left to test after this (roughly 3 steps) [45d3291c5201fced351e62d714e2912400cc7f4d] Merge tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 45d3291c5201fced351e62d714e2912400cc7f4d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1f5ccb578b5e6bcbb38a10915219283aac09bfab277ea5652e9c9e01ce9d8452 run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #1: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #3: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #4: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #7: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group run #8: crashed: BUG: unable to handle kernel NULL pointer dereference in corrupted run #9: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] # git bisect bad 45d3291c5201fced351e62d714e2912400cc7f4d Bisecting: 3 revisions left to test after this (roughly 2 steps) [023cc836053539148ffd015d3938887ef19af1cd] Merge tag 'probes-fixes-v6.6-rc6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace testing commit 023cc836053539148ffd015d3938887ef19af1cd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2a7e528aaf61e55bbde30d7a548acecbaf59f23420c687d18b5a6a8e4e13994a all runs: OK false negative chance: 0.000 # git bisect good 023cc836053539148ffd015d3938887ef19af1cd Bisecting: 1 revision left to test after this (roughly 1 step) [94be133fb2b8a36d79b362b3bafbdfd054a4da89] Merge tag 'perf-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 94be133fb2b8a36d79b362b3bafbdfd054a4da89 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 18c238ef72eadd15f97ab5589f605a011dc411ef4a29cd5eec1f8a57dab28dab all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] # git bisect bad 94be133fb2b8a36d79b362b3bafbdfd054a4da89 Bisecting: 0 revisions left to test after this (roughly 0 steps) [32671e3799ca2e4590773fd0e63aaa4229e50c06] perf: Disallow mis-matched inherited group reads testing commit 32671e3799ca2e4590773fd0e63aaa4229e50c06 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1b463ac8863186187cb241c2ec6a1a8be2673907d9a7d703b58152e34f9f106e all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group representative crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group, types: [UNKNOWN] # git bisect bad 32671e3799ca2e4590773fd0e63aaa4229e50c06 32671e3799ca2e4590773fd0e63aaa4229e50c06 is the first bad commit commit 32671e3799ca2e4590773fd0e63aaa4229e50c06 Author: Peter Zijlstra Date: Wed Oct 18 13:56:54 2023 +0200 perf: Disallow mis-matched inherited group reads Because group consistency is non-atomic between parent (filedesc) and children (inherited) events, it is possible for PERF_FORMAT_GROUP read() to try and sum non-matching counter groups -- with non-sensical results. Add group_generation to distinguish the case where a parent group removes and adds an event and thus has the same number, but a different configuration of events as inherited groups. This became a problem when commit fa8c269353d5 ("perf/core: Invert perf_read_group() loops") flipped the order of child_list and sibling_list. Previously it would iterate the group (sibling_list) first, and for each sibling traverse the child_list. In this order, only the group composition of the parent is relevant. By flipping the order the group composition of the child (inherited) events becomes an issue and the mis-match in group composition becomes evident. That said; even prior to this commit, while reading of a group that is not equally inherited was not broken, it still made no sense. (Ab)use ECHILD as error return to indicate issues with child process group composition. Fixes: fa8c269353d5 ("perf/core: Invert perf_read_group() loops") Reported-by: Budimir Markovic Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20231018115654.GK33217@noisy.programming.kicks-ass.net include/linux/perf_event.h | 1 + kernel/events/core.c | 39 +++++++++++++++++++++++++++++++++------ 2 files changed, 34 insertions(+), 6 deletions(-) accumulated error probability: 0.00 parent commit 58720809f52779dc0f08e53e54b014209d13eebb wasn't tested testing commit 58720809f52779dc0f08e53e54b014209d13eebb gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 614744c1d4844c0e8873139f7d7c60e38fadc74bc3b7bef954b8411c20f94249 culprit signature: 1b463ac8863186187cb241c2ec6a1a8be2673907d9a7d703b58152e34f9f106e parent signature: 614744c1d4844c0e8873139f7d7c60e38fadc74bc3b7bef954b8411c20f94249 revisions tested: 22, total time: 9h13m59.437357277s (build: 4h22m4.550840504s, test: 4h35m19.320454387s) first bad commit: 32671e3799ca2e4590773fd0e63aaa4229e50c06 perf: Disallow mis-matched inherited group reads recipients (to): ["acme@kernel.org" "linux-perf-users@vger.kernel.org" "mingo@redhat.com" "peterz@infradead.org" "peterz@infradead.org"] recipients (cc): ["adrian.hunter@intel.com" "alexander.shishkin@linux.intel.com" "irogers@google.com" "jolsa@kernel.org" "linux-kernel@vger.kernel.org" "mark.rutland@arm.com" "namhyung@kernel.org"] crash: BUG: unable to handle kernel NULL pointer dereference in inherit_task_group BUG: kernel NULL pointer dereference, address: 000000000000008c #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 11a242067 P4D 11a242067 PUD 119793067 PMD 0 Oops: 0002 [#1] PREEMPT SMP CPU: 0 PID: 7828 Comm: syz-executor.4 Not tainted 6.6.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:inherit_group kernel/events/core.c:13375 [inline] RIP: 0010:inherit_task_group.isra.0+0x107/0x280 kernel/events/core.c:13422 Code: f0 ff ff 0f 87 7d 01 00 00 e8 35 d4 f8 ff 48 3b 9b 90 00 00 00 0f 84 8a 00 00 00 e8 23 d4 f8 ff 8b 83 8c 00 00 00 48 8b 14 24 <89> 82 8c 00 00 00 31 ed e8 0c d4 f8 ff 89 e8 48 83 c4 08 5b 5d 41 RSP: 0018:ffffc900034c7c90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810df57230 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81341a4d RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810df57230 R13: ffff88811a600000 R14: ffffc900034c7cdc R15: ffff88810cf24200 FS: 00007fec0f4ac6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000008c CR3: 000000011a13f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: perf_event_init_context kernel/events/core.c:13487 [inline] perf_event_init_task+0x1ce/0x3b0 kernel/events/core.c:13538 copy_process+0xc2a/0x26d0 kernel/fork.c:2475 kernel_clone+0x109/0x750 kernel/fork.c:2909 __do_sys_clone+0x7c/0xb0 kernel/fork.c:3052 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fec0f929ae9 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:00007fec0f4ac078 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fec0fa48f80 RCX: 00007fec0f929ae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fec0f97547a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fec0fa48f80 R15: 00007fff441827a8 Modules linked in: CR2: 000000000000008c ---[ end trace 0000000000000000 ]--- RIP: 0010:inherit_group kernel/events/core.c:13375 [inline] RIP: 0010:inherit_task_group.isra.0+0x107/0x280 kernel/events/core.c:13422 Code: f0 ff ff 0f 87 7d 01 00 00 e8 35 d4 f8 ff 48 3b 9b 90 00 00 00 0f 84 8a 00 00 00 e8 23 d4 f8 ff 8b 83 8c 00 00 00 48 8b 14 24 <89> 82 8c 00 00 00 31 ed e8 0c d4 f8 ff 89 e8 48 83 c4 08 5b 5d 41 RSP: 0018:ffffc900034c7c90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810df57230 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81341a4d RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810df57230 R13: ffff88811a600000 R14: ffffc900034c7cdc R15: ffff88810cf24200 FS: 00007fec0f4ac6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000008c CR3: 000000011a13f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f0 ff lock (bad) 2: ff 0f decl (%rdi) 4: 87 7d 01 xchg %edi,0x1(%rbp) 7: 00 00 add %al,(%rax) 9: e8 35 d4 f8 ff call 0xfff8d443 e: 48 3b 9b 90 00 00 00 cmp 0x90(%rbx),%rbx 15: 0f 84 8a 00 00 00 je 0xa5 1b: e8 23 d4 f8 ff call 0xfff8d443 20: 8b 83 8c 00 00 00 mov 0x8c(%rbx),%eax 26: 48 8b 14 24 mov (%rsp),%rdx * 2a: 89 82 8c 00 00 00 mov %eax,0x8c(%rdx) <-- trapping instruction 30: 31 ed xor %ebp,%ebp 32: e8 0c d4 f8 ff call 0xfff8d443 37: 89 e8 mov %ebp,%eax 39: 48 83 c4 08 add $0x8,%rsp 3d: 5b pop %rbx 3e: 5d pop %rbp 3f: 41 rex.B