Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
7879ba4
qemu: fix CVE-2021-3713
sajal-wr Feb 2, 2022
6fe3b10
qemu: fix CVE-2021-3748
sajal-wr Feb 2, 2022
f050457
qemu: fix CVE-2021-3930
sajal-wr Feb 2, 2022
3014cb6
qemu: fix CVE-2021-20196
sajal-wr Feb 2, 2022
3eceda6
sstate: A third fix for for touching files inside pseudo
Saur2000 Jan 29, 2022
61bb3c2
linux-yocto/5.10: update to v5.10.92
zeddii Jan 27, 2022
8104d93
linux-yocto/5.10: update to v5.10.93
zeddii Jan 27, 2022
c51ace4
linux-firmware: Add CLM blob to linux-firmware-bcm4373 package
rstreif Jan 26, 2022
606924b
yocto-check-layer: add debug output for the layers that were found
rossburton Jan 24, 2022
da94504
libusb1: correct SRC_URI
kanavin Jan 27, 2022
8a50809
expat: fix CVE-2022-23852
sakoman Jan 31, 2022
a32cee6
expat: add missing Upstream-status, CVE tag and sign-off to CVE-2021-…
sakoman Jan 31, 2022
d57b748
sdk: fix search for dynamic loader
ceggers-arri Feb 14, 2022
d5bdff4
glibc: upgrade glibc-2.33 to latest version
pgowda-cve Jan 30, 2022
5e5874d
recipetool: Fix circular reference in SRC_URI
Feb 3, 2022
a941912
scripts/runqemu-ifdown: Don't treat the last iptables command as special
danielocfb Feb 2, 2022
113b21f
cve-check: create directory of CVE_CHECK_MANIFEST before copy
herbrechtsmeier Feb 2, 2022
5e9acfd
linux-yocto/5.10: update to v5.10.96
zeddii Feb 4, 2022
3d9f68e
default-distrovars.inc: Switch connectivity check to a yoctoproject.o…
rpurdie Feb 11, 2022
b8f68a7
linux-yocto/5.10: update to v5.10.99
zeddii Feb 13, 2022
6694992
linux-yocto/5.4: update to v5.4.173
zeddii Feb 9, 2022
963a1f6
linux-yocto/5.4: update to v5.4.176
zeddii Feb 9, 2022
10072a5
linux-yocto/5.4: update to v5.4.178
zeddii Feb 9, 2022
1ef8e3e
vim: update to include latest CVE fixes
rossburton Jan 17, 2022
e6fe342
vim: upgrade to patch 4269
rossburton Jan 31, 2022
4c3d046
runtime_test: skip virgl test on fedora 34
anujm1 Feb 17, 2022
29cd1d7
build-appliance-image: Update to hardknott head revision
rpurdie Feb 20, 2022
225f8b2
virglrenderer: fix CVE-2022-0135 and -0175
jwslater0823 Feb 16, 2022
dc30243
expat: fix CVE-2022-23990
kkang-wr Feb 23, 2022
9fe70a6
e2fsprogs: backport to fix one regression
sandy-lcq Feb 21, 2022
78c5401
gstreamer1.0: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
89fd2e0
gstreamer1.0-plugins-base: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
4e5d05e
gstreamer1.0-plugins-bad: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
27c6230
gstreamer1.0-plugins-good: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
802c2b2
gstreamer1.0-rtsp-server: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
f4898a6
gstreamer1.0-libav: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
7ecce4b
gstreamer1.0-vaapi: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
4abf164
gstreamer1.0-omx: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
e725b55
gstreamer1.0-python: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
9d3b427
gst-devtools: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
446273b
gst-examples: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
85a95f4
gstreamer1.0-plugins-ugly: 1.18.4 -> 1.18.5
quaresmajose Oct 3, 2021
03bab61
gstreamer1.0: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
47f0d37
gstreamer1.0-plugins-base: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
9faccf7
gstreamer1.0-plugins-good: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
49b65ad
gstreamer1.0-plugins-bad: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
fe9825a
gstreamer1.0-plugins-ugly: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
5697581
gstreamer1.0-vaapi: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
e1b51a9
gstreamer1.0-libav: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
be1c1ad
gstreamer1.0-omx: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
4cb69f7
gstreamer1.0-rtsp-server: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
f72a3ab
gst-examples: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
8cabb66
gstreamer1.0-python: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
1233bc8
gst-devtools: 1.18.5 -> 1.18.6
quaresmajose Feb 19, 2022
1d9dbc5
mc: fix build if ncurses have been configured without wide characters
ceggers-arri Feb 16, 2022
c17205c
devtool: deploy-target: Remove stripped binaries in pseudo context
Feb 2, 2022
140247e
vim: Upgrade 4269 -> 4134
rpurdie Feb 6, 2022
9998839
initramfs-framework: unmount automounts before switch_root
jsbronder Feb 10, 2022
450fc48
linux-firmware: upgrade 20211216 -> 20220209
wangmingyu84 Feb 14, 2022
6a262ad
vim: Upgrade 8.2.4314 -> 8.2.4424
rpurdie Feb 20, 2022
5bde365
uninative: Upgrade to 3.5
halstead Feb 11, 2022
d2985bd
libarchive: upgrade 3.5.1 -> 3.5.2
kanavin Oct 19, 2021
143db8b
libarchive : update to 3.5.3
cheeyanglee Feb 24, 2022
86cdad6
package_manager: ipk: Fix host manifest generation
mobbitster Dec 29, 2021
f153f42
ccache: upgrade 4.2 -> 4.2.1
wangmingyu84 Mar 31, 2021
94db710
scripts/buildhistory-diff: drop use of distutils
Oct 30, 2021
7b5723a
go: upgrade 1.16.13 -> 1.16.14
sajal-wr Mar 1, 2022
edb6df0
ruby : update to 3.0.3
cheeyanglee Feb 28, 2022
9b0199a
ghostscript: fix CVE-2021-45949
flowergom Feb 28, 2022
11b20e3
libgcrypt: Upgrade 1.9.3 -> 1.9.4
rpurdie Feb 28, 2022
a5bade2
lttng-modules: upgrade 2.12.6 -> 2.12.7
anujm1 Mar 7, 2022
3505370
wireless-regdb: upgrade 2021.08.28 -> 2022.02.18
wangmingyu84 Feb 23, 2022
fc185ae
selftest: recipetool: Correct the URI for socat
Saur2000 Feb 27, 2022
e5beba0
asciidoc: update git repository
rossburton Mar 4, 2022
0ce1742
linux-yocto/5.10: ppc/riscv: fix build with binutils 2.3.8
zeddii Feb 13, 2022
a8d750c
linux-yocto/5.10: fix dssall build error with binutils 2.3.8
zeddii Feb 15, 2022
4c6189b
linux-yocto/5.10: features/zram: remove CONFIG_ZRAM_DEF_COMP
zeddii Mar 5, 2022
5f8c822
linux-yocto/5.10: update to v5.10.101
zeddii Mar 5, 2022
3148b11
linux-yocto/5.10: Fix ramoops/ftrace
zeddii Mar 5, 2022
a16f299
linux-yocto/5.10: update to v5.10.103
zeddii Mar 5, 2022
d0b1807
unfs3: correct configure option
sandy-lcq May 24, 2021
29d86bc
patch.py: Prevent git repo reinitialization
landgraf Mar 7, 2022
60dd7d2
expat: fix CVE-2022-25235
kkang-wr Mar 11, 2022
fd0271e
expat: fix CVE-2022-25236
kkang-wr Mar 11, 2022
3d05b9b
sstate: inside the threadedpool don't write to the shared localdata
quaresmajose Mar 6, 2022
cbbe79e
vim: Update to 8.2.4524 for further CVE fixes
rpurdie Mar 7, 2022
bcef806
wic: Use custom kernel path if provided
Feb 15, 2022
efb9911
openssl: upgrade 1.1.1l -> 1.1.1n
opanait-wr Mar 20, 2022
ad18c90
gnu-config: update SRC_URI
flowergom Mar 22, 2022
53c9090
virglrenderer: update SRC_URI
flowergom Mar 22, 2022
38e97e6
libxml2: Fix CVE-2022-23308
jwslater0823 Mar 24, 2022
0a5d1b1
zip: modify when match.S is built
jwslater0823 Mar 18, 2022
5dacf8e
webkitgtk : update to 2.30.6
cheeyanglee Mar 18, 2022
3462c76
go: update to 1.16.15
cheeyanglee Mar 18, 2022
ecd1588
linux-firmware: upgrade 20220209 -> 20220310
wangmingyu84 Mar 15, 2022
1e7b604
mobile-broadband-provider-info: upgrade 20201225 -> 20210805
kanavin Aug 22, 2021
c6eed3f
mobile-broadband-provider-info: upgrade 20210805 -> 20220315
chbae Mar 15, 2022
f30d642
linux-yocto: nohz_full boot arg fix
zeddii Mar 22, 2022
c8bfdc0
linux-yocto/5.10: split vtpm for more granular inclusion
zeddii Mar 22, 2022
547e783
linux-yocto/5.10: cfg/debug: add configs for kcsan
zeddii Mar 22, 2022
9e677a8
linux-yocto-rt/5.10: update to -rt61
zeddii Mar 22, 2022
03c3af8
linux-yocto/5.10: update to v5.10.107
zeddii Mar 22, 2022
76d5c8d
flac: fix CVE-2021-0561
Mar 25, 2022
125c6f5
epiphany: fix CVEs
Mar 29, 2022
9a69897
python3-numpy: fix CVE-2021-41496
Mar 29, 2022
90b9356
zlib: backport the fix for CVE-2018-25032
rossburton Mar 29, 2022
4011526
lttng-modules: upgrade 2.12.7 -> 2.12.8
anujm1 Mar 31, 2022
fbbb689
toaster: Fix broken overrides usage
rpurdie Mar 19, 2022
b85522e
openembedded-core: Currency merge with upstream hardknott branch
gratian Apr 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions meta-selftest/recipes-test/gitrepotest/gitrepotest.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SUMMARY = "Test recipe for git repo initialization"
HOMEPAGE = "https://git.yoctoproject.org/git/matchbox-panel-2"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

