Paul Gortmaker [Fri, 15 Jan 2021 05:26:15 +0000 (00:26 -0500)]
systemd: dont spew hidepid mount errors for kernels < v5.8
Recent systemd started using ascii args to "hidepid=" mount options
for proc fs - unconditionally -- even though kernels older than v5.8
emit an error message on each attempt:
root@qemux86-64:~# cat /proc/version
Linux version 5.4.87-yocto-standard (oe-user@oe-host) (gcc version 10.2.0 (GCC)) #1 SMP PREEMPT Fri Jan 8 01:47:13 UTC 2021
root@qemux86-64:~# dmesg|grep proc:
[ 29.487995] proc: Bad value for 'hidepid'
[ 43.170571] proc: Bad value for 'hidepid'
[ 44.175615] proc: Bad value for 'hidepid'
[ 46.213300] proc: Bad value for 'hidepid'
root@qemux86-64:~#
Simply ignoring them as the systemd maintainer unconditionally says
is the resolution is clearly not acceptable, given the above.
Add a kernel version check to avoid calling mount with invalid args.
Further details are within the enclosed systemd commit.
Cc: Luca Boccassi <luca.boccassi@microsoft.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Anton Kachalov [Fri, 15 Jan 2021 15:43:23 +0000 (16:43 +0100)]
rootfs: add option to allow delayed postinsts on read-only rootfs
Example use case in OpenBMC: rootfs is squashfs and the system has either
overlayfs for whole rootfs or for some parts (e.g. /etc).
This option will allow to create migration one-shot postinsts using
"pkg_postinst_ontarget_${PN}" routines defined in recipes to fix
files under upper workdir in overlayfs.
Signed-off-by: Anton D. Kachalov <rnouse@google.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt [Fri, 15 Jan 2021 13:54:54 +0000 (07:54 -0600)]
diffoscope: upgrade 163 -> 164
[ Chris Lamb ]
* Truncate jsondiff differences at 512 bytes lest they consume the
entire page.
* Wrap our external call to cmp(1) with a profile (to match the internal
profiling).
* Add a note regarding the specific ordering of the new
all_tools_are_listed test.
[ Dimitrios Apostolou ]
* Performance improvements:
- Improve speed of has_same_content by spawning cmp(1) less
frequently.
- Log whenever the external cmp(1) command is spawn.ed
- Avoid invoking external diff for identical, short outputs.
* Rework handling of temporary files:
- Clean up temporary directories as we go along, instead of at the
end.
- Delete FIFO files when the FIFO feeder's context manager exits.
[ Mattia Rizzolo ]
* Fix a number of potential crashes in --list-debian-substvars,
including explicitly listing lipo and otool as external tools.
- Remove redundant code and let object destructors clean up after
themselves.
[ Conrad Ratschan ]
* Add a comparator for Flattened Image Trees (FIT) files, a boot image
format used by U-Boot.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/oe/utils: Return empty string in parallel_make
In cmake.bbclass we set CMAKE_BUILD_PARALLEL_LEVEL using parallel_make
function and if PARALLEL_MAKE is set to empty string then this variable
is exported as "None" causing cmake to fail with:
"'CMAKE_BUILD_PARALLEL_LEVEL' environment variable
invalid number 'None' given."
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 15 Jan 2021 15:11:32 +0000 (15:11 +0000)]
vulkan-samples: Disable PCH for reproducibility
We're still seeing reproducibility issues on the autobuilder with this
recipe. I was able to make the output "match" by rebuilding the PCH and
then rebuilding the binary objects, proving the PCH isn't deterministic.
Disable PCH until we can get to the bottom of why that may be.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Herrera [Wed, 13 Jan 2021 13:45:00 +0000 (13:45 +0000)]
common-licenses: add BSD-3-Clause-Clear license
See https://spdx.org/licenses/BSD-3-Clause-Clear.html
Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Change-Id: I2b7e0ad060fac6b473ce4d0bab839253aee9873d Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Herrera [Wed, 13 Jan 2021 13:44:59 +0000 (13:44 +0000)]
scripts: oe-run-native, fix *-native directories
This fixes a crash with "find" when running a native tool and *-native
directories do not exist under the binary directory in the sysroot.
This happened because the directory wildcard was passed as part of the
root directory.
The directory wildcard is now passed by "-name", which returns an empty
result if no matching directory.
Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Change-Id: Iba7acd8bbd7e0beb4d25c984f6af7a4fd21486e6 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 13 Jan 2021 23:07:16 +0000 (23:07 +0000)]
vulkan-samples: Fix reproducibility issue
There is code to remove the prefix CMAKE_SOURCE_DIR from __FILENAME__ paths
used for logging with LOGE() in the code. We need to make this match the value we use
in the debug source remapping from CFLAGS. If we don't, the code is firstly removing
the incorrect prefix and possibly moving outside the string, secondly, it causes a
reproducibility issue depending on the length of path the build happens in.
Add a small patch and configuration to avoid the issue.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Error log:
| Run-time dependency libmfx found: YES 1.34
| Has header "mfx/mfxdefs.h" : YES
|
| ../gst-plugins-bad-1.18.2/sys/msdk/meson.build:75:2: ERROR: Include dir /usr/include/mfx does not exist.
|
| A full log can be found at /home/s
When msdk is enable in PACKAGECONFIG, plugin fails to locate includedir, so
adding a patch which prepend PKG_CONFIG_SYSROOT_DIR to the dir path
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Tue, 12 Jan 2021 22:14:08 +0000 (17:14 -0500)]
linux-yocto/5.10: update to v5.10.5
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
f5247949c0a9 Linux 5.10.5 12d377b93eef device-dax: Fix range release aceb8ae8e3b1 ext4: avoid s_mb_prefetch to be zero in individual scenarios aff18aa806fd dm verity: skip verity work if I/O error when system is shutting down 610d2fa0ec76 ALSA: pcm: Clear the full allocated memory at hw_params c7b04d27c910 io_uring: remove racy overflow list fast checks 13f9eec22973 s390: always clear kernel stack backchain before calling functions 330c1ee7d593 tick/sched: Remove bogus boot "safety" check 9b22bc0f1663 drm/amd/display: updated wm table for Renoir 86be0f2a0ef9 ceph: fix inode refcount leak when ceph_fill_inode on non-I_NEW inode fails 8bcfa178f92a NFSv4.2: Don't error when exiting early on a READ_PLUS buffer overflow ef3b9ad967d0 um: ubd: Submit all data segments atomically a8b49c4bdf87 um: random: Register random as hwrng-core device 0aa2eecf8534 watchdog: rti-wdt: fix reference leak in rti_wdt_probe eae1fb3bc565 fs/namespace.c: WARN if mnt_count has become negative b1e155ccc882 powerpc/64: irq replay remove decrementer overflow check 8b5b2b768344 module: delay kobject uevent until after module init call db6129f6ad88 f2fs: fix race of pending_pages in decompression ee3f8aefd037 f2fs: avoid race condition for shrinker count 3c0f0f5f58a7 NFSv4: Fix a pNFS layout related use-after-free race when freeing the inode 06ac2ca0989d i3c master: fix missing destroy_workqueue() on error in i3c_master_register 498d90690f24 powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe() acc3c8cc27a8 rtc: pl031: fix resource leak in pl031_probe 26058c397b9f quota: Don't overflow quota file offsets bb2ab902f6f0 module: set MODULE_STATE_GOING state when a module fails to load 0ad9a6e6139d rtc: sun6i: Fix memleak in sun6i_rtc_clk_init b5a2f093b6b1 io_uring: check kthread stopped flag when sq thread is unparked 908030501772 fcntl: Fix potential deadlock in send_sig{io, urg}() 721972b8665f ext4: check for invalid block size early when mounting a file system 8ed894f1117e bfs: don't use WARNING: string when it's just info. fb05e983eaf7 ALSA: rawmidi: Access runtime->avail always in spinlock cf7fe671cd7e ALSA: seq: Use bool for snd_seq_queue internal flags 1c5a034710da f2fs: fix shift-out-of-bounds in sanity_check_raw_super() 2b56f16e3487 media: gp8psk: initialize stats at power control logic f290cffdf761 misc: vmw_vmci: fix kernel info-leak by initializing dbells in vmci_ctx_get_chkpt_doorbells() a021b6696132 reiserfs: add check for an invalid ih_entry_count 397971e1d891 fbcon: Disable accelerated scrolling df83b9b67449 Bluetooth: hci_h5: close serdev device and free hu in h5_close 9d4053cfb3f3 scsi: cxgb4i: Fix TLS dependency fdac87be009f zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c bf81221a40fa cgroup: Fix memory leak when parsing multiple source parameters 9154d2eeb4f5 tools headers UAPI: Sync linux/const.h with the kernel headers e8afbbac2f68 uapi: move constants from <linux/kernel.h> to <linux/const.h> ce00a7d0d952 io_uring: fix io_sqe_files_unregister() hangs b25b86936a8d io_uring: add a helper for setting a ref node 25a2de679b5d io_uring: use bottom half safe lock for fixed file data 7247bc60e8e1 io_uring: don't assume mm is constant across submits a5184f3cc284 lib/zlib: fix inflating zlib streams on s390 98b57685c26d mm: memmap defer init doesn't work as expected df73c80338ef mm/hugetlb: fix deadlock in hugetlb_cow error path 092898b070e0 scsi: block: Fix a race in the runtime power management code 1a58c171a523 opp: Call the missing clk_put() on error e8322837a2e5 opp: fix memory leak in _allocate_opp_table c6dd62c14b32 spi: dw-bt1: Fix undefined devm_mux_control_get symbol 6d63cc42bb8f jffs2: Fix NULL pointer dereference in rp_size fs option parsing 58dc34446c52 jffs2: Allow setting rp_size to zero during remounting 52504a61ab99 io_uring: close a small race gap for files cancel 8b8a688260b4 drm/amd/display: Add get_dig_frontend implementation for DCEx 5ef98378eff8 md/raid10: initialize r10_bio->read_slot before use. 62162b322364 ethtool: fix string set id check 95fcb69c491e ethtool: fix error paths in ethnl_set_channels() aeab3d7a04f8 mptcp: fix security context on server socket a969a632cbe7 net/sched: sch_taprio: reset child qdiscs before freeing them
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Michael Ho [Tue, 12 Jan 2021 08:55:33 +0000 (09:55 +0100)]
license_image.bbclass: fix missing recipeinfo on self
Resolve a build bug where image recipes with a do_deploy task will fail.
If the image recipe inheriting license_image.bbclass has a deploy task, then
the function get_deployed_dependencies will add itself to the list of recipes
to get license information for.
However, image recipes don't generally deploy license info so this results in
an error.
File: '/nvme/poky/meta/classes/license_image.bbclass', lineno: 192, function: license_deployed_manifest
...
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/nvme/poky/build/tmp/deploy/licenses/core-image-minimal/recipeinfo'
Add a corner case to exclude the originating image recipe from the list of
dependencies to check.
Signed-off-by: Michael Ho <Michael.Ho@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Tue, 12 Jan 2021 06:41:29 +0000 (14:41 +0800)]
libpam: remove unused code
from commit b0384720a46fb25c4ad180e3f256ffdeb53dc8a6,
which upgrade libpam to 1.5.1, packaging is adjustd,
and the binary is packaged into libpam-runtime, so we
don't need to append them to pam-plugin-xxx.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Barker [Mon, 11 Jan 2021 10:32:44 +0000 (10:32 +0000)]
wic: Allow exec_native_cmd to run HOSTTOOLS
This allows programs from HOSTTOOLS (e.g. 'install', 'rm', 'mv', etc) to
be more easily executed by wic. Without this change only programs from
an actual *-native recipe built by bitbake can be executed by wic.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Michael Ho [Mon, 11 Jan 2021 12:45:23 +0000 (13:45 +0100)]
rootfs_ipk: allow do_populate_sdk in parallel to do_rootfs
Switch do_populate_sdk for the ipk package manager to use a separate target
opkg config file and separate the lockfiles restricting do_rootfs and
do_populate_sdk from running in parallel.
This way if an image recipe includes a dependency to do_populate_sdk by
default then it will run in parallel to do_rootfs saving time compared to the
sequential execution.
Signed-off-by: Michael Ho <Michael.Ho@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Randy Li [Tue, 29 Dec 2020 03:55:50 +0000 (11:55 +0800)]
meson: Add sysroot property to nativesdk-meson
I know the environment setup script would set PKG_CONFIG_PATH,
but the meson won't take that env when translate the includedir
property from the pkg-config.
Signed-off-by: Randy Li <ayaka@soulik.info> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ovidiu Panait [Wed, 23 Dec 2020 13:08:51 +0000 (15:08 +0200)]
kernel-devicetree: Introduce KERNEL_DTC_FLAGS to pass dtc flags
Currently DTC_FLAGS kernel makefile parameter can be specified directly on the
command line by adding it to KERNEL_EXTRA_ARGS. However, this prevents
scripts/Makefile.lib logic from appending flags that silence dtc warnings (all
assignments done from within a makefile, to a variable specified on the command
line, are ignored).
Because of this, the do_compile log is cluttered with dtc warnings that should
only be printed when compiling with W="123":
...
/soc: node has a reg or ranges property, but no unit name
/soc/gpu: missing or empty reg/ranges property
/soc/firmware/gpio: missing or empty reg/ranges property
...
To fix this, introduce the dedicated KERNEL_DTC_FLAGS variable to hold
dtc flags and export DTC_FLAGS in the environment before generating the dtbs
(make allows "+=" operations on variables that come from the environment, so
the warnings are silenced properly).
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Marek Vasut [Wed, 23 Dec 2020 16:50:03 +0000 (17:50 +0100)]
meta: toolchain-shar-relocate.sh: Filter out post-relocate-setup script
The toolchain-shar-extract.sh script updates the SDK relocation paths in
post-relocate-setup.sh, so avoid doing this twice. This is generally not
a problem, unless the SDK path is a subset of the SDK relocation path, in
which case the resulting path is substituted twice. To trigger the issue,
$ ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-qemux86-64-toolchain-3.2+snapshot.sh -y -d /home/oe/.local/opt/poky/3.2+snapshot
which generates relocation path
/home/oe/.local/home/oe/.local/opt/poky/3.2+snapshot
instead of
/home/oe/.local/opt/poky/3.2+snapshot
Fixes: 93ec145f42 ("toolchain-shar-extract: Add post-relocate scripts") Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joshua Watt <JPEWhacker@gmail.com> Cc: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com> Cc: Randy Witt <randy.e.witt@linux.intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Marek Vasut [Wed, 23 Dec 2020 16:50:02 +0000 (17:50 +0100)]
meta: toolchain-shar-relocate.sh: Do not use $target_sdk_dir as regex
The $target_sdk_dir path might contain special characters, for example if
the path is /opt/poky/3.2+snapshot . Prevent grep from interpreting those
as part of the regex by using the -F parameter and multiple -e parameters
to specify which strings to filter out. Also note that the previous regex
was using asterisk as wildcard (e.g. environment-setup-*), but that should
have been regex (e.g. environment-setup-.*, with dot) to match correctly,
this is also fixed by this change.
Fixes: 9721378688 ("toolchain-shar-template.sh: Make relocation optional.") Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joshua Watt <JPEWhacker@gmail.com> Cc: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com> Cc: Randy Witt <randy.e.witt@linux.intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Thomas Perrot [Fri, 8 Jan 2021 06:22:48 +0000 (07:22 +0100)]
go.bbclass: don't stage test data with sources of dependencies
As for the sources the dependencies contain test data, ELF files and other
binaries which aren't necessary for building and which lead to unnecessary QA
warnings.
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 6 Jan 2021 13:54:33 +0000 (13:54 +0000)]
qemu: Drop vm reservation changes to resolve build issues
When building with the new version of qemu we see errors like:
"""
qemu-i386: Unable to reserve 0x7ffff000 bytes of virtual address space at
0x1000 (Success) for use as guest address space (check your virtual memory
ulimit setting, min_mmap_addr or reserve less using -R option)
ERROR: The postinstall intercept hook 'update_gio_module_cache-nativesdk' failed
"""
The VM reseration patches we're carrying look suspicious in this context.
Drop them since the patches appear to be a liability causing other issues
and there is a much simpler fix for the webkitgtk issues on musl on
32 bit (see later linux-user mmap patches).
Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 5 Jan 2021 23:00:14 +0000 (23:00 +0000)]
qemu: Upgrade 5.1.0->5.2.0
This involves some pretty major changes for qemu. In particular, they
switched to meson+ninja so we have to adapt to that.
Patch changes:
* CVE patches - dropped as backports
* cflags fix - upstream code changed significantly, need new patch if still issues
* mips TLB entries - dropped as merged upstream
* usb fix - dropped as merged upstream
* find_datadir - dropped as code no longer present that I could find
A patch was added to allow us to force the configure script into "cross" mode
without setting cross_prefix which has other effects we don't need/want.
Dependencies on meson/ninja were added.
Specifying the python interpreter causes the internal meson copy to be
built/used which is undesireable for us so don't do that. The correct
python is in PATH anyway.
Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mingli Yu [Thu, 7 Jan 2021 01:03:51 +0000 (09:03 +0800)]
kbd: fix transaction conflict
After kdb upgrades to 2.4.0, vlock.pamd will be copied to /etc/pam.d/vlock
when install as [1].
And it will result in below Transaction error during do_rootfs when both
vlock and kbd installed:
| Transaction test error: file /etc/pam.d/vlock conflicts between attempted installs of vlock-2.2.3-r0.corei7_64 and kbd-2.4.0-r0.corei7_64
Paul Barker [Thu, 7 Jan 2021 14:56:12 +0000 (14:56 +0000)]
selftest: Add argument to keep build dir
The oe-selftest code already keeps the selftest build directory in place
if any tests failed. By default the build directory is deleted if all
tests pass but there may be cases where it's desirable to keep this
directory around, for example to compare intermediate files between
passing and failing test runs.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 6 Jan 2021 22:31:25 +0000 (22:31 +0000)]
pseudo: Add lchmod wrapper
New versions of glibc have an lchmod function so we need to wrap it.
Identified through a reproducibility issue in initramfs-base where
/dev/console created by mknod from coreutils changed permissions
depending on the host distro (mknod used the gnulib wrapper on most
hosts but newer ones used the libc call).
[YOCTO #14162]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 6 Jan 2021 22:25:06 +0000 (22:25 +0000)]
sanity: Bump min python version to 3.6
There are a number of reasons 3.6 is a good minimum version. Of our supported/tested
distros, only debian 9 still had python 3.5, the others have 3.6+ or already
required buildtools-tarball.
New versions of qemu need python 3.6 as a minimum. We could work around that
but it seems simper to require 3.6 which will allow other improvements.
As such, bump the minimum python version requirement to 3.6.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 7 Jan 2021 17:30:13 +0000 (17:30 +0000)]
ppp: Fix reproducibility issue
Depending on which patches the make program has, the internal or external
utmp could would be used. Add add a patch which avoids the issue and makes
the build determnistic. We saw the regression on ubuntu1604.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 5 Jan 2021 17:42:23 +0000 (17:42 +0000)]
ppp: Update 2.4.8 -> 2.4.9
This is the first ppp release in a long time. Many patches
were resolved upstream:
* musl fixes were merged
* EAP patch was a backport added upstream
* cflags were fixed upstream
* CVE fix was merged upstream and a backport
* pcap header from the host was fixed upstream
* suid bits during install was removed upstream
The only patch left was the /var/ redirect for resolv.conf which no longer
applied cleanly after upstream changes. For this one the patch will
need to be rewritten (and preferably submitted upstream) by someone
who needs/uses it. It was presumbaly for RO rootfs and may be resolved
by symlinks in modern system usage anyway.
Tweak the files pulled into the pppoe package for a compatibility
symlink and module rename.
Add CC to the OEMAKE command to allow builds correctly.
[Big thanks to Alex Kanavin for a lot of the work with upstream and
pre-release testing of this]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Tue, 5 Jan 2021 22:06:38 +0000 (14:06 -0800)]
ccache: Fix build on aarch64/clang
asm option checks in cmake gets it wrong to just check compiler options
to decide if SSE/AVX is supported, this accidentally then succeeds on
aarch64 and ends up compiler failures on aarch64 with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Trevor Woerner [Thu, 24 Dec 2020 15:31:05 +0000 (10:31 -0500)]
psplash (sysvinit): add textual updates
The psplash program contains a hidden text box immediately above the
progress bar. Any text sent via a "MSG" command through psplash's fifo will
be displayed, centred, above the progress bar. Add the ability to show
which startup script is currently running, in sync with updates to the
progress bar. If a startup script takes a bit longer than others and the
progress bar stops momentarily, this allows the user to know which script
is responsible.
This feature is added with a knob, default off, for enabling or disabling
this feature. The knob is in the form of a PACKAGECONFIG against the
sysvinit recipe: psplash-text-updates
NOTE: this knob can be changed in the filesystem at runtime by editing
/etc/default/rcS regardless of how it is set in the build.
Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Trevor Woerner [Thu, 24 Dec 2020 15:31:04 +0000 (10:31 -0500)]
psplash: fix working on first boot (sysvinit)
The psplash program has a mechanism for showing updates graphically in the
form of a progress bar. The program is told when and how much to fill the
progress bar via text messages sent through a fifo. If the fifo doesn't exist
when the psplash program starts, it tries to create it. If the fifo doesn't
exist or can't be created, the psplash program will refuse to run.
In various circumstances when a system is booted for the very first time,
the filesystem is mounted, initially, read-only. As a result the psplash
program is not able to run. On systems where the root filesystem is not
meant to be read-only, it will eventually be mounted read-write. Therefore the
psplash program can run on shutdown, and all subsequent boots. Only the first
boot is affected.
If a fifo is created and included in the filesystem as part of the recipe,
then filesystems that are meant to be read-only will have psplash work, as
well as the cases where (on first boot) a read-write filesystem is initially
mounted read-only.
NOTE: this is only an issue with sysvinit, and non-qemu machines.
systemd-based systems don't suffer from this first-boot issue, and neither
do the qemu machines.
NOTE 2: when psplash is done, it removes the fifo. Therefore the fifo used
for communicating with psplash doesn't hang around unnecessarily in the
filesystem.
Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Trevor Woerner [Thu, 24 Dec 2020 15:31:03 +0000 (10:31 -0500)]
PSPLASH_FIFO_DIR: refactor
Add an entry for the psplash fifo directory to /etc/default/rcS and have the
pieces of code that need it source it from there rather than duplicating the
definition in multiple places throughout the code.
Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Milan Shah [Mon, 4 Jan 2021 05:54:02 +0000 (11:24 +0530)]
oe-pkgdata-util: Added a test to verify oe-pkgdata-util without parameters
A test is implemented on poky/meta/lib/oeqa/selftest/pkgdata.py to test
the scenario when oe-pkgdata-util is executed without parameters and
help is displayed.
See [YOCTO #10726] for detailed bug information.
Signed-off-by: Milan Shah <mshah@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Mon, 21 Dec 2020 22:17:54 +0000 (17:17 -0500)]
linux-yocto/5.10: update to v5.10.2
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
d1988041d19d Linux 5.10.2 dadaf794f207 serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access ff654f1d31d5 ALSA: pcm: oss: Fix potential out-of-bounds shift 07747a44be4f USB: sisusbvga: Make console support depend on BROKEN 2440c1cb2514 USB: UAS: introduce a quirk to set no_write_same d769a22dc01f xhci-pci: Allow host runtime PM as default for Intel Maple Ridge xHCI 3203c4abf505 xhci-pci: Allow host runtime PM as default for Intel Alpine Ridge LP 1bee58e891f2 usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK 2bd9751e6790 xhci: Give USB2 ports time to enter U3 in bus suspend f1e6ab052c63 ALSA: usb-audio: Fix control 'access overflow' errors from chmap cc3edd81ef03 ALSA: usb-audio: Fix potential out-of-bounds shift d8f0c9ec3638 USB: add RESET_RESUME quirk for Snapscan 1212 5fb2a55ad3e0 USB: dummy-hcd: Fix uninitialized array use in init() d483f5e5ce53 USB: legotower: fix logical error in recent commit 2902e302991a ktest.pl: Fix the logic for truncating the size of the log file for email 4e282a8dff80 ktest.pl: If size of log is too big to email, email error message d3f4117b0275 ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Bruce Ashfield [Mon, 14 Dec 2020 18:43:23 +0000 (13:43 -0500)]
libc-headers: update to v5.10
As the reference kernel is going to v5.10, we also move the libc headers
to match. This is also the latest LTS kernel, so is appropriate for a
libc-headers version bump.
This has been tested against all supported architectures for both glibc
and musl.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Bruce Ashfield [Wed, 23 Dec 2020 16:10:04 +0000 (11:10 -0500)]
linux-yocto/5.4: update to v5.4.85
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
19d1c763e849 Linux 5.4.85 484ac6279ad2 x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled eb3f42cf5e67 x86/resctrl: Remove unused struct mbm_state::chunks_bw c4f909407015 membarrier: Explicitly sync remote cores when SYNC_CORE is requested a840e37ef800 Revert "selftests/ftrace: check for do_sys_openat2 in user-memory test" aa17a20d640d KVM: mmu: Fix SPTE encoding of MMIO generation upper half bb07f4c93e62 serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access 14482dc42c28 ALSA: pcm: oss: Fix potential out-of-bounds shift c94a31c19225 USB: sisusbvga: Make console support depend on BROKEN 4ad8fc6cce01 USB: UAS: introduce a quirk to set no_write_same 397d0ae4cb90 xhci-pci: Allow host runtime PM as default for Intel Alpine Ridge LP 32c820e016b4 xhci: Give USB2 ports time to enter U3 in bus suspend 5828ae0c1920 ALSA: usb-audio: Fix control 'access overflow' errors from chmap e72a55ea7168 ALSA: usb-audio: Fix potential out-of-bounds shift 56339afa39e5 USB: add RESET_RESUME quirk for Snapscan 1212 52c2ada6fe5e USB: dummy-hcd: Fix uninitialized array use in init() 497993377bca ktest.pl: If size of log is too big to email, email error message a8d28a541500 net: stmmac: delete the eee_ctrl_timer after napi disabled ee08543f4598 net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux 5ae78c6926cc net: ll_temac: Fix potential NULL dereference in temac_probe() 717a140a3635 net/mlx4_en: Handle TX error CQE d0363dcabbd1 lan743x: fix for potential NULL pointer dereference with bare card d4107a0f8802 net/mlx4_en: Avoid scheduling restart task if it is already running add880d788f0 tcp: fix cwnd-limited bug for TSO deferral where we send nothing 5189c070a0d7 tcp: select sane initial rcvq_space.space for big MSS 318d90218b21 net: stmmac: free tx skb buffer in stmmac_resume() d8d39e13668a bridge: Fix a deadlock when enabling multicast snooping cb327f83cf5e enetc: Fix reporting of h/w packet counters 408c8213ee97 udp: fix the proto value passed to ip_protocol_deliver_rcu for the segments f7a756fc7cb9 net: hns3: remove a misused pragma packed 2ef23e860e76 vrf: packets with lladdr src needs dst at input with orig_iif when needs strict cae90bd22cff net: bridge: vlan: fix error return code in __vlan_add() 2e6a15b0b3d4 mac80211: mesh: fix mesh_pathtbl_init() error path 1fe6b822b335 ipv4: fix error return code in rtm_to_fib_config() 8b4f08f28015 ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info() 8a866bdbbac2 Linux 5.4.84 c2c5dc84ac51 compiler.h: fix barrier_data() on clang 69dc72f058c9 mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING 3349f1e4cf6d x86/apic/vector: Fix ordering in vector assignment e3c1d51868f3 x86/membarrier: Get rid of a dubious optimization 6346ed69bc7c x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP 258d646f006b scsi: be2iscsi: Revert "Fix a theoretical leak in beiscsi_create_eqs()" 7d5fc53439a1 proc: use untagged_addr() for pagemap_read addresses 6472d3ae6ef5 kbuild: avoid static_assert for genksyms 0cd7084a2a03 drm/i915/display/dp: Compute the correct slice count for VDSC on DP 60c1c68fae5e mmc: block: Fixup condition for CMD13 polling for RPMB requests 974aa59837ed pinctrl: amd: remove debounce filter setting in IRQ type setting 457f5289b7e7 Input: i8042 - add Acer laptops to the i8042 reset list cf596f3906e9 Input: cm109 - do not stomp on control URB d2d113aca34f ktest.pl: Fix incorrect reboot for grub2bls 181088e37b1d can: m_can: m_can_dev_setup(): add support for bosch mcan version 3.3.0 38b1dbc1229c platform/x86: touchscreen_dmi: Add info for the Irbis TW118 tablet 2fa99f6f8f60 platform/x86: intel-vbtn: Support for tablet mode on HP Pavilion 13 x360 PC 21aa2d1f2bfb platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE 010e6e816f54 platform/x86: thinkpad_acpi: Add BAT1 is primary battery quirk for Thinkpad Yoga 11e 4th gen 4778a11e0500 platform/x86: thinkpad_acpi: Do not report SW_TABLET_MODE on Yoga 11e eb5e28ffe39a arm64: tegra: Disable the ACONNECT for Jetson TX2 c7e271337402 soc: fsl: dpio: Get the cpumask through cpumask_of(cpu) 37aa8318ed43 spi: spi-nxp-fspi: fix fspi panic by unexpected interrupts 864fbeab8c99 irqchip/gic-v3-its: Unconditionally save/restore the ITS state on suspend 47fac0ccf775 ibmvnic: skip tx timeout reset while in resetting c0450df6d0f7 interconnect: qcom: qcs404: Remove GPU and display RPM IDs adad2bc9f303 scsi: ufs: Make sure clk scaling happens only when HBA is runtime ACTIVE b184e9800867 ARC: stack unwinding: don't assume non-current task is sleeping 8ed74a012206 arm64: dts: broadcom: clear the warnings caused by empty dma-ranges acac3f7d7d22 powerpc: Drop -me200 addition to build flags 8012a30b9e16 iwlwifi: mvm: fix kernel panic in case of assert during CSA c90527770b88 iwlwifi: pcie: set LTR to avoid completion timeout d411a07d6c04 arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards. 0e6cae4e8181 iwlwifi: pcie: limit memory read spin time 591afbc97c18 x86/lib: Change .weak to SYM_FUNC_START_WEAK for arch/x86/lib/mem*_64.S 018b05e0f05b Kbuild: do not emit debug info for assembly with LLVM_IAS=1
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
results in the ownership of files in the man-db package changing from "man/man"
to "6/12". This is due to base-passwd not being installed in the recipe
sysroot.
Add the missing dependency so even if a recipe "re-packages", the name
of the user/group is found and the packages are reproducible.
[YOCTO #14172]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Lee Chee Yang [Fri, 1 Jan 2021 06:18:28 +0000 (14:18 +0800)]
wic/direct/kparser: ensure fsuuid for vfat and msdos align with format
vfat/msdos filesystem should have fsuuid in format 0xYYYYYYYY where "0x"
in front follow with 8 hexadecimal number in uppercase. In wic, when using
custom fsuuid for vfat/msdos partition in wks, it is able to set the value
in any length, with or without leading "0x". This can cause fsuuid
missaligned when fstab updates, fstab expect exactly 10 character
fsuuid for vfat/msdos partition and all in uppercase.
if custom fsuuid for vfat/msdos is set, check the length and format,
error if it exceed the format size. Amend it so it is align with format
0xYYYYYYYY. This is done before image create and fstab update to ensure the
fsuuid are same in all followup process. if custom fsuuid length less than
expected, fill in "0".
[YOCTO #14161]
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Fixes potential for double free after incomplete fix for CVE-2018-6952
- src/pch.c (another_hunk): Avoid invalid memory access in context format
diffs.
Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Scott Murray [Wed, 30 Dec 2020 22:44:17 +0000 (17:44 -0500)]
grub: fix "CVE:" line in one of the patches
The "CVE:" line in the patch for CVEs 2020-14309, CVE-2020-14310, and
CVE-2020-14311 had commas between the CVE numbers, which resulted in
CVE-2020-14310 not being picked up as patched by cve-check.bbclass's
parsing. Remove the commas to match cve-check.bbclass's expectations.
Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
image file in upstream patch is for test purpose only, it cause error during
do_patch so drop it:
File tests/test-images/fail/hang_114.gif: git binary diffs are not supported.
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yi Zhao [Wed, 30 Dec 2020 08:07:32 +0000 (16:07 +0800)]
dhcpcd: upgrade 9.3.4 -> 9.4.0
Drop backported patches:
0001-Linux-Fix-privsep-build-by-including-sys-termios.h-f.patch
0001-privsep-Fix-Linux-i386-for-SECCOMP-as-it-just-uses-s.patch
Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Teoh Jay Shen [Wed, 30 Dec 2020 03:36:59 +0000 (11:36 +0800)]
oeqa/suspend : add test for suspend state
This test case is checking the command and LAN device behaviour before and after suspend state. The Test_if_LAN_device_works_well_after_resume_from_suspend_state and standby manual test cases from oeqa/manual/bsp-hw can be replace by this runtime test.
Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>