Skip to contentSkip to conversation

scripts/selinux build error in 4.14 after glibc update

DISCUSSION Nathan Chancellor 4 participants 12 messages Apr 22, 2019 – Apr 30, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

$ make -j$(nproc) defconfig bzImage
HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  DESCEND  objtool
  HOSTCC   /home/nathan/cbl/linux-stable/tools/objtool/fixdep.o
  HOSTLD   /home/nathan/cbl/linux-stable/tools/objtool/fixdep-in.o
  LINK     /home/nathan/cbl/linux-stable/tools/objtool/fixdep
  CC       /home/nathan/cbl/linux-stable/tools/objtool/builtin-check.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/builtin-orc.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/check.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/orc_gen.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/orc_dump.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/elf.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/special.o
  GEN      /home/nathan/cbl/linux-stable/tools/objtool/arch/x86/lib/inat-tables.c
  CC       /home/nathan/cbl/linux-stable/tools/objtool/objtool.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/libstring.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/str_error_r.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/exec-cmd.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/pager.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/help.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/parse-options.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/run-command.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/sigchain.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/subcmd-config.o
  CC       /home/nathan/cbl/linux-stable/tools/objtool/arch/x86/decode.o
  LD       /home/nathan/cbl/linux-stable/tools/objtool/libsubcmd-in.o
  LD       /home/nathan/cbl/linux-stable/tools/objtool/arch/x86/objtool-in.o
  LD       /home/nathan/cbl/linux-stable/tools/objtool/objtool-in.o
  AR       /home/nathan/cbl/linux-stable/tools/objtool/libsubcmd.a
  LINK     /home/nathan/cbl/linux-stable/tools/objtool/objtool
  UPD     include/config/kernel.release
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTCC  arch/x86/tools/relocs_64.o
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/mk_elfconfig
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
 #error New address family defined, please update secclass_map.
  ^~~~~
make[4]: *** [scripts/Makefile.host:102: scripts/selinux/genheaders/genheaders] Error 1
make[3]: *** [scripts/Makefile.build:585: scripts/selinux/genheaders] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from scripts/selinux/mdp/mdp.c:49:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
 #error New address family defined, please update secclass_map.
  ^~~~~
make[4]: *** [scripts/Makefile.host:102: scripts/selinux/mdp/mdp] Error 1
make[3]: *** [scripts/Makefile.build:585: scripts/selinux/mdp] Error 2
make[2]: *** [scripts/Makefile.build:585: scripts/selinux] Error 2
make[2]: *** Waiting for unfinished jobs....
  HOSTLD  arch/x86/tools/relocs
  CHK     scripts/mod/devicetable-offsets.h
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  CHK     include/generated/timeconst.h
  CC      kernel/bounds.s
  UPD     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  HOSTLD  scripts/mod/modpost
