This updates to the latest pseudo version which includes:
Revert "client: Fix some compiler warnings"
ports/linux: Always build statx support
makewrappers: Handle parameters marked as nonnull
client: Fix some compiler warnings
wrappers: Avoid -Wcast-function-type warning
In particular, this pseudo version always has statx enabled which means
we can then remove the need to make pseudo-native host distro specific
which fixes an eSDK issue.
(From OE-Core rev: bcf74e0d048754ed46bda90cd582320d0df2a4ad)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 58cc70940ff998be49a9b89e1ad0538242cb7998)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
When building pseudo-native to work with uninative, we need to ensure the
configuration will work on all supported target systems. This means
"new clone" semantics, xattr and statvfs support in particular. It is
extremely unlikely we'd run on a system without any of these but add
a check just to be sure when uninative is enabled.
(From OE-Core rev: 496f0cd63aaeedbff625eb687f20ace951faf6f1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ea5b208ee25752bea6037cd0f3b28da7d2c9905e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Use git repo as the the previous URL only stores the latest
source file and fails to locate the source file which isn't
the latest.
(From OE-Core rev: 9557273596245f51781884a8ae7c8d9a14840df2)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Backport the body of a fix for CVE-2021-3572 since hardknott carries
20.0.2, and the delta between it and the latest 21.1.3 is more than just
bugfixes.
CVE: CVE-2021-3572
(From OE-Core rev: fb7a2af241795b82f121381cea6f4b56ce948ebf)
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Now that ":" is a valid character in variable key names, it needs to be
allowed by the variable expansion code too, to match.
(Bitbake rev: 9b2d96b27f550da0fa68ba9ea96be98eb3a832a6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
It is becomming increasingly clear we need to find a way to show what
is/is not an override in our syntax. We need to do this in a way which
is clear to users, readable and in a way we can transition to.
The most effective way I've found to this is to use the ":" charater
to directly replace "_" where an override is being specified. This
includes "append", "prepend" and "remove" which are effectively special
override directives.
This patch simply adds the character to the parser so bitbake accepts
the value but maps it back to "_" internally so there is no behaviour
change.
This change is simple enough it could potentially be backported to older
version of bitbake meaning layers using the new syntax/markup could
work with older releases. Even if other no other changes are accepted
at this time and we don't backport, it does set us on a path where at
some point in future we could
require a more explict syntax.
I've tested this patch by converting oe-core/meta-yocto to the new
syntax for overrides (9000+ changes) and then seeing that builds
continue to work with this patch.
(Bitbake rev: f8d1bc200460fc1cb5cbf7a7d1986fd86424b22d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Include updates to versions for dunfell releases as well.
(From yocto-docs rev: dae6a0209d69c267d3cbace6589b0ac73e06abce)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5.13 introduces some new tweaks required to get on target scripts
and prepare working for powerpc:
- 'nm' is detected as 'nm --synthetic', so we adjust our replacement
- more vdso is required on target, so we copy those files (like arm64
does)
- grep is required during processing, so we add it to the redpends
(From OE-Core rev: f6fd5814bb74f7e48a9629e559e69ea5c50bc17e)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c43baf3a0e41b41a64f450fd03810306c8ddd314)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
There are two new tools in 5.13+ required for on target
recreation of the build environment.
We conditionally add them to the devsrc recipe to support
both 5.13 and older kernels.
(From OE-Core rev: f7dca74b768ca001dd72562b80e501f6257bdaa8)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cb1b7e76f20dc7f11a667fa00958ab56e680c632)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
We use dwarfsrcfiles in package.bbclass to list the source files used by a binary.
This is done before they're stripped and linked to debug symbols in separate files.
It is possible a binary may already have a link to separate debug symbols, e.g.
some of the test binaries in lttng-tools ptest. In those cases, the linked binary
may be changed by package.bbclass code whilst dwarfsrcfiles is reading it. That
would result in a rare SIGBUS race causing the binary to fail.
To avoid this, break the debug file search path so no other binaries are found.
Also fix a segfault if no binary is specified while here.
[YOCTO #14400]
(From OE-Core rev: 52382a03c10a6985ecb6ada24523cb9daf9c6201)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit efef732859e265533acf16f2f4da3b29d50e0df4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Having two possible failures in multiprocesslauch creates a race where one failure
may occur and stop processes being lanuched meaning the second failure may not
be seen. Rather than having periodic races appearing on the autobuilder, only
have one failure, making the test much more deterministic.
[YOCTO #13054]
(From OE-Core rev: 22079206130005324c5b3cd11fdb1f4921a725c2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 31e9dcda40aae3ce0801580c838928956e1455e3)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
linux-yocto-dev tracks the latest mainline kernel, and uses
standard/* for that support.
Archived -dev versions are under v<kernel version>/standard/base.
This policy works, except that a released branch will still follow
the new kernel versions, causing potential breakage with newer
kernels than are supported in that release.
Rather than lock the SRCREVs and update branches in old releases,
we can preserve the AUTOREV nature of -dev, and allow them to
switch automatically to the archived branch based on the LINUX_VERSION
in the -dev recipe (which is unchanged in the release branch).
This is consistent with the other branch switching done for the
kernels and with the -dev workflow.
(From OE-Core rev: b3228b4140575bfc20cb4e5bade0f3737d374e86)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 84e14b6116a7d1e52051c5c80be2d8e3db67c2d7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Reproduce scenes:
* On fedora34
* autofs.service is started
* test is nis user, which mounted at /nis by autofs
* under /nis/test, there are symlinks point to another nis mount point /nis/yan
Result:
task boost-build-native:do_install hang forever
NOTE: recipe ovmf-edk2-stable202102-r0: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 8124 of 8152 (/layers/oe-core/meta/recipes-core/ovmf/ovmf_git.bb:do_build)
Bitbake still alive (5000s)
Bitbake still alive (10000s)
Bitbake still alive (15000s)
Bitbake still alive (20000s)
Bitbake still alive (25000s)
Bitbake still alive (30000s)
Bitbake still alive (35000s)
Bitbake still alive (40000s)
Bitbake still alive (45000s)
Bitbake still alive (50000s)
$ps aux | grep b2
test 2773444 0.0 0.0 13532 2748 ? D Jul01 0:00 ./b2 install --prefix=/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/recipe-sysroot-native/usr staging-prefix=/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/image/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/recipe-sysroot-native/usr
$ sudo cat /proc/2773444/stack
[<0>] autofs_wait+0x257/0x720
[<0>] autofs_mount_wait+0x49/0xf0
[<0>] autofs_d_manage+0x76/0x1a0
[<0>] __traverse_mounts+0xd9/0x220
[<0>] step_into+0x3ad/0x6d0
[<0>] walk_component+0x62/0x190
[<0>] link_path_walk.part.0.constprop.0+0x20d/0x350
[<0>] path_lookupat+0x3a/0x1b0
[<0>] filename_lookup+0x9b/0x180
[<0>] vfs_statx+0x64/0x100
[<0>] __do_sys_newfstatat+0x1e/0x40
[<0>] do_syscall_64+0x33/0x40
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
$ dmesg
[1559743.424610] autofs4:pid:2773444:autofs_mount_wait: waiting for mount name=yan
[1559743.424621] autofs4:pid:2773444:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560001.400440] autofs4:pid:2774530:autofs_mount_wait: waiting for mount name=yan
[1560001.400452] autofs4:pid:2774530:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560022.493282] autofs4:pid:2774537:autofs_mount_wait: waiting for mount name=yan
[1560022.493292] autofs4:pid:2774537:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560122.076589] autofs4:pid:3979116:autofs_mount_wait: mount wait done status=-4
[1560162.222374] autofs4:pid:2774530:autofs_mount_wait: mount wait done status=-4
[1560167.116188] autofs4:pid:2774537:autofs_mount_wait: mount wait done status=-4
[1560188.140532] autofs4:pid:2774671:autofs_mount_wait: waiting for mount name=yan
[1560188.140540] autofs4:pid:2774671:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560189.651905] autofs4:pid:2774671:autofs_mount_wait: mount wait done status=-4
Analyzation:
b2 will walk the HOME dir, when access the symlink point to /nis/yan,
autofs hang at autofs_wait. the process stay at D stat forever. This
maybe caused by abnormal status of autofs.service. The problem cannot
reproduce after restart autofs.service. There should be an autofs bug.
and there is an autofs hang problem bug on fedora34 on it's bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1953390
Workaround:
Since b2 don't actually write something to HOME dir, change HOME dir to
/var/run, a dir not mounted by autofs.
(From OE-Core rev: 760b7b6a031c9dcc9a44e086e1d2dbb2171b3c97)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 7ff692d2e9787bb5b36929a208597595473db0c7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If you try and run the glibc-testsuite's build task, you see failures
as do_populate_sysroot can't work. We don't have a do_install, get
rid of do_populate_sysroot as well.
The recipe is not included in world builds by default which is why
we don't see the issue more widely.
(From OE-Core rev: eccfb470229164a106a32126db53dcf155af2569)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f7de32dfcc2e6b1872fbd5ea61dcba944d5553a8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The qemu tap device handling is potentially race ridden. We pass the
fd to the main qemu subprocess which is good as it means the lock is held
as long as the qemu process exists. This means we shouldn't unlock it
ourselves though, only close the file. We also can't delete the file
as we have no idea if qemu is still using it. We could try and obtain
an exclusive new lock, then the file would be safe to unlink but it
doesn't seem worth it.
Also fix the same issue in the port lock code.
(From OE-Core rev: 61682a1a8bfe5f7be6e271a4143fa4a02ca5dca9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2a87bddabf816d09ec801e33972879e6983627eb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Previouly there is a logic as below used to set libpth in config.sh.
libpth='@LIBDIR@ @BASELIBDIR@'
But after the below commits introduced, the above logic is dropped.
52f2828314 perl: add a version that builds the recipe using perl-cross, and update to 5.28.1
68552c3532 perl: remove the previous version of the recipe
So correct the value of libpth and glibpth to add the dropped logic
back to avoid confusing.
Before the patch(on 64bits system):
# perl -V:libpth
libpth='/usr/lib /lib';
After the patch(on 64bits system):
# perl -V:libpth
libpth='/usr/lib64 /lib64';
(From OE-Core rev: afe58be55b4efc360420a00cbcf60dd5d99ed556)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a494de43c3ccdcf7af988765ae5c3a95bc20c567)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
It was pointed out that the default scsi-debug feature didn't behave
the same as other distros, since it doesn't have disk supporrt enabled.
We already have a disk.cfg for scsi so we include it into the debug
fragment to get the support we want.
Integrating the following commit(s) to linux-yocto/.:
66a4b5fc619 scsi: debug needs disk support
(From OE-Core rev: 8160aa87e23d2b541b64d6cd84f3a02aba1ac8cb)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8c3ca417a7e9e3c670f1cbff2352c8761b60caff)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
82ffbc138a1f Linux 5.4.129
9011aaab90b8 certs: Move load_system_certificate_list to a common function
e20b90e4f81b certs: Add EFI_CERT_X509_GUID support for dbx entries
06ab9df09eb3 x86/efi: move common keyring handler functions to new file
ac7d3f554472 certs: Add wrapper function to check blacklisted binary hash
61168eafe024 mm, futex: fix shared futex pgoff on shmem huge page
a33b70d62552 mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk()
e045e9e79d2a mm/thp: fix page_vma_mapped_walk() if THP mapped by ptes
037a1d67d236 mm: page_vma_mapped_walk(): get vma_address_end() earlier
fa89d536948a mm: page_vma_mapped_walk(): use goto instead of while (1)
a499febd9935 mm: page_vma_mapped_walk(): add a level of indentation
b1783bf8c8e4 mm: page_vma_mapped_walk(): crossing page table boundary
80b2270a14b8 mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION block
ef161ccaca70 mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd
4961160272b7 mm: page_vma_mapped_walk(): settle PageHuge on entry
52e2b20fb5e4 mm: page_vma_mapped_walk(): use page for pvmw->page
82ee7326af7a mm: thp: replace DEBUG_VM BUG with VM_WARN when unmap fails for split
bd4389215227 mm/thp: unmap_mapping_page() to fix THP truncate_cleanup_page()
b767134ec30a mm/thp: fix page_address_in_vma() on file THP tails
41432a8a6776 mm/thp: fix vma_address() if virtual address below file offset
4b0a34e222e5 mm/thp: try_to_unmap() use TTU_SYNC for safe splitting
bd092a0f1942 mm/thp: make is_huge_zero_pmd() safe and quicker
4c37d7f269f8 mm/thp: fix __split_huge_pmd_locked() on shmem migration entry
7ce4b73d349b mm, thp: use head page in __migration_entry_wait()
68ce37ebe0f2 mm/rmap: use page_not_mapped in try_to_unmap()
432b61863ac7 mm/rmap: remove unneeded semicolon in page_not_mapped()
cfe575954ddd mm: add VM_WARN_ON_ONCE_PAGE() macro
42f11f0fe977 kthread: prevent deadlock when kthread_mod_delayed_work() races with kthread_cancel_delayed_work_sync()
06ab015d1849 kthread_worker: split code for canceling the delayed work timer
d77c9c8537db i2c: robotfuzz-osif: fix control-request directions
bb85717e3797 KVM: do not allow mapping valid but non-reference-counted pages
d6f751ecccfb nilfs2: fix memory leak in nilfs_sysfs_delete_device_group
702acfcbfa68 pinctrl: stm32: fix the reported number of GPIO lines per bank
76c10e10ba7b net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY
aa00b9780482 net: ll_temac: Add memory-barriers for TX BD access
d807b93f9bca PCI: Add AMD RS690 quirk to enable 64-bit DMA
5830f2081d98 recordmcount: Correct st_shndx handling
70866199220e net: qed: Fix memcpy() overflow of qed_dcbx_params()
b7168ec176fd KVM: selftests: Fix kvm_check_cap() assertion
58687d143515 r8169: Avoid memcpy() over-reading of ETH_SS_STATS
cb4a2e4e224a sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS
97e0102e1824 r8152: Avoid memcpy() over-reading of ETH_SS_STATS
f12a5b48bcc8 net/packet: annotate accesses to po->ifindex
cdcedd3c8683 net/packet: annotate accesses to po->bind
343406f9c198 net: caif: fix memory leak in ldisc_open
8707ce86e927 net: phy: dp83867: perform soft reset and retain established link
9f2d04dfb3c4 inet: annotate date races around sk->sk_txhash
d40ff07a7b7d ping: Check return value of function 'ping_queue_rcv_skb'
9df4f031536b net: ethtool: clear heap allocations for ethtool function
62aed2df294a mac80211: drop multicast fragments
eb2b1216bc8f net: ipv4: Remove unneed BUG() function
e0c950d2fddb dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma
f7b1926c7c5d dmaengine: mediatek: do not issue a new desc if one is still current
3d995587c3ea dmaengine: mediatek: free the proper desc in desc_free handler
c09af3877b53 dmaengine: rcar-dmac: Fix PM reference leak in rcar_dmac_probe()
f2c027a7750f cfg80211: call cfg80211_leave_ocb when switching away from OCB
78bf3c613148 mac80211_hwsim: drop pending frames on stop
ae9de9444b54 mac80211: remove warning in ieee80211_get_sband()
0e486713779a dmaengine: zynqmp_dma: Fix PM reference leak in zynqmp_dma_alloc_chan_resourc()
456367b24190 Revert "PCI: PM: Do not read power state in pci_enable_device_flags()"
1442186236ad spi: spi-nxp-fspi: move the register operation after the clock enable
7bc73260c4b1 MIPS: generic: Update node names to avoid unit addresses
0855fe6d8835 arm64: link with -z norelro for LLD or aarch64-elf
3173390b8dbc kbuild: add CONFIG_LD_IS_LLD
3450f5eb8c9e mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk
48a5449c0be1 ARM: 9081/1: fix gcc-10 thumb2-kernel regression
4a8e89e0fd0b drm/radeon: wait for moving fence after pinning
4577708b2a22 drm/nouveau: wait for moving fence after pinning v2
c77c617e26e2 Revert "drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell."
6bd0da6c9b12 Revert "drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue."
e2dc07ca4e01 module: limit enabling module.sig_enforce
(From OE-Core rev: 00e5fc4f918ed2e13e79500439e06be7d0cfbaf9)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d621feee60e71bea68c853626e74669b9d953346)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
4357ae26d4cd Linux 5.10.47
1573d595e239 integrity: Load mokx variables into the blacklist keyring
c6ae6f89fc4f certs: Add ability to preload revocation certs
72d6f5d982f0 certs: Move load_system_certificate_list to a common function
45109066f686 certs: Add EFI_CERT_X509_GUID support for dbx entries
0ba128fa68a4 Revert "drm: add a locked version of drm_is_current_master"
0463b49e0239 netfs: fix test for whether we can skip read when writing beyond EOF
e6108147dd91 swiotlb: manipulate orig_addr when tlb_addr has offset
7570a8b5dd49 KVM: SVM: Call SEV Guest Decommission if ASID binding fails
377a796e7a71 mm, futex: fix shared futex pgoff on shmem huge page
ab9d178167ea mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk()
915c3a262c49 mm/thp: fix page_vma_mapped_walk() if THP mapped by ptes
90073aecc3cc mm: page_vma_mapped_walk(): get vma_address_end() earlier
bf60fc2314b9 mm: page_vma_mapped_walk(): use goto instead of while (1)
9f85dcaf1533 mm: page_vma_mapped_walk(): add a level of indentation
e56bdb397663 mm: page_vma_mapped_walk(): crossing page table boundary
8dc191ed9c5f mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION block
7b55a4bcfccf mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd
1cb0b9059f9e mm: page_vma_mapped_walk(): settle PageHuge on entry
65febb41b4d6 mm: page_vma_mapped_walk(): use page for pvmw->page
825c28052b4d mm: thp: replace DEBUG_VM BUG with VM_WARN when unmap fails for split
0010275ca243 mm/thp: unmap_mapping_page() to fix THP truncate_cleanup_page()
38cda6b5ab83 mm/thp: fix page_address_in_vma() on file THP tails
37ffe9f4d7ff mm/thp: fix vma_address() if virtual address below file offset
66be14a92609 mm/thp: try_to_unmap() use TTU_SYNC for safe splitting
6527d8ef68c3 mm/thp: make is_huge_zero_pmd() safe and quicker
a8f4ea1d38ac mm/thp: fix __split_huge_pmd_locked() on shmem migration entry
32f954e961ca mm, thp: use head page in __migration_entry_wait()
bfd90b56d7f6 mm/rmap: use page_not_mapped in try_to_unmap()
ff81af8259bb mm/rmap: remove unneeded semicolon in page_not_mapped()
a0ad7ea018e7 mm: add VM_WARN_ON_ONCE_PAGE() macro
130a1d76ee0b x86/fpu: Make init_fpstate correct with optimized XSAVE
51d8011782ed x86/fpu: Preserve supervisor states in sanitize_restored_user_xstate()
2b35a4eaaaae kthread: prevent deadlock when kthread_mod_delayed_work() races with kthread_cancel_delayed_work_sync()
bfe28af78a20 kthread_worker: split code for canceling the delayed work timer
02c303f3b9fb ceph: must hold snap_rwsem when filling inode for async create
de0af2651daa i2c: robotfuzz-osif: fix control-request directions
dd8ed6c9bc22 KVM: do not allow mapping valid but non-reference-counted pages
5fd0c2cf7b11 s390/stack: fix possible register corruption with stack switch helper
ab5bef978038 nilfs2: fix memory leak in nilfs_sysfs_delete_device_group
ace31c91fd59 scsi: sd: Call sd_revalidate_disk() for ioctl(BLKRRPART)
b9e6c20d4c9d gpiolib: cdev: zero padding during conversion to gpioline_info_changed
0221a5a4db46 i2c: i801: Ensure that SMBHSTSTS_INUSE_STS is cleared when leaving i801_access
018d03fcf77a pinctrl: stm32: fix the reported number of GPIO lines per bank
df654cd3d300 perf/x86: Track pmu in per-CPU cpu_hw_events
f9e73b2967f6 net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY
1c9cf96f5652 net: ll_temac: Add memory-barriers for TX BD access
bafb6cdd4f70 PCI: Add AMD RS690 quirk to enable 64-bit DMA
d91c50e6a678 recordmcount: Correct st_shndx handling
fb71d81ccd69 mac80211: handle various extensible elements correctly
676a7cb1a96b mac80211: reset profile_periodicity/ema_ap
ca0e1fefbb53 net: qed: Fix memcpy() overflow of qed_dcbx_params()
4658a8d30791 KVM: selftests: Fix kvm_check_cap() assertion
e83e3c5d85a7 r8169: Avoid memcpy() over-reading of ETH_SS_STATS
992b105abf57 sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS
a10856ea6066 r8152: Avoid memcpy() over-reading of ETH_SS_STATS
196b22ef6cd1 net/packet: annotate accesses to po->ifindex
da8b3aeff4ad net/packet: annotate accesses to po->bind
18ed1789bbce net: caif: fix memory leak in ldisc_open
edcd7594ada9 riscv32: Use medany C model for modules
47c07f919fab net: phy: dp83867: perform soft reset and retain established link
f57132a887ea net/packet: annotate data race in packet_sendmsg()
9707960ecfdc inet: annotate date races around sk->sk_txhash
7293f63b7b62 net: annotate data race in sock_error()
61b132f67c0d ping: Check return value of function 'ping_queue_rcv_skb'
08c389de6d53 inet: annotate data race in inet_send_prepare() and inet_dgram_connect()
c2311fd6de78 net: ethtool: clear heap allocations for ethtool function
c2813d1966ba mac80211: drop multicast fragments
fedc4d4f548c net: ipv4: Remove unneed BUG() function
93c2aac13b08 dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma
0f48f9277182 dmaengine: mediatek: do not issue a new desc if one is still current
63fa5b2d4b55 dmaengine: mediatek: free the proper desc in desc_free handler
78fa0f707d73 dmaengine: rcar-dmac: Fix PM reference leak in rcar_dmac_probe()
6a07cf36064a cfg80211: call cfg80211_leave_ocb when switching away from OCB
a9028333001f mac80211_hwsim: drop pending frames on stop
8cfe765afd5a mac80211: remove warning in ieee80211_get_sband()
b671b9816982 dmaengine: xilinx: dpdma: Limit descriptor IDs to 16 bits
524f70b30ef8 dmaengine: xilinx: dpdma: Add missing dependencies to Kconfig
13b245a7bd59 dmaengine: stm32-mdma: fix PM reference leak in stm32_mdma_alloc_chan_resourc()
86f3e72dcb72 dmaengine: zynqmp_dma: Fix PM reference leak in zynqmp_dma_alloc_chan_resourc()
4df9ed0edb9f perf/x86/intel/lbr: Zero the xstate buffer on allocation
56bc20e5fc64 perf/x86/lbr: Remove cpuc->lbr_xsave allocation from atomic context
ca2acbd5483f locking/lockdep: Improve noinstr vs errors
59aa5c91f863 x86/xen: Fix noinstr fail in exc_xen_unknown_trap()
cb83c99cf675 x86/entry: Fix noinstr fail in __do_fast_syscall_32()
cf5935487594 drm/vc4: hdmi: Make sure the controller is powered in detect
f73aca83fd83 drm/vc4: hdmi: Move the HSM clock enable to runtime_pm
f11f9ff8a7c9 Revert "PCI: PM: Do not read power state in pci_enable_device_flags()"
4b06ebab4a82 spi: spi-nxp-fspi: move the register operation after the clock enable
50a1312a29d1 arm64: Force NO_BLOCK_MAPPINGS if crashkernel reservation is required
bd5d4df4dcc1 arm64: Ignore any DMA offsets in the max_zone_phys() calculation
3bbdf5a6fcd2 MIPS: generic: Update node names to avoid unit addresses
03096a46019e mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk
b8fd230ae085 ARM: 9081/1: fix gcc-10 thumb2-kernel regression
3d6c4f78ec61 drm/amdgpu: wait for moving fence after pinning
694bb36aa75d drm/radeon: wait for moving fence after pinning
bcfea2412f4b drm/nouveau: wait for moving fence after pinning v2
3ef0ca0ec995 drm: add a locked version of drm_is_current_master
fea853aca321 Revert "drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell."
1bd81429d53d Revert "drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue."
3051f230f19f module: limit enabling module.sig_enforce
(From OE-Core rev: 100fd5274c7df7c50495a7da40a4ff6427821d39)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a2616c36cf3398ac81db0a479c45686769903159)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Key generation may wait for user input, due to the existence of
temporary keys resulting from power interruption in the first boot.
This prevents users from login via ssh.
(From OE-Core rev: dceba60f817c61d36868a2def642fc4164ff53ab)
Signed-off-by: Asfak Rahman <asfakr@outlook.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3196249a6917a32491be56e70bbf26d3b9818e0e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If we tweak sstate to not remove empty directories under conditions
where a race could occur, we see failures from:
"oe-selftest -r archiver.Archiver.test_archiver_filters_by_type archiver.Archiver.test_archiver_filters_by_type_and_name"
since an empty directory is left behind. Update the tests to ignore
empty directories.
(From OE-Core rev: 373f7c92bab1c08fb895c55553f28539d0b45025)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 10cda713faea9a348fd278137ac75e4a6d76a71c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Commit a2db4fa127 added ${WORKDIR}/deploy-* to
PSEUDO_IGNORE_PATHS. This breaks the --strip mode since ${D} is copied to
deploy-target-stripped. Use the directory devtool-deploy-target-stripped
instead.
[YOCTO #14451]
(From OE-Core rev: 421a199ad31f7cd7fb50e3abf9cdd41fed5532dd)
Signed-off-by: Florian Amstutz <florian.amstutz@scs.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 02661f20faf11d0fa2f1874bd423f5d9fa7a31c9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The sstate code tries to be careful about racing around directory creation.
In particular, the copyhardlinktree code creates the directory tree first
allowing for "already exists" errors and ignoring them, then hardlinks the
files in.
Unfortunately the sstate removal code can race against this since it
will try and remove empty directories. If there is some bad timing,
a newly created directory can be removed before it was populated, leading
to build failures.
We could try and add locking but this would damage performance, we've been
there before. It is also unclear where to actually place locks just based on
the contents of a manifest file which may cover multiple sstate install
locations for a given task.
Instead, lets disable directory removal in the problematic "shared" core
path. This could result in a few more empty directories being left on disk
but those should be harmless and better than locking hurting performance
or rare build races.
[YOCTO #13999]
[YOCTO #14379]
(From OE-Core rev: 3bea0da687d28c80f0b63e2ad81573a3601bb482)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4f94d9296394bc7ce241439f00df86eb5912875f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Load on the autobuilder meant we see occasionaly timeout issues with these tests.
Slightly increase the test timeouts to better reflect the real world timings we
see.
[YOCTO #14262]
(From OE-Core rev: a6a83f9a25a2b4659640b35cb0bd9e3fcc6435ee)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fccd2ade0e345625ed9a4b74a7431b000ce2214f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
No error was being reported when the hash string was set to empty.
For example: SRC_URI[md5sum] = ""
On a related note (not a bug):
Because whitespace in the string will result in a checksum mismatch, the error
message was updated to make it a little clearer why the error was thrown.
For example: SRC_URI[md5sum] = " " or
SRC_URI[md5sum] = " 209f8326f5137d8817a6276d9577a2f1"
Now creates a message like this:
File: '/home/scott/yocto-cache/downloads/rsync-3.2.3.tar.gz' has md5
checksum '209f8326f5137d8817a6276d9577a2f1' when ' 209f8326f5137d8817a6276d9577a2f1' was expected
[YOCTO #14232]
(Bitbake rev: 731fb52eb03338c0bdb2a2256c22c64c22bcbace)
Signed-off-by: Scott Weaver <weaverjs@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a13510d0028e234ea2f4744b0d0c38558395c70f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Updating linux-yocto/5.10 to the latest korg -stable release, and to
match the qemu BSPs in oe-core
(From meta-yocto rev: c4d4fd958ace34f050d2830895470dacc2435b1f)
(From meta-yocto rev: 24a6882c5490a63950125a5b170ebb6e52d965e4)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dfed30ed73)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
To support building against v5.12+ and v5.13+ kernels, bumping to the
v2.12.6 lttng-release.
We drop the previously backported patches, and bring in the following
commits:
0d8e4ab9 Version 2.12.6
78f56ae3 fix: adjust ranges for RHEL 8.2 and 8.3
4c996ea7 Disable block rwbs bitwise enum in default build
4ac46085 Disable sched_switch bitwise enum in default build
5e22c27b Add experimental bitwise enum config option
937d307e Add defaults to Kconfig options
4a114d43 Sync `show_inode_state()` macro with upstream stable kernels
3bd6ac3e fix: block: remove disk_part_iter (v5.12)
8bbb8c9d Fix: Backport of "Fix: increment buffer offset when failing to copy from user-space"
30cddf69 Fix: increment buffer offset when failing to copy from user-space
4733b9ab Sync `show_inode_state()` macro with Ubuntu 4.15 kernel
ff21ec48 fix: mm, tracing: kfree event name mismatching with provider kmem (v5.12)
b2b02c29 Set 'stable-2.12' branch in git review config
00b42dbf fix backport: block: add a disk_uevent helper (v5.12)
771ff089 fix: Adjust ranges for Ubuntu 5.4.0-67 kernel
d8933959 fix: block: add a disk_uevent helper (v5.12)
71034df1 Fix: properly compare type enumeration
4d879d23 compiler warning cleanup: is_signed_type: compare -1 to 1
fead3a9c Fix: bytecode linker: validate event and field array/sequence encoding
92cc3e7f Fix: kretprobe: null ptr deref on session destroy
49c603ef fix: mm, tracing: record slab name for kmem_cache_free() (v5.12)
23a2f61f Fix: filter interpreter early-exits on uninitialized value
b3fdf78b Fix: memory leaks on event destroy
(From OE-Core rev: 4c2c3d3b84d883b2f1ad94095187e6b5b39e663f)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c2f027b8e2f842915a0ffdfd6c2c0597f3b02bce)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
v5.13 has started storting the values for NM and OBJTOOL in
auto.conf.cmd
Just as we've done for other tools, we need to adjust NM and
OBJTOOL to the names of the on-target executables. With this
adjustment, 'make scripts prepare' continues to work without
user intervention on the target.
(From OE-Core rev: fddcfd6ba512cfdec0188c20a28be322b1499667)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e749b81ece1f94f99ca26028a2f6f891aa14bda9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bumping the SRCREV to pickup the following for the kern-tools:
commit 6dd85ff178cd76851e2184b13e545f5a88d1be30 [kconfig: change
"modules" from sub-option to first-level attribute] broke parsing
in 5.13+ trees.
We add the new location to the parser so we can support both
types of module specifications.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Without this, the kernel configuration audit for 5.13+ errors
immediately.
The older "option modules" parsing has been left in the code, so that
older kernels continue to work as well.
(From OE-Core rev: 6f15c14c3c6841589bf7fbe6ea94bf7bf9dd33a3)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ba39e42681e7e3c6fe82686a42a9ee4b519003f9)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The rewrite of the configuration audit code dropped the ability to
generate warnings for configuration options that didn't make it into
the final .config.
We integrated the following commit to restore those warnings:
symbol_why: classify based on config.queue hints
The config.queue has typing hints inline with each fragment,
we should be using them to further classify the options, and
not only relying on the special hardware.cfg, etc, files that
are part of the meta data
We also should be checking for options that were set to a
non 'no' value, and that don't make it into the final .config,
since without that check it means we are missing some warnings.
(From OE-Core rev: a8edc2ddfcc1288101508eeedd9c2500e3fed296)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f5e8a8c52386317607e333e55f710bf0393186c8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
When packaging is disabled using the nopackages class, ensure we don't
add to PACKAGES. This fixes builds where we have an unpackaged kernel
alongside a packaged kernel.
(From OE-Core rev: 13a1e550b0252d6f3a1164d39614f8ac847e1095)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d6b114cf5a9b22688c0b59a3afc46a07450d87b5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If a read-only sstate mirror is used in conjunction with hash equiv,
then OSError will be raised when an sstate-cache hit is achieved.
This is because sstate_task_postfunc will try to "touch" the symlinks
that point to the read-only sstate mirror when sstate_report_unihash
has changed SSTATE_PKG.
This commit adds an additional exception handler to silently mask read
only rootfs errors thrown during the touch.
The fix is also duplicated to sstate_eventhandler as the code is very
similar but it may not be needed there.
Example of the error:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_task_postfunc(d)
0003:
File: '/poky/meta/classes/sstate.bbclass', lineno: 774, function: sstate_task_postfunc
0770:
0771: omask = os.umask(0o002)
0772: if omask != 0o002:
0773: bb.note("Using umask 0o002 (not %0o) for sstate packaging" % omask)
*** 0774: sstate_package(shared_state, d)
0775: os.umask(omask)
0776:
0777: sstateinst = d.getVar("SSTATE_INSTDIR")
0778: d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
File: '/poky/meta/classes/sstate.bbclass', lineno: 703, function: sstate_package
0699: if not os.path.exists(siginfo):
0700: bb.siggen.dump_this_task(siginfo, d)
0701: else:
0702: try:
*** 0703: os.utime(siginfo, None)
0704: except PermissionError:
0705: pass
0706:
0707: return
Exception: OSError: [Errno 30] Read-only file system
(From OE-Core rev: 1d86f3c8f5d47e1b3e3ca759076e24710ee7dc02)
Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 244b3be0358a66e0cca4016fe26144e3d7323390)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>