Re: [OE-core] SPDX 3 and OE-core CycloneDX support

2023-02-04 Thread Alexander Kanavin
On Sat, 4 Feb 2023 at 22:47, Alex Stewart  wrote:
> > At this point OpenEmbedded/Yocto Project has decided to go the SPDX
> > route for various reasons.
>
> Are those reasons documented somewhere?
>
> Something about CDX rubs me the wrong way (besides it being named like
> an off-brand printer company), but I can't put my finger on what. So if
> there are technical reasons that it is less desirable for the OE
> usecase, I'd like to know about them.

This is entirely non-technical, but what is the reason for CycloneDX
to exist in the first place? SPDX is an older standard, it's managed
by Linux Foundation, and yet some people decided to go off and write
their own thing instead of working with SPDX to evolve that in the
desired direction. And then they promote it with a long list of
company logos. Xkcd's standards link would be too tired and obvious
here.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176782): 
https://lists.openembedded.org/g/openembedded-core/message/176782
Mute This Topic: https://lists.openembedded.org/mt/96729387/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 2/3] libc-locale: Fix on target locale generation

2023-02-04 Thread Khem Raj
On Sat, Feb 4, 2023 at 3:41 AM Richard Purdie
 wrote:
>
> If on target locale generation is used, it fails at first boot showing
> errors about a missing directory. Ensure the directory exists.
>
> Signed-off-by: Richard Purdie 
> ---
>  meta/classes-recipe/libc-package.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes-recipe/libc-package.bbclass 
> b/meta/classes-recipe/libc-package.bbclass
> index de3d4223a8c..8a99f73ae72 100644
> --- a/meta/classes-recipe/libc-package.bbclass
> +++ b/meta/classes-recipe/libc-package.bbclass
> @@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0"
>  OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
>
>  locale_base_postinst_ontarget() {
> +mkdir ${libdir}/locale

should it be mkdir -p for when it does exist beforehand ?

>  localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
>  }
>
> --
> 2.37.2
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176781): 
https://lists.openembedded.org/g/openembedded-core/message/176781
Mute This Topic: https://lists.openembedded.org/mt/96742036/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 12/12] Fix missing leading whitespace with ':append'

2023-02-04 Thread Steve Sakoman
From: Niko Mauno 

Mitigate occurences where ':append' operator is used and leading
whitespace character is obviously missing, risking inadvertent
string concatenation.

(From OE-Core rev: fcd340ec53ff8352b8cae0eb351810072b025a08)

Signed-off-by: Niko Mauno 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
Signed-off-by: Steve Sakoman 
---
 meta/classes/populate_sdk_ext.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/populate_sdk_ext.bbclass 
b/meta/classes/populate_sdk_ext.bbclass
index aa00d5397c..b24f8d99d5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -117,7 +117,7 @@ python write_host_sdk_ext_manifest () {
 f.write("%s %s %s\n" % (info[1], info[2], info[3]))
 }
 
-SDK_POSTPROCESS_COMMAND_append_task-populate-sdk-ext = 
"write_target_sdk_ext_manifest; write_host_sdk_ext_manifest; "
+SDK_POSTPROCESS_COMMAND_append_task-populate-sdk-ext = " 
write_target_sdk_ext_manifest; write_host_sdk_ext_manifest; "
 
 SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or 
d.getVar('DISTRO')} Extensible SDK"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176780): 
https://lists.openembedded.org/g/openembedded-core/message/176780
Mute This Topic: https://lists.openembedded.org/mt/96752012/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 11/12] libtirpc: Check if file exists before operating on it

2023-02-04 Thread Steve Sakoman
From: Khem Raj 

In some cases (e.g. mingw) this file may not be installed

Signed-off-by: Khem Raj 
Signed-off-by: Luca Ceresoli 
Signed-off-by: Richard Purdie 
(cherry picked from commit 547f3a13ee9268bbdd439c96108ba1fe9ab78873)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb 
b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
index fe4e30e61f..80151ff83a 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb
@@ -22,7 +22,7 @@ inherit autotools pkgconfig
 EXTRA_OECONF = "--disable-gssapi"
 
 do_install_append() {
-   chown root:root ${D}${sysconfdir}/netconfig
+   test -e ${D}${sysconfdir}/netconfig && chown root:root 
${D}${sysconfdir}/netconfig
 }
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176779): 
https://lists.openembedded.org/g/openembedded-core/message/176779
Mute This Topic: https://lists.openembedded.org/mt/96752011/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 10/12] devtool: fix devtool finish when gitmodules file is empty

2023-02-04 Thread Steve Sakoman
From: Thomas Roos 

When a .gitmodules file exists but is empty then devtool finish fails.
Add an additional check for this.

[YOCTO #14999]

Signed-off-by: Thomas Roos 
Signed-off-by: Luca Ceresoli 
Signed-off-by: Richard Purdie 
(cherry picked from commit b4f0f7c4934bade9e4d4a1086f9d8b29d8e9ad45)
Signed-off-by: Steve Sakoman 
---
 meta/classes/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index ed118afada..9c9451e528 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -225,7 +225,7 @@ def srctree_hash_files(d, srcdir=None):
 env['GIT_INDEX_FILE'] = tmp_index.name
 subprocess.check_output(['git', 'add', '-A', '.'], cwd=s_dir, 
env=env)
 git_sha1 = subprocess.check_output(['git', 'write-tree'], 
cwd=s_dir, env=env).decode("utf-8")
-if os.path.exists(os.path.join(s_dir, ".gitmodules")):
+if os.path.exists(os.path.join(s_dir, ".gitmodules")) and 
os.path.getsize(os.path.join(s_dir, ".gitmodules")) > 0:
 submodule_helper = subprocess.check_output(["git", "config", 
"--file", ".gitmodules", "--get-regexp", "path"], cwd=s_dir, 
env=env).decode("utf-8")
 for line in submodule_helper.splitlines():
 module_dir = os.path.join(s_dir, 
line.rsplit(maxsplit=1)[1])
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176778): 
https://lists.openembedded.org/g/openembedded-core/message/176778
Mute This Topic: https://lists.openembedded.org/mt/96752010/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 09/12] devtool: Fix _copy_file() TypeError

2023-02-04 Thread Steve Sakoman
From: Xiaobing Luo 

when devtool finish, the _copy_file() failed.

TypeError: _copy_file() got an unexpected keyword argument
'base_outdir'


Fixes: 05f2d5d2ce00 ("devtool: finish: add dry-run option")

Signed-off-by: Xiaobing Luo 
Signed-off-by: Luca Ceresoli 
Signed-off-by: Richard Purdie 
(cherry picked from commit a45d9dc089fb2719ca69b92870917f8c0925f632)
Signed-off-by: Steve Sakoman 
---
 scripts/lib/devtool/standard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index f364a45283..cfa88616af 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -357,7 +357,7 @@ def _move_file(src, dst, dry_run_outdir=None, 
base_outdir=None):
 bb.utils.mkdirhier(dst_d)
 shutil.move(src, dst)
 
-def _copy_file(src, dst, dry_run_outdir=None):
+def _copy_file(src, dst, dry_run_outdir=None, base_outdir=None):
 """Copy a file. Creates all the directory components of destination 
path."""
 dry_run_suffix = ' (dry-run)' if dry_run_outdir else ''
 logger.debug('Copying %s to %s%s' % (src, dst, dry_run_suffix))
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176777): 
https://lists.openembedded.org/g/openembedded-core/message/176777
Mute This Topic: https://lists.openembedded.org/mt/96752009/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 07/12] linux-yocto/5.4: update to v5.4.229

2023-02-04 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

