lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87a5916k7h.fsf@microsoft.com>
Date: Mon, 31 Mar 2025 13:04:02 -0700
From: Blaise Boscaccy <bboscaccy@...ux.microsoft.com>
To: Jarkko Sakkinen <jarkko@...nel.org>
Cc: Jonathan Corbet <corbet@....net>, David Howells <dhowells@...hat.com>,
 Herbert Xu <herbert@...dor.apana.org.au>, "David S. Miller"
 <davem@...emloft.net>, Paul Moore <paul@...l-moore.com>, James Morris
 <jmorris@...ei.org>, "Serge E. Hallyn" <serge@...lyn.com>, Masahiro Yamada
 <masahiroy@...nel.org>, Nathan Chancellor <nathan@...nel.org>, Nicolas
 Schier <nicolas@...sle.eu>, Shuah Khan <shuah@...nel.org>, Mickaël Salaün
 <mic@...ikod.net>, Günther Noack <gnoack@...gle.com>, Nick
 Desaulniers
 <nick.desaulniers+lkml@...il.com>, Bill Wendling <morbo@...gle.com>,
 Justin Stitt <justinstitt@...gle.com>, Jan Stancek <jstancek@...hat.com>,
 Neal Gompa <neal@...pa.dev>, linux-doc@...r.kernel.org,
 linux-kernel@...r.kernel.org, keyrings@...r.kernel.org,
 linux-crypto@...r.kernel.org, linux-security-module@...r.kernel.org,
 linux-kbuild@...r.kernel.org, linux-kselftest@...r.kernel.org,
 bpf@...r.kernel.org, llvm@...ts.linux.dev, nkapron@...gle.com,
 teknoraver@...a.com, roberto.sassu@...wei.com, xiyou.wangcong@...il.com
Subject: Re: [RFC PATCH security-next 3/4] hornet: Add an example lskel data
 extactor script

Jarkko Sakkinen <jarkko@...nel.org> writes:

> On Fri, Mar 21, 2025 at 09:45:05AM -0700, Blaise Boscaccy wrote:
>> This script eases lskel developments against hornet by generating the
>
> 1. What iskel?

It's a "light-skeleton". I'll remove the abbreviations from this
patchset's commit messages. The jargon is hard enough to grok as-is. 

> 2. Why hornet is here in lower case?
>

Typo. Thanks for finding that. 

>> data payload used for code signing. It extracts the data out of the
>> autogenerated lskel header that gets created via bpftool.
>> 
>> Signed-off-by: Blaise Boscaccy <bboscaccy@...ux.microsoft.com>
>> ---
>>  scripts/hornet/extract-skel.sh | 29 +++++++++++++++++++++++++++++
>>  1 file changed, 29 insertions(+)
>>  create mode 100755 scripts/hornet/extract-skel.sh
>> 
>> diff --git a/scripts/hornet/extract-skel.sh b/scripts/hornet/extract-skel.sh
>> new file mode 100755
>> index 0000000000000..9ace78794b85e
>> --- /dev/null
>> +++ b/scripts/hornet/extract-skel.sh
>> @@ -0,0 +1,29 @@
>> +#!/bin/bash
>> +# SPDX-License-Identifier: GPL-2.0
>> +#
>> +# Copyright (c) 2025 Microsoft Corporation
>> +#
>> +# This program is free software; you can redistribute it and/or
>> +# modify it under the terms of version 2 of the GNU General Public
>> +# License as published by the Free Software Foundation.
>> +
>> +function usage() {
>> +    echo "Sample script for extracting instructions and map data out of"
>> +    echo "autogenerated eBPF lskel headers"
>> +    echo ""
>> +    echo "USAGE: header_file output_file"
>> +    exit
>> +}
>> +
>> +ARGC=$#
>> +
>> +EXPECTED_ARGS=2
>> +
>> +if [ $ARGC -ne $EXPECTED_ARGS ] ; then
>> +    usage
>> +else
>> +    printf $(gcc -E $1 | grep "static const char opts_insn" | \
>> +		 awk -F"=" '{print $2}' | sed 's/;\+$//' | sed 's/\"//g') > $2
>> +    printf $(gcc -E $1 | grep "static const char opts_data" | \
>> +		 awk -F"=" '{print $2}' | sed 's/;\+$//' | sed 's/\"//g') >> $2
>> +fi
>> -- 
>> 2.48.1
>> 
>
> BR, Jarkko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