Bruce Ashfield [Wed, 24 Aug 2022 01:42:22 +0000 (21:42 -0400)]
linux-yocto/5.19: update to v5.19.1
Updating to the latest korg -stable release that comprises
the following commits:
d654f7e29909 Linux 5.19.1 f6664a403f11 x86/speculation: Add LFENCE to RSB fill sequence f826d0412d80 x86/speculation: Add RSB VM Exit protections 224b653547fa macintosh/adb: fix oob read in do_adb_query() function 7f64bc0c090c Bluetooth: btusb: Add Realtek RTL8852C support ID 0x13D3:0x3586 651880ed7d39 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x13D3:0x3587 7562b32d7531 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x0CB8:0xC558 17da5b394ba4 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x04C5:0x1675 9122622a9d2a Bluetooth: btusb: Add Realtek RTL8852C support ID 0x04CA:0x4007 cb79e61c28b9 Bluetooth: btusb: Add support of IMC Networks PID 0x3568 34464228344c dt-bindings: bluetooth: broadcom: Add BCM4349B1 DT binding 18b04e68252f Bluetooth: hci_bcm: Add DT compatible for CYW55572 f7b229ecf21a Bluetooth: hci_bcm: Add BCM4349B1 variant 60ef27c1c77f Bluetooth: hci_qca: Return wakeup for qca_wakeup 9283e708a9b8 arm64: set UXN on swapper page tables 231276d2c6cc ata: sata_mv: Fixes expected number of resources now IRQs are gone d069dcffef84 crypto: arm64/poly1305 - fix a read out-of-bound cd5a88272762 ACPI: APEI: Better fix to avoid spamming the console with old error logs eb5595ac6aee ACPI: video: Shortening quirk list by identifying Clevo by board_name only 5ab9b078c4ff ACPI: video: Force backlight native for some TongFang devices 7c8e33cc2a49 tools/vm/slabinfo: Handle files in debugfs 28a9cbc1c927 block: fix default IO priority handling again
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Wed, 24 Aug 2022 01:42:21 +0000 (21:42 -0400)]
linux-yocto/5.15: update to v5.15.60
Updating to the latest korg -stable release that comprises
the following commits:
7217df812798 Linux 5.15.60 5c5c77746ce1 x86/speculation: Add LFENCE to RSB fill sequence 7fcd99e889c0 x86/speculation: Add RSB VM Exit protections c81d1bb58c88 macintosh/adb: fix oob read in do_adb_query() function d98cf2b40c20 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x13D3:0x3586 ee421ad8973b Bluetooth: btusb: Add Realtek RTL8852C support ID 0x13D3:0x3587 59689a843bc9 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x0CB8:0xC558 b653eeaa8cf8 Bluetooth: btusb: Add Realtek RTL8852C support ID 0x04C5:0x1675 d4f921efb4bf Bluetooth: btusb: Add Realtek RTL8852C support ID 0x04CA:0x4007 04e3388eeb47 Bluetooth: btusb: Add support of IMC Networks PID 0x3568 6a5ec48fb752 dt-bindings: bluetooth: broadcom: Add BCM4349B1 DT binding 88e088e29487 Bluetooth: hci_bcm: Add DT compatible for CYW55572 2aa38f0af306 Bluetooth: hci_bcm: Add BCM4349B1 variant 37b385c78cd5 btrfs: zoned: fix critical section of relocation inode writeback 5e04c8bf42d8 btrfs: zoned: prevent allocation from previous data relocation BG 775871d4be0d arm64: set UXN on swapper page tables a619a0312099 KVM: x86/svm: add __GFP_ACCOUNT to __sev_dbg_{en,de}crypt_user() e423893fe320 selftests: KVM: Handle compiler optimizations in ucall bc2cee443c74 tools/kvm_stat: fix display of error when multiple processes are found 9acd899d2feb KVM: selftests: Make hyperv_clock selftest more stable ad6fd99d5feb KVM: x86: do not set st->preempted when going back to user space 92343314d34e KVM: x86: do not report a vCPU as preempted outside instruction boundaries 3d4c28475ee3 crypto: arm64/poly1305 - fix a read out-of-bound 397c2116cbe2 ACPI: APEI: Better fix to avoid spamming the console with old error logs e7170bcda613 ACPI: video: Shortening quirk list by identifying Clevo by board_name only 3a5fab5c4505 ACPI: video: Force backlight native for some TongFang devices 9894717519cc tools/vm/slabinfo: Handle files in debugfs 7ad47f414b40 block: fix default IO priority handling again e889a4c440eb selftests/bpf: Check dst_port only on the client socket 119debdb9f25 selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads df9692b8a319 x86/speculation: Make all RETbleed mitigations 64-bit only
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Peter Bergin [Tue, 23 Aug 2022 11:02:27 +0000 (13:02 +0200)]
rust-cross-canadian: rename shell variables for easier appends
Make unique shell variable names for cargo and rust
setup scripts. This change will make it easier to append to the
scripts in a bbappend file by using the variable for the script.
Before this change it was only possible for the last script as
they shared the same variable name.
Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Tue, 23 Aug 2022 01:47:05 +0000 (18:47 -0700)]
rng-tools: Remove depndencies on hwrng
Delete dependency on dev-hwrng.device and systemd-udev-settle services
as they can be troublesome because difference devices may have different
devices to detect resulting in delayed boot.
do not run if included in a container image
Add EXTRA_ARGS via /etc/default/rng-tools e.g. if your device has
hw RNG then something like this
EXTRA_ARGS="-r /dev/hwrng"
You can also use drop-ins for enhacing systemd unit file from machine
layer via a bbappend and adding a fragment to systemd
Chen Qi [Thu, 18 Aug 2022 03:13:05 +0000 (20:13 -0700)]
python3-hypothesis: revert back to 6.46.11
This package was broken since it was upgraded to 6.48, because
it started using 'exceptiongroup' since then, which is missing
in any meta layer. On target, when importing hypothesis, we meet
the following error:
Traceback (most recent call last):
File "/usr/lib64/python3.10/site-packages/hypothesis/internal/compat.py", line 18, in <module>
BaseExceptionGroup = BaseExceptionGroup
NameError: name 'BaseExceptionGroup' is not defined. Did you mean: 'BaseException'?
ModuleNotFoundError: No module named 'exceptiongroup'
The related codes as below:
try:
BaseExceptionGroup = BaseExceptionGroup
ExceptionGroup = ExceptionGroup # pragma: no cover
except NameError:
from exceptiongroup import (
BaseExceptionGroup as BaseExceptionGroup,
ExceptionGroup as ExceptionGroup,
)
We can see that it tries to use ExceptionGroup and falls back to
use an import from exceptiongroup module.
Looking at the https://github.com/agronholm/exceptiongroup, it says:
"""
This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.
"""
So instead of adding a new recipe for exception group, it might be
better to revert to a working version and wait for python 3.11 to release.
Ross Burton [Mon, 22 Aug 2022 15:19:50 +0000 (16:19 +0100)]
oeqa/selftest: rewrite gdbserver test
The gdbserver test case didn't actually work and doesn't follow the
documentation for how to use gdbserver in Yocto. Rewrite the test case
to follow the documented process so if that breaks then we're aware.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 22 Aug 2022 15:19:49 +0000 (16:19 +0100)]
oeqa/commands: add support for running cross tools to runCmd
If native_sysroot is passed, also support the caller passing in the
target_sys and add that to the path if so. This allows runCmd() to be
used to invoke the cross tools.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 22 Aug 2022 14:31:25 +0000 (15:31 +0100)]
libtirpc: Mark CVE-2021-46828 as resolved
This CVE only applied to pre 1.3.3rc1 and we're on 1.3.3 so we're sorted
but the rc versions make the automated matching fail. Therefore handle
manually.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 22 Aug 2022 14:09:49 +0000 (15:09 +0100)]
icu: Drop binconfig support (icu-config)
Upstream have indicated icu-config is deprecated and they don't intend
people to use it any more. Drop our code for it to flush out users and
clean up our recipe a bit. pkg-config is a much better alternative.
(https://github.com/unicode-org/icu/pull/2150)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Shubham Kulkarni [Thu, 18 Aug 2022 07:52:38 +0000 (13:22 +0530)]
sanity: add a comment to ensure CONNECTIVITY_CHECK_URIS is correct
In sanity.bbclass, in function check_connectivity :
Connectivity is tested by fetching URIs in variable CONNECTIVITY_CHECK_URIS.
If none is accessible, the status error is ambiguous.
It says to ensure the host's network is correctly configured but
never if the remote is available.
Pavel Zhukov [Fri, 19 Aug 2022 13:15:38 +0000 (15:15 +0200)]
selftest: Add regression test for rpm filesnames
Escaping globs and quoting in rpm spec files is tricky and requires a
bit of dancing. In addition to that it changes from time to time.
Adding (simple) regression test for different types of filename
patterns. Cover brackets and parentheses in first iteration
[Yocto #13746]
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Pavel Zhukov [Fri, 19 Aug 2022 13:15:36 +0000 (15:15 +0200)]
package_rpm: Do not replace square brackets in %files
This reverts commit f95adb749619e70920c6cc6cd01c6d02cd348fd8.
At some point RPM stopped treating "[]?" characters in quoted text as a glob
This causes rpmbuild error [1] in oe-core if package contains filenames
with such characters [Yocto #13746]. Reverting commit which replaces "[]" with "?"
fixes the issue.
It should be safe now becuase rpm tries to use filename directly if not
found by glob [2].
devtool: do not leave behind source trees in workspace/sources
These are typically auto-extracted with modify/upgrade from recipes
and can be easily recreated. On the rare occasions where they need
to be reused, they are still available under workspace/attic (which
is already used for old recipes and appends), so nothing gets lost.
This avoids the annoyance of devtool refusing to proceed because
there is a previous source tree in workspace/sources.
For independent source trees behave as before: do nothing.
Adjust the test that previously deleted those trees by hand.
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jan Luebbe [Thu, 18 Aug 2022 11:17:03 +0000 (13:17 +0200)]
openssh: add support for config snippet includes to ssh and sshd
This makes it simpler to set specific ssh/sshd config options by adding
snippet files to /etc/ssh/ssh_config.d/ or /etc/ssh/sshd_config.d/
instead of modifying a copy of the full configuration file. As new
snippets can be added from separate recipes, targeted changes can be
done in multiple layers.
These specific directories are also used in Debian's default
configuration.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Thu, 18 Aug 2022 18:58:07 +0000 (11:58 -0700)]
musl: Update to tip
brings in these fixes
* 37e18b7b freopen: reset stream orientation (byte/wide) and encoding rule
* bf992585 ldso: process RELR only for non-FDPIC archs
* d32dadd6 ldso: support DT_RELR relative relocation format
* 2404d9d6 use syscall_arg_t and __scc macro for arguments to __alt_socketcall
Yongxin Liu [Fri, 5 Aug 2022 02:42:19 +0000 (10:42 +0800)]
grub2: fix several CVEs
Backport CVE patches from upstream to fix:
CVE-2021-3695
CVE-2021-3696
CVE-2021-3697
CVE-2022-28733
CVE-2022-28734
CVE-2022-28735
Backport the following 5 patches to make CVE patches be applied smoothly.
video-Remove-trailing-whitespaces.patch
video-readers-jpeg-Abort-sooner-if-a-read-operation-.patch
video-readers-jpeg-Refuse-to-handle-multiple-start-o.patch
Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Jon Mason [Wed, 17 Aug 2022 16:00:31 +0000 (12:00 -0400)]
oeqa/parselogs: add qemuarmv5 arm-charlcd masking
On qemuarmv5, arm-charlcd is logging an error because the device isn't
present on the virtual machine. Mask it off, as that device could be
present on the physical hardware (and we want to use the same kernel
config as the real hardware).
Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Wed, 17 Aug 2022 07:04:37 +0000 (00:04 -0700)]
binutils: Disable gprofng when using clang
It does not yet compile with clang it comes with __ builtin___snprintf_chk Not Supported
formatted output of built-in functions check is failing with clang
somehow it seems to be compiler limitation. Therefore disable building
this component with clang for now
Awais Belal [Tue, 16 Aug 2022 13:58:55 +0000 (18:58 +0500)]
kernel-fitimage.bbclass: only package unique DTBs
The KERNEL_DEVICETREE and related variables could potentially have a device
tree listed multiple times and this works okay for most scenarios. However,
when we create FIT entries for these we get duplicate nodes and uboot-mkimage
fails with
fit-image-initramfs-image.its:219.58-229.19: ERROR (duplicate_node_names): /images/fdt-freescale_imx8mp-evk-ecspi-slave.dtb: Duplicate node name
fit-image-initramfs-image.its:307.50-317.19: ERROR (duplicate_node_names): /images/fdt-freescale_imx8mp-evk-ndm.dtb: Duplicate node name
fit-image-initramfs-image.its:362.54-372.19: ERROR (duplicate_node_names): /images/fdt-freescale_imx8mp-evk-rm67199.dtb: Duplicate node name
fit-image-initramfs-image.its:417.56-427.19: ERROR (duplicate_node_names): /images/fdt-freescale_imx8mp-evk-usdhc1-m2.dtb: Duplicate node name
fit-image-initramfs-image.its:648.59-658.19: ERROR (duplicate_node_names): /configurations/conf-freescale_imx8mp-evk-ecspi-slave.dtb: Duplicate node name
fit-image-initramfs-image.its:744.51-754.19: ERROR (duplicate_node_names): /configurations/conf-freescale_imx8mp-evk-ndm.dtb: Duplicate node name
fit-image-initramfs-image.its:804.55-814.19: ERROR (duplicate_node_names): /configurations/conf-freescale_imx8mp-evk-rm67199.dtb: Duplicate node name
fit-image-initramfs-image.its:864.57-874.19: ERROR (duplicate_node_names): /configurations/conf-freescale_imx8mp-evk-usdhc1-m2.dtb: Duplicate node name
ERROR: Input tree has errors, aborting (use -f to force output)
uboot-mkimage: Can't open arch/arm64/boot/fitImage.tmp: No such file or directory
We fix this by tracking the DTBs we're compiling in the FIT and only picking
up unique ones.
Bertrand Marquis [Thu, 11 Aug 2022 09:47:21 +0000 (10:47 +0100)]
sysvinit-inittab/start_getty: Fix respawn too fast
When an entry in /dev does not exist, start_getty is returning directly.
As it is started from init in a respawn mode, it will loop infinitely.
In this case add a sleep inside start_getty to prevent the "Respawning
too fast" message popping up every 5 minutes.
This case is happening quite often when the system is started as an
hypervisor guest as the standard serial line is usually taken by it and
removed from the configuration.
This was triggered quite often running linux as dom0 on top of Xen on
arm as the serial line is taken by Xen and removed from the device tree.
Use the opportunity to replace one tab with spaces as the rest of the
file is using spaces.
wangmy [Tue, 16 Aug 2022 00:05:39 +0000 (08:05 +0800)]
msmtp: upgrade 1.8.20 -> 1.8.22
Changelog:
==========
- The msmtpq script was updated.
- Added a new configuration command 'eval' to replace the current configuration
file line with the output of a command (similar to passwordeval, but more
general).
- Added a new configuration command 'set_msgid_header' with the default setting
'auto'. This adds a Message-ID header to the mail if none is present.
- msmtpd now adds a Received header
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 16 Aug 2022 09:30:25 +0000 (10:30 +0100)]
skeleton/service: Ensure debug path handling works as intended
DEBUG_PREFIX_MAP uses ${S} but that wasn't set correctly for this
recipe meaning cwd during the build (WORKDIR) was encoded into the
binary leading to buildpath warnings in debug symbols. Set S correctly
to avoid this issue.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 17 Aug 2022 17:17:39 +0000 (18:17 +0100)]
valgrind: Disable drd/tests/std_thread2 ptest
After improvements to debug sources handling I suspect that extra debug
information became available and is confusing this test. Disable it
for now until someone with more knowledge can resolve the issue.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>