Date   

[autobuilder][PATCH v2 1/3] scripts/send-qa-email: force current revision fetch

Alexis Lothoré <alexis.lothore@...>
 

From: Alexis Lothoré <alexis.lothore@...>

If we try to run send-qa-email to simulate past releases (for example, for
development or debugging), the execution will very likely fail because the
target revision to examine (ie: the poky revision) is too old, and as a
consequence is not contained in the testresults shallow clone anymore (because
testsresults history keeps moving forward as builds are triggered on
autobuilder). As a consequence, force-fetch the "target" revision, as it is
already done for the "base" revision

Signed-off-by: Alexis Lothoré <alexis.lothore@...>
---
scripts/send_qa_email.py | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index 199fe4e..f8ebe34 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -75,6 +75,7 @@ def generate_regression_report(resulttool, targetrepodir, basebranch, resultdir,
running resulttool
"""
fetch_testresults(resultdir, baserevision)
+ fetch_testresults(resultdir, comparerevision)
regreport = subprocess.check_output([resulttool, "regression-git", "-B", basebranch, "--commit", baserevision, "--commit2", comparerevision, resultdir])
with open(outputdir + "/testresult-regressions-report.txt", "wb") as f:
f.write(regreport)
--
2.39.1


[autobuilder][PATCH v2 0/3] ease send-qa-email usage with older history

Alexis Lothoré <alexis.lothore@...>
 

From: Alexis Lothoré <alexis.lothore@...>

Hello,
This is the v2 of minor patch series to ease development/debugging on
send-qa-email. There is no functional change in the patches since v1, those are
resent to fix some mess in signedoff/from fields from my email configuration.
Regards,

Alexis Lothoré (3):
scripts/send-qa-email: force current revision fetch
scripts/send-qa-email: reduce testresults shallow clone depth
scripts/send-qa-email: add target and base revisions in regression
report

scripts/send_qa_email.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

--
2.39.1


Re: [autobuilder][PATCH 0/3] ease send-qa-email usage with older history

Richard Purdie
 

On Tue, 2023-02-07 at 15:52 +0100, Alexis Lothoré wrote:
Hello Richard,

On 2/7/23 15:42, Richard Purdie wrote:
On Tue, 2023-02-07 at 15:12 +0100, Alexis Lothoré via
lists.yoctoproject.org wrote:
I assumed that no tool is currently trying to parse the regression reports, so
I chose arbitrarily the metadata format.
The reports have never been useful enough to parse so that should be
fine.
Good

@Richard : on a side note, the broken From field in my previous emails was probably
due to an accent in my name, it should be fixed now. Please let me know if you
still have issues with this, in this case I will force the --from field.
It still shows incorrectly for me. It is an issue with the bootlin mail
setup and DNS, not to do with the character encoding. My changing the
accent, it is now duplicating the signed off by lines so I'd avoid
doing that!
Well, that's a shame, sorry for the annoyance. Once the patches are approved or
lead to a v2, I will resend with "From:" forced, except if you want me to
re-send it right now.
Patches look otherwise ok to me so please resend!

Cheers,

Richard


Re: [autobuilder][PATCH 0/3] ease send-qa-email usage with older history

Alexis Lothoré <alexis.lothore@...>
 

Hello Richard,

On 2/7/23 15:42, Richard Purdie wrote:
On Tue, 2023-02-07 at 15:12 +0100, Alexis Lothoré via
lists.yoctoproject.org wrote:
I assumed that no tool is currently trying to parse the regression reports, so
I chose arbitrarily the metadata format.
The reports have never been useful enough to parse so that should be
fine.
Good

@Richard : on a side note, the broken From field in my previous emails was probably
due to an accent in my name, it should be fixed now. Please let me know if you
still have issues with this, in this case I will force the --from field.
It still shows incorrectly for me. It is an issue with the bootlin mail
setup and DNS, not to do with the character encoding. My changing the
accent, it is now duplicating the signed off by lines so I'd avoid
doing that!
Well, that's a shame, sorry for the annoyance. Once the patches are approved or
lead to a v2, I will resend with "From:" forced, except if you want me to
re-send it right now.

--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


Re: [autobuilder][PATCH 0/3] ease send-qa-email usage with older history

Richard Purdie
 

On Tue, 2023-02-07 at 15:12 +0100, Alexis Lothoré via
lists.yoctoproject.org wrote:
Hello,
this minor patch series bring minor fixes into send-qa-email to ease
development/debugging in it:
- fetching current build test results works well in CI builds because we are
sure that the build results will be in the 5 upper commits of testsresults
repository shallow clone (because it has been pushed just before preparing the
regression report). It is not true when trying to run send-qa-email offline on
older revisions (for development, debugging or improvement of scripting), so
we need to force-fetch the target revision as it is done currently for the
base revision. As a consequence, this new behaviour allows to make even more
"shallow" clones of testresults since all needed data will be force-fetched
- When downloading a test regression report on official release webserver, we do
not have information about what base have been used or what is the exact
tested revision (at least, without checking the corresponding build logs on
autobuilder). So I propose to add this information at the top of each
regression report, making it look like this:

========================== Regression report ==============================
=> Target: master (5e249ec855517765f4b99e8039cb888ffa09c211)
=> Base: 4.2_M1 (4d19594b8bdacde6d809d3f2a25cff7c5a42295e)
===========================================================================

Match: oeselftest_almalinux-9.1_qemux86-64_20221208113119
oeselftest_centos-8_qemux86-64_20230126230327
Match: oeselftest_debian-11_qemux86-64_20221208033325
oeselftest_debian-11_qemux86-64_20230126150229
[...]

I assumed that no tool is currently trying to parse the regression reports, so
I chose arbitrarily the metadata format.
The reports have never been useful enough to parse so that should be
fine.

@Richard : on a side note, the broken From field in my previous emails was probably
due to an accent in my name, it should be fixed now. Please let me know if you
still have issues with this, in this case I will force the --from field.
It still shows incorrectly for me. It is an issue with the bootlin mail
setup and DNS, not to do with the character encoding. My changing the
accent, it is now duplicating the signed off by lines so I'd avoid
doing that!

Cheers,

Richard


[autobuilder][PATCH 3/3] scripts/send-qa-email: add target and base revisions in regression report

Alexis Lothoré <alexis.lothore@...>
 

Current regression reports do not contain information about versions compared
when generating reports. While it is still possible to get the information by
searching the autobuilder log, it is not convenient. Moreover, future
developments will allow to generate multiple reports (with different bases for
comparison) in a single build.
As a consequence, embed target and base revisions in the report header

Signed-off-by: Alexis Lothoré <alexis.lothore@...>
Signed-off-by: Alexis Lothore <alexis.lothore@...>
---
scripts/send_qa_email.py | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index b87e822..e2d7284 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -78,6 +78,10 @@ def generate_regression_report(resulttool, targetrepodir, basebranch, resultdir,
fetch_testresults(resultdir, comparerevision)
regreport = subprocess.check_output([resulttool, "regression-git", "-B", basebranch, "--commit", baserevision, "--commit2", comparerevision, resultdir])
with open(outputdir + "/testresult-regressions-report.txt", "wb") as f:
+ f.write(str.encode("========================== Regression report ==============================\n"))
+ f.write(str.encode(f'{"=> Target:": <16}{basebranch: <16}({comparerevision})\n'))
+ f.write(str.encode(f'{"=> Base:": <16}{baseversion: <16}({baserevision})\n'))
+ f.write(str.encode("===========================================================================\n\n"))
f.write(regreport)
except subprocess.CalledProcessError as e:
error = str(e)
--
2.39.1


[autobuilder][PATCH 2/3] scripts/send-qa-email: reduce testresults shallow clone depth

Alexis Lothoré <alexis.lothore@...>
 

Since we are now force-fetching base revisions and target revisions for
regression report generation, we can make testresults clone even more "shallow"
to increase clone speed in CI pipelines

Signed-off-by: Alexis Lothoré <alexis.lothore@...>
Signed-off-by: Alexis Lothore <alexis.lothore@...>
---
scripts/send_qa_email.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index f8ebe34..b87e822 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -139,10 +139,10 @@ def send_qa_email():
elif basebranch:
cloneopts = ["--branch", basebranch]
try:
- subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"] + cloneopts)
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "1"] + cloneopts)
except subprocess.CalledProcessError:
print("No comparision branch found, falling back to master")
- subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"])
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "1"])

# If the base comparision branch isn't present regression comparision won't work
# at least until we can tell the tool to ignore internal branch information
--
2.39.1


[autobuilder][PATCH 1/3] scripts/send-qa-email: force current revision fetch

Alexis Lothoré <alexis.lothore@...>
 

If we try to run send-qa-email to simulate past releases (for example, for
development or debugging), the execution will very likely fail because the
target revision to examine (ie: the poky revision) is too old, and as a
consequence is not contained in the testresults shallow clone anymore (because
testsresults history keeps moving forward as builds are triggered on
autobuilder). As a consequence, force-fetch the "target" revision, as it is
already done for the "base" revision

Signed-off-by: Alexis Lothoré <alexis.lothore@...>
Signed-off-by: Alexis Lothore <alexis.lothore@...>
---
scripts/send_qa_email.py | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index 199fe4e..f8ebe34 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -75,6 +75,7 @@ def generate_regression_report(resulttool, targetrepodir, basebranch, resultdir,
running resulttool
"""
fetch_testresults(resultdir, baserevision)
+ fetch_testresults(resultdir, comparerevision)
regreport = subprocess.check_output([resulttool, "regression-git", "-B", basebranch, "--commit", baserevision, "--commit2", comparerevision, resultdir])
with open(outputdir + "/testresult-regressions-report.txt", "wb") as f:
f.write(regreport)
--
2.39.1


[autobuilder][PATCH 0/3] ease send-qa-email usage with older history

Alexis Lothoré <alexis.lothore@...>
 

Hello,
this minor patch series bring minor fixes into send-qa-email to ease
development/debugging in it:
- fetching current build test results works well in CI builds because we are
sure that the build results will be in the 5 upper commits of testsresults
repository shallow clone (because it has been pushed just before preparing the
regression report). It is not true when trying to run send-qa-email offline on
older revisions (for development, debugging or improvement of scripting), so
we need to force-fetch the target revision as it is done currently for the
base revision. As a consequence, this new behaviour allows to make even more
"shallow" clones of testresults since all needed data will be force-fetched
- When downloading a test regression report on official release webserver, we do
not have information about what base have been used or what is the exact
tested revision (at least, without checking the corresponding build logs on
autobuilder). So I propose to add this information at the top of each
regression report, making it look like this:

========================== Regression report ==============================
=> Target: master (5e249ec855517765f4b99e8039cb888ffa09c211)
=> Base: 4.2_M1 (4d19594b8bdacde6d809d3f2a25cff7c5a42295e)
===========================================================================

Match: oeselftest_almalinux-9.1_qemux86-64_20221208113119
oeselftest_centos-8_qemux86-64_20230126230327
Match: oeselftest_debian-11_qemux86-64_20221208033325
oeselftest_debian-11_qemux86-64_20230126150229
[...]

I assumed that no tool is currently trying to parse the regression reports, so
I chose arbitrarily the metadata format.

@Richard : on a side note, the broken From field in my previous emails was probably
due to an accent in my name, it should be fixed now. Please let me know if you
still have issues with this, in this case I will force the --from field.

Alexis Lothore (3):
scripts/send-qa-email: force current revision fetch
scripts/send-qa-email: reduce testresults shallow clone depth
scripts/send-qa-email: add target and base revisions in regression
report

scripts/send_qa_email.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

--
2.39.1


M+ & H bugs with Milestone Movements WW05

Stephen Jolley
 

All,

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

Priority

Bug ID

Short Description

Changer

Owner

Was

Became

Medium+

5322

Global DNS fallback mechanism not present in poky distro

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

12290

cross recipe kernel module dependency generation stopped working

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

12723

mysql requires unicode and char length filtering

david.reyna@...

david.reyna@...

4.2 M2

4.2 M3

 

12760

CMake Toolchain File Has Wrong Module Path

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13004

Automate yocto-check-layer -m option

randy.macleod@...

unassigned@...

4.2 M2

4.2 M4

 

13181

persist_data sqlite database mixed with forking is irreparably broken

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13285

YoctoProject Compatibility script improvements needed

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13425

Add bblock and bbunlock helper tools

randy.macleod@...

newcomer@...

4.2 M2

4.2 M3

 

13674

master dnf failures on qemumips

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13843

bitbake worker stuck using 100% cpu on aborted build

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13868

Python cache files get lost in packages

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13910

Intermittent host UID contamination highlighted by devtool tests

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13919

Multi License GPLv3 -lic cannot be installed into the image because it has incompatible license

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

13920

uninative tarball license compliance in ESDK

randy.macleod@...

unassigned@...

4.2 M2

4.2 M4

 

13954

Invalid layerindex data causing backtrace in `bitbake-layers layerindex-fetch`

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14118

systemd services not enabled when using package feed

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14127

cve-check falsely indicates a vulnerabily to be patched

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14126

resolvconf incompatible with busybox flock

randy.macleod@...

newcomer@...

4.2 M2

4.2 M3

 

14154

yocto-check-layer fails incorrectly with kernel hash changes

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14155

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

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14157

git fetcher: consider using different git commands for repo packing, eliminating "git pack-redundant"

randy.macleod@...

newcomer@...

4.2 M2

4.2 M3

 

14206

oe-selftest perl errors on rpm based distros

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14263

AB-INT PTEST: lttng-tools ptest intermittent failure

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14348

Layer dependencies not updated

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14383

archiver.bbclass:do_ar_mirror copies entire contents of ${DL_DIR} to ${WORKDIR} when used with npm.bbclass

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14386

patchelf breaks go -native executables

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14528

remove floppy controller from qemu

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14642

Yocto-check-layer add patch Upstream-Status check

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14786

AB-INT: prservice.BitbakePrTests.test_pr_service_deb_arch_dep failure

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14781

Add indication that a layer/branch is no longer being updated.

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14789

ltp controllers test failure

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14804

busybox and dpkg versions of start-stop-daemon disagree on symlink location

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14814

ncurses version of taskexp.py

david.reyna@...

david.reyna@...

4.2 M2

4.2 M3

 

14843

Need better messages for reproducibility errors where the only difference is in package filename

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14854

AB-INT PTEST: lttng-tools ptest intermittent failure in tools/clear/test_kernel_316

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14860

Cannot build x86-64 Go SDK on aarch64

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14866

testsdk logs missing information

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14930

connman - sysvinit - nfs/dhcp hangs in langdale/master

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

14992

layerindex: update.py fails to determine layer dependencies when collections contains "core <...>"

randy.macleod@...

unassigned@...

4.2 M2

4.2 M3

 

15000

cve_check SSL verification failure

richard.purdie@...

steve@...

4.2 M2

4.2 M3

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

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

 


Enhancements/Bugs closed WW05!

Stephen Jolley
 

All,

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

Who

Count

randy.macleod@...

4

alexandre.belloni@...

1

richard.purdie@...

1

Grand Total

6

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

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

 


Current high bug count owners for Yocto Project 4.2

Stephen Jolley
 

All,

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

Who

Count

michael.opdenacker@...

33

ross.burton@...

29

randy.macleod@...

28

richard.purdie@...

26

david.reyna@...

23

bruce.ashfield@...

20

JPEWhacker@...

10

sakib.sajal@...

8

pavel@...

7

saul.wold@...

6

tim.orling@...

4

pidge@...

4

sundeep.kokkonda@...

3

Zheng.Qiu@...

2

jon.mason@...

2

Naveen.Gowda@...

2

rybczynska@...

2

bluelightning@...

2

alexis.lothore@...

2

sgw@...

2

alexandre.belloni@...

2

yashinde145@...

1

tvgamblin@...

1

steve@...

1

hongxu.jia@...

1

mhalstead@...

1

throos@...

1

mathew.prokos@...

1

thomas.perrot@...

1

louis.rannou@...

1

Martin.Jansa@...

1

sundeep.kokkonda@...

1

Grand Total

228

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 409 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,  “4.2”, “4.3”, "4.99" and "Future", the more pressing/urgent issues being in "4.2" and then “4.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@...

 


[meta-security][dunfell][PATCH 2/2] tpm-tools: Fix pod2man race

Armin Kuster
 

On some systems, pod2man is not available so add native depends.

Signed-off-by: Armin Kuster <akuster808@...>
(cherry picked from commit 46622a3b26d8f37d3fd4e82d0452bbd1275d5b0c)
[Fixup for Dunfell context]
Signed-off-by: Armin Kuster <akuster808@...>
---
meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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.1.bb
index 658283f..158fd7f 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.1.bb
@@ -9,7 +9,7 @@ SECTION = "tpm"
LICENSE = "CPL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"

-DEPENDS = "libtspi openssl perl"
+DEPENDS = "libtspi openssl perl-native"
DEPENDS_class-native = "trousers-native"

SRCREV = "bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84"
--
2.31.1


[meta-security][dunfell][PATCH 1/2] trousers: update to tip

Armin Kuster
 

Many for compile issue now being seen.

rpc/tcstp/.libs/libtspi_la-rpc_cmk.o:/usr/src/debug/trousers/0.3.14+gitAUTOINC+4b9a70d578-r0/build/src/tspi/../../../git/src/include/tcsd.h:169: multiple definition of `tcsd_sa_int'; .libs/libtspi_la-tspi_context.o:/usr/src/debug/trousers/0.3.14+gitAUTOINC+4b9a70d578-r0/build/src/tspi/../../../git/src/include/tcsd.h:169: first defined here
| collect2: error: ld returned 1 exit status

Signed-off-by: Armin Kuster <akuster808@...>
(cherry picked from commit 55cbb636340ed7da08a0ae338b54d72c66d41242)
Signed-off-by: Armin Kuster <akuster808@...>
---
...-security-issues-that-are-present-if.patch | 94 -------------------
meta-tpm/recipes-tpm/trousers/trousers_git.bb | 3 +-
2 files changed, 1 insertion(+), 96 deletions(-)
delete mode 100644 meta-tpm/recipes-tpm/trousers/files/0001-Correct-multiple-security-issues-that-are-present-if.patch

diff --git a/meta-tpm/recipes-tpm/trousers/files/0001-Correct-multiple-security-issues-that-are-present-if.patch b/meta-tpm/recipes-tpm/trousers/files/0001-Correct-multiple-security-issues-that-are-present-if.patch
deleted file mode 100644
index 72c81d1..0000000
--- a/meta-tpm/recipes-tpm/trousers/files/0001-Correct-multiple-security-issues-that-are-present-if.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From e74dd1d96753b0538192143adf58d04fcd3b242b Mon Sep 17 00:00:00 2001
-From: Matthias Gerstner <mgerstner@...>
-Date: Fri, 14 Aug 2020 22:14:36 -0700
-Subject: [PATCH] Correct multiple security issues that are present if the tcsd
- is started by root instead of the tss user.
-
-Patch fixes the following 3 CVEs:
-
-CVE-2020-24332
-If the tcsd daemon is started with root privileges,
-the creation of the system.data file is prone to symlink attacks
-
-CVE-2020-24330
-If the tcsd daemon is started with root privileges,
-it fails to drop the root gid after it is no longer needed
-
-CVE-2020-24331
-If the tcsd daemon is started with root privileges,
-the tss user has read and write access to the /etc/tcsd.conf file
-
-Authored-by: Matthias Gerstner <mgerstner@...>
-Signed-off-by: Debora Velarde Babb <debora@...>
-
-Upstream-Status: Backport
-CVE: CVE-2020-24332
-CVE: CVE-2020-24330
-CVE: CVE-2020-24331
-
-Signed-off-by: Armin Kuster <akuster@...>
-
----
- src/tcs/ps/tcsps.c | 2 +-
- src/tcsd/svrside.c | 1 +
- src/tcsd/tcsd_conf.c | 10 +++++-----
- 3 files changed, 7 insertions(+), 6 deletions(-)
-
-Index: git/src/tcs/ps/tcsps.c
-===================================================================
---- git.orig/src/tcs/ps/tcsps.c
-+++ git/src/tcs/ps/tcsps.c
-@@ -72,7 +72,7 @@ get_file()
- }
-
- /* open and lock the file */
-- system_ps_fd = open(tcsd_options.system_ps_file, O_CREAT|O_RDWR, 0600);
-+ system_ps_fd = open(tcsd_options.system_ps_file, O_CREAT|O_RDWR|O_NOFOLLOW, 0600);
- if (system_ps_fd < 0) {
- LogError("system PS: open() of %s failed: %s",
- tcsd_options.system_ps_file, strerror(errno));
-Index: git/src/tcsd/svrside.c
-===================================================================
---- git.orig/src/tcsd/svrside.c
-+++ git/src/tcsd/svrside.c
-@@ -473,6 +473,7 @@ main(int argc, char **argv)
- }
- return TCSERR(TSS_E_INTERNAL_ERROR);
- }
-+ setgid(pwd->pw_gid);
- setuid(pwd->pw_uid);
- #endif
- #endif
-Index: git/src/tcsd/tcsd_conf.c
-===================================================================
---- git.orig/src/tcsd/tcsd_conf.c
-+++ git/src/tcsd/tcsd_conf.c
-@@ -743,7 +743,7 @@ conf_file_init(struct tcsd_config *conf)
- #ifndef SOLARIS
- struct group *grp;
- struct passwd *pw;
-- mode_t mode = (S_IRUSR|S_IWUSR);
-+ mode_t mode = (S_IRUSR|S_IWUSR|S_IRGRP);
- #endif /* SOLARIS */
- TSS_RESULT result;
-
-@@ -798,15 +798,15 @@ conf_file_init(struct tcsd_config *conf)
- }
-
- /* make sure user/group TSS owns the conf file */
-- if (pw->pw_uid != stat_buf.st_uid || grp->gr_gid != stat_buf.st_gid) {
-+ if (stat_buf.st_uid != 0 || grp->gr_gid != stat_buf.st_gid) {
- LogError("TCSD config file (%s) must be user/group %s/%s", tcsd_config_file,
-- TSS_USER_NAME, TSS_GROUP_NAME);
-+ "root", TSS_GROUP_NAME);
- return TCSERR(TSS_E_INTERNAL_ERROR);
- }
-
-- /* make sure only the tss user can manipulate the config file */
-+ /* make sure only the tss user can read (but not manipulate) the config file */
- if (((stat_buf.st_mode & 0777) ^ mode) != 0) {
-- LogError("TCSD config file (%s) must be mode 0600", tcsd_config_file);
-+ LogError("TCSD config file (%s) must be mode 0640", tcsd_config_file);
- return TCSERR(TSS_E_INTERNAL_ERROR);
- }
- #endif /* SOLARIS */
diff --git a/meta-tpm/recipes-tpm/trousers/trousers_git.bb b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
index 95e821b..992e7f2 100644
--- a/meta-tpm/recipes-tpm/trousers/trousers_git.bb
+++ b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
@@ -6,7 +6,7 @@ SECTION = "security/tpm"

DEPENDS = "openssl"

-SRCREV = "4b9a70d5789b0b74f43957a6c19ab2156a72d3e0"
+SRCREV = "e74dd1d96753b0538192143adf58d04fcd3b242b"
PV = "0.3.14+git${SRCPV}"

SRC_URI = " \
@@ -16,7 +16,6 @@ SRC_URI = " \
file://tcsd.service \
file://get-user-ps-path-use-POSIX-getpwent-instead-of-getpwe.patch \
file://0001-build-don-t-override-localstatedir-mandir-sysconfdir.patch \
- file://0001-Correct-multiple-security-issues-that-are-present-if.patch \
"

S = "${WORKDIR}/git"
--
2.31.1


[meta-security][dunfell][PATCH] libtpm: update to 0.7.2

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
(cherry picked from commit 3cd65d96c1e880d378eab070ad6ae164525b78c6)
[Buf fix update only also fixes a build issue
Fixes tpm12/tpm_nvfile.c:347:27: error: ‘%02lx’ directive writing between 2 and 8 bytes into a region of size between 0 and 4095 [-Werror=format-overflow=]
]
Signed-off-by: Armin Kuster <akuster808@...>
---
.../recipes-tpm/libtpm/{libtpm_0.7.0.bb => libtpm_0.7.2.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-tpm/recipes-tpm/libtpm/{libtpm_0.7.0.bb => libtpm_0.7.2.bb} (86%)

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

-SRCREV = "c26e8f7b08b19a69cea9e8f1f1e6639c7951fb01"
-SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-${PV}"
+SRCREV = "7325acb4777f70419fe10a1d9621c2666e977e73"
+SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-0.7.0"

PE = "1"

--
2.31.1


Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe

Takayasu Ito
 

Hi NIKHIL.

The name of the license file has been changed to accommodate SPDX.
The part of the recipe that specifies the license file with the warning needs to be replaced with the old name listed in the update history at the URL below.
https://git.yoctoproject.org/poky/commit/meta/files/common-licenses?id=2456f523cfbbae0e509797a0aefa9733f2cb13e3

On 2023/02/06 13:43, NIKHIL PATIL wrote:
hi , can someone reply on this
On Fri, Feb 3, 2023 at 7:48 PM NIKHIL PATIL <nikhilvp29@... <mailto:nikhilvp29@...>> wrote:
---------- Forwarded message ---------
From: *NIKH PATIILL* <nikhilvp29@... <mailto:nikhilvp29@...>>
Date: Fri, Feb 3, 2023 at 7:46 PM
Subject: Re: Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe
To: <openembedded-core@... <mailto:openembedded-core@...>>
Hi team ,
     i have taken the recipes from upstream (kirkstone) and put it in dunfell branch . so now i am below warnings getting
warnings
*[2023-02-02T14:54:09.524Z] WARNING: do_rootfs: The license listed LGPL-2.1-or-later was not in the licenses collected for
recipe gnutls *
*[2023-02-02T14:54:09.524Z] WARNING: do_rootfs: The license listed GPL-3.0-or-later was not in the licenses collected for
recipe gnutls *
*
*
so for this i have added respective licenses in common-licenses and added path in layer.conf but still this warnings exists
as well as i have tried multiple ways to resolve this but not happening .
          May I know what will be the possible solution for this ?
          THANKS IN ADVANCE
--
Takayasu Ito
Solution Department, Lineo Solutions, Inc.
https://www.lineo.co.jp/english/
Email: ito@...
Yocto Project Ambassador


Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe

NIKHIL PATIL <nikhilvp29@...>
 

hi , can someone reply on this


On Fri, Feb 3, 2023 at 7:48 PM NIKHIL PATIL <nikhilvp29@...> wrote:


---------- Forwarded message ---------
From: NIKHIL PATIL <nikhilvp29@...>
Date: Fri, Feb 3, 2023 at 7:46 PM
Subject: Re: Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe
To: <openembedded-core@...>


Hi team ,
     i have taken the recipes from upstream (kirkstone) and put it in dunfell branch . so now i am below warnings getting warnings 
[2023-02-02T14:54:09.524Z] WARNING:  do_rootfs: The license listed LGPL-2.1-or-later was not in the licenses collected for recipe gnutls 
[2023-02-02T14:54:09.524Z] WARNING: do_rootfs: The license listed GPL-3.0-or-later was not in the licenses collected for recipe gnutls 

so for this i have added respective licenses in common-licenses and added path in layer.conf but still this warnings exists as well as i have tried multiple ways to resolve this but not happening .
          May I know what will be the possible solution for this ?
          THANKS IN ADVANCE 


Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases? #raspberrypi

Carles Sole
 

Hi Joel,

thanks for creating the issue.

Does the solution from Aleksandr work for you with raspberrypi4-64? The funny thing is for me it doesn't. As I mentioned above if I use his solution:

for MACHINE = "raspberrypi4-64" in local.conf, the .config file has following configs:
CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set

If in the local.conf I replace the machine to MACHINE = "raspberrypi4" and I bitbake again, the .config file looks as follow:
CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_RT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y

Meaning when the machine is set to raspberrypi4-64 and CONFIG_PREEMPT_RT is requested via the .cfg file in the file .config in work directory CONFIG_PREEMPT_NONE=y is getting set. Whereas with Machine raspberrypi4 it works as expected.


Re: error when try to use sudo command in recipe

SIMON BABY
 

Hello Richard,
Same error occured from /build.sh as well.

Regards
Simon