From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B1D910957; Thu, 10 Oct 2024 00:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728521802; cv=none; b=W3Uc8QzSk4i0ROJ+3u2x8xZTAL2DqnDLvh7j21tLEHIE1AoXocKuhiJJCZkUuWplD40iLdigqkQHAfzSsvwIPj2jRMKsSrbrCkIfzwoNtR4fX1xOUA+lIqAW0CM4XhMnyHAK0PkwxjnJGAGnHcktPrWCOBk0to1c05eX4zdQTcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728521802; c=relaxed/simple; bh=mwJYWftdViTCM6kfCHzaMRfOjTidjO2Co5CrA/m0s1Y=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FpiyR5Mpwnz8WNqWwhDM2XFIJMS715lL3ZfB1/DGG06oJK4kRcpyY7iWPRD9psbkfqsRFszl0IJRAd2IW2jOZ9a1HuK6vhFg0GfFL6DbZrgVLEWrZiEGktTttldPnCsqU1bWsTuPRb9aDfjy8WyE91D8CeupBhredDus47TKwo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 848DAC4CEC3; Thu, 10 Oct 2024 00:56:41 +0000 (UTC) Date: Wed, 9 Oct 2024 20:56:47 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: Jiri Olsa , Alexei Starovoitov , Juri Lelli , bpf , LKML , "Jose E. Marchesi" Subject: Re: NULL pointer deref when running BPF monitor program (6.11.0-rc1) Message-ID: <20241009205647.1be1d489@gandalf.local.home> In-Reply-To: <20241010003331.gsanhvqyl5g2kgiq@treble.attlocal.net> References: <20240816101031.6dd1361b@rorschach.local.home> <20240816153040.14d36c77@rorschach.local.home> <20240819113747.31d1ae79@gandalf.local.home> <20240820110507.2ba3d541@gandalf.local.home> <20241010003331.gsanhvqyl5g2kgiq@treble.attlocal.net> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 9 Oct 2024 17:33:31 -0700 Josh Poimboeuf wrote: > > Hi Josh, > > we'd like to have information on which of tracepoint's arguments can be NULL > > > > Steven had an idea that objtool could help with that by doing something like > > what's described above.. would you have any thoughts on that? > > Objtool doesn't know anything about function arguments, I'm not sure how > this could be done unless I'm missing something. I was thinking if something like objtool (could be something else that can read the executable code) and know of where functions are. It could just see if anything tests rdi, rsi, rdx, rcx, r8 or r9 (or their 32 bit alternatives) for NULL before using or setting it. If it does, then we know that one of the arguments could possibly be NULL. -- Steve