1349fe3a332a Linux 5.4.229
68a37dc77e2f tipc: call tipc_lxc_xmit without holding node_read_lock
1140c3f7adbc ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown
2db88851fa4d tipc: Add a missing case of TIPC_DIRECT_MSG type
38b5d7054d75 tty: serial: tegra: Handle RX transfer in PIO mode if DMA 
wasn't started
3188f80b80d6 tipc: fix use-after-free in tipc_disc_rcv()
3eeb06132d36 Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
ecd47ffc99d3 mm: Always release pages to the buddy allocator in 
memblock_free_late().
5fcf75a8a4c3 efi: fix NULL-deref in init error path
b30e5dd0778e arm64: cmpxchg_double*: hazard against entire exchange variable
ecdd65051b17 arm64: atomics: remove LL/SC trampolines
f84928af arm64: atomics: format whitespace consistently
d01d6d2b06c0 drm/virtio: Fix GEM handle creation UAF
3030f11f27e7 x86/resctrl: Fix task CLOSID/RMID update race
22c4eeafc31b x86/resctrl: Use task_curr() instead of task_struct->on_cpu to 
prevent unnecessary IPI
b3f924246700 iommu/mediatek-v1: Fix an error handling path in 
mtk_iommu_v1_probe()
ecfe33e0757d iommu/mediatek-v1: Add error handle for mtk_iommu_probe
ec049ae2b462 net/mlx5: Fix ptp max frequency adjustment range
62d707dabb5c net/mlx5: Rename ptp clock info
2b157c3c5d6b net/sched: act_mpls: Fix warning during failed attribute 
validation
9424d2205fe9 nfc: pn533: Wait for out_urb's completion in 
pn533_usb_send_frame()
576eadef2c8d hvc/xen: lock console list traversal
7d04fe153dfc tipc: fix unexpected link reset due to discovery messages
95b2d4889fbd tipc: eliminate checking netns if node established
d6418829cef1 tipc: improve throughput between nodes in netns
d443308edbfb regulator: da9211: Use irq handler when ready
43f48e6c3076 EDAC/device: Fix period calculation in 
edac_device_reset_delay_period()
a5b737623eaa x86/boot: Avoid using Intel mnemonics in AT syntax asm
d0c6d2a31026 powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
feefb33eefa1 netfilter: ipset: Fix overflow before widen in the 
bitmap_ip_create() function.
e431b4fb1fb8 ext4: fix uninititialized value in 'ext4_evict_inode'
026a4490b538 ext4: fix use-after-free in ext4_orphan_cleanup
fa41a133ea23 ext4: lost matching-pair of trace in ext4_truncate
1d5524832ff2 ext4: fix bug_on in __es_tree_search caused by bad quota inode
3da22d06e078 quota: Factor out setup of quota inode
ecb9d0d2e123 jbd2: use the correct print format
06bb3f4e3b06 usb: ulpi: defer ulpi_register on ulpi_read_id timeout
a2689a446427 wifi: wilc1000: sdio: fix module autoloading
3998dba0f78a ipv6: raw: Deduct extension header length in 
rawv6_push_pending_frames
53cefa802f07 ixgbe: fix pci device refcount leak
e0d6f3b62b29 platform/x86: sony-laptop: Don't turn off 0x153 keyboard 
backlight during probe
1ad759df6a6f drm/msm/adreno: Make adreno quirks not overwrite each other
098416c4e322 cifs: Fix uninitialized memory read for smb311 posix symlink 
create
d6546426cdf4 ALSA: hda/hdmi: Add a HP device 0x8715 to force connect list
eaa5580a74cc ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent 
UAF
c6d29a5ffdbc net/ulp: prevent ULP without clone op from entering the LISTEN 
status
b318d41f1bd1 s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()
f6da927c92ec s390/kexec: fix ipl report address for kdump
4bf6e11c34c5 perf auxtrace: Fix address filter duplicate symbol selection
2e4164d3d1e7 docs: Fix the docs build with Sphinx 6.0
3ed183074c20 efi: tpm: Avoid READ_ONCE() for accessing the event log
3ad31129ce72 KVM: arm64: Fix S1PTW handling on RO memslots
9b83ec63d0de net: sched: disallow noqueue for qdisc classes
aa52acefc629 driver core: Fix bus_type.match() error handling in 
__driver_attach()
8d60a90560ef selftests: set the BUILD variable to absolute path
cad6d2bb4726 selftests: Fix kselftest O=objdir build from cluttering top 
level objdir
320dbbd86f81 parisc: Align parisc MADV_XXX constants with all other 
architectures
d868597b71c1 mbcache: Avoid nesting of cache->c_list_lock under bit locks
da23752d9660 hfs/hfsplus: avoid WARN_ON() for sanity check, use proper 
error handling
781fa141414e hfs/hfsplus: use WARN_ON for sanity check
b47c69010943 ext4: don't allow journal inode to have encrypt flag
1464feb5b6fa riscv: uaccess: fix type of 0 variable on error in get_user()
da41069c613d nfsd: fix handling of readdir in v4root vs. mount upcall 
timeout
8cbd7f264387 x86/bugs: Flush IBP in ib_prctl_set()
ba780bff9ff9 ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech 
MICA-071 tablet
e66ae100e7c7 udf: Fix extension of the last extent in the file
33df9c5d5e2a caif: fix memory leak in 

[OE-core][dunfell 08/12] linux-yocto/5.4: update to v5.4.230

2023-02-04 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

90245959a5b9 Linux 5.4.230
29487eed37ae mm/khugepaged: fix collapse_pte_mapped_thp() to allow anon_vma
7242fc8c2f5e x86/fpu: Use _Alignof to avoid undefined behavior in TYPE_ALIGN
2b1375fac0de drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
763a74e1de74 drm/amd/display: Fix set scaling doesn's work
39e0844a1e96 drm/i915: re-disable RC6p on Sandy Bridge
ffef77794fb5 gsmi: fix null-deref in gsmi_get_variable
b4461af0a5e6 serial: atmel: fix incorrect baudrate setup
55f9aca283d5 dmaengine: tegra210-adma: fix global intr clear
5d99369685a6 serial: pch_uart: Pass correct sg to dma_unmap_sg()
97697a252ba0 dt-bindings: phy: g12a-usb3-pcie-phy: fix compatible string 
documentation
aa1b22daa019 usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210
a21da7f7aae6 usb: gadget: f_ncm: fix potential NULL ptr deref in 
ncm_bitrate()
83b0aac55df0 usb: gadget: g_webcam: Send color matching descriptor per frame
004fbb049b84 usb: typec: altmodes/displayport: Fix pin assignment 
calculation
a1478ef59b0e usb: typec: altmodes/displayport: Add pin assignment helper
040e0d1281c7 usb: host: ehci-fsl: Fix module alias
8d5740ad8f76 USB: serial: cp210x: add SCALANCE LPE-9000 device id
9a39f4626b36 USB: gadgetfs: Fix race between mounting and unmounting
1bc1fdd73f3d cifs: do not include page data when checking signature
89ac597e3e80 btrfs: fix race between quota rescan and disable leading to 
NULL pointer deref
61cad0c61cdb mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
4f96ae71d336 comedi: adv_pci1760: Fix PWM instruction handling
f11a68916422 usb: core: hub: disable autosuspend for TI TUSB8041
556dfdb226ce misc: fastrpc: Fix use-after-free race condition for maps
4b5c44e924a5 misc: fastrpc: Don't remove map on creater_process and 
device_release
04eb41ec9611 USB: misc: iowarrior: fix up header size for 
USB_DEVICE_ID_CODEMERCS_IOW100
7ebb3ecab1ff USB: serial: option: add Quectel EM05CN modem
32165699a08d USB: serial: option: add Quectel EM05CN (SG) modem
81affe3b469e USB: serial: option: add Quectel EC200U modem
a7c19d94b899 USB: serial: option: add Quectel EM05-G (RS) modem
5966eda55028 USB: serial: option: add Quectel EM05-G (CS) modem
eece7a6c97cf USB: serial: option: add Quectel EM05-G (GR) modem
96b02125dd68 prlimit: do_prlimit needs to have a speculation check
afcb4e0ab843 xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI 
tables
84e2e57769af usb: acpi: add helper to check port lpm capability using acpi 
_DSM
8a6e963bf280 xhci: Add a flag to disable USB3 lpm on a xhci root port level.
cf6e5d3c2de1 xhci: Add update_hub_device override for PCI xHCI hosts
133b902378e4 xhci: Fix null pointer dereference when host dies
9891e5c73cab usb: xhci: Check endpoint is valid before dereferencing it
643f7da7828d xhci-pci: set the dma max_seg_size
890792b57990 ALSA: hda/realtek - Turn on power early
e60730280b57 drm/i915/gt: Reset twice
2e3e2649ea38 efi: fix userspace infinite retry read efivars after EFI 
runtime services page fault
b0ba060d3287 nilfs2: fix general protection fault in nilfs_btree_insert()
53dd833fd0a2 Add exception protection processing for vd in 
axi_chan_handle_err function
33a4d05138df wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
557e85ff9afe f2fs: let's avoid panic if extent_tree is not created
7165dd4c3b07 RDMA/srp: Move large values to a new enum for gcc13
19304ffb7b38 net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
4de1a5af1be3 selftests/bpf: check null propagation only neither reg is 
PTR_TO_BTF_ID
a869f7b05411 pNFS/filelayout: Fix coalescing test for single DS

Signed-off-by: Bruce Ashfield 
Signed-off-by: Steve Sakoman 
---
 .../linux/linux-yocto-rt_5.4.bb   |  6 ++---
 .../linux/linux-yocto-tiny_5.4.bb |  8 +++
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  | 22 +--
 3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
index 36159ac5b0..222c8708a1 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
@@ -11,13 +11,13 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "430278c953a6c3614604a2852ba836039663bb65"
-SRCREV_meta ?= "d92569bdd24ef1deb731012b3f8e1e05c2f08598"
+SRCREV_machine ?= "053238af99b52ce5ffb19755cdfeb10f206463da"
+SRCREV_meta ?= "9c5bb858a6f5a9b1cc2e585e74e8517387863fd7"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \


[OE-core][dunfell 06/12] lttng-modules: fix build with 5.4.229 kernel

