Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4508599pxt; Wed, 11 Aug 2021 07:37:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsIKNSZVM3lDYxC5y5tPzinNSq7+6maAH3aC1Lq6HWE/etgukqFjtBa3YVcMYwpDlV9s4P X-Received: by 2002:a05:6402:35cf:: with SMTP id z15mr11811567edc.27.1628692629538; Wed, 11 Aug 2021 07:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628692629; cv=none; d=google.com; s=arc-20160816; b=nFvU0TK07vCFgwxr5i4H05nPROeMjktWxbDnHhGqhGiVjhKb5ZFUhcx61BSIwyo9QC ewLaVOmJ9Zk/KjGqTFYh5PCmRHT6R/lhtAUq/9usCV0NuaHt0AU8z1ovMhUWNkeCzp8Q f+JVyckbRfffcfQQvxVIbcYspbwYj99HwIzrtIWOSY5sz8zFlgZPexx+PvUD3cv0R7Pp UpMI2Fq/rvuZQ3NbLE2v7HNa2RNLolpn880fEnOgoRaLb/yhBHbPdxReH2yPfRw3Jx3K ZNSPUVd8RbsaJgUrt1it/zL03dVpcbTPXsNe2rhbtqkREf6FYMMYw5IbnJ36y8FhjFen jVwA== 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:message-id:subject:cc:to:from:date; bh=sVitXQ8yseHje5AS0M91VvoemJ3bTNPWmp/MgRwpBAk=; b=cVkD+ooiOXvjNdedHVQFY9jRokz46Wtobfn/w6RydfcPQiTiRdzHVtEx7/e08UJLFh 3L8UbI3aPWKXZsYvtygLkZstRnWBG2UJIaC/DvlSj/6yZVEhhUABxd/A2gZZEpl1dR5g CyaJkQXsxnqL4Osh1QJqkO8V4DqFun1UsxOeVxr0vNhv3GTXGCq918WxZWkv16JzTqPw 8tQ+QlbmCPbzjl3z3nCtysbCDl6EivPNd+D+kAOWIEC0paTBohh/5vM8VcBwrsNqenqg KvrwUh47Pff0+mPfiSR1cNO3bhDK/V57Y9+48p2uXnKDaIn5DyBuQZIux0JyAOUzvjc6 JHWA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si24845481ejd.416.2021.08.11.07.36.43; Wed, 11 Aug 2021 07:37:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232362AbhHKOft (ORCPT + 99 others); Wed, 11 Aug 2021 10:35:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:52776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232298AbhHKOfs (ORCPT ); Wed, 11 Aug 2021 10:35:48 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4F227604AC; Wed, 11 Aug 2021 14:35:24 +0000 (UTC) Date: Wed, 11 Aug 2021 10:35:22 -0400 From: Steven Rostedt To: LKML Cc: Ingo Molnar , Andrew Morton , Tom Zanussi , Masami Hiramatsu Subject: Re: [PATCH] tracing / histogram: Fix NULL pointer dereference on strcmp() on NULL event name Message-ID: <20210811103522.0cac5f1a@oasis.local.home> In-Reply-To: <20210808003011.4037f8d0@oasis.local.home> References: <20210808003011.4037f8d0@oasis.local.home> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Steve