Commit Graph

73688 Commits

Author SHA1 Message Date
Xiangyu Chen
eb11e03c81 libc-locale: fix ASCII compatible warning cause build failure.
Some locales are not listed in glibc locales support list, but can be generated,
here using ja_JP.SHIFT_JIS as an example. We can add following line into local.conf
to enable and generate it:

GLIBC_GENERATE_LOCALES += "en_GB.UTF-8 en_US.UTF-8 ja_JP.UTF-8 ja_JP.SHIFT_JIS"
IMAGE_LINGUAS += "ja-jp en-us ja-jp.shift-jis"

The localedef tool would report a warning and exit with 1, that cause build failure,
error message as below:

[warning] character map `SHIFT_JIS' is not ASCII compatible, locale not ISO C compliant [--no-warnings=ascii]

So add a --no-warnings=ascii in libc-package.bbclass to fix build failure if someone needs those locale
in yocto.

(From OE-Core rev: 1048992c0d2a2bda3464185efdac5cc986a583d4)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Lei Maohui
930450926c rpm: Fix the following error when run nativesdk-rpm in nativesdk environment.
package busybox-inittab-1.36.1-r0.ubinux_x86_64 is intended for a different architecture
  package busybox-udhcpc-1.36.1-r0.core2_64 is intended for a different architecture
  package ldconfig-2.39+git0+312e159626-r0.core2_64 is intended for a different architecture
  ......

CMAKE_INSTALL_SYSCONFDIR is necessary. If not set
CMAKE_INSTALL_SYSCONFDIR, nativesdk-rpm will use the default setting:
/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ubinuxsdk-linux/etc to find rpmrc file.

(From OE-Core rev: c9cb2eb2e662e19d68d27f2eec791986715c3abe)

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Nick Owens
90893b5e83 python3: dont disable readline module for editline
if we use editline, then the readline module must also be enabled for
python to build the readline module and link it against libedit.

(From OE-Core rev: e92d7dd55d16aa311a95c4e8bb4633e6ebb9900f)

Signed-off-by: Nick Owens <nick.owens@eero.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Khem Raj
78264a5c06 python3-maturin: Recognise riscv32 architecture
(From OE-Core rev: 728784e4df700af86d0f848142b0085813e49090)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Khem Raj
e5e6d6fe9a python3-bcrypt: Fix build break on arches without 64 bit atomics
bump pyo3 to 0.20.3, which brings the needed fixes for building for
architectures without 64bit atomics [1]

[1] https://github.com/pyca/bcrypt/pull/746

(From OE-Core rev: 33bd36308be828123a820c5eed2f1fa9e3a7c0f6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Trevor Gamblin
7bdf0d4869 python3-git: upgrade 3.1.41 -> 3.1.42
This release contains bugfixes, documentation updates, and changes to
metadata for build and CI.

Changelog: https://github.com/gitpython-developers/GitPython/releases/tag/3.1.42

(From OE-Core rev: b4dc9793f3196a774b19fbf4342ebcd42655d14e)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Claus Stovgaard
c2456e0eef wpa-supplicant: Fix CVE-2023-52160
PEAP client: Update Phase 2 authentication requirements. Also see
https://www.top10vpn.com/research/wifi-vulnerabilities/

(From OE-Core rev: 57b6a329df897de69ae8b90706d9fe37e0ed6d35)

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Ross Burton
53b100562a libexif: remove unused version_underscore
This function hasn't been used since the upgrade to 0.6.23 in 2021[1]

[1] oe-core 65a54f72e15f59bdf9d8c4618f3ef8510541d134

(From OE-Core rev: 3f8da47b54ffa1b0a9feb971a7324a52a325b5e1)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Ulrich Ölmann
a32b45289b bitbake: taskexp_ncurses: fix execution example in introductory comment
Drop the ".py" file extension from the "-u" option's argument that has been
overlooked while applying the original patch (see [1]) to make the example work.
While at it sort the recipes' names consistently with respect to what is found
in the self-test examples below.

[1] https://lore.kernel.org/bitbake-devel/6f2645a7c4db2ae149d387544d2b94209cfed3f4.camel@linuxfoundation.org/

(Bitbake rev: 1f4d517b7a0389f78d1f791135f8dc9120e9912b)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-28 09:21:48 +00:00
Bruce Ashfield
4945ca640b linux-yocto/6.6: update CVE exclusions
Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: efa1420085d1671c7e3c9daa1949b36cf1822ed1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
f1da242640 linux-yocto/6.6: update to v6.6.18
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    d8a27ea2c986 Linux 6.6.18
    9e083726d5e3 tracing: Fix a NULL vs IS_ERR() bug in event_subsystem_dir()
    9389eaaca7b9 tracing: Make system_callback() function static
    cec85aa54b12 Documentation/arch/ia64/features.rst: fix kernel-feat directive
    ccce12ecf2a7 x86/barrier: Do not serialize MSR accesses on AMD
    438d19492b7f dm: limit the number of targets and parameter size area
    2c3bdba00283 nilfs2: fix potential bug in end_buffer_async_write
    c20fc13082d1 of: property: Add in-ports/out-ports support to of_graph_get_port_parent()
    b6a2a9cbb675 sched/membarrier: reduce the ability to hammer on sys_membarrier
    0a962f2fbaa9 x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section
    686b58ce5052 x86/boot: Increase section and file alignment to 4k/512
    f7eedad78068 x86/boot: Split off PE/COFF .data section
    476316bb48c1 x86/boot: Drop PE/COFF .reloc section
    0db81e8e20f6 x86/boot: Construct PE/COFF .text section from assembler
    0cf3d613a141 x86/boot: Derive file size from _edata symbol
    c731fbcfdbb6 x86/boot: Define setup size in linker script
    431b39e62594 x86/boot: Set EFI handover offset directly in header asm
    8e102324e743 x86/boot: Grab kernel_info offset from zoffset header directly
    a38801ba1875 x86/boot: Drop references to startup_64
    08796fc9bfe2 x86/boot: Drop redundant code setting the root device
    4bac079dba04 x86/boot: Omit compression buffer from PE/COFF image memory footprint
    d9b6b6e8d871 x86/boot: Remove the 'bugger off' message
    e17a8bf1fb5d x86/efi: Drop alignment flags from PE section headers
    8117961d98fb x86/efi: Disregard setup header of loaded image
    fa244085025f x86/efi: Drop EFI stub .bss from .data section
    940c919be813 nfsd: don't take fi_lock in nfsd_break_deleg_cb()
    a49e9c7267d0 eventfs: Keep all directory links at 1
    9bb8131a9ff9 eventfs: Remove fsnotify*() functions from lookup()
    ed823ca4bcf3 eventfs: Restructure eventfs_inode structure to be more condensed
    5c3ea7dfef17 eventfs: Warn if an eventfs_inode is freed without is_freed being set
    5dfb04100326 eventfs: Get rid of dentry pointers without refcounts
    c46192051c20 eventfs: Clean up dentry ops and add revalidate function
    ca2d3b2c260d eventfs: Remove unused d_parent pointer field
    21faa3de640d tracefs: dentry lookup crapectomy
    4928d0e32228 tracefs: Avoid using the ei->dentry pointer unnecessarily
    d1bcde94223e eventfs: Initialize the tracefs inode properly
    f0686a194549 tracefs: Zero out the tracefs_inode when allocating it
    35e219f7cd36 tracefs: remove stale update_gid code
    9a187657d681 eventfs: Save directory inodes in the eventfs_inode structure
    1f20155a724c eventfs: Use kcalloc() instead of kzalloc()
    c55d11ea8e07 eventfs: Do not create dentries nor inodes in iterate_shared
    4e8731d20fba eventfs: Have the inodes all for files and directories all be the same
    e638899f9963 eventfs: Shortcut eventfs_iterate() by skipping entries already read
    f3f41f444b32 eventfs: Read ei->entries before ei->children in eventfs_iterate()
    82820a2d76cc eventfs: Do ctx->pos update for all iterations in eventfs_iterate()
    98102764cca9 eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set
    628adb842bd5 tracefs/eventfs: Use root and instance inodes as default ownership
    1bfdd54adbb8 eventfs: Stop using dcache_readdir() for getdents()
    ee699b547b63 eventfs: Remove "lookup" parameter from create_dir/file_dentry()
    ee3bde693ee8 eventfs: Fix bitwise fields for "is_events"
    f6bf29570034 tracefs: Check for dentry->d_inode exists in set_gid()
    1b4dfdb3274a eventfs: Fix file and directory uid and gid ownership
    4d12a83ecdb6 eventfs: Have event files and directories default to parent uid and gid
    53cd8c57cc73 eventfs: Fix events beyond NAME_MAX blocking tasks
    6eee5c670861 eventfs: Make sure that parent->d_inode is locked in creating files/dirs
    29bb70cad668 eventfs: Do not allow NULL parent to eventfs_start_creating()
    43fbddf34c3c eventfs: Move taking of inode_lock into dcache_dir_open_wrapper()
    6586a12d3f02 eventfs: Use GFP_NOFS for allocation when eventfs_mutex is held
    7b4cb5d59f3e eventfs: Do not invalidate dentry in create_file/dir_dentry()
    b1391e3653f5 eventfs: Remove expectation that ei->is_freed means ei->dentry == NULL
    74a9e56b682f eventfs: Use simple_recursive_removal() to clean up dentries
    fb9b8eea5d21 eventfs: Remove special processing of dput() of events directory
    c58673cad4e9 eventfs: Delete eventfs_inode when the last dentry is freed
    1a6edfc7be2f eventfs: Hold eventfs_mutex when calling callback functions
    32f4c167cbef eventfs: Save ownership and mode
    d2a632aeecc4 eventfs: Test for ei->is_freed when accessing ei->dentry
    6e2a33522ee7 eventfs: Have a free_ei() that just frees the eventfs_inode
    4bb123ce29cd eventfs: Remove "is_freed" union with rcu head
    773cd7dfd092 eventfs: Fix kerneldoc of eventfs_remove_rec()
    810a957e343b eventfs: Remove extra dget() in eventfs_create_events_dir()
    7cac392f5640 eventfs: Fix typo in eventfs_inode union comment
    f7842e0617ff eventfs: Fix WARN_ON() in create_file_dentry()
    843879a6ddd9 tracefs/eventfs: Modify mismatched function name
    c99e5cfe77e5 eventfs: Fix failure path in eventfs_create_events_dir()
    17e4e4d2335c eventfs: Use ERR_CAST() in eventfs_create_events_dir()
    bceba0d35b43 eventfs: Use eventfs_remove_events_dir()
    35ee34c0f6d5 eventfs: Remove eventfs_file and just use eventfs_inode
    4015fc492774 Revert "eventfs: Remove "is_freed" union with rcu head"
    dc9ee9a8aef8 Revert "eventfs: Save ownership and mode"
    65a54d6dbf3b Revert "eventfs: Delete eventfs_inode when the last dentry is freed"
    601daf7e31d8 Revert "eventfs: Use simple_recursive_removal() to clean up dentries"
    5e9fb476196d Revert "eventfs: Check for NULL ef in eventfs_set_attr()"
    6fdc0bcd066d Revert "eventfs: Do not allow NULL parent to eventfs_start_creating()"
    fa69a8063f8b parisc: Fix random data corruption from exception handler
    4480ead69a3a netfilter: ipset: Missing gc cancellations fixed
    b93a6756a01f netfilter: ipset: fix performance regression in swap operation
    b2261c2e763e block: fix partial zone append completion handling in req_bio_endio()
    56f98598ddf0 md: bypass block throttle for superblock update
    49bca0710ebe tracing: Inform kmemleak of saved_cmdlines allocation
    ab94509051ea tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef
    5d858e2d3eca fs/proc: do_task_stat: move thread_group_cputime_adjusted() outside of lock_task_sighand()
    63e2bd10a89a pmdomain: core: Move the unused cleanup to a _sync initcall
    f84e7534457d can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
    26dfe112ec2e can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock
    6019c77391a6 can: netlink: Fix TDCO calculation using the old data bittiming
    23429e2c33dd of: property: fix typo in io-channels
    7366ff7ca1c7 docs: kernel_feat.py: fix build error for missing files
    601b5540c154 blk-wbt: Fix detection of dirty-throttled tasks
    496273439b3c LoongArch: Fix earlycon parameter if KASAN enabled
    4d850ed74740 mm: hugetlb pages should not be reserved by shmat() if SHM_NORESERVE
    13c5a9fb0710 fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_super
    ae20db45e482 ceph: prevent use-after-free in encode_cap_msg()
    a71302c86389 hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed
    9680b2ab54ba net: stmmac: protect updates of 64-bit statistics counters
    1b1631895e40 pmdomain: renesas: r8a77980-sysc: CR7 must be always on
    3dbf262ab0c1 net: ethernet: ti: cpsw_new: enable mac_managed_pm to fix mdio
    a1b4ed4125ca s390/qeth: Fix potential loss of L3-IP@ in case of network issues
    d59e1c2fbd76 net: ethernet: ti: cpsw: enable mac_managed_pm to fix mdio
    31f71f2d7a08 fs: relax mount_setattr() permission checks
    02afaeb6c52b tools/rtla: Fix Makefile compiler options for clang
    f0542eb7122e tools/rtla: Fix uninitialized bucket/data->bucket_size warning
    7c3611ca86f1 tools/rtla: Exit with EXIT_SUCCESS when help is invoked
    8a585914c266 tools/rtla: Fix clang warning about mount_point var size
    daa5e6a4a8b4 tools/rtla: Replace setting prio with nice for SCHED_OTHER
    a71597b4e5c7 tools/rtla: Remove unused sched_getattr() function
    828be9ff1770 tools/rv: Fix Makefile compiler options for clang
    2863f8cf9f56 tools/rv: Fix curr_reactor uninitialized variable
    62a1b9b6343e ASoC: amd: yc: Add DMI quirk for Lenovo Ideapad Pro 5 16ARP8
    eb06fca2c740 ASoC: tas2781: add module parameter to tascodec_init()
    1be2669565b3 ASoC: SOF: IPC3: fix message bounds on ipc ops
    19758688bd05 arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata
    60480c6bc160 arm64/signal: Don't assume that TIF_SVE means we saved SVE state
    4796a1a41300 mmc: sdhci-pci-o2micro: Fix a warm reboot issue that disk can't be detected by BIOS
    6d5eae9a95fe zonefs: Improve error handling
    3d16cebf0112 KVM: arm64: Fix circular locking dependency
    4145ccff546e smb: Fix regression in writes when non-standard maximum write size negotiated
    c2aa2718cda2 smb: client: set correct id, uid and cruid for multiuser automounts
    e5643b23cbb0 thunderbolt: Fix setting the CNS bit in ROUTER_CS_5
    65ac3a4fee03 irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
    91a80fff3eee irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
    5fcc75e44de5 irqchip/irq-brcmstb-l2: Add write memory barrier before exit
    00f4eb31b819 wifi: iwlwifi: mvm: fix a crash when we run out of stations
    e700e44fd2cc wifi: mac80211: reload info pointer in ieee80211_tx_dequeue()
    6585c74b4faa wifi: cfg80211: fix wiphy delayed work queueing
    ab9d4bb9a189 wifi: iwlwifi: fix double-free bug
    080da821b2c5 nfp: flower: prevent re-adding mac index for bonded port
    d194f1c73160 nfp: enable NETDEV_XDP_ACT_REDIRECT feature flag
    0bb84600c23c nfp: use correct macro for LengthSelect in BAR config
    9c82920359b7 crypto: algif_hash - Remove bogus SGL free on zero-length error path
    88aa493f393d crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked
    ea5ddbc11613 nilfs2: fix hang in nilfs_lookup_dirty_data_buffers()
    2e1480538ef6 nilfs2: fix data corruption in dsync block recovery for small block sizes
    af8625f713a4 ALSA: hda/realtek: add IDs for Dell dual spk platform
    53447b46a64e ALSA: hda/conexant: Add quirk for SWS JS201D
    027df06c2915 ALSA: hda/realtek: fix mute/micmute LED For HP mt645
    224378140269 mmc: slot-gpio: Allow non-sleeping GPIO ro
    13b01aedb585 io_uring/net: fix multishot accept overflow handling
    1dc09ca85871 x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
    b8525dced380 KVM: x86/pmu: Fix type length error when reading pmu->fixed_ctr_ctrl
    eea9b2e0d222 KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu
    b2479ab426ce x86/fpu: Stop relying on userspace for info to fault in xsave buffer
    97b37ffbcebe x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6
    536006966678 serial: mxs-auart: fix tx
    ab288bbaedcc serial: core: introduce uart_port_tx_flags()
    760f0f9d85fe powerpc/pseries: fix accuracy of stolen time
    7fec35ffce05 powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E
    1b5181cb4b30 powerpc/64: Set task pt_regs->link to the LR value on scv entry
    b1ac5b885cf3 ftrace: Fix DIRECT_CALLS to use SAVE_REGS by default
    24ea2c4d4864 serial: max310x: prevent infinite while() loop in port startup
    89992713f364 serial: max310x: fail probe if clock crystal is unstable
    2655f0892c04 serial: max310x: improve crystal stable clock detection
    8c6df38c7033 serial: max310x: set default value when reading clock ready bit
    8663564114d1 nfp: flower: fix hardware offload for the transfer layer port
    15392de705e7 nfp: flower: add hardware offload check for post ct entry
    0dc6bc63d9ec net: dsa: mv88e6xxx: Fix failed probe due to unsupported C45 reads
    f5f6332f1870 ring-buffer: Clean ring_buffer_poll_wait() error return
    22a77c0f5b82 hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove
    482cda9e50de drm/amd/display: Preserve original aspect ratio in create stream
    7fc395f0f562 drm/amd/display: Increase frame-larger-than for all display_mode_vba files
    7407c61f43b6 drm/amd/display: Fix MST Null Ptr for RV
    b476ae1da136 drm/amdgpu/soc21: update VCN 4 max HEVC encoding resolution
    4ff8ec01a865 drm/prime: Support page array >= 4GB
    b9e373ed8d9c drm/amd/display: Add align done check
    c96a494c9b0f drm/msm: Wire up tlb ops
    6cef4e68777b ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
    93136132d1b5 media: rc: bpf attach/detach requires write permission
    f83b9abee9fa pmdomain: mediatek: fix race conditions with genpd
    5894212f3abf iio: pressure: bmp280: Add missing bmp085 to SPI id table
    28639eea710c iio: imu: bno055: serdev requires REGMAP
    68f2bdcbd7db iio: imu: adis: ensure proper DMA alignment
    c0f2ab954b02 iio: adc: ad_sigma_delta: ensure proper DMA alignment
    54e67b77be3a iio: accel: bma400: Fix a compilation problem
    e0cb5cc558f0 iio: commom: st_sensors: ensure proper DMA alignment
    b90126c86d83 iio: core: fix memleak in iio_device_register_sysfs
    1d8c67e94e9e iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
    f83ec2ee91d0 staging: iio: ad5933: fix type mismatch regression
    5ad73e1056a6 Revert "workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()"
    d76792931185 tracing/probes: Fix to search structure fields correctly
    ebc1972c2c89 tracing/probes: Fix to set arg size and fmt after setting type from BTF
    d5889a68522c tracing/probes: Fix to show a parse error for bad type for $comm
    ac9a1c3bcd45 tracing/synthetic: Fix trace_string() return value
    6e48f4c61673 tracing: Fix wasted memory in saved_cmdlines logic
    5f703935fdb5 tracing/timerlat: Move hrtimer_init to timerlat_fd open()
    aafdc920d70d ext4: avoid bb_free and bb_fragments inconsistency in mb_free_blocks()
    2883940b19c3 ext4: fix double-free of blocks due to wrong extents moved_len
    e3c4e10e3a79 misc: fastrpc: Mark all sessions as invalid in cb_remove
    a7ae586f6f60 binder: signal epoll threads of self-work
    53953faf9180 ALSA: hda/realtek: fix mute/micmute LEDs for HP ZBook Power
    39ca594f8098 ALSA: hda/cs8409: Suppress vmaster control for Dolphin models
    4629bf52d952 ASoC: codecs: wcd938x: handle deferred probe
    ea102272ffa2 ALSA: hda/realtek - Add speaker pin verbtable for Dell dual speaker platform
    24a98774dc8d ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
    d83d6f66bb3a usb: typec: tpcm: Fix issues with power being removed during reset
    32bfb13db982 modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS
    6cddb7a4d78c linux/init: remove __memexit* annotations
    fd06e32ea464 um: Fix adding '-no-pie' for clang
    2dc2b0a42aaf xen-netback: properly sync TX responses
    54944f45470a parisc: BTLB: Fix crash when setting up BTLB at CPU bringup
    2524299b6106 net: stmmac: do not clear TBS enable bit on link up/down
    923dea2a7ea9 net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame()
    16d3f507b0fa nfc: nci: free rx_data_reassembly skb on NCI device cleanup
    04c0dbdba3b0 kbuild: Fix changing ELF file type for output of gen_btf for big endian
    0f48dea0926d ALSA: hda/realtek: Apply headset jack quirk for non-bass alc287 thinkpads
    1a2f08576e30 firewire: core: correct documentation of fw_csr_string() kernel API
    6d2a97b7b6f2 lsm: fix the logic in security_inode_getsecctx()
    8df43e53f2f7 lsm: fix default return value of the socket_getpeersec_*() hooks
    38fd4dfa2764 drm/amd: Don't init MEC2 firmware when it fails to load
    8983397951b4 drm/amdgpu: Reset IH OVERFLOW_CLEAR bit
    0b1d4187c2df drm/virtio: Set segment size for virtio_gpu device
    c99d215c0c0f connector/cn_proc: revert "connector: Fix proc_event_num_listeners count not cleared"
    56a19b790f57 Revert "drm/msm/gpu: Push gpu lock down past runpm"
    caa2565a2e13 Revert "drm/amd: flush any delayed gfxoff on suspend entry"
    2996c7e97ea7 scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
    889a5f329e47 media: Revert "media: rkisp1: Drop IRQF_SHARED"
    9978d5b744e0 Revert "powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add"
    4bfe217e075d mptcp: really cope with fastopen race
    ed34dfa19ddb mptcp: check addrs list in userspace_pm_get_local_id
    a2d743747e9e mptcp: fix rcv space initialization
    877a72e3b66c mptcp: drop the push_pending field
    1fdb37a673d2 selftests: mptcp: add mptcp_lib_kill_wait
    2decb7d94d34 selftests: mptcp: allow changing subtests prefix
    a4887b7aa676 selftests: mptcp: increase timeout to 30 min
    969afb521f6f selftests: mptcp: add missing kconfig for NF Mangle
    ecdb48c5f538 selftests: mptcp: add missing kconfig for NF Filter in v6
    2d60c017e448 selftests: mptcp: add missing kconfig for NF Filter
    b609c783c535 mptcp: fix data re-injection from stale subflow
    fa3866b67d5e kallsyms: ignore ARMv4 thunks along with others
    3a9d624593c5 modpost: trim leading spaces when processing source files list
    6be99c51829b i2c: i801: Fix block process call transactions
    a99ba46e8a20 i2c: pasemi: split driver into two separate modules
    4cc31fa07445 powerpc/kasan: Limit KASAN thread size increase to 32KB
    f7e84c8e196b irqchip/gic-v3-its: Handle non-coherent GICv4 redistributors
    fcb82e9739f2 irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
    0589dff4fbf4 i2c: qcom-geni: Correct I2C TRE sequence
    f7ff1c89fb6e cifs: fix underflow in parse_server_interfaces()
    e7f744f6f420 iio: adc: ad4130: only set GPIO_CTRL if pin is unused
    0e0dab377509 iio: adc: ad4130: zero-initialize clock init data
    63b1a3d9dd3b PCI: Fix active state requirement in PME polling
    7f414d306320 Revert "kobject: Remove redundant checks for whether ktype is NULL"
    0516c06b19dc powerpc/kasan: Fix addr error caused by page alignment
    8631837dbf8b powerpc/6xx: set High BAT Enable flag on G2_LE cores
    0040386b0b71 powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add
    22920e410234 driver core: fw_devlink: Improve detection of overlapping cycles
    7219a692ffc0 media: ir_toy: fix a memleak in irtoy_tx
    008cf5d1da7f interconnect: qcom: sm8550: Enable sync_state
    d8e36ff40cf9 interconnect: qcom: sc8180x: Mark CO0 BCM keepalive
    c7ebd8149ee5 usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend
    ed85777c640c usb: core: Prevent null pointer dereference in update_port_device_state
    84a13b97e8e2 usb: chipidea: core: handle power lost in workqueue
    0d179c570486 usb: f_mass_storage: forbid async queue when shutdown happen
    eafeda9ee9c0 USB: hub: check for alternate port before enabling A_ALT_HNP_SUPPORT
    ec68d8d25b84 usb: ucsi_acpi: Fix command completion handling
    330d22aba17a usb: ulpi: Fix debugfs directory leak
    d25f43a25794 usb: ucsi: Add missing ppm_lock
    ad42f8087146 iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
    fc41101a94b1 HID: wacom: Do not register input devices until after hid_hw_start
    04fa3e1387bf HID: wacom: generic: Avoid reporting a serial of '0' to userspace
    4cad91344a62 HID: i2c-hid-of: fix NULL-deref on failed power up
    467fce636a3a HID: bpf: actually free hdev memory after attaching a HID-BPF program
    d83a7e591d26 HID: bpf: remove double fdget()
    c34c01fba0f0 ALSA: hda/realtek: Enable Mute LED on HP Laptop 14-fq0xxx
    134c9f699c16 ALSA: hda/realtek: Fix the external mic not being recognised for Acer Swift 1 SF114-32
    63bc8a394083 parisc: Prevent hung tasks when printing inventory on serial console
    7f5375875e84 ASoC: amd: yc: Add DMI quirk for MSI Bravo 15 C7VF
    5735a2671ffb dm-crypt, dm-verity: disable tasklets
    cc0037fa592d nouveau: offload fence uevents work to workqueue
    acd2eda2b28f scsi: storvsc: Fix ring buffer size calculation
    2f61cb94def1 selftests: mm: fix map_hugetlb failure on 64K page size systems
    8f02931edb7d selftests/mm: Update va_high_addr_switch.sh to check CPU for la57 flag
    ec18ec230301 mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again
    85f052b55ce2 selftests/mm: switch to bash from sh
    6022c065c9ec tracing/trigger: Fix to return error if failed to alloc snapshot
    8b5a4fe34279 scs: add CONFIG_MMU dependency for vfree_atomic()
    d6a14d9ddbed selftests/mm: ksm_tests should only MADV_HUGEPAGE valid memory
    ee35363764d8 userfaultfd: fix mmap_changing checking in mfill_atomic_hugetlb
    38e6fede36bb i40e: Fix waiting for queues of all VSIs to be disabled
    be147926140a i40e: Do not allow untrusted VF to remove administratively set MAC
    94d34a6861a2 mm/memory: Use exception ip to search exception tables
    fdd12a80f64f ptrace: Introduce exception_ip arch hook
    2252913f156f MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler
    61e1c101bacb nouveau/svm: fix kvcalloc() argument order
    d4053005d55a net: sysfs: Fix /sys/class/net/<iface> path for statistics
    050ad2ca0ac1 ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
    211db3da3f61 spi: ppc4xx: Drop write-only variable
    6a67bf10934c net: tls: fix returned read length with async decrypt
    d684763534b9 net: tls: fix use-after-free with partial reads and async decrypt
    13eca403876b net: tls: handle backlogging of crypto requests
    6db22d6c7a6d tls: fix race between tx work scheduling and socket close
    86dc27ee36f5 tls: fix race between async notify and socket close
    de31df6f8720 net: tls: factor out tls_*crypt_async_wait()
    5e01c54ebcaf tls: extract context alloc/initialization out of tls_set_sw_offload
    48fae67d8374 lan966x: Fix crash when adding interface under a lag
    5eeb2a9eaa5b net: openvswitch: limit the number of recursions from action sets
    65095912b0f3 selftests: forwarding: Fix bridge locked port test flakiness
    d8893ac849ba selftests: forwarding: Suppress grep warnings
    925fd1a0fb41 selftests: bridge_mdb: Use MDB get instead of dump
    c3e0cfe7d7cb selftests: forwarding: Fix bridge MDB test flakiness
    2fc52eb6369c selftests: forwarding: Fix layer 2 miss test flakiness
    dcaf06afaad8 selftests: net: Fix bridge backup port test flakiness
    30c59775a292 selftests/net: convert test_bridge_backup_port.sh to run it in unique namespace
    7512d7866640 perf: CXL: fix mismatched cpmu event opcode
    6e00027aef47 ALSA: hda/cs35l56: select intended config FW_CS_DSP
    c3dc7cb88815 of: property: Improve finding the supplier of a remote-endpoint property
    e0dce2c981ff of: property: Improve finding the consumer of a remote-endpoint property
    c1c50ca73e41 devlink: Fix command annotation documentation
    59d440ae52b5 bonding: do not report NETDEV_XDP_ACT_XSK_ZEROCOPY
    d74226e03df1 net/handshake: Fix handshake_req_destroy_test1
    cd16ed2e9417 ASoC: SOF: ipc3-topology: Fix pipeline tear down logic
    8723db10f063 wifi: iwlwifi: uninitialized variable in iwl_acpi_get_ppag_table()
    83f4bf711f30 wifi: iwlwifi: Fix some error codes
    9f9aff002a4d KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test
    04e01dc1fce1 spi: imx: fix the burst length at DMA mode and CPU mode
    52fe802f95f2 drm/msm/gem: Fix double resv lock aquire
    3b23d6512d49 of: unittest: Fix compile in the non-dynamic case
    267f7b04effa KVM: selftests: Avoid infinite loop in hyperv_features when invtsc is missing
    03aee9284d9b KVM: selftests: Delete superfluous, unused "stage" variable in AMX test
    854357db2f93 selftests/landlock: Fix fs_test build with old libc
    8f1903863219 driver core: Fix device_link_flag_is_sync_state_only()
    7bddf18f474f btrfs: don't drop extent_map for free space inode on write error
    2f2d90376924 btrfs: reject encoded write if inode has nodatasum flag set
    2dc6dbbddc18 btrfs: don't reserve space for checksums when writing to nocow files
    7efadbcb3200 btrfs: send: return EOPNOTSUPP on unknown flags
    92182dc179ec btrfs: forbid deleting live subvol qgroup
    833775656d44 btrfs: do not ASSERT() if the newly created subvolume already got read
    4f48ef7d97d5 btrfs: forbid creating subvol qgroups
    505a948d0555 btrfs: do not delete unused block group if it may be used soon
    e97ebc2a8c8e btrfs: add and use helper to check if block group is used
    f328d96d6b38 update workarounds for gcc "asm goto" issue
    aaff74d886d0 work around gcc bugs with 'asm goto' with outputs

(From OE-Core rev: 6815af6a5a6370207c842d0a389f208d37bf1553)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
42a020da70 linux-yocto/6.6: genericarm64 configuration/definition
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: features/numa: remove CONFIG_NEED_MULTIPLE_NODES
    Date: Mon, 26 Feb 2024 12:10:12 +0000

    This was removed in kernel a9ee6cf (5.14 onwards).

    Signed-off-by: Ross Burton <ross.burton@arm.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: features/cgroups: remove trailing whitespace
    Date: Mon, 26 Feb 2024 12:10:13 +0000

    Otherwise the audit will notice that "y " was requested but "y" was set.

    Signed-off-by: Ross Burton <ross.burton@arm.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

3/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp: Add initial genericarm64 BSP
    Date: Mon, 26 Feb 2024 12:10:14 +0000

    Add the skeleton of an initial genericarm64 kernel.

    At present this has only been boot tested on a BeaglePlay and is missing
    some functionality, but it does boot via EFI from SD card successfully.

    Future work will organise the configuration fragments more neatly,
    move more options to modules, increase functionality, and add support
    for more boards.

    Signed-off-by: Ross Burton <ross.burton@arm.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: c60bbcc73a5e623e5cf05339d42bc9d98a82b684)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
f7fa98cca8 kern-tools: depend on git-replacement-native
Konstantin Aladyshev <aladyshev22@gmail.com> reported that the
kern-tools require git functionality that was introduced in
git versions greater than the minimum project requirements.

In particular:

   commit 923a9de418b3ca8592c3 [kgit-s2q: don't run verication hooks]

uses the --no-verify flag to prevent local git hooks from
running and breaking patching or introducing security
issues from the host configuration.

To ensure that we have a new enough git available for the tools,
we update our DEPENDS to git-native-replacement, and the version
available in oe-core will be built and used instead of the
host provided version.

(From OE-Core rev: 6c2ae2346db061a37506b3b5dca20914a7b29fca)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
c95aa38d24 linux-yocto/6.6: config: x86 tidy & consolidation
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: BSP: remove from all - latencytop feature inclusion
    Date: Thu, 30 Nov 2023 14:07:48 -0500

    Consider this 5+ year old commit

        commit bcbc7bbc4f
        Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
        Date:   Thu Mar 1 16:00:41 2018 +0200

        latencytop: remove recipe

        Last commit and release were in 2009; website is down; it's a dead project.

        (From OE-Core rev: 36aae56e7f86a4d5ce93e4528e7dcc42f60c705e)

        Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
        Signed-off-by: Ross Burton <ross.burton@intel.com>
        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

    Given that, it seems sensible to drop it from default inclusion across
    the BSPs.  I've left the feature itself, so anyone who still cares can
    easily manually add it still.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: x86-64: separate out the NUMA features to our existing NUMA scc/cfg
    Date: Thu, 30 Nov 2023 14:07:45 -0500

    A user reported getting NUMA warnings like the ones reported here:

    https://www.suse.com/support/kb/doc/?id=000021040

    "Fail to get numa node for CPU:0 bus:0 dev:0 fn:1"

    ...and repeated for every core on the platform.  Distracting.

    When I asked if it was a crazy big server system with multiple CPU
    sockets and localized RAM near each socket - the answer was "no".

    Turns out they didn't choose NUMA support - rather we did it for them.

    Yocto has been and still remains more "embedded leaning".  That is not
    to say we can't support NUMA.  We just shouldn't be enabling it by
    default in the base x86-64 config fragment that everyone uses.

    Move the two NUMA settings that were not in our existing numa.cfg
    feature out of the BSP and into the feature.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

3/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: x86-64: consolidate crypto options
    Date: Thu, 30 Nov 2023 14:07:44 -0500

    No functional change - just makes further reorganizations and
    refactoring more easy to review/parse.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: e8ffc63f3ed61cc31c3077741f3f96dae9baa3fb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
eb54ef787d linux-yocto/6.6: enable squashfs for selftests
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Vyacheslav Yurkov
    Email: uvv.mail@gmail.com
    Subject: squashfs: Add initial support
    Date: Wed, 21 Feb 2024 07:15:31 +0100

    It's required at least in selftest to test read-only file systems.

    Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 5ec087fe143051c2b47aa4ee0ba0ad97dae39377)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Michael Halstead
f342b4c57b yocto-uninative: Update to 4.4 for glibc 2.39
(From OE-Core rev: 56fdd8b79e2f7ec30d2cdcfa0c399a6553efac1e)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Martin Jansa
bb4abe0e64 glib-2.0: backport a switch from distutils to packaging in codegen
* to fix build on hosts with python-3.12, now it fails with:

Traceback (most recent call last):
  File "recipe-sysroot-native/usr/bin/gdbus-codegen", line 53, in <module>
    from codegen import codegen_main
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/codegen_main.py", line 29, in <module>
    from . import dbustypes
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in <module>
    from . import utils
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/utils.py", line 22, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'
CMake Error at CMakeLists.txt:90 (message):
  Error in generating code for connman interface using gdbus-codegen

(From OE-Core rev: 258cb46f93af3249fb554a679af6222174bd2e95)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Adrian Freihofer
ea5a74cc67 oe-selftest devtool: ide-sdk tests
Improve the GDB related tests. Verify GDB finds the correct source
files.

(From OE-Core rev: 67eed460c0bf18d23f2c9180f195417895acfd55)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Adrian Freihofer
c82c57621b devtool: ide-sdk prefer sources from workspace
Improve the previous commit:
- log an error if some assumptions are not true
- Use TARGET_DBGSRC_DIR variable
- Do the same for ide none

Why the additional source mapping is required:

For example the cmake-example recipe refers to sources like this:
./recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-readelf \
  -wi image/usr/bin/cmake-example | grep -B1 DW_AT_comp_dir
    ...
    <560>   DW_AT_name        : (indirect line string, offset: 0x1da):
    /usr/src/debug/cmake-example/1.0/oe-local-files/cpp-example.cpp
    ...

Another example is powertop:
./recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-readelf \
  -wi image/usr/sbin/powertop | grep -B1 DW_AT_comp_dir
    ...
    <561>   DW_AT_name        : (indirect line string, offset: 0x1da):
    /usr/src/debug/powertop/2.15/src/devlist.cpp
    ...

For recipes with local files this works. The oe-local-files folder is
not available in the rootfs-dbg and therefore the sources are first
found in the workspace folder. GDB searches for source files in various
places:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Source-Path.html
However, for the powertop example the sources opened in the editor are
from the rootfs-dbg instead of from the workspace.

Bitbake calls the compiler with
  -fmacro-prefix-map=${S}=${TARGET_DBGSRC_DIR}
where TARGET_DBGSRC_DIR defaults to "/usr/src/debug/${PN}/${PV}".

A source map which maps the recipe specific path from TARGET_DBGSRC_DIR
to the workspace fixes this.
The already existing source map for /usr/src/debug applies for all other
recipes. It finds the sources (read only) in the rootfs-dbg folder.

(From OE-Core rev: 06601632c1879cb80276f9b36de91fb7808311a5)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Enguerrand de Ribaucourt
a5b75e29ff devtool: ide-sdk source mapping for vscode
When launching the debug configuration, the source files from the debug
rootfs were openened in the editor instead of the local workspace files.
We add an exception to properly map them to the file being developed and
compiled by the IDE integration. This also more closely matches what the
user would expect compared to native development.

This is also true for the devtool fallback mode.

(From OE-Core rev: 24db2b8d0d7104960c1cdb2c7ee5216c830a6754)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Adrian Freihofer
4c6f3bbc77 devtool: ide-sdk launch.json per recipe only
If multiple recipes are processed at once, the launch.json and the
tasks.json of the second recipe contains also the configurations for the
binaries of the first recipe.

Example:
  devtool ide-sdk powertop cmake-example oe-selftest-image
generated a launch and a tasks configuration for the cmake-example
recipe which also offers debugging the powertop binary.

(From OE-Core rev: 63986b2c40d90fe96cdc6a46aa649efcf17f6ac2)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Joshua Watt
be57fda542 bitbake: asyncrpc: Add support for server headers
Adds support for asyncrpc servers to send connection headers to clients
on connection. Since this is a breaking protocol change, clients must
opt-in to expect headers from the server, corresponding to a version
bump in the client protocol.

(Bitbake rev: 1cb2b8be6cc5269553f549285592e47b7d29db03)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:36:38 +00:00
Tim Orling
2841449527 bitbake: layerindexlib: fix missing layer branch backtrace
When a LayerBranch (a specific layer at a specific release) does not
exist in the layerindex database ("Layerindex Metadata"), the dependency
would throw a backtrace. Instead fail early and provide an error message.

Since layerindexlib will also check the local layers, inform the user that
a local checkout might resolve the situation. Recommend that they reach
out to the layer maintainers and layer index admins to properly fix it for
everyone.

While we are here, remove some trailing whitespace.

[YOCTO #15365]
[YOCTO #13954]

(Bitbake rev: 96cbe8f87209a927c157ebcf469f8b9d54fcf92e)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:36:38 +00:00
Enrico Jörns
54c27d84b6 wic: 'empty' plugin: fix typo in comment
(From OE-Core rev: 1a9013c3767d174a970d31e80748bc8d73af0dba)

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Xiaotian Wu
7b4d8e6b7f openssl: Match target name for loongarch64
This is updated in openssl [1] since opensssl 3.2.0-alpha1 onwards

[1] b625e21e67

(From OE-Core rev: 1e5b30d92da2e51e6a4ba75e2cc1e9ccebc8efe7)

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
5018d3a4b6 oeqa/utils/postactions: testimage: add host disk usage stat as post action
Since the target under test can be a virtualized guest, when some tests
fail because of disk usage (see [1]), also fetch disk usage statistics from
host to allow checking whether a host disk space saturation could affect
running tests.

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15220

(From OE-Core rev: 2ab3a0935b1e7a016402f149da1fc01b38d7af55)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
d4267a8dce oeqa/utils/postactions: add target disk usage stat as post action
In order to debug issues related to disk space (see [1]),  add a failed
tests post action to retrieve disk usage on the target. Rely on the test
context object to run the corresponding command onto the target

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15220

(From OE-Core rev: 637e216b0e5191571270aa07e1f50a6e41a8c08f)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
9a46657a25 oeqa/utils/postactions: isolate directory creation in dedicated action
In order to be able to create actions that could store new files during
failed test post actions, we need to split artifacts directory creation
from artifacts retrieval.

Create a new dedicated action to create artifacts main directory so we can
add actions creating files in this new directory, without worrying about
actions order if at least this action is set first.

(From OE-Core rev: 5d796586a9342f4f984494a5b493dbaf77af7026)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
3add7b301e testimage: create a list of failed test post actions
testimage is able to detect whenever a test run leads to some tests
failing, and execute some actions in this case. The only action currently
defined in such case is to retrieve artifacts from the target under test,
as listed in TESTIMAGE_FAILED_QA_ARTIFACTS

In order to be able to add multiple actions, define a central function to
gather all "post actions" to run whenever a test has failed
(run_failed_tests_post_actions). This function contains a table listing all
functions to be called whenever a test fails. Any function in this table
will be provided with bitbake internal data dictionary ("d") and the
current runtime testing context ("tc"). Isolate all this feature in a
dedicated postactions.py file inherited by testimage.
This patch does not bring any functional change.

(From OE-Core rev: c01aa8df0613a103859b4431d3cc5056b2fef1b8)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
fec128bd62 lib/oeqa: share get_json_result_dir helper
Multiple places in oeqa need to get the log output path, and redefine a
small helper to accomplish this

Define this helper in lib/oeqa/utils/__init__.py and import it wherever
needed to allow using it.

(From OE-Core rev: 01b1a6a5a4e7cede4d23a981b5144ae9c8306274)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Xiaotian Wu
031099c417 loongarch64: change -march to loongarch64
Now both gcc and clang all support -march=loongarch64, so we can use it.

(From OE-Core rev: acc08582293709c73011083aa7d5c631a9ae8c8c)

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Michael Opdenacker
6b356b74d8 dev-manual: packages: need enough free space
Enough free storage space is needed to apply package upgrades.

(From yocto-docs rev: 6571eb02cbd5c2b96df0f279f25b63255ab7eac4)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Michael Opdenacker
ea5fa49bfc dev-manual: packages: clarify shared PR service constraint
Explicit the problems previous described as "obvious".

(From yocto-docs rev: ca939f9ceebbf9b5e82bb76abf1c4d20f039d68e)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Adrian Freihofer
1a2cf4c538 sdk-manual: extensible.rst: cover devtool ide-sdk
Cover the new devtool ide plugin in the extensible sdk section.

Many thanks to Enguerrand de Ribaucourt for his re-view and
contributions.

(From yocto-docs rev: d318cc41e0600ca8e18bc6789cac414ae0226a07)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Khem Raj
736ba6823d ref-manual: variables: remove PYTHON_PN
PYTHON_PN is on its way out, therefore it's good to remove it from
documentation so its use is not promoted anymore.

(From yocto-docs rev: 74180c0f6bcdeadbd6f9a69d26f733c716f420fd)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Lee Chee Yang
baa7f95aab migration-guide: add release notes for 4.3.3
(From yocto-docs rev: 89403af3fa49ecb00dfec04ac9c490b6dc031008)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Michael Opdenacker
025386d53c manuals: suppress excess use of "following" word
To simplify the style, replace "Following is" and "Following are"
by "here is" and "here are", sounding more natural.

In some cases, also go further by simplifying "Here are/is xxx"
by "xxx are/is" when the "are" or "is" are not two far at
the end of the sentence.

In some cases too, completely remove the sentence, when
it's redundant with the preceding title.

(From yocto-docs rev: 52ba6bb16c73cbc2c0e77496d5226c49bce786f5)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Michael Opdenacker
67efdd63c2 ref-manual: release-process: grammar fix
(From yocto-docs rev: e8a59c67a8719096f8b67942cec4f8a0656c410c)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Michael Opdenacker
8a3e233a37 ref-manual: system-requirements: update packages to build docs
- "git" is now required to run "set_versions.py"

- Fix Ubuntu / Debian packages.
  The previous instructions didn't run on Debian 12
  Tested on Ubuntu 22.04 and Debian 12.

  Reported on https://lists.yoctoproject.org/g/docs/message/4789

(From yocto-docs rev: cd0525f1a081567d5d8722d368511179655ca541)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: <mhagans@skyviewsat.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Simone Weiß
1f247f5451 dev-manual: Rephrase spdx creation
Make the options more clear by providing them in a list instead of plain prosa.
Also add a ref for a presentation wrt spdx 3.0 in the Yocto project.

Fixes [YOCTO 7476]

(From yocto-docs rev: a15e354f98607592a67d2df91dfa2bf0707d8f38)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Simone Weiß
296fdb6643 cve-check: Log if CVE_STATUS set but not reported for component
Log if the CVE_STATUS is set for a CVE, but the cve is not reported for a
component. This should hopefully help to clean up not needed CVE_STATUS
settings.

(From OE-Core rev: 013d531a84fa08b6ae8a47bdf3ba1fa8f18ba270)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
2bcd651a08 meta: Update CVE_STATUS for incorrect cpes
Set CVE_STATUS as none of the issues apply against the versions
used in the recipes.

(From OE-Core rev: cea8c8bf73e84133f566d1c2ca0637494f2d7afe)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
5e21c5d64e meta: Remove some not needed CVE_STATUS
CVE_STATUS was set for those components, but meanwhile databases are updated
with corrected information, so setting the CVE_STATUS is not needed anymore.

(From OE-Core rev: 5ec6057cfa66ceeb33bec013e320f8e3fa7d7ecf)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
e8ea8695e1 patchtest: Skip test for CVE_CHECK_IGNORE for older branches
Skip the test for checking if CVE_CHECK_IGNORE is not used.
It is deprecated now, but was not deprecated for kirkstone and dunfell.
Skip it therefore if a patch is intended for those branches.

(From OE-Core rev: e9b04664b1b2ba6aa1fa7318e3d4174b9cdb19da)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
8a3f025b3a patchtest: provide further guidance for failed testcases
Cross-reference the wiki page on patchtest now that it is updated and contains
more information how to address failed testcases. Adding it in patchtest only
is enough as patchtest-send-result already points to the wikipage for failures.

(From OE-Core rev: 51267f3c5d647fc6483ce6b597ed9e25c14bd425)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Munehisa Kamata
79191f8590 kernel.bbclass: Set pkg-config variables for building modules
The pkg-config workaround has been applied for kernel image building, but
not for module building. So pkg-config variables are different between
do_compile and do_compile_kernelmodules tasks. It may unnecessary trigger
rebuilding of a few host tools at the later task.

Especially when CONFIG_DEBUG_INFO_BTF is enabled in the kernel, it may even
trigger rebuilding vmlinux at do_compile_kernelmodules due to the rebuilt
host tools such as certs/extract-cert or objtool (on x86). This eventually
creates an inconsistent set of kernel binaries.

Here is the repro steps:

 - Check out nanbield on x86
   - The unexpected rebuild happens on kirkstone or possibly earlier

 - Ensure that pahole is available (e.g. via meta-oe)

 - Set KERNEL_DEBUG to "True" to properly set up PAHOLE
   e.g.
   $ export KERNEL_DEBUG="True"
   $ export BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS} KERNEL_DEBUG"

 - Enable CONFIG_DEBUG_INFO_BTF=y
   e.g.
   $ bitbake -c menuconfig virtual/kernel
    -> Kernel hacking
      -> Compile-time checks and compiler options
        -> Generate BTF typeinfo

 - Build the kernel
   e.g.
   $ bitbake virtual/kernel

The BTF information in the resulting bzImage and kernel modules are
inconsistent, because the module's BTF information is generated using the
"second" vmlinux that doesn't have the identical BTF to the "first" vmlinux.
These modules can't be loaded at runtime due to the BTF mismatch.

This also leads to a build-id mismatch between the installed bzImage and
vmlinux since the bzImage is created from the first vmlinux, but the
installed vmlinux is the second one.

  $ eu-readelf -n tmp/work/qemux86_64-poky-linux/linux-yocto/6.5.13+git/image/boot/{bzImage*,vmlinux*} | grep "Build ID"
   Build ID: 4a0d62ee7fef0244950f0f604253729875bea493
   Build ID: fb99b3d91399dbe42bf67ddee59e0f5a0c7f74d9

To avoid the unexpected rebuilding that results in such inconsistency, set
the same pkg-config variables when building kernel and modules. For kernel
5.19 and above, simply set the HOSTPKG_CONFIG in the make command line.

(From OE-Core rev: cd2072e5d953af981339427028e19083257e6a92)

Signed-off-by: Munehisa Kamata <kamatam@amazon.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Jose Quaresma
47c5f1f1c5 go: update 1.20.13 -> 1.20.14
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.13..go1.20.14
90a870f1dc (tag: go1.20.14, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.14
a2f4a5a6e7 [release-branch.go1.20] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1
746a072791 [release-branch.go1.20] crypto/x509: properly gate test on macos version
d7df7f4fa0 [release-branch.go1.20] runtime: properly model rwmutex in lock ranking

$ git log --oneline go1.20.13..go1.20.14

[1] https://github.com/golang/go/compare/go1.20.13...go1.20.14

(From OE-Core rev: 44f81b6239f0f08877ccd6507c2a81f3650f193b)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Adrian Freihofer
4e3b6c24d5 devtool: ide-sdk python 3.12 escaping
scripts/lib/devtool/ide_sdk.py:709: SyntaxWarning: invalid escape sequence '\.'
  re_so = re.compile('.*\.so[.0-9]*$')

scripts/lib/devtool/ide_plugins/__init__.py:87: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "test -f \$TEMP_DIR/pid && exit 0; "

scripts/lib/devtool/ide_plugins/__init__.py:88: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "mkdir -p \$TEMP_DIR; "

scripts/lib/devtool/ide_plugins/__init__.py:89: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "%s --multi :%s > \$TEMP_DIR/log 2>&1 & " % (

scripts/lib/devtool/ide_plugins/__init__.py:91: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "echo \$! > \$TEMP_DIR/pid;"

scripts/lib/devtool/ide_plugins/__init__.py:94: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_stop += "test -f \$TEMP_DIR/pid && kill \$(cat \$TEMP_DIR/pid); "

scripts/lib/devtool/ide_plugins/__init__.py:95: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_stop += "rm -rf \$TEMP_DIR; "

(From OE-Core rev: e8c64921de7206bf617fc42433286867ae3c931d)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Emil Kronborg
5569259122 bluez5: remove configuration files from install task
Since be0e796299b0 ("build: ship all config files with
--enable-datafiles") in bluez, installing input.conf and network.conf
has been redundant, as the bluez5 recipe already includes
--enable-datafiles.

(From OE-Core rev: 49391fdcf71b32c5fd3c7b134c1d1c45cc1db388)

Signed-off-by: Emil Kronborg <emil.kronborg@protonmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Soumya Sambu
9efcdbc0ae bind: Upgrade 9.18.21 -> 9.18.24
Changelog:
=========
9.18.24:
	- Fix case insensitive setting for isc_ht hashtable.
	[GL #4568]

9.18.23:
	- Specific DNS answers could cause a denial-of-service
	condition due to DNS validation taking a long time.
	(CVE-2023-50387) [GL #4424]
	- Change 6315 inadvertently introduced regressions that
	could cause named to crash. [GL #4234]
	- Under some circumstances, the DoT code in client
	mode could process more than one message at a time when
	that was not expected. That has been fixed. [GL #4487]

9.18.22:
	- Limit isc_task_send() overhead for RBTDB tree pruning.
	[GL #4383]
	- Restore DNS64 state when handling a serve-stale timeout.
	(CVE-2023-5679) [GL #4334]
	- Specific queries could trigger an assertion check with
	nxdomain-redirect enabled. (CVE-2023-5517) [GL #4281]
	- Speed up parsing of DNS messages with many different
	names. (CVE-2023-4408) [GL #4234]
	- Address race conditions in dns_tsigkey_find().
	[GL #4182]
	- Conversion from NSEC3 signed to NSEC signed could
	temporarily put the zone into a state where it was
	treated as unsigned until the NSEC chain was built.
	Additionally conversion from one set of NSEC3 parameters
	to another could also temporarily put the zone into a
	state where it was treated as unsigned until the new
	NSEC3 chain was built. [GL #1794] [GL #4495]
	- Memory leak in zone.c:sign_zone. When named signed a
	zone it could leak dst_keys due to a misplaced
	'continue'. [GL #4488]
	- Log more details about the cause of "not exact" errors.
	[GL #4500]
	- The wrong time was being used to determine what RRSIGs
	where to be generated when dnssec-policy was in use.
	[GL #4494]
	- The "trust-anchor-telemetry" statement is no longer
	marked as experimental. This silences a relevant log
	message that was emitted even when the feature was
	explicitly disabled. [GL #4497]
	- Fix statistics export to use full 64 bit signed numbers
	instead of truncating values to unsigned 32 bits.
	[GL #4467]
	- NetBSD has added 'hmac' to libc which collides with our
	use of 'hmac'. [GL #4478]

(From OE-Core rev: d7f31aba343948dbaadafc8c0c66f78e6ffb46e3)

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00