Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4551807pxt; Wed, 11 Aug 2021 08:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPrj9QkaetdeF6c8R65EXM1iKtTpCryZrkR/El3zgVX8/6ggABTsFPK+ZvveE1qApw6fPb X-Received: by 2002:a05:6512:33ad:: with SMTP id i13mr25901617lfg.132.1628695871470; Wed, 11 Aug 2021 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628695871; cv=none; d=google.com; s=arc-20160816; b=i/GiCpk6ss0f4+uAEmZeZeqt7D8/nzIeeawLlfTWnF6exgzFEIejpXIUaRhiXfi5aD hZP58l0TCRcUo9Z7PSnmRrih2pgGptpbRRdA0QZmYd2ZL/BKEAR/NDOMKLQRLEVCs+// k3gjZtVv6X6DFd5QJcVWvXNVbSI5zU0d+yA+DSurHbqxznhhvT3pqS6ptDeeWkNJlquw 5VvDw3/ZtondmnCByFwuC6CKZMHujAo4LTDBsReEtK/ryTK5VK25ONLp5gXtqDYwomGS 2Qhp9b8ZuBOpZZSOKfwaOgDG2z5RGR5tUuwT3AzmQ6mCQJ5CZKSxnlB05MuUMPMIfPmP tzCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=wSofKYlEGGnacEG62I/oAYQBrsBFcECuItAJK7h1bgo=; b=hSIUnjVJU6GbT6xeD8tGxbeAd+d29HPsyvgUEAi+JXOG4VvDY8xF5q9WiVqDygTHyX JuxXZc7TsSjXil245j6bl9hI9K47lLu1f0eNLJwHSjaTKtB/XSFs2tDKuVT5BRXWFyBc RYyZpbwHMn2US8Y00+TgUkb+TkdbfBRWeBraa+LMUZ1oHWAGqTMc5wFnPY0ZdubaHFCS DiEN5sQv5tOhylTQobkSdaMyMCssNQ60kluCXtCg6MkgCERpL5bGWMXCfRySRVMNE7l3 VtN3pUxGb6OSuBZFyh/3cMh9+U/ydfhUpxekDxjBmAAl/RyvW6kiZUQs+1Rdd08AUduG Y7Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d1AXNQO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq9si23027255ejb.654.2021.08.11.08.30.45; Wed, 11 Aug 2021 08:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d1AXNQO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233248AbhHKP3g (ORCPT + 99 others); Wed, 11 Aug 2021 11:29:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:33766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbhHKP3g (ORCPT ); Wed, 11 Aug 2021 11:29:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D15F66056B; Wed, 11 Aug 2021 15:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628695752; bh=GZA5xibJwSTSz1gm+1HKlvDUFmznkOLoXB/EQufGjGQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=d1AXNQO9MOQfe2nHoOPi2CzaLo5nGZ4ykOZ1i9/aF9tR+x8MS9MdyjMI9+jHqu28/ Kcz9Z/qMrgs32sh2M48fevzjdl8O7dV3J18bVMOpIf/Fridx4ztnD0csr1tB9JtpVe ObbQbYhtMhTp0nmD1apv/p1+7X0wRhwCej5qpVCpYpxmGiMAkVUfgKnWHsjT8es8P/ PXI4qD945Wx7m3f2XQBe9gw62rFY46E78rad766i2Au9FQJ6BbIfdTJ0dHUW7p/H4Q fQlbidQ7iC8XpU9XWXo8lxT9mO4HFGed75oyzYt3RXtPnB34MApOkCHF1ebHQbaX7q cmpb84ajbBMew== Message-ID: <934b0ae20a78f87b556d0dfd150282f033bc1483.camel@kernel.org> Subject: Re: [PATCH] tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name From: Tom Zanussi To: Steven Rostedt , LKML Cc: Ingo Molnar , Andrew Morton , Masami Hiramatsu Date: Wed, 11 Aug 2021 10:29:10 -0500 In-Reply-To: <20210811103522.0cac5f1a@oasis.local.home> References: <20210808003011.4037f8d0@oasis.local.home> <20210811103522.0cac5f1a@oasis.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, On Wed, 2021-08-11 at 10:35 -0400, Steven Rostedt wrote: > On Sun, 8 Aug 2021 00:30:11 -0400 > Steven Rostedt wrote: > > > diff --git a/kernel/trace/trace_events_hist.c > > b/kernel/trace/trace_events_hist.c > > index 949ef09dc537..a48aa2a2875b 100644 > > --- a/kernel/trace/trace_events_hist.c > > +++ b/kernel/trace/trace_events_hist.c > > @@ -3430,6 +3430,8 @@ trace_action_create_field_var(struct > > hist_trigger_data *hist_data, > > event = data->match_data.event; > > } > > > > + if (!event) > > + goto free; > > /* > > * At this point, we're looking at a field on another > > * event. Because we can't modify a hist trigger on > > -- > > Tom, > > Is this OK? I'm going to start running this through my tests and when > it's done, I'm going to send it off to Linus. Sorry, missed this one. But yeah, this fixes the problem, thanks! Reviewed-by: Tom Zanussi > > -- Steve