<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/scripts/sbom, branch master</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>scripts/sbom: catch ValueError from malformed shell quoting</title>
<updated>2026-07-31T12:19:36+00:00</updated>
<author>
<name>Carlos Sampaio Ribeiro</name>
<email>otakurack@gmail.com</email>
</author>
<published>2026-07-19T08:18:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c16ce856e422e73a54c41131e0332de1afe09b8b'/>
<id>c16ce856e422e73a54c41131e0332de1afe09b8b</id>
<content type='text'>
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.

The issue was found while reviewing the exception handling around the
saved-command parser after running its existing tests. It can be
reproduced with:

    parse_inputs_from_commands('gcc "unterminated',
                               fail_on_unknown_build_command=False)

Catch ValueError alongside CmdParsingError and IndexError so such
commands are logged as a warning/error and skipped instead of aborting
the whole run.

Add tests covering malformed shell quoting and a missing positional
argument.

Signed-off-by: Carlos Sampaio Ribeiro &lt;otakurack@gmail.com&gt;
Link: https://patch.msgid.link/20260719081859.1001-1-otakurack@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

The issue was found while reviewing the exception handling around the
saved-command parser after running its existing tests. It can be
reproduced with:

    parse_inputs_from_commands('gcc "unterminated',
                               fail_on_unknown_build_command=False)

Catch ValueError alongside CmdParsingError and IndexError so such
commands are logged as a warning/error and skipped instead of aborting
the whole run.

Add tests covering malformed shell quoting and a missing positional
argument.

Signed-off-by: Carlos Sampaio Ribeiro &lt;otakurack@gmail.com&gt;
Link: https://patch.msgid.link/20260719081859.1001-1-otakurack@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add unit tests for SPDX-License-Identifier parsing</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:21:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=880bae5f1269b4d81bb2a254963e84377cd37bc1'/>
<id>880bae5f1269b4d81bb2a254963e84377cd37bc1</id>
<content type='text'>
Verify that SPDX-License-Identifier headers at the top of source files
are parsed correctly.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Verify that SPDX-License-Identifier headers at the top of source files
are parsed correctly.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add unit tests for command parsers</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:21:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0de18f407c8169b51a525e208c0cd690df2d2b1a'/>
<id>0de18f407c8169b51a525e208c0cd690df2d2b1a</id>
<content type='text'>
Add unit tests to verify that command parsers correctly extract
input files from build commands.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add unit tests to verify that command parsers correctly extract
input files from build commands.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add SPDX build graph</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:21:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=db8d07ef5e81457eb330240945d56d83a5a68b01'/>
<id>db8d07ef5e81457eb330240945d56d83a5a68b01</id>
<content type='text'>
Implement the SPDX build graph to describe the relationships
between source files in the source SBOM and output files in
the output SBOM.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the SPDX build graph to describe the relationships
between source files in the source SBOM and output files in
the output SBOM.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add SPDX source graph</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=e70c84a5649e6e233326a22732dc08f9c31d4f43'/>
<id>e70c84a5649e6e233326a22732dc08f9c31d4f43</id>
<content type='text'>
Implement the SPDX source graph which contains all source files
involved during the build, along with the licensing information
for each file.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the SPDX source graph which contains all source files
involved during the build, along with the licensing information
for each file.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add SPDX output graph</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b01912114e2c1b378287fcdd013bb9a894d1879e'/>
<id>b01912114e2c1b378287fcdd013bb9a894d1879e</id>
<content type='text'>
Implement the SPDX output graph which contains the distributable
build outputs and high level metadata about the build.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the SPDX output graph which contains the distributable
build outputs and high level metadata about the build.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: collect file metadata</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=ef0675c8712fea2db638594e619e7a557c2502d6'/>
<id>ef0675c8712fea2db638594e619e7a557c2502d6</id>
<content type='text'>
Implement the kernel_file module that collects file metadata,
including license identifier for source files, SHA-256 hash,
Git blob object ID, an estimation of the file type, and
whether files belong to the source, build, or output SBOM.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the kernel_file module that collects file metadata,
including license identifier for source files, SHA-256 hash,
Git blob object ID, an estimation of the file type, and
whether files belong to the source, build, or output SBOM.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add shared SPDX elements</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=11f9c14d0e498933b586f8de2e3d0f0c9b22dfee'/>
<id>11f9c14d0e498933b586f8de2e3d0f0c9b22dfee</id>
<content type='text'>
Implement shared SPDX elements used in all three documents.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement shared SPDX elements used in all three documents.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add JSON-LD serialization</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a68a29a1cc3ae6c129acdf945964dea16c8a49dc'/>
<id>a68a29a1cc3ae6c129acdf945964dea16c8a49dc</id>
<content type='text'>
Add infrastructure to serialize an SPDX graph as a JSON-LD
document. NamespaceMaps in the SPDX document are converted
to custom prefixes in the @context field of the JSON-LD output.

The SBOM tool uses NamespaceMaps solely to shorten SPDX IDs,
avoiding repetition of full namespace URIs by using short prefixes.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add infrastructure to serialize an SPDX graph as a JSON-LD
document. NamespaceMaps in the SPDX document are converted
to custom prefixes in the @context field of the JSON-LD output.

The SBOM tool uses NamespaceMaps solely to shorten SPDX IDs,
avoiding repetition of full namespace URIs by using short prefixes.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/sbom: add SPDX classes</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:20:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=06f4e57165caf3012876b211cb687ba802188aff'/>
<id>06f4e57165caf3012876b211cb687ba802188aff</id>
<content type='text'>
Implement Python dataclasses to model the SPDX classes
required within an SPDX document. The class and property
names are consistent with the SPDX 3.0.1 specification.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement Python dataclasses to model the SPDX classes
required within an SPDX document. The class and property
names are consistent with the SPDX 3.0.1 specification.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
