Otavio Salvador [Wed, 8 Jul 2020 21:07:55 +0000 (00:07 +0300)]
mtd-utils: Fix return value of ubiformat
This changeset fixes a feature regression in ubiformat. Older versions
of ubiformat, when invoked with a flash-image, would return 0 in the
case no error was encountered. Upon upgrading to latest, it was
discovered that ubiformat returned 255 even without encountering an
error condition.
This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit 7ebacd9cbaec98fbc406e8ae99c9805a24fdadc6) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit 99ae6dbb7278dfd264453af852c108fa56a0d4e3) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Kai Kang [Wed, 8 Jul 2020 21:07:53 +0000 (00:07 +0300)]
wpa-supplicant: remove service templates from SYSTEMD_SERVICE
Remove service templates wpa_supplicant-nl80211@.service and
wpa_supplicant-wired@.service from SYSTEMD_SERVICE that they should NOT
be started/stopped by calling 'systemctl' in postinst and prerm scripts.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit fe9b8e50461ab00ab3ad8b065ebd32f0eea2a255) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Joe Slater <joe.slater@windriver.com>
(cherry picked from commit 18129cbaeddb3278efe9963718556e3765f06c1e) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Ralph Siemsen [Wed, 8 Jul 2020 21:07:50 +0000 (00:07 +0300)]
cve-check: include epoch in product version output
In the generated cve.log files, include the epoch in the product
version. This better matches how versions are displayed elsewhere,
in particular the bb.warn("Found unpatched CVE...") that appears
on the terminal when CVEs are found.
Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
(cherry picked from commit e1c3c0b6e5b01304e2127f5058986697e82adf93) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Certain recipes e.g. bash readline ( from meta-gplv2 ) download patches instead of having them in
metadata, this could fail cve_check
ERROR: readline-5.2-r9 do_cve_check: File Not found: qemuarm/build/../downloads/readline52-001
This patch ensures that download is done before running CVE scan, even
though these will be external patches and may not contain CVE tags as it
expects, but it will fix the run failures as seen above
file: add bzip2-replacement-native to DEPENDS to fix sstate issue
file-native when built on a Debian 10 host will embed a dependency to
'libbz2.so.1.0' (instead of 'libbz2.so.1'). This can cause issues
when sharing the sstate between hosts e.g.:
recipe-sysroot-native/usr/lib/rpm/rpmdeps:
error while loading shared libraries: libbz2.so.1.0: \
cannot open shared object file: No such file or directory
To avoid this situation, let's add the bzip2-replacement-native to the
file recipe's DEPENDS_class-native .
Details in https://bugzilla.yoctoproject.org/show_bug.cgi?id=13915 .
Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit e4a6eda4c246b2bca059defed796bdab19a7ab5f) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
haiqing [Mon, 15 Jun 2020 03:05:57 +0000 (11:05 +0800)]
libpam: Remove option 'obscure' from common-password
libpam does not support 'obscure' checks to password,
there are the same checks in pam_cracklib module.
And this fix can remove the below error message while
updating password with 'passwd':
pam_unix(passwd:chauthtok):unrecognized option[obscure]
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ea761dbac90be77797308666fe1586b05e3df824) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Lili Li [Fri, 26 Jun 2020 05:45:56 +0000 (13:45 +0800)]
kernel.bbclass: Fix Module.symvers support
Starting from v5.8-rc1 commit 269a535ca931 (modpost: generate
vmlinux.symvers and reuse it for the second modpost"), kernel will
generate new vmlinux.symvers instead of dumping all the vmlinux symbols
into Module.symvers in the first pass.
Error log:
'run.do_shared_workdir.16614' failed with exit code 1:
DEBUG: cp: cannot stat 'Module.symvers': No such file or directory
This change will check the file Module.symvers existence before copying it.
Signed-off-by: Lili Li <lili.li@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cd2d62a08a1dfcd890a03ee55132b6d6c65f5ab7) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Paul Barker [Sat, 23 May 2020 19:16:06 +0000 (20:16 +0100)]
avahi: Don't advertise example services by default
The example service files are placed into /etc/avahi/services when we
run `make install` for avahi. This results in ssh and sftp-ssh services
being announced by default even if no ssh server is installed in an
image.
These example files should be moved away to another location such as
/usr/share/doc/avahi (taking inspiration from Arch Linux).
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
1. They need to be run under regular user.
2. Some tests genuinely need more time than 30 seconds
3. The Makefile patch erroneously introduced a test-breaking change.
Richard Purdie [Wed, 13 May 2020 15:24:50 +0000 (10:24 -0500)]
sstatesig: Optimise get_taskhash for hashequiv
With hashequiv the get_taskhash function is called much more regularly
and contains expensive operations. This these don't change based upon
hash in a given build, improve the caching within the function to
reduce overhead.
Richard Purdie [Sat, 25 Apr 2020 21:20:11 +0000 (22:20 +0100)]
targetcontrol: Fix leaking log handler
We had a mystery failure on the autobuilder where runqemu appeared to
be failing as a logfile directory no longer existed. The key to
reproducing was running a runqemu where the image was deleted (as
devtool does), then running another runqemu test. E.g.:
Richard Purdie [Fri, 24 Apr 2020 12:23:27 +0000 (13:23 +0100)]
oeqa/qemurunner: Clean up failure handling
If you fail to setup the tap devices, runqemu will error quickly
however stdout/stderr are not shown to the user, instead a SystemExit
traceback is shown. This could explain some long since unexplained
failures on the autobuilder.
Rework the error handling so SystemExit isn't used and the
standard log failure messages can be shown. The code could
likely ultimatley need some restructuring to work effectively.
This error handling didn't work as expected since upon failure it would
inject bytestreams back into the code leading to tracebacks.
Instead, ignore the decode errors. Fixes:
Traceback (most recent call last):
File "/home/pokybuild/yocto-worker/a-full/build/scripts/resulttool", line 78, in <module>
sys.exit(main())
File "/home/pokybuild/yocto-worker/a-full/build/scripts/resulttool", line 72, in main
ret = args.func(args, logger)
File "/home/pokybuild/yocto-worker/a-full/build/scripts/lib/resulttool/store.py", line 70, in store
resultutils.save_resultsdata(results, tempdir, ptestlogs=True)
File "/home/pokybuild/yocto-worker/a-full/build/scripts/lib/resulttool/resultutils.py", line 178, in save_resultsdata
f.write(sectionlog)
TypeError: write() argument must be str, not bytes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ includes the fix for CVE-2020-11501 ] Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Alex Kiernan [Fri, 1 May 2020 21:56:26 +0000 (00:56 +0300)]
gnutls: upgrade 3.6.8 -> 3.6.11.1
Drop patch from 81485be19b18 ("gnutls: don't use HOSTTOOLS_DIR/bash as a
shell on target") as upstream now honours POSIX_SHELL when set as the
primary target shell.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Chee Yang Lee [Fri, 1 May 2020 21:41:13 +0000 (00:41 +0300)]
qemu/slirp: fix CVE-2020-7211
fix CVE-2020-7211 for qemu slirp submodule
see :
https://www.openwall.com/lists/oss-security/2020/01/17/2
https://gitlab.freedesktop.org/slirp/libslirp/commit/14ec36e107a8c9af7d0a80c3571fe39b291ff1d4
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ includes the fix for CVE-2019-14855 ] Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Lee Chee Yang [Fri, 1 May 2020 21:59:17 +0000 (00:59 +0300)]
cve-update-db-native: clean DB if temporary file exist
when do_populate_cve_db forced stop at certain point, the
DB execution are stoped however the temporary database
file (DB-JOURNAL) are not removed. This db-journal file
indicates that DB is incomplete and set DB in readonly
mode. So when db-journal exist, remove both DB and the
db-journal and build the DB again from scratch.
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Li Zhou [Mon, 27 Apr 2020 09:17:49 +0000 (17:17 +0800)]
git: Security Advisory - git - CVE-2020-11008
Backport the 1st -- 9th patches listed by
<https://github.com/git/git/compare/v2.17.4...v2.17.5>
to solve CVE-2020-11008.
Also backport the 2nd -- 4th patches listed by
<https://github.com/git/git/compare/v2.17.3...v2.17.4>
for CVE-2020-5260 (not necessary, and only the 1st patch is necessary
for this CVE), because some of the above 9 patches are based on them.
Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Jan Luebbe [Mon, 6 Apr 2020 13:23:57 +0000 (15:23 +0200)]
apt-native: don't let dpkg overwrite files by default
With --force-overwrite (implied by --force-all), dpkg will not abort
when a package overwrites files from different packages. As this can
also lead to "The following package disappeared from your system as
all files have been overwritten by other packages: <package>" and
subsequently broken dependencies, this makes the simple case of
conflicting files hard to debug.
Instead of finding all possibly required force options, only disable
overwrite for now.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Martin Jansa [Thu, 2 Apr 2020 17:05:14 +0000 (19:05 +0200)]
prservice.py: fix do_package with newer Python in Ubuntu 20.04
* with Ubuntu 20.04 which is using python 3.8 I'm seeing a lot of errors like:
ERROR: libxml2-2.9.10-r0 do_package: Can NOT get PRAUTO, exception No module named '_sysconfigdata'
not sure what caused this from python 3.8, but this seems to work
* PRserv is enabled with:
PRSERV_HOST = "localhost:0"
Jeremy Puhlman [Wed, 4 Mar 2020 00:24:09 +0000 (16:24 -0800)]
python3-native: Should not search the system for headers/libraries.
The specific issue here is rpc/rpc.h, but its likely more general.
/usr/include is searched for rpc/rpc.h and if it exists on the
system, it changes behavior. If you are using the extended buildtools
tarball on a machine that has /usr/include/rpc/rpc.h, it will decide
that is good enough and not continue to search. nis fails to build
because /usr/include and /usr/lib are not part of the include/link
paths for the buildtools tarball compiler(nor should they be).
This makes it so python3-native will not build if you are using the
extended buildtools tarball, but from a larger issue perspective it
is building in likely different ways depending on what machine it
is building on.
libtirpc is already a depend so we shouldn't need the hosts rpc/rcp.h.
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 400743867de587579dee85388c30190f353f80c8) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
inetutils: Use alternatives to avoid manpage conflict
Fix the following manpage conflicts:
* check_data_file_clashes: Package inetutils-doc wants to install file /usr/share/man/man1/tftp.1
But that file is already provided by package * tftp-hpa-doc
* check_data_file_clashes: Package inetutils-doc wants to install file /usr/share/man/man8/tftpd.8
But that file is already provided by package * tftp-hpa-doc
* check_data_file_clashes: Package netkit-telnet-doc wants to install file /usr/share/man/man8/telnetd.8
But that file is already provided by package * inetutils-doc
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fc14bfd60ad86094f65ebefbd10dbddc112d2698) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Lee Chee Yang [Wed, 1 Apr 2020 06:39:56 +0000 (14:39 +0800)]
wic: align layer plugin path
wic look for external layer source plugin under scripts/lib/
while other tools look for lib/.
allow wic to check for source plugin at both scripts/lib/ and
lib/ to align with other tools while avoid breaking any existing
source plugin in external layer.
[YOCTO #13056]
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 986baff26bd96a6265f5fe2d631818fff9f66374) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Mon, 30 Mar 2020 15:31:52 +0000 (16:31 +0100)]
pseudo: Ensure we use our own libsqlite
pseudo-native is special in that bitbake ends up executing it from the
sysroot-components directory before we have any workdirs for the bitbake
fakeroot worker. Since we switched to dynamically linking sqlite, it
means sqlite from the host system may be found, we really want the version
in sysroot-components. Trying to run tasks to create some special environment
for pseudo is hard and error prone. The simplest fix is to add an RPATH to
the binary so that it can correctly find the sqlite we want.
Unfortunately passing $ORIGIN into make doesn't work so well with shell
quoting so we have to fix that during do_install.
[YOCTO #13814]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3937ca9e2dfabb1ce9bce1d536b60b1e2a43739b) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Lee Chee Yang [Tue, 31 Mar 2020 07:26:03 +0000 (15:26 +0800)]
cve-check: CPE version '-' as all version
CPE version could be '-' to mean no version info.
Current cve_check treat it as not valid and does not report these
CVE but some of these could be a valid vulnerabilities.
Since non-valid CVE can be whitelisted, so treat '-' as all version
and report all these CVE to capture possible vulnerabilities.
Non-valid CVE to be whitelisted separately.
[YOCTO #13617]
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c69ee3594079589d27c10db32bc288566ebde9ef) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Paul Barker [Mon, 9 Mar 2020 14:21:37 +0000 (14:21 +0000)]
kernelsrc.bbclass: Fix externalsrc support
When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.
We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2c17d35cc7b9c5e01fd5829858d2f0234e7ac8d6) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Paul Barker [Mon, 9 Mar 2020 14:21:38 +0000 (14:21 +0000)]
perf: Fix externalsrc support
When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.
We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eab605bab94552046ec4adae5debe026cc03bb4c) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Paul Barker [Mon, 9 Mar 2020 14:21:39 +0000 (14:21 +0000)]
kernel-yocto.bbclass: Support config fragments with externalsrc
The merging of config fragments is performend in the do_kernel_configme
task and so config fragments will not be supported when this task is
removed from the dependency tree.
kernel-yocto adds additional tasks which may modify the source directory
to SRCTREECOVEREDTASKS so that they are removed when using externalsrc.
However, do_kernel_configme should be safe to use, the only modification
to the source tree is the potential creation of the '.kernel-meta'
directory and the '.metadir' file.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44f04c039a4d61dd18666e42b9b9865cbc3ada9e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Jan Luebbe [Wed, 1 Apr 2020 14:58:04 +0000 (16:58 +0200)]
lib/oe/package_manager: avoid installing provided packages via apt
If there already is a package providing (and conflicting against)
packages what should be installed, apt will try remove the conflicting
package (target-sdk-provides-dummy) and any that depend on it (like apt
and dpkg). This usually fails because of the protection of essential
packages. In that case, no -dev/-dbg packages are installed to the SDK.
Avoid this problem by checking which packages are already provided and
removing them from the list to be installed. Also sort the list to make
it easier to read when debugging.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ffb339dd55f8ca7c952fd3390608510f772e19f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Jan Luebbe [Wed, 1 Apr 2020 14:58:02 +0000 (16:58 +0200)]
lib/oe/package_manager: fix handling of last package
In commit 7d214b34e11dc57316ed5c1c7747c4601286f6d2, only the code in the
for loop was modified to store the pkgarch value. The code used if there
was no empty line at the end was not modified.
Instead of fixing the duplicated code, remove it and just make sure that
a final empty line is processed.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a7b93c695b23d015607b179d98526b9b14c03d45) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Jan Luebbe [Wed, 1 Apr 2020 14:58:01 +0000 (16:58 +0200)]
lib/oe/package_manager: make sure to not remove packages in apt install
apt install can decide to remove already installed packages if there are
conflicts. Avoid this by explicitly specifying --no-remove. This will
then cause a "E: Packages need to be removed but remove is disabled."
message.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9605a488b55042add012e9aeef13ab3f4e70e6e5) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Jeremy Puhlman [Thu, 2 Apr 2020 22:58:20 +0000 (15:58 -0700)]
busybox: on upgrade save busybox if it is the last shell
During a busybox upgrade on a ipk based system, it is possible
that busybox is the only shell in the system. During the uninstall
the alternative for /bin/sh is removed and everything after that
goes down hill.
* Add a check to verify if busybox is the shell, and save it to
the busyboxrm directory created in tmp. Then add an alternative
for /bin/sh that points to that busybox at the lowest priority.
* Add PATH to the busyboxrm directory using shell(as during an upgrade
busybox and its links are missing).
* When install over remove extra busybox if present.
deb and rpm are uneffected by the bug because they both drag in bash,
however neither upgrade seemed to have issue with the changes.
[YOCTO 13850]
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a9d2af8f5b3da8239cf00a52883ca596a19ea23a) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
haiqing [Fri, 27 Mar 2020 02:38:05 +0000 (10:38 +0800)]
glib-2.0: fix CVE-2020-6750
GSocketClient in GNOME GLib through 2.62.4 may occasionally connect directly
to a target address instead of connecting via a proxy server when configured
to do so, because the proxy_addr field is mishandled. This bug is timing-dependent
and may occur only sporadically depending on network delays. The greatest security
relevance is in use cases where a proxy is used to help with privacy/anonymity,
even though there is no technical barrier to a direct connection.
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Marek Vasut [Sun, 29 Mar 2020 21:23:14 +0000 (23:23 +0200)]
lttng-modules: update to 2.10.14
Upgrade to version 2.10.14 in order to fix some build errors
with latest 5.4 kernel.
- conflicting types for 'trace_rcu_dyntick'
Reproductible on kernel greater than v5.4.22, starting with commit 6cf539a87a ("rcu: Fix data-race due to atomic_t copy-by-value")
Also drop patches which are no longer required.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Armin Kuster <akuster808@gmail.com> Cc: Daniel Dragomir <Daniel.Dragomir@windriver.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Spilts out the inc file for u-boot-tools so that BSPs can include it for
their forked version of the tools, just like u-boot.inc.
As an example, this recipe [1] builds mkimage u-boot as part of the
u-boot recipe itself. This is incorrect because u-boot is a target
recipe, which means that the uninative loader transformations do not get
applied when the recipe is restored from sstate, breaking the mkimage
command breaks. The correct solution is to have a u-boot-tools-imx
recipe that pulls in their custom u-boot source; this inc file makes
that much easier to maintain.
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 590555e3b8ccbd94b628aa6778adea7f4538d966) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Bruce Ashfield [Tue, 17 Mar 2020 04:39:16 +0000 (00:39 -0400)]
linux-yocto/4.19: update to v4.19.107
Updating linux-yocto/4.19 to the latest korg -stable release that comprises
the following commits:
16ae5406361a crypto: CVE-2019-18808 a083db76118d Linux 4.19.107 cfc30449bbc5 Revert "char/random: silence a lockdep splat with printk()" 8541452acba5 s390/mm: Explicitly compare PAGE_DEFAULT_KEY against zero in storage_key_init_range fee87e931cc5 xen: Enable interrupts when calling _cond_resched() 28a73a946a46 ata: ahci: Add shutdown to freeze hardware resources of ahci 43cac315bec1 rxrpc: Fix call RCU cleanup using non-bh-safe locks acbc5071f073 netfilter: xt_hashlimit: limit the max size of hashtable 5a2972600a2f ALSA: seq: Fix concurrent access to queue current tick/time b105447809b1 ALSA: seq: Avoid concurrent access to queue flags 63495d1e1c7c ALSA: rawmidi: Avoid bit fields for state flags bf3043d27755 bpf, offload: Replace bitwise AND by logical AND in bpf_prog_offload_info_fill 3132696dd748 genirq/proc: Reject invalid affinity masks (again) ba2c07dfa0d8 iommu/vt-d: Fix compile warning from intel-svm.h c0965be4b28b ecryptfs: replace BUG_ON with error handling code 1bae8f424c84 staging: greybus: use after free in gb_audio_manager_remove_all() 568991c91849 staging: rtl8723bs: fix copy of overlapping memory f8e6a3412dc6 usb: dwc2: Fix in ISOC request length checking de8dbb7b02fa usb: gadget: composite: Fix bMaxPower for SuperSpeedPlus 1cad1a6497ec scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session" c66b2b571211 scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout" b046c6fec04e Revert "dmaengine: imx-sdma: Fix memory leak" cd26d53a27d6 Btrfs: fix btrfs_wait_ordered_range() so that it waits for all ordered extents 4d886f91ca13 btrfs: do not check delayed items are empty for single transaction cleanup 68b7db197bf8 btrfs: reset fs_root to NULL on error in open_ctree 0ba8e5f347b2 btrfs: fix bytes_may_use underflow in prealloc error condtition e541982a6e5f KVM: apic: avoid calculating pending eoi from an uninitialized val 267eec2d216d KVM: nVMX: handle nested posted interrupts when apicv is disabled for L1 85dd0eb771e8 KVM: nVMX: Check IO instruction VM-exit conditions e5c0857bd5cc KVM: nVMX: Refactor IO bitmap checks into helper function 8cf20fb73e73 ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 48fdbe2a818d ext4: rename s_journal_flag_rwsem to s_writepages_rwsem b7dc081c24db ext4: fix mount failure with quota configured as module 50017cec3dbb ext4: fix potential race between s_flex_groups online resizing and access 7720966a68c8 ext4: fix potential race between s_group_info online resizing and access cc9948abe47b ext4: fix potential race between online resizing and write operations 38884609b8b5 ext4: add cond_resched() to __ext4_find_entry() 9b6e90918bc0 ext4: fix a data race in EXT4_I(inode)->i_disksize 0e3a6e86d43b drm/nouveau/kms/gv100-: Re-set LUT after clearing for modesets da3418ad747f lib/stackdepot.c: fix global out-of-bounds in stack_slabs 56ad5b4b7405 tty: serial: qcom_geni_serial: Fix RX cancel command failure e6ebad85883d tty: serial: qcom_geni_serial: Remove xfer_mode variable 4e438733f727 tty: serial: qcom_geni_serial: Remove set_rfr_wm() and related variables 1cc8834773b2 tty: serial: qcom_geni_serial: Remove use of *_relaxed() and mb() 4d1a94fa6d14 tty: serial: qcom_geni_serial: Remove interrupt storm 0a38fd9326fd tty: serial: qcom_geni_serial: Fix UART hang fe1cfc645845 KVM: x86: don't notify userspace IOAPIC on edge-triggered interrupt EOI ed9e97c35b45 KVM: nVMX: Don't emulate instructions in guest mode 6ca274be314b xhci: apply XHCI_PME_STUCK_QUIRK to Intel Comet Lake platforms 8300ed5a2175 drm/amdgpu/soc15: fix xclk for raven 837ba4829b9f mm/vmscan.c: don't round up scan size for online memory cgroup ea2a11561d01 genirq/irqdomain: Make sure all irq domain flags are distinct 576c04cbbef2 nvme-multipath: Fix memory leak with ana_log_buf e75d2de90b86 mm/memcontrol.c: lost css_put in memcg_expand_shrinker_maps() cf85f00f87db Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()" af4693daff1b MAINTAINERS: Update drm/i915 bug filing URL c9ca2010202b serdev: ttyport: restore client ops on deregistration 463a3db812d9 tty: serial: imx: setup the correct sg entry for tx dma 6807593e8edc tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode f4e6d51f3f40 serial: 8250: Check UPF_IRQ_SHARED in advance f28ec250579c x86/cpu/amd: Enable the fixed Instructions Retired counter IRPERF 5e5b443ae6cc x86/mce/amd: Fix kobject lifetime 0a3aca3a0f41 x86/mce/amd: Publish the bank pointer only after setup has succeeded 4512119ac90a jbd2: fix ocfs2 corrupt when clearing block group bits 72e2df70fb52 powerpc/tm: Fix clearing MSR[TS] in current when reclaiming on signal delivery e34182fb8a2f staging: rtl8723bs: Fix potential overuse of kernel memory e4770de3ae41 staging: rtl8723bs: Fix potential security hole b4eab56d96f1 staging: rtl8188eu: Fix potential overuse of kernel memory 2a50bd9e2a69 staging: rtl8188eu: Fix potential security hole d59f6a6e35b7 usb: dwc3: gadget: Check for IOC/LST bit in TRB->ctrl fields c787444891a4 usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows 8cfda0c9c966 USB: hub: Fix the broken detection of USB3 device in SMSC hub 37d2eb43b64c USB: hub: Don't record a connect-change event during reset-resume babaa26b7c1c USB: Fix novation SourceControl XL after suspend 2debc1717cf2 usb: uas: fix a plug & unplug racing 4db4761cfe15 USB: quirks: blacklist duplicate ep on Sound Devices USBPre2 63d176ed148a USB: core: add endpoint-blacklist quirk d74d5d042d42 usb: host: xhci: update event ring dequeue pointer on purpose 2a2582dc62e9 xhci: Fix memory leak when caching protocol extended capability PSI tables - take 2 7c8cde41a0c3 xhci: fix runtime pm enabling for quirky Intel hosts dce60e7efa97 xhci: Force Maximum Packet size for Full-speed bulk devices to valid range.
<snip>
c7f81d70d7ae ubifs: Fix default compression selection in ubifs 3331e61b23b1 nvme: fix kernel paging oops 2f99d478ddbd xfs: require both realtime inodes to mount b2d84967f076 bcache: do not mark writeback_running too early 6f48e23888b9 bcache: do not check if debug dentry is ERR or NULL explicitly on remove c318f88411a8 rtl818x: fix potential use after free 7cf86c89d7e4 brcmfmac: set SDIO F1 MesBusyCtrl for CYW4373 38b73129c113 brcmfmac: set F2 watermark to 256 for 4373 6138e4b132cd mwifiex: debugfs: correct histogram spacing, formatting 1450ff720076 mwifiex: fix potential NULL dereference and use after free 4912b454e029 arm64: dts: renesas: draak: Fix CVBS input 48d37cc42390 crypto: user - support incremental algorithm dumps 43cd68d7002b s390/zcrypt: make sysfs reset attribute trigger queue reset 5ac0da68eae1 nvme: provide fallback for discard alloc failure d702d7bc7eb4 scsi: qla2xxx: Fix for FC-NVMe discovery for NPIV port 78777dd6174e scsi: qla2xxx: Fix NPIV handling for FC-NVMe 58ab95b03497 scsi: lpfc: Enable Management features for IF_TYPE=6 e772949a3fd6 ACPI / LPSS: Ignore acpi_device_fix_up_power() return value d411bd858447 ARM: ks8695: fix section mismatch warning 22227437ca68 xfs: zero length symlinks are not valid 4d54a7969524 PM / AVS: SmartReflex: NULL check before some freeing functions is not needed d2e3e3c3c14b RDMA/vmw_pvrdma: Use atomic memory allocation in create AH 64694b276d74 arm64: preempt: Fix big-endian when checking preempt count in assembly 2ec103458855 RDMA/hns: Fix the bug while use multi-hop of pbl 60da6da4b511 ARM: OMAP1: fix USB configuration for device-only setups 0086d127f90d platform/x86: mlx-platform: Fix LED configuration 08d8ab9615c5 bus: ti-sysc: Check for no-reset and no-idle flags at the child level 4b40393b5240 arm64: smp: Handle errors reported by the firmware e3d27b94111b arm64: mm: Prevent mismatched 52-bit VA support 57f3359cdabe ARM: dts: Fix hsi gdd range for omap4 9b1f6bde17d6 parisc: Fix HP SDC hpa address output d18f228f504e parisc: Fix serio address output 72a50a1e1c65 ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication bf39f5b323eb ARM: dts: imx25: Fix memory node duplication d2eb50e57a5c ARM: dts: imx27: Fix memory node duplication 54750b6f6671 ARM: dts: imx1: Fix memory node duplication 6aeb6bd0eda6 ARM: dts: imx23: Fix memory node duplication 1694780bd4ca ARM: dts: imx50: Fix memory node duplication 2442b4c0f30a ARM: dts: imx6sl: Fix memory node duplication bae011f4c9a4 ARM: dts: imx6sx: Fix memory node duplication 0990926c9395 ARM: dts: imx6ul: Fix memory node duplication e021f0ccc4fa ARM: dts: imx7: Fix memory node duplication a90469345b26 ARM: dts: imx35: Fix memory node duplication 6bc1e695b4be ARM: dts: imx31: Fix memory node duplication ca02e14bdd7f ARM: dts: imx53: Fix memory node duplication 5a1e6f95733c ARM: dts: imx51: Fix memory node duplication 8c0c8c2a80b2 ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed dee3f7703207 tracing: Lock event_mutex before synth_event_mutex 67547b9b4660 ARM: dts: Fix up SQ201 flash access ee6d2bedb400 scsi: lpfc: Fix dif and first burst use in write commands 20feb7333049 scsi: lpfc: Fix kernel Oops due to null pring pointers a8c0f6334e56 scsi: target/tcmu: Fix queue_cmd_ring() declaration 480233f89d42 pwm: bcm-iproc: Prevent unloading the driver module while in use 27d22db4ccf1 block: drbd: remove a stray unlock in __drbd_send_protocol() 51a564498cfb mac80211: fix station inactive_time shortly after boot b707e0da2791 net/fq_impl: Switch to kvmalloc() for memory allocation a8a61f82cc9f ceph: return -EINVAL if given fsc mount option on kernel w/o support 0f716cda304b net: mscc: ocelot: fix __ocelot_rmw_ix prototype a30c6e424fdd net: bcmgenet: reapply manual settings to the PHY acd6a29134f0 net: bcmgenet: use RGMII loopback for MAC reset ff3f7465ee98 scripts/gdb: fix debugging modules compiled with hot/cold partitioning 22f4892950b2 ASoC: stm32: sai: add restriction on mmap support 3f034e6889e7 watchdog: meson: Fix the wrong value of left time 7302e7b10855 can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition 24e10fc2e0db can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sorted() fails ee7981538293 can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error 5c8f5485614c can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error eca4b786f3bb can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors a85ce0107d6b can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM b83d4e4899d6 can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max 77f94f0d7f52 can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak 66e21b7b9251 can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open 7559e68ca91f can: peak_usb: report bus recovery as well c5b0bbef4367 bridge: ebtables: don't crash when using dnat target in output chains 2070b33ee987 net: fec: add missed clk_disable_unprepare in remove 28f34294442b clk: ti: clkctrl: Fix failed to enable error with double udelay timeout cb5a4049608c clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call 1677a0e54937 x86/resctrl: Prevent NULL pointer dereference when reading mondata 8ef58b82d1e4 idr: Fix idr_alloc_u32 on 32-bit systems 88358c7610cc idr: Fix integer overflow in idr_for_each_entry a6359d5e2d98 powerpc/bpf: Fix tail call implementation 4665759af735 samples/bpf: fix build by setting HAVE_ATTR_TEST to zero 40c3b8fc47b3 ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend 40017db20bfa clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18 49ade064ea4b clk: sunxi: Fix operator precedence in sunxi_divs_clk_setup 15fc2f3c64e7 clk: at91: avoid sleeping early 8885552a061b reset: fix reset_control_ops kerneldoc comment a94913c0c8cf ARM: dts: imx6qdl-sabreauto: Fix storm of accelerometer interrupts 5b15b1bf5428 pinctrl: cherryview: Allocate IRQ chip dynamic a0554203bc12 clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume 80e28fa256c9 ASoC: kirkwood: fix device remove ordering 6a7472add344 ASoC: kirkwood: fix external clock probe defer a2c2cf16b059 clk: samsung: exynos5433: Fix error paths 9a5933aa1242 reset: Fix memory leak in reset_control_array_put() e8eb6233be9a ASoC: compress: fix unsigned integer overflow check 7971b7fd5623 ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX daa2c4030510 clocksource/drivers/mediatek: Fix error handling 9c65bb9518ea clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Tom Hochstein [Wed, 25 Mar 2020 13:40:24 +0000 (08:40 -0500)]
security_flags.inc: fix flags missing from SDK toolchain
The security flags were missing from the SDK toolchain
because they were added specifically to class-target.
Add them to class-cross-canadian as well (since the SDK environment
file is created from cross-canadian target flags).
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Antoine Manache <a.manache@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Anuj Mittal [Fri, 20 Mar 2020 17:23:54 +0000 (19:23 +0200)]
e2fsprogs: backport upstream patch
Fixes a bug wherein a use after free could potentially be used to run
malicious code if a user can be tricked into running e2fsck on a
maliciously crafted file system.
Also see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948517
nfs-utils 2.4.1, moves from "stat" to "statx
with AT_STATX_DONT_SYNC" in parts of the code.
statx is supported in Linux kernel v4.11 and above.
For all older kernels glibc emulates statx, and it
doesn't support AT_STATX_DONT_SYNC and will return
EINVAL.
When server uses nfs-utils 2.4.1 on kernel v4.10
and older, mount.nfs4 would fail with error
"reason given by server: No such file or directory".
Since Linux v4.4 and v4.9 are LTS, its more likely
that people would use above combination.
This issue has been fixed in nfs-utils 2.4.3 and
above. Backporting fix to 2.4.1.
Signed-off-by: Julius Hemanth Pitti <jpitti@cisco.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Ross Burton [Thu, 19 Mar 2020 19:19:13 +0000 (20:19 +0100)]
sanity: check for more bits of Python
MJ: icu in master doesn't need distutils anymore, because icu 65.1 currently in
dunfell/master doesn't depend on python3-distutils anymore since:
https://github.com/unicode-org/icu/commit/b4d41b0561b6e8de38b99850ce0e4be8ef536bb1
but the icu-64.2 in zeus and openembedded-core/meta/recipes-core/ovmf/ovmf_git.bb
still need python3-distutils as described in:
http://lists.openembedded.org/pipermail/openembedded-core/2020-March/293984.html
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Anuj Mittal [Fri, 13 Mar 2020 01:09:38 +0000 (09:09 +0800)]
bluez: fix CVE-2020-0556
It was discovered that BlueZ's HID and HOGP profiles implementations
don't specifically require bonding between the device and the host.
This creates an opportunity for an malicious device to connect to a
target host to either impersonate an existing HID device without
security or to cause an SDP or GATT service discovery to take place
which would allow HID reports to be injected to the input subsystem from
a non-bonded source.
Stefan Ghinea [Thu, 12 Mar 2020 09:23:22 +0000 (11:23 +0200)]
aspell: CVE-2019-20433
libaspell.a in GNU Aspell before 0.60.8 has a buffer over-read for a string
ending with a single '\0' byte, if the encoding is set to ucs-2 or ucs-4
outside of the application, as demonstrated by the ASPELL_CONF environment
variable.