From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7E6752222D9 for ; Sun, 19 Jul 2026 05:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784438675; cv=none; b=i9HTKDORfI7UGneW5sthb6A6oQMYdvV/4MA0mkrnPaxsoJuqa4HfMDJJvmeNIH9OpnzWdQVFfwSPjjYdrCpUjNfNcuGUaOErlu3pk1DddvGjIIXB4BJKOwen5iVjEk6uwmCgoMfm03mxpzChOKY340/1MROn6fPOE49MxfGyMY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784438675; c=relaxed/simple; bh=OOSFvJDdNurSoCrbRUreJeXNTYWMe/Uk1E+xY9naiCU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RVjYYaQOyD1P2sBrC313S06XII1fty1V4bROV47Wa1/oH8E5OvLB3QLWGCZlxXubgZ2E88SRrM2UnD0jLzGb6CPSyYrIoweu/TiSy9UKe0X5alMalR3s8ViuRxWuUHhvGPuL0rsAQZuFIeTsPRSuElzARaY27UUPoS0wzFKA3Zk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jSIwc+nP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jSIwc+nP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E5CF1F000E9; Sun, 19 Jul 2026 05:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784438674; bh=OOSFvJDdNurSoCrbRUreJeXNTYWMe/Uk1E+xY9naiCU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=jSIwc+nPqjB2w8GRy6SX2VKH37bmAkeijlVIAxsVny3Ut/2oVb7wbHDMimdk7bZG2 rUgf11+snKL6ERHcQRdJYYZvpD+hm1AybuxVvUFdDMdS2tN+DltK9iTWXgPQHm+/lh YtbhV84o1T5N/GAdGzej7adhI1MbvMB6ZBqptI3M= Date: Sun, 19 Jul 2026 07:24:25 +0200 From: Greg KH To: kadu04t Cc: luis.augenstein@tngtech.com, maximilian.huber@tngtech.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/sbom: catch ValueError from malformed shell quoting Message-ID: <2026071915-iphone-helmet-0b54@gregkh> References: <20260718184457.1861-1-otakurack@gmail.com> 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-Disposition: inline In-Reply-To: <20260718184457.1861-1-otakurack@gmail.com> On Sat, Jul 18, 2026 at 03:44:57PM -0300, kadu04t wrote: > parse_inputs_from_commands() only caught CmdParsingError and IndexError > when dispatching to command parsers, but several parsers call > shlex.split() internally, which raises ValueError on malformed shell > quoting (e.g. an unterminated quote). This exception was not caught, > so a single malformed build command would abort SBOM generation > entirely, even with fail_on_unknown_build_command=False, defeating the > purpose of tolerant mode. Do we have this today in the build system? thanks, greg k-h