Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1694283rdh; Sat, 28 Oct 2023 03:42:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEaAv7Xx2GBGDrwpaztqR+atb0Yl6ki5+ZsfzhzoOJKL69tkBvCPlTO+M7GeNpTmWZZN2z X-Received: by 2002:a17:902:cecc:b0:1ca:7909:6eda with SMTP id d12-20020a170902cecc00b001ca79096edamr6501953plg.23.1698489732756; Sat, 28 Oct 2023 03:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698489732; cv=none; d=google.com; s=arc-20160816; b=h98fHI16pU7H3CPgAtZFH3Ou/Mrb/dBUHLdJclTMYIIs6gF1TbcQ1z7c1mHPg4/d9a Tlqu437KdzK1VObUJSQlYYws/+bgN+/olgnceDoPMJkB01n/QuM4qUKGL0k+kkpYRH1j z5c5/li56vOZw3YpASGutnAqEk8YmFImGt/Agpe6G7scbWF7UYuoF8nzT7O7ONUMGo/p 5mb2J3z4hDEcT1AUkxjxCUI3Kh4DgA6/QFWxxtodoLO4Sq48Uti0Kab4TtOIj1zOCH9v 8gNgSXpHFQUz+fgogDomcHyFz4CUbqUa7DGofYWWvn7hqkYhgrDi1JxneduYlyvGsmz9 eb2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:sender:dkim-signature; bh=dNMR79gx4YlEM6/vC0ctcm4csKiAR8AMBm30muHjlqM=; fh=UnF1oWgLuPmpwDVZ593QNVkqSM/EKaHxHBxBxXhVd2g=; b=qzLv4T9SEgjwZ+GN6iLah9+ggg2yHHgBuRP4H96eP2S3sw2Bhad9QYDAZU5G9CngNf eIwRohJFTmT3d+CriFKntQWi7FHgP1EDZWpG2YVsCxfwun3OLuaVamFq1PDa6xzzYaMv NedUmKVbhaDszZVg0B0N9jvADdK/L/5o4zpgtuZJX54ShuGW9dRt22ZLiZ24TF4xQb0C Yj8ZPfzVubPi4WFBVYFo7oFzh9SUrCmkYUdogKUPZqfWhD1LYMIaC/xwpui4g9mBIjUu cqWw6A6qQ9j6TRTh/xkH/nlSH8bMAFqU+MZW6qwYdC+5/xVpRiNke+SiS033+lW05HY+ jawQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="GUuG8It/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c9-20020a170902d48900b001c7345bc01csi2496092plg.450.2023.10.28.03.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 03:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="GUuG8It/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C9A9F808E557; Sat, 28 Oct 2023 03:41:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbjJ1Kle (ORCPT + 99 others); Sat, 28 Oct 2023 06:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjJ1Klb (ORCPT ); Sat, 28 Oct 2023 06:41:31 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 990BE107; Sat, 28 Oct 2023 03:41:28 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c59a4dd14cso40476071fa.2; Sat, 28 Oct 2023 03:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698489687; x=1699094487; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=dNMR79gx4YlEM6/vC0ctcm4csKiAR8AMBm30muHjlqM=; b=GUuG8It/EQwfUT//O+SntxRk5HX2TJVjYdiuBGR8NM3P70knVOsmCalIH4G1M5tti4 G+tSE2irZudoHIRi8gd6CpKtVSj+652T3elMm7YoEZZggfuh0QUpir02M/NIybqAjF4V KQtKAVMUgsYYKINsCYcfWEPpvXT9nlTUmMkiKVbZDpYtVhuBir+dIhFwuiZJb3RbJmHm XYGWukB2YnmEK0Uox37b1EYvobPMCFwKEdy5o0VocIbL+zHXZJQg1J6vHvfDVlgk5lsZ g0pPWKDswSp5HWVAGmW5x9JhtZ5sfNSAJno+7XlvnMUQv7P/U8sXnC3Vuf8XxRf4jzk9 GHzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698489687; x=1699094487; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dNMR79gx4YlEM6/vC0ctcm4csKiAR8AMBm30muHjlqM=; b=ltbNA+lEyi339x1TSl6KxTJEk5rKKyaXNok9Bf0072WyEU1y5IKbL0oWQUdy8TRaWF unK4cSKBwdx5+y+R74xSB4u5gaybVfu+8tHZwOkCuwinfpHJTz9iumF6IDaR1oEUnQ29 oOWfIfi5qc+HAY+cQL+FB9bwelvz1BfHnHGx2Z7xOt9dIdvuRyeZ/BUdlX5q/OcbQRKi P/pU3OtdfoAwADIt6RMm1z/Swy2B8kqQN95y7YdokvcEREHE8tWuZSb6tTj/n1kWVQpy HcUZi2I+UbsOyKfDeSs75VuYLnrw2pse2j/P+fe1XW9OvS54wCCFELElo5T+DgUI25UN bDFw== X-Gm-Message-State: AOJu0YwfreQ9GG/jVdzXXv5p1fhU9EZd1H/zz/L2vvh3Z0Fo9T0nX0lv 0RaEGZxUPLdnegZeszV/8is= X-Received: by 2002:a19:f51a:0:b0:503:778:9ad2 with SMTP id j26-20020a19f51a000000b0050307789ad2mr3251553lfb.19.1698489686512; Sat, 28 Oct 2023 03:41:26 -0700 (PDT) Received: from gmail.com (1F2EF1E7.nat.pool.telekom.hu. [31.46.241.231]) by smtp.gmail.com with ESMTPSA id f12-20020a056402150c00b0053e15aefb0fsm2633342edw.85.2023.10.28.03.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 03:41:25 -0700 (PDT) Sender: Ingo Molnar Date: Sat, 28 Oct 2023 12:41:23 +0200 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Mark Rutland , Namhyung Kim , linux-perf-users@vger.kernel.org, Borislav Petkov , Thomas Gleixner , Andrew Morton Subject: [GIT PULL] perf events fix Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 28 Oct 2023 03:41:50 -0700 (PDT) Linus, Please pull the latest perf/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2023-10-28 # HEAD: a71ef31485bb51b846e8db8b3a35e432cc15afb5 perf/core: Fix potential NULL deref Fix a potential NULL dereference bug. Thanks, Ingo ------------------> Peter Zijlstra (1): perf/core: Fix potential NULL deref kernel/events/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index d0663b9324e7..a2f2a9525d72 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -13372,7 +13372,8 @@ static int inherit_group(struct perf_event *parent_event, !perf_get_aux_event(child_ctr, leader)) return -EINVAL; } - leader->group_generation = parent_event->group_generation; + if (leader) + leader->group_generation = parent_event->group_generation; return 0; }