make[1]: *** [Makefile:572: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make: *** [Makefile:264: __build_one_by_one] Error 2

This is due to commit c017c71ce09f ("selinux: include sys/socket.h in host programs to have PF_MAX") [1] in the kernel interacting poorly with glibc's commit 38b0593e9a ("Add PF_XDP, AF_XDP and SOL_XDP from Linux 4.18 to bits/socket.h.") [2]

I am not really sure how this should be fixed or who is at fault but I didn't see it reported anywhere yet (I assume the kernel) and I feel more comfortable on the kernel mailing list than other bug trackers so here we are.

[1]: https://git.kernel.org/linus/c017c71ce09f4c7a5378fccbec6a3d7e96b0c5c2
[2]: https://sourceware.org/git/?p=glibc.git;a=commit;h=38b0593e9a862c3b35392a0f5b202696b8116aa3

Thanks,
Nathan

maintainer
#1 lore raw
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

https://lore.kernel.org/selinux/[email protected]

Signature · 2 lines
paul moore
www.paul-moore.com
#2 lore raw
Quoted 14 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

Quoted 11 lines

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

https://lore.kernel.org/selinux/[email protected]

Signature · 2 lines
paul moore
www.paul-moore.com

Awesome, thank you! I will apply that for now and wait for it to get backported to stable after the next merge window.

I appreciate the quick response,
Nathan

maintainer
#3 lore raw
In reply to Paul Moore
Quoted 14 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

Quoted 7 lines

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

--
Thanks,
Sasha

maintainer
#4 lore raw
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Signature · 2 lines
paul moore
www.paul-moore.com
maintainer
#5 lore raw
Quoted 27 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

Quoted 9 lines

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

thanks,

greg k-h

maintainer
#6 lore raw
Quoted 38 lines · Greg KH
Quoted 27 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

Quoted 9 lines

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Quoted 2 lines

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

Signature · 2 lines
paul moore
www.paul-moore.com
maintainer
#7 lore raw
Quoted 39 lines · Paul Moore
Quoted 38 lines · Greg KH
Quoted 36 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Quoted 5 lines
Quoted 2 lines

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

It's a regression in the 5.1-rc tree, that is hitting people now. Why do you want to have a 5.1-final that is known to be broken?

thanks,

greg k-h

maintainer
#8 lore raw
Quoted 40 lines · Greg KH
Quoted 39 lines · Paul Moore
Quoted 38 lines · Greg KH
Quoted 36 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

It's a regression in the 5.1-rc tree, that is hitting people now. Why do you want to have a 5.1-final that is known to be broken?

I believe I answered that in my reply to Sasha. Can you answer the question I asked of you above?

Signature · 2 lines
paul moore
www.paul-moore.com
maintainer
#9 lore raw
Quoted 44 lines · Paul Moore
Quoted 43 lines · Greg KH
Quoted 42 lines · Paul Moore
Quoted 40 lines · Greg KH
Quoted 27 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

Quoted 9 lines

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

It's a regression in the 5.1-rc tree, that is hitting people now. Why do you want to have a 5.1-final that is known to be broken?

I believe I answered that in my reply to Sasha. Can you answer the question I asked of you above?

If you don't submit it this week, I guess I can wait as I have no other choice.

But note, this did break my build systems, and my main development system this weekend. So yes, the number of people being affected might be "small", but that "small" number includes the people responsible for maintaining those stable kernels :(

Anyway, it's your call, just letting you know I'm really annoyed at the moment by this...

greg k-h

maintainer
#10 lore raw
Quoted 57 lines · Greg KH
Quoted 44 lines · Paul Moore
Quoted 43 lines · Greg KH
Quoted 42 lines · Paul Moore
Quoted 40 lines · Greg KH
Quoted 27 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

Quoted 9 lines

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

It's a regression in the 5.1-rc tree, that is hitting people now. Why do you want to have a 5.1-final that is known to be broken?

I believe I answered that in my reply to Sasha. Can you answer the question I asked of you above?

If you don't submit it this week, I guess I can wait as I have no other choice.

Quoted 7 lines

But note, this did break my build systems, and my main development system this weekend. So yes, the number of people being affected might be "small", but that "small" number includes the people responsible for maintaining those stable kernels :(

Anyway, it's your call, just letting you know I'm really annoyed at the moment by this...

It's against my better judgement, but I'll send a PR up to Linus now.

Signature · 2 lines
paul moore
www.paul-moore.com
maintainer
#11 lore raw
Quoted 63 lines · Paul Moore
Quoted 62 lines · Greg KH
Quoted 44 lines · Paul Moore
Quoted 43 lines · Greg KH
Quoted 42 lines · Paul Moore
Quoted 40 lines · Greg KH
Quoted 27 lines · Paul Moore
Quoted 21 lines · Sasha Levin
Quoted 20 lines · Paul Moore
Quoted 3 lines · Nathan Chancellor

Hi all,

After a glibc update to 2.29, my 4.14 builds started failing like so:

...

Quoted 5 lines

HOSTCC scripts/selinux/genheaders/genheaders
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^~~~~

This is a known problem that has a fix in the selinux/next branch and will be going up to Linus during the next merge window. The fix is quite small and should be relatively easy for you to backport to your kernel build if you are interested; the patch can be found at the archive link below:

Quoted 4 lines
Quoted 1 line

https://lore.kernel.org/selinux/[email protected]

Why is it waiting for the next merge window? It fixes a build bug that people hit.

Quoted 9 lines

I place a reasonably high bar on patches that I send up to Linus outside of the merge window and I didn't feel this patch met that criteria. Nathan is only the second person I've seen who has encountered this problem, the first being the original patch author. As far as I've seen, the problem is only seen by users building older kernels on very new userspaces (e.g. glibc v2.29 was released in February 2019, Linux v4.14 was released in 2017); this doesn't appear to be a large group of people and I didn't want to risk breaking the main kernel tree during the -rcX phase for such a small group.

Ugh, this breaks my local builds, I would recommend getting it to Linus sooner please.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Well, we are at -rc7 right now and it looks like an -rc8 is unlikely so the question really comes down to can/do you want to wait a week?

It's a regression in the 5.1-rc tree, that is hitting people now. Why do you want to have a 5.1-final that is known to be broken?

I believe I answered that in my reply to Sasha. Can you answer the question I asked of you above?

If you don't submit it this week, I guess I can wait as I have no other choice.

But note, this did break my build systems, and my main development system this weekend. So yes, the number of people being affected might be "small", but that "small" number includes the people responsible for maintaining those stable kernels :(

Quoted 4 lines
Quoted 2 lines

Anyway, it's your call, just letting you know I'm really annoyed at the moment by this...

It's against my better judgement, but I'll send a PR up to Linus now.

Thank you for doing so,

greg k-h