INHIBIT_DEFAULT_DEPS = "1"

PATCHTOOL="git"

SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protocol=https \
file://0001-testpatch.patch \
"

SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7"

S = "${WORKDIR}/git"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
diff --git a/Makefile.am b/Makefile.am
index 432a9b4..bbf7c74 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,4 @@
+## This is useless comment to test if patch works
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = matchbox-panel applets data po
1 change: 1 addition & 0 deletions meta/classes/cve-check.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ python cve_check_write_rootfs_manifest () {
manifest_name = d.getVar("CVE_CHECK_MANIFEST")
cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE")

bb.utils.mkdirhier(os.path.dirname(manifest_name))
shutil.copyfile(cve_tmp_file, manifest_name)

if manifest_name and os.path.exists(manifest_name):
Expand Down
2 changes: 1 addition & 1 deletion meta/classes/sanity.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def check_connectivity(d):
msg += " Please ensure your host's network is configured correctly.\n"
msg += " If your ISP or network is blocking the above URL,\n"
msg += " try with another domain name, for example by setting:\n"
msg += " CONNECTIVITY_CHECK_URIS = \"https://www.yoctoproject.org/\""
msg += " CONNECTIVITY_CHECK_URIS = \"https://www.example.com/\""
msg += " You could also set BB_NO_NETWORK = \"1\" to disable network\n"
msg += " access if all required sources are on local disk.\n"
retval = msg
Expand Down
16 changes: 10 additions & 6 deletions meta/classes/sstate.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -827,14 +827,18 @@ sstate_create_package () {
fi
chmod 0664 $TFILE
# Skip if it was already created by some other process
if [ ! -e ${SSTATE_PKG} ]; then
if [ -h ${SSTATE_PKG} ] && [ ! -e ${SSTATE_PKG} ]; then
# There is a symbolic link, but it links to nothing.
# Forcefully replace it with the new file.
ln -f $TFILE ${SSTATE_PKG} || true
elif [ ! -e ${SSTATE_PKG} ]; then
# Move into place using ln to attempt an atomic op.
# Abort if it already exists
ln $TFILE ${SSTATE_PKG} && rm $TFILE
ln $TFILE ${SSTATE_PKG} || true
else
rm $TFILE
touch ${SSTATE_PKG} 2>/dev/null || true
fi
touch ${SSTATE_PKG} 2>/dev/null || true
rm $TFILE
}

python sstate_sign_package () {
Expand Down Expand Up @@ -864,7 +868,7 @@ python sstate_report_unihash() {
sstate_unpack_package () {
tar -xvzf ${SSTATE_PKG}
# update .siginfo atime on local/NFS mirror if it is a symbolic link
[ ! -h ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true
[ ! -h ${SSTATE_PKG}.siginfo ] || [ ! -e ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true
# update each symbolic link instead of any referenced file
touch --no-dereference ${SSTATE_PKG} 2>/dev/null || true
[ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig 2>/dev/null || true
Expand Down Expand Up @@ -946,7 +950,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,

localdata2 = bb.data.createCopy(localdata)
srcuri = "file://" + sstatefile
localdata.setVar('SRC_URI', srcuri)
localdata2.setVar('SRC_URI', srcuri)
bb.debug(2, "SState: Attempting to fetch %s" % srcuri)

try:
Expand Down
8 changes: 4 additions & 4 deletions meta/classes/toaster.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def _toaster_load_pkgdatafile(dirpath, filepath):
for line in fin:
try:
kn, kv = line.strip().split(": ", 1)
m = re.match(r"^PKG_([^A-Z:]*)", kn)
m = re.match(r"^PKG:([^A-Z:]*)", kn)
if m:
pkgdata['OPKGN'] = m.group(1)
kn = "_".join([x for x in kn.split("_") if x.isupper()])
pkgdata[kn] = kv.strip()
if kn == 'FILES_INFO':
kn = kn.split(":")[0]
pkgdata[kn] = kv
if kn.startswith('FILES_INFO'):
pkgdata[kn] = json.loads(kv)

except ValueError:
Expand Down
2 changes: 1 addition & 1 deletion meta/conf/distro/include/default-distrovars.inc
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ KERNEL_IMAGETYPES ??= "${KERNEL_IMAGETYPE}"
# fetch from the network (and warn you if not). To disable the test set
# the variable to be empty.
# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master;branch=master
CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/"
CONNECTIVITY_CHECK_URIS ?= "https://yoctoproject.org/connectivity.html"
10 changes: 5 additions & 5 deletions meta/conf/distro/include/yocto-uninative.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# to the distro running on the build machine.
#

UNINATIVE_MAXGLIBCVERSION = "2.34"
UNINATIVE_VERSION = "3.4"
UNINATIVE_MAXGLIBCVERSION = "2.35"
UNINATIVE_VERSION = "3.5"

UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/${UNINATIVE_VERSION}/"
UNINATIVE_CHECKSUM[aarch64] ?= "3013cdda8f0dc6639ce1c80f33eabce66f06b890bd5b58739a6d7a92a0bb7100"
UNINATIVE_CHECKSUM[i686] ?= "abed500de584aad63ec237546db20cdd0c69d8870a6f8e94ac31721ace64b376"
UNINATIVE_CHECKSUM[x86_64] ?= "126f4f7f6f21084ee140dac3eb4c536b963837826b7c38599db0b512c3377ba2"
UNINATIVE_CHECKSUM[aarch64] ?= "6de0771bd21e0fcb5e80388e5b561a8023b24083bcbf46e056a089982aff75d7"
UNINATIVE_CHECKSUM[i686] ?= "8c8745becbfa1c341bae839c7eab56ddf17ce36c303bcd73d3b2f2f788b631c2"
UNINATIVE_CHECKSUM[x86_64] ?= "e8047a5748e6f266165da141eb6d08b23674f30e477b0e5505b6403d50fbc4b2"
2 changes: 1 addition & 1 deletion meta/files/toolchain-shar-relocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fi

# fix dynamic loader paths in all ELF SDK binaries
native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*")
dl_path=$($SUDO_EXEC find $native_sysroot/lib -maxdepth 1 -name "ld-linux*")
if [ "$dl_path" = "" ] ; then
echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
exit 1
Expand Down
11 changes: 8 additions & 3 deletions meta/lib/oe/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,19 @@ def __init__(self, dir, d):

def _isInitialized(self):
cmd = "git rev-parse --show-toplevel"
(status, output) = subprocess.getstatusoutput(cmd.split())
try:
output = runcmd(cmd.split(), self.dir).strip()
except CmdError as err:
## runcmd returned non-zero which most likely means 128
## Not a git directory
return False
## Make sure repo is in builddir to not break top-level git repos
return status == 0 and os.path.samedir(output, self.dir)
return os.path.samefile(output, self.dir)

def _initRepo(self):
runcmd("git init".split(), self.dir)
runcmd("git add .".split(), self.dir)
runcmd("git commit -a --allow-empty -m Patching_started".split(), self.dir)
runcmd("git commit -a --allow-empty -m bitbake_patching_started".split(), self.dir)

@staticmethod
def extractPatchHeader(patchfile):
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def sdk_list_installed_packages(d, target, rootfs_dir=None):

rootfs_dir = [sdk_output, os.path.join(sdk_output, target_path)][target is True]

if target is False:
ipkgconf_sdk_target = d.getVar("IPKGCONF_SDK")
d.setVar("IPKGCONF_TARGET", ipkgconf_sdk_target)

img_type = d.getVar('IMAGE_PKGTYPE')
import importlib
cls = importlib.import_module('oe.package_manager.' + img_type)
Expand Down
18 changes: 16 additions & 2 deletions meta/lib/oeqa/selftest/cases/bbtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,22 @@ def test_git_patchtool(self):
src = get_bb_var("SRC_URI",test_recipe)
gitscm = re.search("git://", src)
self.assertFalse(gitscm, "test_git_patchtool pre-condition failed: {} test recipe contains git repo!".format(test_recipe))
result = bitbake('man-db -c patch', ignore_status=False)
result = bitbake('{} -c patch'.format(test_recipe), ignore_status=False)
fatal = re.search("fatal: not a git repository (or any of the parent directories)", result.output)
self.assertFalse(fatal, "Failed to patch using PATCHTOOL=\"git\"")
self.delete_recipeinc(test_recipe)
bitbake('-cclean man-db')
bitbake('-cclean {}'.format(test_recipe))

def test_git_patchtool2(self):
""" Test if PATCHTOOL=git works with git repo and doesn't reinitialize it
"""
test_recipe = "gitrepotest"
src = get_bb_var("SRC_URI",test_recipe)
gitscm = re.search("git://", src)
self.assertTrue(gitscm, "test_git_patchtool pre-condition failed: {} test recipe doesn't contains git repo!".format(test_recipe))
result = bitbake('{} -c patch'.format(test_recipe), ignore_status=False)
srcdir = get_bb_var('S', test_recipe)
result = runCmd("git log", cwd = srcdir)
self.assertFalse("bitbake_patching_started" in result.output, msg = "Repository has been reinitialized. {}".format(srcdir))
self.delete_recipeinc(test_recipe)
bitbake('-cclean {}'.format(test_recipe))
2 changes: 1 addition & 1 deletion meta/lib/oeqa/selftest/cases/recipetool.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def test_recipetool_create_simple(self):
temprecipe = os.path.join(self.tempdir, 'recipe')
os.makedirs(temprecipe)
pv = '1.7.3.0'
srcuri = 'http://www.dest-unreach.org/socat/download/socat-%s.tar.bz2' % pv
srcuri = 'http://www.dest-unreach.org/socat/download/Archive/socat-%s.tar.bz2' % pv
result = runCmd('recipetool create %s -o %s' % (srcuri, temprecipe))
dirlist = os.listdir(temprecipe)
if len(dirlist) > 1:
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oeqa/selftest/cases/runtime_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ def test_testimage_virgl_headless(self):
dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True)
except subprocess.CalledProcessError as e:
self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.")
distro = oe.lsb.distro_identifier()
if distro and distro == 'fedora-34':
self.skipTest('virgl isn\'t working with Fedora 34')
qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
features = 'INHERIT += "testimage"\n'
if 'opengl' not in qemu_distrofeatures:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ DESCRIPTION = "Mobile Broadband Service Provider Database stores service provide
SECTION = "network"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://COPYING;md5=87964579b2a8ece4bc6744d2dc9a8b04"
SRCREV = "90f3fe28aa25135b7e4a54a7816388913bfd4a2a"
PV = "20201225"

SRCREV = "4cbb44a9fe26aa6f0b28beb79f9488b37c097b5e"
PV = "20220315"
PE = "1"

SRC_URI = "git://gitlab.gnome.org/GNOME/mobile-broadband-provider-info.git;protocol=https;branch=master"
SRC_URI = "git://gitlab.gnome.org/GNOME/mobile-broadband-provider-info.git;protocol=https;branch=main"
S = "${WORKDIR}/git"

inherit autotools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SRC_URI_append_riscv32 = " \
file://0004-Fixup-support-for-io_pgetevents_time64-syscall.patch \
"

SRC_URI[sha256sum] = "0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1"
SRC_URI[sha256sum] = "40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a"

inherit lib_package multilib_header multilib_script ptest
MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"
Expand Down Expand Up @@ -204,6 +204,7 @@ do_install_ptest () {
install -m755 ${B}/apps/CA.pl ${D}${PTEST_PATH}/apps

install -d ${D}${PTEST_PATH}/engines
install -m755 ${B}/engines/dasync.so ${D}${PTEST_PATH}/engines
install -m755 ${B}/engines/ossltest.so ${D}${PTEST_PATH}/engines

# seems to be needed with perl 5.32.1
Expand Down
6 changes: 6 additions & 0 deletions meta/recipes-core/expat/expat/CVE-2021-46143.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Date: Sat, 25 Dec 2021 20:52:08 +0100
Subject: [PATCH] lib: Prevent integer overflow on m_groupSize in function
doProlog (CVE-2021-46143)

Upstream-Status: Backport:
https://github.com/libexpat/libexpat/pull/538/commits/85ae9a2d7d0e9358f356b33977b842df8ebaec2b

CVE: CVE-2021-46143

Signed-off-by: Steve Sakoman <[email protected]>
---
expat/lib/xmlparse.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Expand Down
33 changes: 33 additions & 0 deletions meta/recipes-core/expat/expat/CVE-2022-23852.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 847a645152f5ebc10ac63b74b604d0c1a79fae40 Mon Sep 17 00:00:00 2001
From: Samanta Navarro <[email protected]>
Date: Sat, 22 Jan 2022 17:48:00 +0100
Subject: [PATCH] lib: Detect and prevent integer overflow in XML_GetBuffer
(CVE-2022-23852)

Upstream-Status: Backport:
https://github.com/libexpat/libexpat/commit/847a645152f5ebc10ac63b74b604d0c1a79fae40

CVE: CVE-2022-23852

Signed-off-by: Steve Sakoman <[email protected]>

---
expat/lib/xmlparse.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c
index d54af683..5ce31402 100644
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -2067,6 +2067,11 @@ XML_GetBuffer(XML_Parser parser, int len) {
keep = (int)EXPAT_SAFE_PTR_DIFF(parser->m_bufferPtr, parser->m_buffer);
if (keep > XML_CONTEXT_BYTES)
keep = XML_CONTEXT_BYTES;
+ /* Detect and prevent integer overflow */
+ if (keep > INT_MAX - neededSize) {
+ parser->m_errorCode = XML_ERROR_NO_MEMORY;
+ return NULL;
+ }
neededSize += keep;
#endif /* defined XML_CONTEXT_BYTES */
if (neededSize
49 changes: 49 additions & 0 deletions meta/recipes-core/expat/expat/CVE-2022-23990.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
From ede41d1e186ed2aba88a06e84cac839b770af3a1 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <[email protected]>
Date: Wed, 26 Jan 2022 02:36:43 +0100
Subject: [PATCH] lib: Prevent integer overflow in doProlog (CVE-2022-23990)

The change from "int nameLen" to "size_t nameLen"
addresses the overflow on "nameLen++" in code
"for (; name[nameLen++];)" right above the second
change in the patch.

Upstream-Status: Backport:
https://github.com/libexpat/libexpat/pull/551/commits/ede41d1e186ed2aba88a06e84cac839b770af3a1

CVE: CVE-2022-23990

Signed-off-by: Steve Sakoman <[email protected]>

---
lib/xmlparse.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lib/xmlparse.c b/expat/lib/xmlparse.c
index 5ce31402..d1d17005 100644
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -5372,7 +5372,7 @@ doProlog(XML_Parser parser, const ENCODING *enc, const char *s, const char *end,
if (dtd->in_eldecl) {
ELEMENT_TYPE *el;
const XML_Char *name;
- int nameLen;
+ size_t nameLen;
const char *nxt
= (quant == XML_CQUANT_NONE ? next : next - enc->minBytesPerChar);
int myindex = nextScaffoldPart(parser);
@@ -5388,7 +5388,13 @@ doProlog(XML_Parser parser, const ENCODING *enc, const char *s, const char *end,
nameLen = 0;
for (; name[nameLen++];)
;
- dtd->contentStringLen += nameLen;
+
+ /* Detect and prevent integer overflow */
+ if (nameLen > UINT_MAX - dtd->contentStringLen) {
+ return XML_ERROR_NO_MEMORY;
+ }
+
+ dtd->contentStringLen += (unsigned)nameLen;
if (parser->m_elementDeclHandler)
handleDefault = XML_FALSE;
}
Loading