Skip to content

kernel-yocto: consolidated pull request

Bruce Ashfield openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 of 9 patches 9 repliesIn review

8 of 9 patches are in this archive. The cover letter announces 9.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/9linux-libc-headers: update to 4.15.7meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.7.bb+34 -20 replies
3/9linux-yocto/4.15: update to v4.15.7meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb meta/recipes-kernel/linux/linux-yocto_4.15.bb+16 -160 replies
4/9linux-yocto/4.14: update to v4.14.24meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb meta/recipes-kernel/linux/linux-yocto_4.14.bb+16 -160 replies
5/9linux-yocto/4.12: fix aufs compile warningmeta/recipes-kernel/linux/linux-yocto-rt_4.12.bb meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb meta/recipes-kernel/linux/linux-yocto_4.12.bb+13 -130 replies
6/9linux-yocto/4.12: memleak and build warning fixesmeta/recipes-kernel/linux/linux-yocto-rt_4.12.bb meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb meta/recipes-kernel/linux/linux-yocto_4.12.bb+13 -130 replies
7/9linux-yocto: aufs and systemtapmeta/recipes-kernel/linux/linux-yocto-rt_4.12.bb meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb +6 more+19 -198 replies
8/9linux-yocto/4.12: warning: drm/i915/cfl: Coffee Lake works on Kaby Lake PCHmeta/recipes-kernel/linux/linux-yocto-rt_4.12.bb meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb meta/recipes-kernel/linux/linux-yocto_4.12.bb+13 -130 replies
9/9kernel: make copying of crtsavres.o conditionalmeta/classes/kernel.bbclass+4 -20 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchDhinakaran Pandiyan
2/9
3/9
4/9
5/9
6/9
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] kernel-yocto: consolidated pull request

Hi all,

This is the latest consolidated kernel pull request. It contains -stable updates, the kernel-devsrc re-work, and a libc-headers version bump.

The -stable updates are routine, and are required to pick up the latest CVE and bug fixes from korg.

The kernel-devsrc re-structure has already gone through two revisions, and this v3 of that patch addresses mips + powerpc + ARM issues that were found during the on target kernel module compilation testing.

There's one minor fix for kernel class handling of crtsaveres.o, and that same fix was required for kernel-devsrc.

And finally, there is also have a libc-headers version bump to deal with a regression introduced in the 4.15 kernel uapi headers. This was picked up due to the breakage of several packages, and has since been nominated for -stable inclusion. Patching libc-headers is a last resort, so instead I've tracked the -stable version to pick up the change. All the details are in the patches commit log:

--->--->--->--->--->--->--->
Subject: [PATCH 2/9] linux-libc-headers: update to 4.15.7

While we don't normally follow all the -stable updates for libc-headers, there was one userspace header that was broken in the 4.15 cycle, and it has now been fixed in -stable.

The offending header breaks the build for several packages, so we update to pick up this change:

Author: Hauke Mehrtens <[email protected]>
Date: Mon Feb 12 23:59:51 2018 +0100

uapi/if_ether.h: move __UAPI_DEF_ETHHDR libc define

commit da360299b6734135a5f66d7db458dcc7801c826a upstream.

This fixes a compile problem of some user space applications by not including linux/libc-compat.h in uapi/if_ether.h.

linux/libc-compat.h checks which "features" the header files, included from the libc, provide to make the Linux kernel uapi header files only
provide no conflicting structures and enums. If a user application mixes
kernel headers and libc headers it could happen that linux/libc-compat.h gets included too early where not all other libc headers are included yet. Then the linux/libc-compat.h would not prevent all the redefinitions and we run into compile problems.
This patch removes the include of linux/libc-compat.h from uapi/if_ether.h to fix the recently introduced case, but not all as this is more or less impossible.

It is no problem to do the check directly in the if_ether.h file and not in libc-compat.h as this does not need any fancy glibc header detection as glibc never provided struct ethhdr and should define __UAPI_DEF_ETHHDR by them self when they will provide this.

The following test program did not compile correctly any more:

#include <linux/if_ether.h>
#include <netinet/in.h>
#include <linux/in.h>

int main(void)
{
return 0;
}

Fixes 6926e041a892 ("uapi/if_ether.h: prevent redefinition of struct ethhdr")
Cc <[email protected]> # 4.15

We also add a new muslc patch to adjust the ethhdr change in the uapi. As is suggested in the kernel commit, we can protect musl directly in if_ether itself.

--->--->--->--->--->--->--->

Cheers,

Bruce

The following changes since commit e5f258cecef6c51a4d7ebeedbaa29d2126e566e3:

util-linux: add taskset to alternatives list (2018-03-06 06:43:11 -0800)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib zedd/kernel
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel

Bruce Ashfield (9):
kernel-devsrc: restructure for out of tree (and on target) module
builds
linux-libc-headers: update to 4.15.7
linux-yocto/4.15: update to v4.15.7
linux-yocto/4.14: update to v4.14.24
linux-yocto/4.12: fix aufs compile warning linux-yocto/4.12: memleak and build warning fixes
linux-yocto: aufs and systemtap
linux-yocto/4.12: warning: drm/i915/cfl: Coffee Lake works on Kaby
Lake PCH
kernel: make copying of crtsavres.o conditional

 meta/classes/kernel.bbclass                        |   6 +-
 ...move-muslc-ethhdr-protection-to-uapi-file.patch |  30 ++++
 ...eaders_4.15.bb => linux-libc-headers_4.15.7.bb} |   6 +-
 meta/recipes-kernel/linux/kernel-devsrc.bb         | 192 ++++++++++++++++-----
 meta/recipes-kernel/linux/linux-yocto-rt_4.12.bb   |   4 +-
 meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb   |   6 +-
 meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb   |   6 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb |   4 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb |   6 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb |   6 +-
 meta/recipes-kernel/linux/linux-yocto_4.12.bb      |  18 +-
 meta/recipes-kernel/linux/linux-yocto_4.14.bb      |  20 +--
 meta/recipes-kernel/linux/linux-yocto_4.15.bb      |  20 +--
 13 files changed, 235 insertions(+), 89 deletions(-)
 create mode 100644 meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch
 rename meta/recipes-kernel/linux-libc-headers/{linux-libc-headers_4.15.bb => linux-libc-headers_4.15.7.bb} (62%)
Signature · 1 line
2.5.0