2023-02-04 Thread Steve Sakoman
Fixes:

In file included from 
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../probes/define_trace.h:87,
 from 
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../instrumentation/events/lttng-module/jbd2.h:183,
 from 
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/lttng-probe-jbd2.c:29:
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../probes/lttng-tracepoint-event-impl.h:130:6:
 error: conflicting types for 'trace_jbd2_run_stats'
  130 | void trace_##_name(_proto);
  |  ^~
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../probes/lttng-tracepoint-event-impl.h:42:2:
 note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'
   42 |  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), 
PARAMS(args))
  |  ^~~
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../probes/lttng-tracepoint-event-impl.h:84:2:
 note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'
   84 |  LTTNG_TRACEPOINT_EVENT_MAP(name, name,\
  |  ^~
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/../instrumentation/events/lttng-module/jbd2.h:107:1:
 note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
  107 | LTTNG_TRACEPOINT_EVENT(jbd2_run_stats,
  | ^~
In file included from 
TOPDIR/tmp/work-shared/qemuarm/kernel-source/include/trace/events/jbd2.h:9,
 from 
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/lttng-probe-jbd2.c:18:
TOPDIR/tmp/work-shared/qemuarm/kernel-source/include/linux/tracepoint.h:243:21: 
note: previous definition of 'trace_jbd2_run_stats' was here
  243 |  static inline void trace_##name(proto)\
  | ^~
TOPDIR/tmp/work-shared/qemuarm/kernel-source/include/linux/tracepoint.h:406:2: 
note: in expansion of macro '__DECLARE_TRACE'
  406 |  __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
  |  ^~~
TOPDIR/tmp/work-shared/qemuarm/kernel-source/include/linux/tracepoint.h:542:2: 
note: in expansion of macro 'DECLARE_TRACE'
  542 |  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  |  ^
TOPDIR/tmp/work-shared/qemuarm/kernel-source/include/trace/events/jbd2.h:234:1: 
note: in expansion of macro 'TRACE_EVENT'
  234 | TRACE_EVENT(jbd2_run_stats,
  | ^~~
  CC [M]  
TOPDIR/tmp/work/qemuarm-poky-linux-gnueabi/lttng-modules/2.11.6-r0/lttng-modules-2.11.6/probes/lttng-probe-ext4.o

Backport from upstream master branch fixes:

https://github.com/lttng/lttng-modules/commit/b28830a0dcdf95ec3e6b390b4d032667deaad0c0
https://github.com/lttng/lttng-modules/commit/4fd2615b87b3cac0fd5bdc5fc82db05f6fcfdecf
https://github.com/lttng/lttng-modules/commit/612c99eb24bf72f4d47d02025e92de8c35ece14e

Note that master branch upstream has restructured the location of header files, 
so the patches
do not apply cleanly.  This patch combines the changes in the above commits in 
the old header location.

Signed-off-by: Steve Sakoman 
---
 ...ix-jbd2-use-the-correct-print-format.patch | 147 ++
 .../lttng/lttng-modules_2.11.9.bb |   1 +
 2 files changed, 148 insertions(+)
 create mode 100644 
meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format.patch

diff --git 
a/meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format.patch
 
b/meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format.patch
new file mode 100644
index 00..b4939188cc
--- /dev/null
+++ 
b/meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format.patch
@@ -0,0 +1,147 @@
+fix: jbd2: use the correct print format
+See upstream commit :
+
+  commit d87a7b4c77a997d5388566dd511ca8e6b8e8a0a8
+  Author: Bixuan Cui 
+  Date:   Tue Oct 11 19:33:44 2022 +0800
+
+jbd2: use the correct print format
+
+The print format error was found when using ftrace event:
+<...>-1406 [000]  23599442.895823: jbd2_end_commit: dev 252,8 
transaction -1866216965 sync 0 head -1866217368
+<...>-1406 [000]  23599442.896299: jbd2_start_commit: dev 252,8 
transaction -1866216964 sync 0
+
+Use the correct print format for transaction, head and tid.
+
+Change-Id: Ic053f0e0c1e24ebc75bae51d07696aaa5e1c0094
+Signed-off-by: Michael Jeanson 
+Signed-off-by: Mathieu Desnoyers 
+
+Upstream-status: Backport
+Signed-off-by: Steve Sakoman 
+Note: combines three upstream commits:
+https://github.com/lttng/lttng-modules/commit/b28830a0dcdf95ec3e6b390b4d032667deaad0c0
+https://github.com/lttng/lttng-modules/commit/4fd2615b87b3cac0fd5bdc5fc82db05f6fcfdecf

[OE-core][dunfell 05/12] lttng-modules: update 2.11.8 -> 2.11.9

2023-02-04 Thread Steve Sakoman
2021-05-14 (National Dance Like a Chicken Day) LTTng modules 2.11.9
* fix: adjust ranges for RHEL 8.2 and 8.3
* Sync `show_inode_state()` macro with upstream stable kernels
* fix: block: remove disk_part_iter (v5.12)
* Fix: Backport of "Fix: increment buffer offset when failing to copy 
from user-space"
* Fix: increment buffer offset when failing to copy from user-space
* Sync `show_inode_state()` macro with Ubuntu 4.15 kernel
* fix: mm, tracing: kfree event name mismatching with provider kmem 
(v5.12)
* Set 'stable-2.11' branch in git review config
* fix backport: block: add a disk_uevent helper (v5.12)
* fix: Adjust ranges for Ubuntu 5.4.0-67 kernel
* fix: block: add a disk_uevent helper (v5.12)
* Fix: properly compare type enumeration
* compiler warning cleanup: is_signed_type: compare -1 to 1
* Fix: bytecode linker: validate event and field array/sequence encoding
* Fix: kretprobe: null ptr deref on session destroy
* fix: mm, tracing: record slab name for kmem_cache_free() (v5.12)
* Fix: filter interpreter early-exits on uninitialized value
* Fix: memory leaks on event destroy

Signed-off-by: Steve Sakoman 
---
 .../{lttng-modules_2.11.8.bb => lttng-modules_2.11.9.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{lttng-modules_2.11.8.bb => 
lttng-modules_2.11.9.bb} (93%)

diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb 
b/meta/recipes-kernel/lttng/lttng-modules_2.11.9.bb
similarity index 93%
rename from meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb
rename to meta/recipes-kernel/lttng/lttng-modules_2.11.9.bb
index 84d8daf8d4..d30478c1a1 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.11.9.bb
@@ -17,8 +17,8 @@ SRC_URI = 
"https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
file://0019-fix-random-tracepoints-removed-in-stable-kernels.patch \
"
 
-SRC_URI[md5sum] = "0aba7e5ca53e756875605221f7e0dec9"
-SRC_URI[sha256sum] = 
"77d03546bbb7668b146f2261c646d503b7b601dc7072a5359d729d40f13598a1"
+SRC_URI[md5sum] = "cfb23ea6bdaf1ad40c7f9ac098b4016d"
+SRC_URI[sha256sum] = 
"0c5fe9f8d8dbd1411a3c1c643dcbd0a55577bd15845758b73948e00bc7c387a6"
 
 export INSTALL_MOD_DIR="kernel/lttng-modules"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176773): 
https://lists.openembedded.org/g/openembedded-core/message/176773
Mute This Topic: https://lists.openembedded.org/mt/96752002/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 03/12] lttng-modules: update 2.11.6 -> 2.11.7

2023-02-04 Thread Steve Sakoman
2021-01-11 (National Clean Off Your Desk Day) LTTng modules 2.11.7
* fix: adjust version range for trace_find_free_extent()
* fix: backport of fix: tracepoint: Optimize using static_call() (v5.10)
* Revert "fix: include order for older kernels"
* fix: backport of fix: ext4: fast commit recovery path (v5.10)
* Improve the release script
* Add release maintainer script
* fix: include order for older kernels
* fix: tracepoint: Optimize using static_call() (v5.10)
* fix: KVM: x86/mmu: Return unique RET_PF_* values if the fault was 
fixed (v5.10)
* fix: kvm: x86/mmu: Add TDP MMU PF handler (v5.10)
* fix: KVM: x86: Add intr/vectoring info and error code to kvm_exit 
tracepoint (v5.10)
* fix: ext4: fast commit recovery path (v5.10)
* fix: btrfs: make ordered extent tracepoint take btrfs_inode (v5.10)
* fix: btrfs: tracepoints: output proper root owner for 
trace_find_free_extent() (v5.10)
* fix: objtool: Rename frame.h -> objtool.h (v5.10)
* fix: strncpy equals destination size warning

Remove patches now included in 2.11.7

Signed-off-by: Steve Sakoman 
---
 ...ncpy-equals-destination-size-warning.patch |  42 ---
 ...jtool-Rename-frame.h-objtool.h-v5.10.patch |  88 -
 ...oints-output-proper-root-owner-for-t.patch | 316 --
 ...rdered-extent-tracepoint-take-btrfs_.patch | 179 --
 ...ext4-fast-commit-recovery-path-v5.10.patch |  91 -
 ...intr-vectoring-info-and-error-code-t.patch | 124 ---
 ...x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch |  82 -
 ...Return-unique-RET_PF_-values-if-the-.patch |  71 
 ...int-Optimize-using-static_call-v5.10.patch | 155 -
 ...-fix-include-order-for-older-kernels.patch |  31 --
 .../0011-Add-release-maintainer-script.patch  |  59 
 .../0012-Improve-the-release-script.patch | 173 --
 ...fix-ext4-fast-commit-recovery-path-v.patch |  32 --
 ...-fix-include-order-for-older-kernels.patch |  32 --
 ...fix-tracepoint-Optimize-using-static.patch |  46 ---
 ...ion-range-for-trace_find_free_extent.patch |  30 --
 ...ules_2.11.6.bb => lttng-modules_2.11.7.bb} |  20 +-
 17 files changed, 2 insertions(+), 1569 deletions(-)
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0001-fix-strncpy-equals-destination-size-warning.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0002-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0003-fix-btrfs-tracepoints-output-proper-root-owner-for-t.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0004-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0005-fix-ext4-fast-commit-recovery-path-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0006-fix-KVM-x86-Add-intr-vectoring-info-and-error-code-t.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0007-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0008-fix-KVM-x86-mmu-Return-unique-RET_PF_-values-if-the-.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0009-fix-tracepoint-Optimize-using-static_call-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0010-fix-include-order-for-older-kernels.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0011-Add-release-maintainer-script.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0012-Improve-the-release-script.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0013-fix-backport-of-fix-ext4-fast-commit-recovery-path-v.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0014-Revert-fix-include-order-for-older-kernels.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0015-fix-backport-of-fix-tracepoint-Optimize-using-static.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0016-fix-adjust-version-range-for-trace_find_free_extent.patch
 rename meta/recipes-kernel/lttng/{lttng-modules_2.11.6.bb => 
lttng-modules_2.11.7.bb} (59%)

diff --git 
a/meta/recipes-kernel/lttng/lttng-modules/0001-fix-strncpy-equals-destination-size-warning.patch
 
b/meta/recipes-kernel/lttng/lttng-modules/0001-fix-strncpy-equals-destination-size-warning.patch
deleted file mode 100644
index 6f82488772..00
--- 
a/meta/recipes-kernel/lttng/lttng-modules/0001-fix-strncpy-equals-destination-size-warning.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From cb78974394a9af865e1d2d606e838dbec0de80e8 Mon Sep 17 00:00:00 2001
-From: Michael Jeanson 
-Date: Mon, 5 Oct 2020 15:31:42 -0400
-Subject: [PATCH 01/16] fix: strncpy equals destination size warning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Some versions of GCC when called with -Wstringop-truncation will warn

[OE-core][dunfell 04/12] lttng-modules: update 2.11.7 -> 2.11.8

2023-02-04 Thread Steve Sakoman
2021-02-17 (Random Act of Kindness Day) LTTng modules 2.11.8
* fix: Adjust ranges for Ubuntu 5.8.0-44 kernel
* Fix: do not use bdi_unknown_name symbol
* fix: memcg: fix a crash in wb_workfn when a device disappears (5.6)
* Fix: writeback: out-of-bound reads
* fix: Add one digit to RHEL major release version
* fix: Add one digit to SLES minor release version
* fix: RT_PATCH_VERSION is close to overflow
* fix: cast LTTNG_KERNEL_VERSION/LTTNG_LINUX_VERSION_CODE to uint64_t
* fix: UTS_UBUNTU_RELEASE_ABI is close to overflow
* fix: sublevel version overflow in LINUX_VERSION_CODE
* Namespace kernel version macros
* aarch64: blacklist gcc prior to 5.1
* fix: missing include for 'task_struct' in fdtable.h
* fix: genirq: Restrict export of irq_to_desc() (v5.11)
* fix: block: merge struct block_device and struct hd_struct (v5.11)
* fix: kprobes: Remove kretprobe hash (v5.11)
* fix: file: Rename fcheck lookup_fd_rcu (v5.11)
* fix: block: remove the request_queue argument to the block_bio_remap 
tracepoint (v5.11)
* fix: block: remove the request_queue argument to the block_split 
tracepoint (v5.11)
* fix: block: simplify and extend the block_bio_merge tracepoint class 
(v5.11)
* fix: block: remove the request_queue to argument request based 
tracepoints (v5.11)

Signed-off-by: Steve Sakoman 
---
 .../{lttng-modules_2.11.7.bb => lttng-modules_2.11.8.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{lttng-modules_2.11.7.bb => 
lttng-modules_2.11.8.bb} (93%)

diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb 
b/meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb
similarity index 93%
rename from meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb
rename to meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb
index d95613ba97..84d8daf8d4 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.11.8.bb
@@ -17,8 +17,8 @@ SRC_URI = 
"https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
file://0019-fix-random-tracepoints-removed-in-stable-kernels.patch \
"
 
-SRC_URI[md5sum] = "d1f1db78fe6fb6ea159c6e957a5ea6af"
-SRC_URI[sha256sum] = 
"d7b7170e6af8c5a74dda06d9cf1afaac2519b6d8b7e823acce5bf7b23857a55e"
+SRC_URI[md5sum] = "0aba7e5ca53e756875605221f7e0dec9"
+SRC_URI[sha256sum] = 
"77d03546bbb7668b146f2261c646d503b7b601dc7072a5359d729d40f13598a1"
 
 export INSTALL_MOD_DIR="kernel/lttng-modules"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176772): 
https://lists.openembedded.org/g/openembedded-core/message/176772
Mute This Topic: https://lists.openembedded.org/mt/96752001/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 02/12] libsdl2: Add fix for CVE-2022-4743

2023-02-04 Thread Steve Sakoman
From: Ranjitsinh Rathod 

Add a patch to fix CVE-2022-4743 security issue "A potential memory leak
issue was discovered in SDL2 in GLES_CreateTexture() function in
SDL_render_gles.c. The vulnerability allows an attacker to cause a
denial of service attack. The vulnerability affects SDL2 v2.0.4 and
above. SDL-1.x are not affected." as per NVD

Signed-off-by: Ranjitsinh Rathod 
Signed-off-by: Ranjitsinh Rathod 
Signed-off-by: Steve Sakoman 
---
 .../libsdl2/libsdl2/CVE-2022-4743.patch   | 38 +++
 .../libsdl2/libsdl2_2.0.12.bb |  1 +
 2 files changed, 39 insertions(+)
 create mode 100644 meta/recipes-graphics/libsdl2/libsdl2/CVE-2022-4743.patch

diff --git a/meta/recipes-graphics/libsdl2/libsdl2/CVE-2022-4743.patch 
b/meta/recipes-graphics/libsdl2/libsdl2/CVE-2022-4743.patch
new file mode 100644
index 00..b02a2169a6
--- /dev/null
+++ b/meta/recipes-graphics/libsdl2/libsdl2/CVE-2022-4743.patch
@@ -0,0 +1,38 @@
+From 00b67f55727bc0944c3266e2b875440da132ce4b Mon Sep 17 00:00:00 2001
+From: zhailiangliang 
+Date: Wed, 21 Sep 2022 10:30:38 +0800
+Subject: [PATCH] Fix potential memory leak in GLES_CreateTexture
+
+
+CVE: CVE-2022-4743
+Upstream-Status: Backport 
[https://github.com/libsdl-org/SDL/commit/00b67f55727bc0944c3266e2b875440da132ce4b.patch]
+Signed-off-by: Ranjitsinh Rathod 
+
+---
+ src/render/opengles/SDL_render_gles.c | 6 ++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/render/opengles/SDL_render_gles.c 
b/src/render/opengles/SDL_render_gles.c
+index a5fbab309eda..ba08a46e2805 100644
+--- a/src/render/opengles/SDL_render_gles.c
 b/src/render/opengles/SDL_render_gles.c
+@@ -359,6 +359,9 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * 
texture)
+ renderdata->glGenTextures(1, >texture);
+ result = renderdata->glGetError();
+ if (result != GL_NO_ERROR) {
++if (texture->access == SDL_TEXTUREACCESS_STREAMING) {
++SDL_free(data->pixels);
++}
+ SDL_free(data);
+ return GLES_SetError("glGenTextures()", result);
+ }
+@@ -387,6 +390,9 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * 
texture)
+ 
+ result = renderdata->glGetError();
+ if (result != GL_NO_ERROR) {
++if (texture->access == SDL_TEXTUREACCESS_STREAMING) {
++SDL_free(data->pixels);
++}
+ SDL_free(data);
+ return GLES_SetError("glTexImage2D()", result);
+ }
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb 
b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
index 44d36fca22..fa29bc99ac 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
@@ -22,6 +22,7 @@ SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
file://directfb-renderfillrect-fix.patch \
file://CVE-2020-14409-14410.patch \
file://CVE-2021-33657.patch \
+   file://CVE-2022-4743.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176770): 
https://lists.openembedded.org/g/openembedded-core/message/176770
Mute This Topic: https://lists.openembedded.org/mt/96751998/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell 01/12] go: fix CVE-2022-1962 go/parser stack exhaustion in all Parse* functions

2023-02-04 Thread Steve Sakoman
From: Vivek Kumbhar 

Signed-off-by: Vivek Kumbhar 
Signed-off-by: Steve Sakoman 
---
 meta/recipes-devtools/go/go-1.14.inc  |   1 +
 .../go/go-1.14/CVE-2022-1962.patch| 357 ++
 2 files changed, 358 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go-1.14/CVE-2022-1962.patch

diff --git a/meta/recipes-devtools/go/go-1.14.inc 
b/meta/recipes-devtools/go/go-1.14.inc
index 1d97001654..be9abb5b2d 100644
--- a/meta/recipes-devtools/go/go-1.14.inc
+++ b/meta/recipes-devtools/go/go-1.14.inc
@@ -51,6 +51,7 @@ SRC_URI += "\
 file://CVE-2022-28327.patch \
 file://CVE-2022-41715.patch \
 file://CVE-2022-41717.patch \
+file://CVE-2022-1962.patch \
 "
 
 SRC_URI_append_libc-musl = " 
file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch"
diff --git a/meta/recipes-devtools/go/go-1.14/CVE-2022-1962.patch 
b/meta/recipes-devtools/go/go-1.14/CVE-2022-1962.patch
new file mode 100644
index 00..b2ab5d0669
--- /dev/null
+++ b/meta/recipes-devtools/go/go-1.14/CVE-2022-1962.patch
@@ -0,0 +1,357 @@
+From ba8788ebcead55e99e631c6a1157ad7b35535d11 Mon Sep 17 00:00:00 2001
+From: Roland Shoemaker 
+Date: Wed, 15 Jun 2022 10:43:05 -0700
+Subject: [PATCH] [release-branch.go1.17] go/parser: limit recursion depth
+
+Limit nested parsing to 100,000, which prevents stack exhaustion when
+parsing deeply nested statements, types, and expressions. Also limit
+the scope depth to 1,000 during object resolution.
+
+Thanks to Juho Nurminen of Mattermost for reporting this issue.
+
+Fixes #53707
+Updates #53616
+Fixes CVE-2022-1962
+
+Change-Id: I4d7b86c1d75d0bf3c7af1fdea91582aa74272c64
+Reviewed-on: 
https://team-review.git.corp.google.com/c/golang/go-private/+/1491025
+Reviewed-by: Russ Cox 
+Reviewed-by: Damien Neil 
+(cherry picked from commit 6a856f08d58e4b6705c0c337d461c540c1235c83)
+Reviewed-on: https://go-review.googlesource.com/c/go/+/417070
+Reviewed-by: Heschi Kreinick 
+TryBot-Result: Gopher Robot 
+Run-TryBot: Michael Knyszek 
+
+Upstream-Status: Backport 
[https://github.com/golang/go/commit/ba8788ebcead55e99e631c6a1157ad7b35535d11]
+CVE: CVE-2022-1962
+Signed-off-by: Vivek Kumbhar 
+---
+ src/go/parser/interface.go   |  10 ++-
+ src/go/parser/parser.go  |  48 --
+ src/go/parser/parser_test.go | 169 +++
+ 3 files changed, 220 insertions(+), 7 deletions(-)
+
+diff --git a/src/go/parser/interface.go b/src/go/parser/interface.go
+index 54f9d7b..537b327 100644
+--- a/src/go/parser/interface.go
 b/src/go/parser/interface.go
+@@ -92,8 +92,11 @@ func ParseFile(fset *token.FileSet, filename string, src 
interface{}, mode Mode)
+   defer func() {
+   if e := recover(); e != nil {
+   // resume same panic if it's not a bailout
+-  if _, ok := e.(bailout); !ok {
++  bail, ok := e.(bailout)
++  if !ok {
+   panic(e)
++  } else if bail.msg != "" {
++  p.errors.Add(p.file.Position(bail.pos), 
bail.msg)
+   }
+   }
+ 
+@@ -188,8 +191,11 @@ func ParseExprFrom(fset *token.FileSet, filename string, 
src interface{}, mode M
+   defer func() {
+   if e := recover(); e != nil {
+   // resume same panic if it's not a bailout
+-  if _, ok := e.(bailout); !ok {
++  bail, ok := e.(bailout)
++  if !ok {
+   panic(e)
++  } else if bail.msg != "" {
++  p.errors.Add(p.file.Position(bail.pos), 
bail.msg)
+   }
+   }
+   p.errors.Sort()
+diff --git a/src/go/parser/parser.go b/src/go/parser/parser.go
+index 31a7398..586fe90 100644
+--- a/src/go/parser/parser.go
 b/src/go/parser/parser.go
+@@ -64,6 +64,10 @@ type parser struct {
+   unresolved []*ast.Ident  // unresolved identifiers
+   imports[]*ast.ImportSpec // list of imports
+ 
++  // nestLev is used to track and limit the recursion depth
++  // during parsing.
++  nestLev int
++  
+   // Label scopes
+   // (maintained by open/close LabelScope)
+   labelScope  *ast.Scope // label scope for current function
+@@ -236,6 +240,24 @@ func un(p *parser) {
+   p.printTrace(")")
+ }
+ 
++// maxNestLev is the deepest we're willing to recurse during parsing
++const maxNestLev int = 1e5
++
++func incNestLev(p *parser) *parser {
++  p.nestLev++
++  if p.nestLev > maxNestLev {
++  p.error(p.pos, "exceeded max nesting depth")
++  panic(bailout{})
++  }
++  return p
++}
++
++// decNestLev is used to track nesting depth during parsing to prevent stack 
exhaustion.
++// It is used along with incNestLev in a similar fashion to how un and trace 
are used.
++func decNestLev(p *parser) {
++  

[OE-core][dunfell 00/12] Patch review

2023-02-04 Thread Steve Sakoman
Please review this set of patches for dunfell and have comments back by
end of day Tuesday.

Passed a-full on autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4885

The following changes since commit 4f069121ddb99bb6e2f186724cd60ca07f74f503:

  python3: fix packaging of Windows distutils installer stubs (2023-02-04 
04:34:20 -1000)

are available in the Git repository at:

  https://git.openembedded.org/openembedded-core-contrib stable/dunfell-nut
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-nut

Bruce Ashfield (2):
  linux-yocto/5.4: update to v5.4.229
  linux-yocto/5.4: update to v5.4.230

Khem Raj (1):
  libtirpc: Check if file exists before operating on it

Niko Mauno (1):
  Fix missing leading whitespace with ':append'

Ranjitsinh Rathod (1):
  libsdl2: Add fix for CVE-2022-4743

Steve Sakoman (4):
  lttng-modules: update 2.11.6 -> 2.11.7
  lttng-modules: update 2.11.7 -> 2.11.8
  lttng-modules: update 2.11.8 -> 2.11.9
  lttng-modules: fix build with 5.4.229 kernel

Thomas Roos (1):
  devtool: fix devtool finish when gitmodules file is empty

Vivek Kumbhar (1):
  go: fix CVE-2022-1962 go/parser stack exhaustion in all Parse*
functions

Xiaobing Luo (1):
  devtool: Fix _copy_file() TypeError

 meta/classes/externalsrc.bbclass  |   2 +-
 meta/classes/populate_sdk_ext.bbclass |   2 +-
 meta/recipes-devtools/go/go-1.14.inc  |   1 +
 .../go/go-1.14/CVE-2022-1962.patch| 357 ++
 .../libtirpc/libtirpc_1.2.6.bb|   2 +-
 .../libsdl2/libsdl2/CVE-2022-4743.patch   |  38 ++
 .../libsdl2/libsdl2_2.0.12.bb |   1 +
 .../linux/linux-yocto-rt_5.4.bb   |   6 +-
 .../linux/linux-yocto-tiny_5.4.bb |   8 +-
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  22 +-
 ...ncpy-equals-destination-size-warning.patch |  42 ---
 ...jtool-Rename-frame.h-objtool.h-v5.10.patch |  88 -
 ...oints-output-proper-root-owner-for-t.patch | 316 
 ...rdered-extent-tracepoint-take-btrfs_.patch | 179 -
 ...ext4-fast-commit-recovery-path-v5.10.patch |  91 -
 ...intr-vectoring-info-and-error-code-t.patch | 124 --
 ...x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch |  82 
 ...Return-unique-RET_PF_-values-if-the-.patch |  71 
 ...int-Optimize-using-static_call-v5.10.patch | 155 
 ...-fix-include-order-for-older-kernels.patch |  31 --
 .../0011-Add-release-maintainer-script.patch  |  59 ---
 .../0012-Improve-the-release-script.patch | 173 -
 ...fix-ext4-fast-commit-recovery-path-v.patch |  32 --
 ...-fix-include-order-for-older-kernels.patch |  32 --
 ...fix-tracepoint-Optimize-using-static.patch |  46 ---
 ...ion-range-for-trace_find_free_extent.patch |  30 --
 ...ix-jbd2-use-the-correct-print-format.patch | 147 
 ...ules_2.11.6.bb => lttng-modules_2.11.9.bb} |  21 +-
 scripts/lib/devtool/standard.py   |   2 +-
 29 files changed, 569 insertions(+), 1591 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.14/CVE-2022-1962.patch
 create mode 100644 meta/recipes-graphics/libsdl2/libsdl2/CVE-2022-4743.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0001-fix-strncpy-equals-destination-size-warning.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0002-fix-objtool-Rename-frame.h-objtool.h-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0003-fix-btrfs-tracepoints-output-proper-root-owner-for-t.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0004-fix-btrfs-make-ordered-extent-tracepoint-take-btrfs_.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0005-fix-ext4-fast-commit-recovery-path-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0006-fix-KVM-x86-Add-intr-vectoring-info-and-error-code-t.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0007-fix-kvm-x86-mmu-Add-TDP-MMU-PF-handler-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0008-fix-KVM-x86-mmu-Return-unique-RET_PF_-values-if-the-.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0009-fix-tracepoint-Optimize-using-static_call-v5.10.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0010-fix-include-order-for-older-kernels.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0011-Add-release-maintainer-script.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0012-Improve-the-release-script.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0013-fix-backport-of-fix-ext4-fast-commit-recovery-path-v.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0014-Revert-fix-include-order-for-older-kernels.patch
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-modules/0015-fix-backport-of-fix-tracepoint-Optimize-using-static.patch
 delete mode 100644 

Re: [OE-core] SPDX 3 and OE-core CycloneDX support

2023-02-04 Thread Alex Stewart

On 2/3/23 17:06, Richard Purdie wrote:

On Fri, 2023-02-03 at 12:26 -0600, Alex Stewart wrote:

Hey Josh,

I have been roadmapping SBOM generation for NI's yocto distro and have a
few open questions about the future of SPDX and the create-spdx bbclass.
Since your name seems to be attached to both of those, I figure you
might have the best insight here.

Also posting to the OE-core ML so that this discussion can help other
members.


1. SPDX 3 timeline. I hear that SPDX 3 is going to be a complete rewrite
of the spec, with more support for modern SBOM discussion topics like
VEX and more comprehensive vulnerability tracking. And it also seems to
me that the timeline for its release is very behind schedule [1], but
still in active development. Can you give a SWAG for how close that new
spec is to completion? Are we months away or years?

2. If/when SPDX 3 support is released, is it to be assumed that the SPDX
facilities in OE core are going to be upgraded to handle it?

Assuming someone does the work, which is likely, yes. We did namespace
the class in master to prepare for that.


3. The rest of my org is interested in CycloneDX as our common SBOM
format. Have there been any discussions about supporting CDX SBOMs in
OE-core? Any blockers there; or is it something that my org could author
and upstream if we decide to go that route?

At this point OpenEmbedded/Yocto Project has decided to go the SPDX
route for various reasons.


Are those reasons documented somewhere?

Something about CDX rubs me the wrong way (besides it being named like 
an off-brand printer company), but I can't put my finger on what. So if 
there are technical reasons that it is less desirable for the OE 
usecase, I'd like to know about them.


My understanding is that CDX has better support for embedding 
vulnerability (+VEX) and attestation elements into its DOM, which is 
something that our Aero-Def customers will be interested in. I suppose I 
can build workflows to add that information after converting the OE-SPDX 
document to CDX, but I'd like to integrate the whole thing into an OE 
build, if possible.



I'm not sure I want to see two formats being
added directly to the core, the better solution would likely be to
translate the SPDX output into CycloneDX if/as needed.


I'm concerned about the lossiness of that conversion. Based on the 
CDX-SPDX mapping document in the cdx2spdx tool repo [1], they seem 
roughly compatible. But I haven't been able to find a clean tool which 
converts the other direction, nor a mapping document for the SPDX->CDX 
pathway.


Is anyone watching this thread doing SPDX to CDX conversions as a part 
of their pipelines today? If so, what tools are you using and are there 
any hazards to that approach?


[1] 
https://docs.google.com/spreadsheets/d/1PIiSYLJHlt8djG5OoOYniy_I-J31UMhBKQ62UUBHKVA/edit?usp=sharing



I appreciate the feedback, everyone.

--
Alex Stewart
Software Engineer - NI Real-Time OS
NI (National Instruments)

alex.stew...@ni.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176767): 
https://lists.openembedded.org/g/openembedded-core/message/176767
Mute This Topic: https://lists.openembedded.org/mt/96729387/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe-core][PATCH] ell: update 0.55 -> 0.56

2023-02-04 Thread Markus Volk
Needed by iwd 2.3

Signed-off-by: Markus Volk 
---
 meta/recipes-core/ell/{ell_0.55.bb => ell_0.56.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/ell/{ell_0.55.bb => ell_0.56.bb} (89%)

diff --git a/meta/recipes-core/ell/ell_0.55.bb 
b/meta/recipes-core/ell/ell_0.56.bb
similarity index 89%
rename from meta/recipes-core/ell/ell_0.55.bb
rename to meta/recipes-core/ell/ell_0.56.bb
index 7184701e4e..0ace622835 100644
--- a/meta/recipes-core/ell/ell_0.55.bb
+++ b/meta/recipes-core/ell/ell_0.56.bb
@@ -15,7 +15,7 @@ DEPENDS = "dbus"
 inherit autotools pkgconfig
 
 SRC_URI = 
"https://mirrors.edge.kernel.org/pub/linux/libs/${BPN}/${BPN}-${PV}.tar.xz;
-SRC_URI[sha256sum] = 
"a7e1fd3e13d9083f80eb9787546add49fba5c3d9e9f166b06e2ff9fd8030dc6d"
+SRC_URI[sha256sum] = 
"58eb8b2b64087f7479d5db6a830a0656c536d93e5f11d4c9a4443ce8760a1b63"
 
 do_configure:prepend () {
 mkdir -p ${S}/build-aux
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176766): 
https://lists.openembedded.org/g/openembedded-core/message/176766
Mute This Topic: https://lists.openembedded.org/mt/96749529/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 14/14 v2] python3-sphinx: upgrade 6.0.0 -> 6.1.3

2023-02-04 Thread Tim Orling
License-Update: Update copyright years

https://www.sphinx-doc.org/en/master/changes.html#release-6-1-3-released-jan-10-2023
https://www.sphinx-doc.org/en/master/changes.html#release-6-1-2-released-jan-07-2023
https://www.sphinx-doc.org/en/master/changes.html#release-6-1-1-released-jan-05-2023
https://www.sphinx-doc.org/en/master/changes.html#release-6-1-0-released-jan-05-2023
https://www.sphinx-doc.org/en/master/changes.html#release-6-0-1-released-jan-05-2023

Signed-off-by: Tim Orling 
---
Changes in v2:
* Remove FIXME and add License-Update reason (thank you RP)

 .../{python3-sphinx_6.0.0.bb => python3-sphinx_6.1.3.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-sphinx_6.0.0.bb => 
python3-sphinx_6.1.3.bb} (84%)

diff --git a/meta/recipes-devtools/python/python3-sphinx_6.0.0.bb 
b/meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
similarity index 84%
rename from meta/recipes-devtools/python/python3-sphinx_6.0.0.bb
rename to meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
index 5e565e745d6..f75988a6a0d 100644
--- a/meta/recipes-devtools/python/python3-sphinx_6.0.0.bb
+++ b/meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
@@ -2,11 +2,11 @@ DESCRIPTION = "Python documentation generator"
 HOMEPAGE = "http://sphinx-doc.org/;
 SECTION = "devel/python"
 LICENSE = "BSD-2-Clause & MIT & BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=2214a89317448c7f792f5b75dd6726e4"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=066da51ab732319a06beae4f10788577"
 
 PYPI_PACKAGE = "Sphinx"
 
-SRC_URI[sha256sum] = 
"58c140ecd9aa0abbc8ff6da48a266648eac9e5bfc8e49576efd2979bf46f5961"
+SRC_URI[sha256sum] = 
"0dac3b698538ffef41716cf97ba26c1c7788dba73ce6f150c1ff5b4720786dd2"
 
 inherit python_flit_core pypi
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176765): 
https://lists.openembedded.org/g/openembedded-core/message/176765
Mute This Topic: https://lists.openembedded.org/mt/96747774/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][kirkstone 00/13] Pull request (cover letter only)

2023-02-04 Thread Steve Sakoman
The following changes since commit a8c82902384f7430519a31732a4bb631f21693ac:

  build-appliance-image: Update to kirkstone head revision (2023-01-26 23:40:27 
+)

are available in the Git repository at:

  https://git.openembedded.org/openembedded-core-contrib stable/kirkstone-next
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/kirkstone-next

Armin Kuster (1):
  lttng-modules: Fix for 5.10.163 kernel version

Bruce Ashfield (1):
  linux-yocto/5.15: update to v5.15.87

Khem Raj (3):
  libtirpc: Check if file exists before operating on it
  libusb1: Link with latomic only if compiler has no atomic builtins
  libusb1: Strip trailing whitespaces

Niko Mauno (1):
  Fix missing leading whitespace with ':append'

Richard Purdie (1):
  native: Drop special variable handling

Ross Burton (4):
  ppp: backport fix for CVE-2022-4603
  quilt: fix intermittent failure in faildiff.test
  spirv-headers: set correct branch name
  quilt: use upstreamed faildiff.test fix

Thomas Roos (1):
  devtool: fix devtool finish when gitmodules file is empty

Xiangyu Chen (1):
  numactl: skip test case when target platform doesn't have 2 CPU node

 meta/classes/core-image.bbclass   |  2 +-
 meta/classes/externalsrc.bbclass  |  2 +-
 meta/classes/native.bbclass   |  2 +-
 meta/classes/populate_sdk_ext.bbclass |  2 +-
 .../distro/include/ptest-packagelists.inc |  2 +-
 .../ppp/ppp/CVE-2022-4603.patch   | 48 +++
 meta/recipes-connectivity/ppp/ppp_2.4.9.bb|  1 +
 meta/recipes-devtools/quilt/quilt.inc |  1 +
 .../quilt/quilt/faildiff-order.patch  | 41 +
 .../libtirpc/libtirpc_1.3.2.bb|  2 +-
 .../spir/spirv-headers_1.3.204.1.bb   |  2 +-
 .../linux/linux-yocto-rt_5.15.bb  |  6 +-
 .../linux/linux-yocto-tiny_5.15.bb|  6 +-
 meta/recipes-kernel/linux/linux-yocto_5.15.bb | 26 
 .../fix-jbd2-upper-bound-for-v5.10.163.patch  | 52 
 ...e-the-correct-print-format-v5.10.163.patch | 61 +++
 .../lttng/lttng-modules_2.13.8.bb |  2 +
 ...k-with-latomic-only-if-no-atomic-bui.patch | 46 ++
 meta/recipes-support/libusb/libusb1_1.0.26.bb | 13 ++--
 .../numactl/Fix-the-test-output-format.patch  |  3 +-
 .../recipes-support/numactl/numactl/run-ptest |  6 +-
 21 files changed, 292 insertions(+), 34 deletions(-)
 create mode 100644 meta/recipes-connectivity/ppp/ppp/CVE-2022-4603.patch
 create mode 100644 meta/recipes-devtools/quilt/quilt/faildiff-order.patch
 create mode 100644 
meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-upper-bound-for-v5.10.163.patch
 create mode 100644 
meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format-v5.10.163.patch
 create mode 100644 
meta/recipes-support/libusb/libusb1/0001-configure.ac-Link-with-latomic-only-if-no-atomic-bui.patch

-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176764): 
https://lists.openembedded.org/g/openembedded-core/message/176764
Mute This Topic: https://lists.openembedded.org/mt/96744267/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][langdale 00/17] Pull request (cover letter only)

2023-02-04 Thread Steve Sakoman
The following changes since commit cfd9f549a0d5dd44f4c71bd077b5fd17d3683550:

  selftest/virgl: use pkg-config from the host (2023-01-19 16:28:32 -1000)

are available in the Git repository at:

  https://git.openembedded.org/openembedded-core-contrib stable/langdale-next
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/langdale-next

Armin Kuster (1):
  lttng-modules: Fix for 5.10.163 kernel version

Bruce Ashfield (1):
  linux-yocto/5.15: update to v5.15.87

He Zhe (1):
  lttng-modules: update 2.13.7 -> 2.13.8

Khem Raj (4):
  createrepo-c: Include missing rpm/rpmstring.h
  libtirpc: Check if file exists before operating on it
  libusb1: Link with latomic only if compiler has no atomic builtins
  libusb1: Strip trailing whitespaces

Niko Mauno (1):
  Fix missing leading whitespace with ':append'

Peter Kjellerstedt (1):
  librsvg: Only enable the Vala bindings if GObject Introspection is
enabled

Richard Purdie (1):
  native: Drop special variable handling

Ross Burton (4):
  ppp: backport fix for CVE-2022-4603
  quilt: fix intermittent failure in faildiff.test
  spirv-headers/spirv-tools: set correct branch name
  quilt: use upstreamed faildiff.test fix

Thomas Roos (1):
  devtool: fix devtool finish when gitmodules file is empty

Vivek Kumbhar (1):
  openssl: fix CVE-2022-3996 double locking leads to denial of service

Xiangyu Chen (1):
  numactl: skip test case when target platform doesn't have 2 CPU node

 meta/classes-recipe/core-image.bbclass|  2 +-
 meta/classes-recipe/native.bbclass|  2 +-
 meta/classes-recipe/populate_sdk_ext.bbclass  |  2 +-
 meta/classes/externalsrc.bbclass  |  2 +-
 .../distro/include/ptest-packagelists.inc |  2 +-
 .../openssl/openssl/CVE-2022-3996.patch   | 43 +
 .../openssl/openssl_3.0.7.bb  |  1 +
 .../ppp/ppp/CVE-2022-4603.patch   | 48 +++
 meta/recipes-connectivity/ppp/ppp_2.4.9.bb|  1 +
 .../0001-include-rpm-rpmstring.h.patch| 27 
 .../createrepo-c/createrepo-c_0.20.1.bb   |  1 +
 meta/recipes-devtools/quilt/quilt.inc |  1 +
 .../quilt/quilt/faildiff-order.patch  | 41 +
 .../libtirpc/libtirpc_1.3.3.bb|  2 +-
 meta/recipes-gnome/librsvg/librsvg_2.54.5.bb  |  4 +-
 .../spir/spirv-headers_1.3.216.0.bb   |  2 +-
 .../spir/spirv-tools_1.3.216.0.bb |  2 +-
 .../linux/linux-yocto-rt_5.15.bb  |  6 +-
 .../linux/linux-yocto-tiny_5.15.bb|  6 +-
 meta/recipes-kernel/linux/linux-yocto_5.15.bb | 26 
 .../fix-jbd2-upper-bound-for-v5.10.163.patch  | 52 
 ...e-the-correct-print-format-v5.10.163.patch | 61 +++
 ...ules_2.13.7.bb => lttng-modules_2.13.8.bb} |  4 +-
 ...k-with-latomic-only-if-no-atomic-bui.patch | 46 ++
 meta/recipes-support/libusb/libusb1_1.0.26.bb | 13 ++--
 .../numactl/Fix-the-test-output-format.patch  |  3 +-
 .../recipes-support/numactl/numactl/run-ptest |  6 +-
 27 files changed, 368 insertions(+), 38 deletions(-)
 create mode 100644 
meta/recipes-connectivity/openssl/openssl/CVE-2022-3996.patch
 create mode 100644 meta/recipes-connectivity/ppp/ppp/CVE-2022-4603.patch
 create mode 100644 
meta/recipes-devtools/createrepo-c/createrepo-c/0001-include-rpm-rpmstring.h.patch
 create mode 100644 meta/recipes-devtools/quilt/quilt/faildiff-order.patch
 create mode 100644 
meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-upper-bound-for-v5.10.163.patch
 create mode 100644 
meta/recipes-kernel/lttng/lttng-modules/fix-jbd2-use-the-correct-print-format-v5.10.163.patch
 rename meta/recipes-kernel/lttng/{lttng-modules_2.13.7.bb => 
lttng-modules_2.13.8.bb} (87%)
 create mode 100644 
meta/recipes-support/libusb/libusb1/0001-configure.ac-Link-with-latomic-only-if-no-atomic-bui.patch

-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176763): 
https://lists.openembedded.org/g/openembedded-core/message/176763
Mute This Topic: https://lists.openembedded.org/mt/96744201/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] perf: Enable debug/source packaging

2023-02-04 Thread Richard Purdie
On Fri, 2023-02-03 at 23:28 +0100, Alexandre Belloni wrote:
> Hello Richard,
> 
> This is causing:
> WARNING: perf-1.0-r9 do_package_qa: QA Issue: File 
> /usr/src/debug/perf/1.0-r9/util/expr-flex.h in package perf-src contains 
> reference to TMPDIR

Sorry, not sure why my local tests didn't show that up. I've sent a v2.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176762): 
https://lists.openembedded.org/g/openembedded-core/message/176762
Mute This Topic: https://lists.openembedded.org/mt/96726928/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/3 v2] perf: Enable debug/source packaging

2023-02-04 Thread Richard Purdie
This was disabled in 2014[1] due to an error message which as far
as I can tell, no longer occurs.

Having debug information and source files present will make debugging
reproducibility issues much easier so remove this line as it appears
no longer needed.

Fix up a few files which have buildpaths in them to avoid QA warnings
and reproducubility issues.

[1] OE-Core revision c1b5a262c0201faf2c6bf545d6acb32dfe383ba3

Signed-off-by: Richard Purdie 
---
 meta/recipes-kernel/perf/perf.bb | 14 --
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 1dff39a17e4..2f28d16fba1 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -360,6 +360,16 @@ FILES:${PN}-python = " \
"
 FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl"
 
-
-INHIBIT_PACKAGE_DEBUG_SPLIT="1"
 DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized"
+
+PACKAGESPLITFUNCS =+ "perf_fix_sources"
+
+perf_fix_sources () {
+   for f in util/parse-events-flex.h util/parse-events-flex.c 
util/pmu-flex.c \
+   util/expr-flex.h util/expr-flex.c; do
+   f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f
+   if [ -e $f ]; then
+   sed -i -e 's#${S}/##g' $f
+   fi
+   done
+}
-- 
2.37.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176759): 
https://lists.openembedded.org/g/openembedded-core/message/176759
Mute This Topic: https://lists.openembedded.org/mt/96742035/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/3] oeqa/selftest/locales: Add test for disabled binary locale generation

2023-02-04 Thread Richard Purdie
Similarly to the recently added test for binary generated locales, add
a version to test on target locale generation. This was broken but should
be fixed now so we can add the test sharing code from the previous test.

Signed-off-by: Richard Purdie 
---
 meta/lib/oeqa/selftest/cases/locales.py | 31 -
 1 file changed, 20 insertions(+), 11 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/locales.py 
b/meta/lib/oeqa/selftest/cases/locales.py
index 433991abf9d..4ca8ffb7aac 100644
--- a/meta/lib/oeqa/selftest/cases/locales.py
+++ b/meta/lib/oeqa/selftest/cases/locales.py
@@ -9,23 +9,17 @@ from oeqa.utils.commands import bitbake, runqemu
 class LocalesTest(OESelftestTestCase):
 
 @OETestTag("runqemu")
-def test_locales_on(self):
-"""
-Summary: Test the locales are generated
-Expected: 1. Check the locale exist in the locale-archive
-  2. Check the locale exist for the glibc
-  3. Check the locale can be generated
-Product: oe-core
-Author: Louis Rannou 
-AutomatedBy: Louis Rannou 
-"""
 
+def run_locales_test(self, binary_enabled):
 features = []
 features.append('EXTRA_IMAGE_FEATURES = "empty-root-password 
allow-empty-password allow-root-login"')
 features.append('IMAGE_INSTALL:append = " glibc-utils localedef"')
 features.append('GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8"')
 features.append('IMAGE_LINGUAS:append = " en-us fr-fr"')
-features.append('ENABLE_BINARY_LOCALE_GENERATION = "1"')
+if binary_enabled:
+features.append('ENABLE_BINARY_LOCALE_GENERATION = "1"')
+else:
+features.append('ENABLE_BINARY_LOCALE_GENERATION = "0"')
 self.write_config("\n".join(features))
 
 # Build a core-image-minimal
@@ -43,3 +37,18 @@ class LocalesTest(OESelftestTestCase):
 # output must includes fr_FR.utf8
 self.assertEqual(status, 1, msg='localedef test command failed: 
output: %s' % output)
 self.assertIn("fr_FR.utf8", output, msg='localedef test failed: 
output: %s' % output)
+
+def test_locales_on(self):
+"""
+Summary: Test the locales are generated
+Expected: 1. Check the locale exist in the locale-archive
+  2. Check the locale exist for the glibc
+  3. Check the locale can be generated
+Product: oe-core
+Author: Louis Rannou 
+AutomatedBy: Louis Rannou 
+"""
+self.run_locales_test(True)
+
+def test_locales_off(self):
+self.run_locales_test(False)
-- 
2.37.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176761): 
https://lists.openembedded.org/g/openembedded-core/message/176761
Mute This Topic: https://lists.openembedded.org/mt/96742037/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/3] libc-locale: Fix on target locale generation

2023-02-04 Thread Richard Purdie
If on target locale generation is used, it fails at first boot showing
errors about a missing directory. Ensure the directory exists.

Signed-off-by: Richard Purdie 
---
 meta/classes-recipe/libc-package.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/libc-package.bbclass 
b/meta/classes-recipe/libc-package.bbclass
index de3d4223a8c..8a99f73ae72 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0"
 OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
 
 locale_base_postinst_ontarget() {
+mkdir ${libdir}/locale
 localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
 }
 
-- 
2.37.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176760): 
https://lists.openembedded.org/g/openembedded-core/message/176760
Mute This Topic: https://lists.openembedded.org/mt/96742036/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 14/14] python3-sphinx: upgrade 6.0.0 -> 6.1.3

2023-02-04 Thread Richard Purdie
On Fri, 2023-02-03 at 09:50 -0800, Tim Orling wrote:
> https://www.sphinx-doc.org/en/master/changes.html#release-6-1-3-released-jan-10-2023
> https://www.sphinx-doc.org/en/master/changes.html#release-6-1-2-released-jan-07-2023
> https://www.sphinx-doc.org/en/master/changes.html#release-6-1-1-released-jan-05-2023
> https://www.sphinx-doc.org/en/master/changes.html#release-6-1-0-released-jan-05-2023
> https://www.sphinx-doc.org/en/master/changes.html#release-6-0-1-released-jan-05-2023
> 
> Signed-off-by: Tim Orling 
> ---
>  ...phinx_6.0.0.bb => python3-sphinx_6.1.3.bb} | 26 +--
>  1 file changed, 24 insertions(+), 2 deletions(-)
>  rename meta/recipes-devtools/python/{python3-sphinx_6.0.0.bb => 
> python3-sphinx_6.1.3.bb} (49%)
> 
> diff --git a/meta/recipes-devtools/python/python3-sphinx_6.0.0.bb 
> b/meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
> similarity index 49%
> rename from meta/recipes-devtools/python/python3-sphinx_6.0.0.bb
> rename to meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
> index 5e565e745d6..d77ad0a6fe1 100644
> --- a/meta/recipes-devtools/python/python3-sphinx_6.0.0.bb
> +++ b/meta/recipes-devtools/python/python3-sphinx_6.1.3.bb
> @@ -1,12 +1,34 @@
> +# FIXME: the LIC_FILES_CHKSUM values have been updated by 'devtool upgrade'.
> +# The following is the difference between the old and the new license text.
> +# Please update the LICENSE value if needed, and summarize the changes in
> +# the commit message via 'License-Update:' tag.
> +# (example: 'License-Update: copyright years updated.')
> +#
> +# The changes:
> +#
> +# --- LICENSE
> +# +++ LICENSE
> +# @@ -4,7 +4,7 @@
> +#  Unless otherwise indicated, all code in the Sphinx project is licenced 
> under the
> +#  two clause BSD licence below.
> +#  
> +# -Copyright (c) 2007-2022 by the Sphinx team (see AUTHORS file).
> +# +Copyright (c) 2007-2023 by the Sphinx team (see AUTHORS file).
> +#  All rights reserved.
> +#  
> +#  Redistribution and use in source and binary forms, with or without
> +# 
> +#
> +
>  DESCRIPTION = "Python documentation generator"
>  HOMEPAGE = "http://sphinx-doc.org/;
>  SECTION = "devel/python"
>  LICENSE = "BSD-2-Clause & MIT & BSD-3-Clause"
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=2214a89317448c7f792f5b75dd6726e4"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=066da51ab732319a06beae4f10788577"
>  
>  


The license copyright years changed so we need to mention that in the
commit message instead of the FIXME :)

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176758): 
https://lists.openembedded.org/g/openembedded-core/message/176758
Mute This Topic: https://lists.openembedded.org/mt/96728520/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe-core][PATCH] mesa: add PACKAGECONFIG for video-codecs

2023-02-04 Thread Markus Volk
'mesa' no longer provides support for it by default because these codecs are
patent encumbered.

Hide the build behind the commercial flag

Signed-off-by: Markus Volk 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 0ec681cf20..cc4aa5eeab 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -86,6 +86,7 @@ PACKAGECONFIG = " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \
+   ${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 
'video-codecs', '', d)} \
 "
 
 # "gbm" requires "opengl"
@@ -178,6 +179,9 @@ PACKAGECONFIG[unwind] = 
"-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
 
 PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors"
 
+VIDEO_CODECS = "vc1dec,h264dec,h264enc,h265dec,h265enc"
+PACKAGECONFIG[video-codecs] = 
"-Dvideo-codecs=${@strip_comma('${VIDEO_CODECS}')}, -Dvideo-codecs=''"
+
 # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
 FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer"
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176757): 
https://lists.openembedded.org/g/openembedded-core/message/176757
Mute This Topic: https://lists.openembedded.org/mt/96741026/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-