Date   

[meta-security][PATCH] python3-fail2ban: fix building with ptest enabled

Armin Kuster
 

Use new structure for testing.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
recipes-security/fail2ban/files/run-ptest | 2 +-
recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-security/fail2ban/files/run-ptest b/recipes-security/fail2ban/files/run-ptest
index 9f6aebe..64d07d5 100644
--- a/recipes-security/fail2ban/files/run-ptest
+++ b/recipes-security/fail2ban/files/run-ptest
@@ -1,3 +1,3 @@
#!/bin/sh

-##PYTHON## fail2ban-testcases
+##PYTHON## bin/fail2ban-testcases
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
index 6767d80..b480c76 100644
--- a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
+++ b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
@@ -35,8 +35,9 @@ do_install_append () {

do_install_ptest_append () {
install -d ${D}${PTEST_PATH}
+ install -d ${D}${PTEST_PATH}/bin
sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest
- install -D ${S}/fail2ban-testcases-all-python3 ${D}${PTEST_PATH}
+ install -D ${S}/bin/* ${D}${PTEST_PATH}/bin
}

FILES_${PN} += "/run"
--
2.17.1


Re: Remove *-dev packages from final image

Khem Raj
 

On 3/8/21 3:59 AM, Mauro Ziliani wrote:
Hi all.
I'm in trouble to remove the *-dev packages from final image.
I remove dev-pkgs and dbg-pkgs from EXTRA_IMAGE_FEATURES and IMAGE_FEATURES with lines
IMAGE_FEATURES_remove = " \
       dbg-pkgs \
       dev-pkgs \
"
EXTRA_IMAGE_FEATURES_remove = " \
       dbg-pkgs \
       dev-pkgs \
"
But *-dev persists.
I suppose there is some package-group which installs *-dev
In the image recipe I includes
require recipes-sato/images/core-image-sato.bb
require recipes-fsl/images/fsl-image-multimedia-full.bb
and I force a remove with
IMAGE_INSTALL_remove = " \
        packagegroup-fsl-tools-gpu \
        imx-gpu-sdk \
        packagegroup-core-x11-sato-games \
        attr-dev \
        alsa-lib-dev \
        base-file-dev \
        connman \
"
Even if I remove alsa-lib-dev  I find it in the manifest.
I'm working with a Krogoth
Any idea?
you might find the dependency with bitbake -g <your-image> and insepcting the generated dependecy files.

Thanks all
   MZ


Re: [PATCH yocto-autobuilder-helper] config.json: add a systemd no-x11 build

Alexander Kanavin
 

Ping :)

Alex


On Wed, 3 Mar 2021 at 14:16, Alexander Kanavin via lists.yoctoproject.org <alex.kanavin=gmail.com@...> wrote:
Particularly the weston image has now regressed twice under systemd,
so I think there should be a quality gate for it.

Signed-off-by: Alexander Kanavin <alex.kanavin@...>
---
 config.json | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/config.json b/config.json
index 8025166..d6e7df8 100644
--- a/config.json
+++ b/config.json
@@ -715,8 +715,19 @@
             "SANITYTARGETS" : "core-image-full-cmdline:do_testimage core-image-weston:do_testimage",
             "extravars" : [
                 "DISTRO_FEATURES_remove = 'x11'"
-            ]
-
+            ],
+            "step1" : {
+                "shortname" : "Sysvinit weston"
+            },
+            "step2" : {
+                "shortname" : "Systemd weston",
+                "extravars" : [
+                     "TEST_SUITES_append = ' systemd'",
+                     "DISTRO_FEATURES_append = ' pam systemd'",
+                     "VIRTUAL-RUNTIME_init_manager = 'systemd'",
+                     "DISTRO_FEATURES_BACKFILL_CONSIDERED = 'sysvinit'"
+                ]
+            }
         },
         "musl-qemux86" : {
             "MACHINE" : "qemux86",
--
2.29.2





M+ & H bugs with Milestone Movements WW10

Stephen Jolley
 

All,

YP M+ or high bugs which moved to a new milestone in WW10 are listed below:

Priority

Bug ID

Short Description

Changer

Owner

Was

Became

Medium+

5389

bitbake/lib/bb/fetch2: filename too long

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

10061

Ctrl+C during BB_HASHCHECK_FUNCTION execution does not interrupt processing nicely

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

10731

bitbake --observe-only doesn't work with memres

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

11781

bitbake --observe-only may get KeyError

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

11899

broken 'bitbake --status-only' and 'bitbake -m'

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

12023

bitbake-layers show-layers doesn't show layer if it doesn't append itself to BBFILE_COLLECTIONS

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

 

 

 

3.4 M1

3.3 M4

 

12290

cross recipe kernel module dependency generation stopped working

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

 

 

 

3.4 M1

3.3 M4

 

12374

do_rootfs failed when len(TMPDIR) == 410

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

12367

moving or removing tmp breaks persistent bitbake server

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

12760

CMake Toolchain File Has Wrong Module Path

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

12963

nativesdk-opkg prefixes all internal paths with $SDKPATH and won't work

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13004

Automate yocto-check-layer -m option

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

13023

Switch to memory resident bitbake by default in 3.3

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

13039

fetch2: PREMIRROR and SRC_URI with type https and parameter downloadfilename yields invalid url

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13123

package.PackageTests.test_gdb_hardlink_debug failed

randy.macleod@...

randy.macleod@...

3.3 M3

3.3 M4

 

13181

persist_data sqlite database mixed with forking is irreparably broken

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13233

fetch2: try_premirror(): improve on updating repo from mirror

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

13236

sstate for host native packages

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13279

Make sure users/groups exist for package_write_* tasks

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13338

SDK  build fails if image contains bash

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13353

bitbake git fetcher does not honour BB_FETCH_PREMIRRORONLY

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13419

recipes that add users to groups cannot rely on other recipes creating those groups (when population from sstate happens)

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13463

test linux-yocto-rt kernels too

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13631

core-image-full-cmdline qemumips systemd boot failure

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13705

master] bitbake and hashserve.sock left behind when ^C a build

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13843

bitbake worker stuck using 100% cpu on aborted build

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13868

Python cache files get lost in packages

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13897

POSTINST_INTERCEPTS_DIR broken by undocumented POSTINST_INTERCEPTS_PATHS since thud

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13910

Intermittent host UID contamination highlighted by devtool tests

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13920

uninative tarball license compliance in ESDK

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13976

gdb8.3 do compile with musl is error

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

13998

Changing create_sdk_files doesn't rebuild buildtools-tarball

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14015

URL Arguments in MIRROR/PREMIRROR get encoded

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14023

oe-selftest doesn't work with BB_SERVER_TIMEOUT=60

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14028

Autobuilder buildtools run fails with "Qemu ended unexpectedly"

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14045

git fetcher deadlock with self-referencing sub-modules

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

14066

bitbake core-image-base -c populate_sdk fails when image contains bash, core-utils and package_deb is used

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14081

Not possible to get src package in image when using PACKAGE_DEBUG_SPLIT_STYLE='debug-file-directory'

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

14096

perl install race (pod2text)

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14090

devtool.DevtoolExtractTests.test_devtool_deploy_target selftest failure

randy.macleod@...

stacygaikovaia@...

3.3 M3

3.3 M4

 

14104

3.1.2 (not an option above) devtool finish does not copy recipe in layer

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

14128

qemuppc failed to shutdown

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14150

devtool: modify: fails for gstreamer1.0-plugins-good

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14151

devtool build fails for python3

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14154

yocto-check-layer fails incorrectly with kernel hash changes

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14155

yocto-check-layer fails with hash changes if license added

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14190

qa-extra2 failing on AB with dnf checksum failures

randy.macleod@...

ross@...

3.3 M3

3.3 M4

 

14196

Add integration to send data to KCIDB

randy.macleod@...

unassigned@...

3.3 M3

3.4 M1

 

14201

Bitbake server intermittent timeout

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14206

oe-selftest perl errors on rpm based distros

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14218

Recipe rebuilds can contaminate builds

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14244

util-linux script:_size ptest failure

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14246

devtool test failures: github tls timeout

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14251

core-image-sato-1.0-r0:do_testimage FAILED when starting qemu

randy.macleod@...

unassigned@...

3.3 M3

3.3 M4

 

14258

perl ptest intermittent failure

timothy.t.orling@...

timothy.t.orling@...

3.3 M4

---

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Enhancements/Bugs closed WW10!

Stephen Jolley
 

All,

The below were the owners of enhancements or bugs closed during the last week!

Who

Count

richard.purdie@...

3

yifan.yu@...

2

randy.macleod@...

1

doug.chapman@...

1

alexandre.belloni@...

1

Grand Total

8

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Current high bug count owners for Yocto Project 3.3

Stephen Jolley
 

All,

Below is the list as of top 50 bug owners as of the end of WW10 of who have open medium or higher bugs and enhancements against YP 3.3.   There are 38 possible work days left until the final release candidates for YP 3.3 needs to be released.

Who

Count

richard.purdie@...

30

ross@...

26

david.reyna@...

20

bluelightning@...

15

JPEWhacker@...

10

bruce.ashfield@...

9

trevor.gamblin@...

9

kai.kang@...

8

mark.morton@...

7

yifan.yu@...

6

raj.khem@...

6

chee.yang.lee@...

6

Qi.Chen@...

5

sakib.sajal@...

5

akuster808@...

5

idadelm@...

4

yi.zhao@...

4

mostthingsweb@...

3

hongxu.jia@...

3

randy.macleod@...

3

saul.wold@...

3

mingli.yu@...

3

timothy.t.orling@...

3

jeanmarie.lemetayer@...

2

limon.anibal@...

2

jaewon@...

2

stacygaikovaia@...

2

liezhi.yang@...

2

jon.mason@...

2

matthewzmd@...

2

ydirson@...

2

nicolas.dechesne@...

2

pokylinux@...

2

sangeeta.jain@...

2

alejandro@...

2

mister_rs@...

1

mhalstead@...

1

charles.davies@...

1

Martin.Jansa@...

1

anuj.mittal@...

1

mshah@...

1

kexin.hao@...

1

steve@...

1

dorindabassey@...

1

john.kaldas.enpj@...

1

shachar@...

1

matt.ranostay@...

1

kergoth@...

1

aehs29@...

1

yoctoproject@...

1

dl9pf@...

1

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Yocto Project Newcomer & Unassigned Bugs - Help Needed

Stephen Jolley
 

All,

 

The triage team is starting to try and collect up and classify bugs which a newcomer to the project would be able to work on in a way which means people can find them. They're being listed on the triage page under the appropriate heading:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs  Also please review: https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and how to create a bugzilla account at: https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work on who doesn't have deep experience with the project.  If anyone can help, please take ownership of the bug and send patches!  If anyone needs help/advice there are people on irc who can likely do so, or some of the more experienced contributors will likely be happy to help too.

 

Also, the triage team meets weekly and does its best to handle the bugs reported into the Bugzilla. The number of people attending that meeting has fallen, as have the number of people available to help fix bugs. One of the things we hear users report is they don't know how to help. We (the triage team) are therefore going to start reporting out the currently 367 unassigned or newcomer bugs.

 

We're hoping people may be able to spare some time now and again to help out with these.  Bugs are split into two types, "true bugs" where things don't work as they should and "enhancements" which are features we'd want to add to the system.  There are also roughly four different "priority" classes right now, “3.2”, “3.3, "3.99" and "Future", the more pressing/urgent issues being in "3.2" and then “3.3”.

 

Please review this link and if a bug is something you would be able to help with either take ownership of the bug, or send me (sjolley.yp.pm@...) an e-mail with the bug number you would like and I will assign it to you (please make sure you have a Bugzilla account).  The list is at: https://wiki.yoctoproject.org/wiki/Bug_Triage_Archive#Unassigned_or_Newcomer_Bugs

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Remove *-dev packages from final image

Mauro Ziliani
 

Hi all.
I'm in trouble to remove the *-dev packages from final image.

I remove dev-pkgs and dbg-pkgs from EXTRA_IMAGE_FEATURES and IMAGE_FEATURES with lines

IMAGE_FEATURES_remove = " \
       dbg-pkgs \
       dev-pkgs \
"

EXTRA_IMAGE_FEATURES_remove = " \
       dbg-pkgs \
       dev-pkgs \
"

But *-dev persists.

I suppose there is some package-group which installs *-dev

In the image recipe I includes

require recipes-sato/images/core-image-sato.bb
require recipes-fsl/images/fsl-image-multimedia-full.bb

and I force a remove with

IMAGE_INSTALL_remove = " \
        packagegroup-fsl-tools-gpu \
        imx-gpu-sdk \
        packagegroup-core-x11-sato-games \
        attr-dev \
        alsa-lib-dev \
        base-file-dev \
        connman \
"

Even if I remove alsa-lib-dev  I find it in the manifest.

I'm working with a Krogoth

Any idea?

Thanks all
   MZ



[v2][meta-security][PATCH] libtpm: update to 0.8.2

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>

--
V2]
let include the updated changes
---
.../recipes-tpm/libtpm/{libtpm_0.7.2.bb => libtpm_0.8.2.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-tpm/recipes-tpm/libtpm/{libtpm_0.7.2.bb => libtpm_0.8.2.bb} (86%)

diff --git a/meta-tpm/recipes-tpm/libtpm/libtpm_0.7.2.bb b/meta-tpm/recipes-tpm/libtpm/libtpm_0.8.2.bb
similarity index 86%
rename from meta-tpm/recipes-tpm/libtpm/libtpm_0.7.2.bb
rename to meta-tpm/recipes-tpm/libtpm/libtpm_0.8.2.bb
index 0ade01d..9784aa1 100644
--- a/meta-tpm/recipes-tpm/libtpm/libtpm_0.7.2.bb
+++ b/meta-tpm/recipes-tpm/libtpm/libtpm_0.8.2.bb
@@ -2,8 +2,8 @@ SUMMARY = "LIBPM - Software TPM Library"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e73f0786a936da3814896df06ad225a9"

-SRCREV = "7325acb4777f70419fe10a1d9621c2666e977e73"
-SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-0.7.0"
+SRCREV = "f66a719eda0b492ea3ec7852421a9d98db0a0621"
+SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-0.8"

PE = "1"

--
2.17.1


[meta-security][PATCH] tpm-tools: update to 1.3.9.1

Armin Kuster
 

drop patch included in update

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../files/05-openssl1.1_fix_data_mgmt.patch | 110 ------------------
...-tools_1.3.9.1.bb => tpm-tools_1.3.9.2.bb} | 3 +-
2 files changed, 1 insertion(+), 112 deletions(-)
delete mode 100644 meta-tpm/recipes-tpm/tpm-tools/files/05-openssl1.1_fix_data_mgmt.patch
rename meta-tpm/recipes-tpm/tpm-tools/{tpm-tools_1.3.9.1.bb => tpm-tools_1.3.9.2.bb} (91%)

diff --git a/meta-tpm/recipes-tpm/tpm-tools/files/05-openssl1.1_fix_data_mgmt.patch b/meta-tpm/recipes-tpm/tpm-tools/files/05-openssl1.1_fix_data_mgmt.patch
deleted file mode 100644
index c2a264b..0000000
--- a/meta-tpm/recipes-tpm/tpm-tools/files/05-openssl1.1_fix_data_mgmt.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-Author: Philipp Kern <pkern@debian.org>
-Subject: Fix openssl1.1 support in data_mgmt
-Date: Tue, 31 Jan 2017 22:40:10 +0100
-
-Upstream-Status: Backport
-tpm-tools_1.3.9.1-0.1.debian.tar
-
-Signed-off-by: Armin kuster <akuster808@gmail.com>
-
----
- src/data_mgmt/data_import.c | 60 ++++++++++++++++++++++++++++----------------
- 1 file changed, 39 insertions(+), 21 deletions(-)
-
---- a/src/data_mgmt/data_import.c
-+++ b/src/data_mgmt/data_import.c
-@@ -372,7 +372,7 @@ readX509Cert( const char *a_pszFile,
- goto out;
- }
-
-- if ( EVP_PKEY_type( pKey->type ) != EVP_PKEY_RSA ) {
-+ if ( EVP_PKEY_base_id( pKey ) != EVP_PKEY_RSA ) {
- logError( TOKEN_RSA_KEY_ERROR );
-
- X509_free( pX509 );
-@@ -691,8 +691,13 @@ createRsaPubKeyObject( RSA
-
- int rc = -1;
-
-- int nLen = BN_num_bytes( a_pRsa->n );
-- int eLen = BN_num_bytes( a_pRsa->e );
-+ const BIGNUM *bn;
-+ const BIGNUM *be;
-+
-+ RSA_get0_key( a_pRsa, &bn, &be, NULL );
-+
-+ int nLen = BN_num_bytes( bn );
-+ int eLen = BN_num_bytes( be );
-
- CK_RV rv;
-
-@@ -732,8 +737,8 @@ createRsaPubKeyObject( RSA
- }
-
- // Get binary representations of the RSA key information
-- BN_bn2bin( a_pRsa->n, n );
-- BN_bn2bin( a_pRsa->e, e );
-+ BN_bn2bin( bn, n );
-+ BN_bn2bin( be, e );
-
- // Create the RSA public key object
- rv = createObject( a_hSession, tAttr, ulAttrCount, a_hObject );
-@@ -760,14 +765,27 @@ createRsaPrivKeyObject( RSA
-
- int rc = -1;
-
-- int nLen = BN_num_bytes( a_pRsa->n );
-- int eLen = BN_num_bytes( a_pRsa->e );
-- int dLen = BN_num_bytes( a_pRsa->d );
-- int pLen = BN_num_bytes( a_pRsa->p );
-- int qLen = BN_num_bytes( a_pRsa->q );
-- int dmp1Len = BN_num_bytes( a_pRsa->dmp1 );
-- int dmq1Len = BN_num_bytes( a_pRsa->dmq1 );
-- int iqmpLen = BN_num_bytes( a_pRsa->iqmp );
-+ const BIGNUM *bn;
-+ const BIGNUM *be;
-+ const BIGNUM *bd;
-+ const BIGNUM *bp;
-+ const BIGNUM *bq;
-+ const BIGNUM *bdmp1;
-+ const BIGNUM *bdmq1;
-+ const BIGNUM *biqmp;
-+
-+ RSA_get0_key( a_pRsa, &bn, &be, &bd);
-+ RSA_get0_factors( a_pRsa, &bp, &bq);
-+ RSA_get0_crt_params( a_pRsa, &bdmp1, &bdmq1, &biqmp );
-+
-+ int nLen = BN_num_bytes( bn );
-+ int eLen = BN_num_bytes( be );
-+ int dLen = BN_num_bytes( bd );
-+ int pLen = BN_num_bytes( bp );
-+ int qLen = BN_num_bytes( bq );
-+ int dmp1Len = BN_num_bytes( bdmp1 );
-+ int dmq1Len = BN_num_bytes( bdmq1 );
-+ int iqmpLen = BN_num_bytes( biqmp );
-
- CK_RV rv;
-
-@@ -821,14 +839,14 @@ createRsaPrivKeyObject( RSA
- }
-
- // Get binary representations of the RSA key information
-- BN_bn2bin( a_pRsa->n, n );
-- BN_bn2bin( a_pRsa->e, e );
-- BN_bn2bin( a_pRsa->d, d );
-- BN_bn2bin( a_pRsa->p, p );
-- BN_bn2bin( a_pRsa->q, q );
-- BN_bn2bin( a_pRsa->dmp1, dmp1 );
-- BN_bn2bin( a_pRsa->dmq1, dmq1 );
-- BN_bn2bin( a_pRsa->iqmp, iqmp );
-+ BN_bn2bin( bn, n );
-+ BN_bn2bin( be, e );
-+ BN_bn2bin( bd, d );
-+ BN_bn2bin( bp, p );
-+ BN_bn2bin( bq, q );
-+ BN_bn2bin( bdmp1, dmp1 );
-+ BN_bn2bin( bdmq1, dmq1 );
-+ BN_bn2bin( biqmp, iqmp );
-
- // Create the RSA private key object
- rv = createObject( a_hSession, tAttr, ulAttrCount, a_hObject );
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
similarity index 91%
rename from meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb
rename to meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
index 88ef19f..8aeb8ac 100644
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb
+++ b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
@@ -12,12 +12,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
DEPENDS = "libtspi openssl"
DEPENDS_class-native = "trousers-native"

-SRCREV = "bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84"
+SRCREV = "bf43837575c5f7d31865562dce7778eae970052e"
SRC_URI = " \
git://git.code.sf.net/p/trousers/tpm-tools \
file://tpm-tools-extendpcr.patch \
file://04-fix-FTBFS-clang.patch \
- file://05-openssl1.1_fix_data_mgmt.patch \
file://openssl1.1_fix.patch \
"

--
2.25.1


[meta-security][PATCH] trousers: update to 0.3.15

Armin Kuster
 

includes: CVE-2020-24332, CVE-2020-24330, CVE-2020-24331

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
meta-tpm/recipes-tpm/trousers/trousers_git.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-tpm/recipes-tpm/trousers/trousers_git.bb b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
index 27b4e2f..32c9a49 100644
--- a/meta-tpm/recipes-tpm/trousers/trousers_git.bb
+++ b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
@@ -6,8 +6,8 @@ SECTION = "security/tpm"

DEPENDS = "openssl"

-SRCREV = "e74dd1d96753b0538192143adf58d04fcd3b242b"
-PV = "0.3.14+git${SRCPV}"
+SRCREV = "94144b0a1dcef6e31845d6c319e9bd7357208eb9"
+PV = "0.3.15+git${SRCPV}"

SRC_URI = " \
git://git.code.sf.net/p/trousers/trousers \
--
2.25.1


[PATCH 8/8] tpm2-tss-engine: update 1.1.0

Armin Kuster
 

LIC_FILES_CHKSUM hash changed between branches.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../{tpm2-tss-engine_1.0.1.bb => tpm2-tss-engine_1.1.0.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-tpm/recipes-tpm2/tpm2-tss-engine/{tpm2-tss-engine_1.0.1.bb => tpm2-tss-engine_1.1.0.bb} (88%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.0.1.bb b/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
similarity index 88%
rename from meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.0.1.bb
rename to meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
index ebd6d53..5395695 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.0.1.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
@@ -2,14 +2,14 @@ SUMMARY = "The tpm2-tss-engine project implements a cryptographic engine for Ope
DESCRIPTION = "The tpm2-tss-engine project implements a cryptographic engine for OpenSSL for Trusted Platform Module (TPM 2.0) using the tpm2-tss software stack that follows the Trusted Computing Groups (TCG) TPM Software Stack (TSS 2.0). It uses the Enhanced System API (ESAPI) interface of the TSS 2.0 for downwards communication. It supports RSA decryption and signatures as well as ECDSA signatures."

LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=3fb0047fd29391478a71e8e6101c76eb"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7b3ab643b9ce041de515d1ed092a36d4"

SECTION = "security/tpm"

DEPENDS = "autoconf-archive-native bash-completion libtss2 libgcrypt openssl"

-SRCREV = "24f1383cc6befde44d6f01a51ea653304d844ffd"
-SRC_URI = "git://github.com/tpm2-software/tpm2-tss-engine.git;branch=v1.0.x"
+SRCREV = "6f387a4efe2049f1b4833e8f621c77231bc1eef4"
+SRC_URI = "git://github.com/tpm2-software/tpm2-tss-engine.git;branch=v1.1.x"

inherit autotools-brokensep pkgconfig systemd

--
2.17.1


[PATCH 7/8] tpm2-topt: update 0.3.0

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../tpm2-totp/{tpm2-totp_0.2.1.bb => tpm2-totp_0.3.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-tpm/recipes-tpm2/tpm2-totp/{tpm2-totp_0.2.1.bb => tpm2-totp_0.3.0.bb} (74%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.2.1.bb b/meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.3.0.bb
similarity index 74%
rename from meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.2.1.bb
rename to meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.3.0.bb
index 264484f..dfebc07 100644
--- a/meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.2.1.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-totp/tpm2-totp_0.3.0.bb
@@ -9,8 +9,8 @@ DEPENDS = "autoconf-archive libtss2-dev qrencode"

PE = "1"

-SRCREV = "bfd581986353edc1058604e77cac804bd8b0d30a"
-SRC_URI = "git://github.com/tpm2-software/tpm2-totp.git;branch=v0.2.x"
+SRCREV = "96a1448753a48974149003bc90ea3990ae8e8d0b"
+SRC_URI = "git://github.com/tpm2-software/tpm2-totp.git"

inherit autotools-brokensep pkgconfig

--
2.17.1


[PATCH 6/8] tpm2-pkcs11: update to 1.5.0

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../tpm2-pkcs11/{tpm2-pkcs11_1.4.0.bb => tpm2-pkcs11_1.5.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-tpm/recipes-tpm2/tpm2-pkcs11/{tpm2-pkcs11_1.4.0.bb => tpm2-pkcs11_1.5.0.bb} (96%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.4.0.bb b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.5.0.bb
similarity index 96%
rename from meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.4.0.bb
rename to meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.5.0.bb
index 6beb67a..d53d4fa 100644
--- a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.4.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.5.0.bb
@@ -10,7 +10,7 @@ SRC_URI = "git://github.com/tpm2-software/tpm2-pkcs11.git;branch=1.X \
file://bootstrap_fixup.patch \
file://0001-remove-local-binary-checkes.patch"

-SRCREV = "78bbf6a0237351830d0c3923b25ba0b57ae0b7e9"
+SRCREV = "5d583351028eebd470f50ec35db5dcf00533df31"

S = "${WORKDIR}/git"

--
2.17.1


[PATCH 5/8] tpm2-tss: update to 3.0.3

Armin Kuster
 

include automate 2.70 fix

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
...fix-compatibility-with-autoconf-2.70.patch | 48 +++++++++++++++++++
.../{tpm2-tss_2.4.3.bb => tpm2-tss_3.0.3.bb} | 6 ++-
2 files changed, 52 insertions(+), 2 deletions(-)
create mode 100644 meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch
rename meta-tpm/recipes-tpm2/tpm2-tss/{tpm2-tss_2.4.3.bb => tpm2-tss_3.0.3.bb} (91%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch
new file mode 100644
index 0000000..cae2e76
--- /dev/null
+++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch
@@ -0,0 +1,48 @@
+From 03cca78d24d716eec792f86f5b0bc69886fad981 Mon Sep 17 00:00:00 2001
+From: Patrick McCarty <patrick.mccarty@intel.com>
+Date: Fri, 18 Dec 2020 01:54:05 +0000
+Subject: [PATCH] configure.ac: fix compatibility with autoconf 2.70
+
+With autoconf 2.70, not quoting the second argument to one of the AS_IF
+macro expansions leads to generation of invalid shell code affecting the
+first nested ERROR_IF_NO_PROG expansion.
+
+The invalid shell code leads to an error resembling:
+
+ ./configure: line 18826: syntax error near unexpected token `newline'
+ ./configure: line 18826: ` '''
+
+Fix the issue by quoting the second argument to the affected AS_IF,
+similar to the quoting found elsewhere in configure.ac.
+
+Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
+
+Upstream-Status: Backport
+Signed-off-by: Armin Kuster <akuster808@gmail.com>
+
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: tpm2-tss-3.0.3/configure.ac
+===================================================================
+--- tpm2-tss-3.0.3.orig/configure.ac
++++ tpm2-tss-3.0.3/configure.ac
+@@ -279,7 +279,7 @@ AC_ARG_ENABLE([integration],
+ [build and execute integration tests])],,
+ [enable_integration=no])
+ AS_IF([test "x$enable_integration" = "xyes"],
+- AS_IF([test "$HOSTOS" = "Linux"],
++ [AS_IF([test "$HOSTOS" = "Linux"],
+ [ERROR_IF_NO_PROG([ss])],
+ [ERROR_IF_NO_PROG([sockstat])])
+ ERROR_IF_NO_PROG([echo])
+@@ -328,7 +328,7 @@ AS_IF([test "x$enable_integration" = "xy
+ [AC_MSG_ERROR([No simulator executable found in PATH for testing TCTI.])])
+ AC_SUBST([INTEGRATION_TCTI], [$integration_tcti])
+ AC_SUBST([INTEGRATION_ARGS], [$integration_args])
+- AC_SUBST([ENABLE_INTEGRATION], [$enable_integration]))
++ AC_SUBST([ENABLE_INTEGRATION], [$enable_integration])])
+ AM_CONDITIONAL([ENABLE_INTEGRATION],[test "x$enable_integration" = "xyes"])
+ #
+ # sanitizer compiler flags
diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.4.3.bb b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
similarity index 91%
rename from meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.4.3.bb
rename to meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
index 78be513..b2486e5 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.4.3.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
@@ -6,8 +6,10 @@ SECTION = "tpm"

DEPENDS = "autoconf-archive-native libgcrypt openssl"

-SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
-SRC_URI[sha256sum] = "e294677f8993234d0adfa191a5cbf9c5b83cc60c724c233e3d631c26712abea0"
+SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \
+ file://0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch \
+ "
+SRC_URI[sha256sum] = "78392be7309baf47f51b122f566ac915fd4d1760ea78571cba2e1484f9b5be17"

inherit autotools pkgconfig systemd extrausers

--
2.17.1


[PATCH 4/8] tpm2-tools: update to 5.0

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../tpm2-tools/{tpm2-tools_4.3.0.bb => tpm2-tools_5.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-tpm/recipes-tpm2/tpm2-tools/{tpm2-tools_4.3.0.bb => tpm2-tools_5.0.bb} (81%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_4.3.0.bb b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
similarity index 81%
rename from meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_4.3.0.bb
rename to meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index 5bd26ab..dbd324a 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_4.3.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -8,6 +8,6 @@ DEPENDS = "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"

SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"

-SRC_URI[sha256sum] = "ae009b3495b44a16faa3d94d41ac9c9d99c71723482efad53c5eea17eeed80fc"
+SRC_URI[sha256sum] = "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed4862e96162a8c91ba1"

inherit autotools pkgconfig bash-completion
--
2.17.1


[PATCH 3/8] tpm2-abrmd: update to 2.4.0

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
.../tpm2-abrmd/{tpm2-abrmd_2.3.3.bb => tpm2-abrmd_2.4.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-tpm/recipes-tpm2/tpm2-abrmd/{tpm2-abrmd_2.3.3.bb => tpm2-abrmd_2.4.0.bb} (97%)

diff --git a/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.3.3.bb b/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
similarity index 97%
rename from meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.3.3.bb
rename to meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
index d2a1c47..edfcce9 100644
--- a/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.3.3.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
@@ -18,7 +18,7 @@ SRC_URI = "\
file://tpm2-abrmd.default \
"

-SRCREV = "4cdda466010a3699ebe967d990ac715ae3de7d35"
+SRCREV = "4f332013a02c422e186c4aaf127ab6a40b996028"

S = "${WORKDIR}/git"

--
2.17.1


[PATCH 2/8] ibmtpm2tss: update to 1.6.0

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
...efile.am-expand-wildcards-in-prereqs.patch | 30 ++++++++-----------
...bmtpm2tss_1.5.0.bb => ibmtpm2tss_1.6.0.bb} | 2 +-
2 files changed, 14 insertions(+), 18 deletions(-)
rename meta-tpm/recipes-tpm2/ibmtpm2tss/{ibmtpm2tss_1.5.0.bb => ibmtpm2tss_1.6.0.bb} (95%)

diff --git a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch
index 8b13fb6..cfda80f 100644
--- a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch
+++ b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch
@@ -15,17 +15,15 @@ Signed-off-by: Jens Rehsack <sno@netbsd.org>
utils12/Makefile.am | 8 ++++-
2 files changed, 79 insertions(+), 4 deletions(-)

-diff --git a/utils/Makefile.am b/utils/Makefile.am
-index 1e51fe3..170a26e 100644
---- a/utils/Makefile.am
-+++ b/utils/Makefile.am
-@@ -81,9 +81,78 @@ libibmtssutils_la_LIBADD = libibmtss.la $(LIBCRYPTO_LIBS)
+Index: git/utils/Makefile.am
+===================================================================
+--- git.orig/utils/Makefile.am
++++ git/utils/Makefile.am
+@@ -85,9 +85,78 @@ libibmtssutils_la_LIBADD = libibmtss.la

- noinst_HEADERS = CommandAttributes.h imalib.h tssdev.h ntc2lib.h tssntc.h Commands_fp.h objecttemplates.h tssproperties.h cryptoutils.h Platform.h tssauth.h tsssocket.h ekutils.h eventlib.h tssccattributes.h
+ noinst_HEADERS = CommandAttributes.h imalib.h tssdev.h ntc2lib.h tssntc.h Commands_fp.h objecttemplates.h tssproperties.h cryptoutils.h Platform.h tssauth.h tsssocket.h ekutils.h eventlib.h efilib.h tssccattributes.h
# install every header in ibmtss
-nobase_include_HEADERS = ibmtss/*.h
--
--notrans_man_MANS = man/man1/*.1
+nobase_include_HEADERS = ibmtss/ActivateCredential_fp.h ibmtss/ActivateIdentity_fp.h ibmtss/BaseTypes.h \
+ ibmtss/CertifyCreation_fp.h ibmtss/Certify_fp.h ibmtss/CertifyX509_fp.h ibmtss/ChangeEPS_fp.h \
+ ibmtss/ChangePPS_fp.h ibmtss/ClearControl_fp.h ibmtss/Clear_fp.h ibmtss/ClockRateAdjust_fp.h \
@@ -65,7 +63,8 @@ index 1e51fe3..170a26e 100644
+ ibmtss/tssmarshal.h ibmtss/tssprintcmd.h ibmtss/tssprint.h ibmtss/tssresponsecode.h ibmtss/tsstransmit.h \
+ ibmtss/tssutils.h ibmtss/Unmarshal12_fp.h ibmtss/Unmarshal_fp.h ibmtss/Unseal_fp.h ibmtss/VerifySignature_fp.h \
+ ibmtss/ZGen_2Phase_fp.h
-+
+
+-notrans_man_MANS = man/man1/*.1
+notrans_man_MANS = man/man1/tssactivatecredential.1 man/man1/tsscertify.1 man/man1/tsscertifycreation.1 \
+ man/man1/tsscertifyx509.1 man/man1/tsschangeeps.1 man/man1/tsschangepps.1 man/man1/tssclear.1 \
+ man/man1/tssclearcontrol.1 man/man1/tssclockrateadjust.1 man/man1/tssclockset.1 man/man1/tsscommit.1 \
@@ -101,11 +100,11 @@ index 1e51fe3..170a26e 100644

if CONFIG_TPM20
noinst_HEADERS += tss20.h tssauth20.h ibmtss/tssprintcmd.h
-diff --git a/utils12/Makefile.am b/utils12/Makefile.am
-index a01f47c..e9fe61e 100644
---- a/utils12/Makefile.am
-+++ b/utils12/Makefile.am
-@@ -9,7 +9,13 @@ libibmtssutils12_la_CFLAGS = -I$(top_srcdir)/utils
+Index: git/utils12/Makefile.am
+===================================================================
+--- git.orig/utils12/Makefile.am
++++ git/utils12/Makefile.am
+@@ -9,7 +9,13 @@ libibmtssutils12_la_CFLAGS = -I$(top_src
# result: [current-age].age.revision
libibmtssutils12_la_LDFLAGS = -version-info @TSSLIB_VERSION_INFO@ ../utils/libibmtss.la

@@ -120,6 +119,3 @@ index a01f47c..e9fe61e 100644
noinst_HEADERS = ekutils12.h

bin_PROGRAMS = activateidentity createendorsementkeypair createwrapkey extend flushspecific getcapability loadkey2 makeidentity nvdefinespace nvreadvalueauth nvreadvalue nvwritevalueauth nvwritevalue oiap osap ownerreadinternalpub ownersetdisable pcrread quote2 sign startup takeownership tpminit createekcert makeekblob eventextend imaextend
---
-2.17.1
-
diff --git a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.6.0.bb
similarity index 95%
rename from meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb
rename to meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.6.0.bb
index 18ad7eb..4d9b554 100644
--- a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb
+++ b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.6.0.bb
@@ -17,7 +17,7 @@ DEPENDS = "openssl ibmswtpm2"

inherit autotools pkgconfig

-SRCREV = "aa6c6ec83793ba21782033c03439977c26d3cc87"
+SRCREV = "3e736f712ba53c8f06e66751f60fae428fd2e20f"
SRC_URI = " git://git.code.sf.net/p/ibmtpm20tss/tss;nobranch=1 \
file://0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch \
"
--
2.17.1


[PATCH 1/8] libtpm: update to 0.8.2

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
meta-tpm/recipes-tpm/libtpm/{libtpm_0.7.2.bb => libtpm_0.8.2.bb} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename meta-tpm/recipes-tpm/libtpm/{libtpm_0.7.2.bb => libtpm_0.8.2.bb} (100%)

diff --git a/meta-tpm/recipes-tpm/libtpm/libtpm_0.7.2.bb b/meta-tpm/recipes-tpm/libtpm/libtpm_0.8.2.bb
similarity index 100%
rename from meta-tpm/recipes-tpm/libtpm/libtpm_0.7.2.bb
rename to meta-tpm/recipes-tpm/libtpm/libtpm_0.8.2.bb
--
2.17.1


Re: Memory tracker in c++

Randy MacLeod
 

On 2021-03-05 3:03 p.m., Mauro Ziliani wrote:
Hi all
I'm looking for a memory track to investigate how many memory my application needs.
The application di made with Qt/Qml 5.6 over a Krogoth on Imx6dl board.

Do you have some suggestion?

I'd initialize the library in the main()
Then I run some function to get  the memory consumption

glibc has mallinfo:

https://stackoverflow.com/questions/8335402/how-to-find-how-much-memory-is-actually-used-up-by-a-malloc-call


I try valgrind but it is too heavy for the poor imx


Yep, it's a beast!

There are lighter memory debuggers such as the AddresssSanitizer:

https://stackoverflow.com/questions/47251533/memory-address-sanitizer-vs-valgrind

which links to a small wiki: Address Sanitizer Comparison Of Memory Tools

https://github.com/google/sanitizers/wiki/AddressSanitizerComparisonOfMemoryTools


Let us know if either of those approaches work for you.

Good luck,

../Randy



Thanks all

MZ

Sent from Mailspring, the best free email app for work




-- 
# Randy MacLeod
# Wind River Linux

2881 - 2900 of 55464