Package: linux-source-4.19
Version: 4.19.232-1
I updated my system today, and wanted to compile the kernel.
Unfortunately, compilation this time exited with an error.
I compile the kernel with my usual routine:
> tar -xvJf linux-source-4.19.tar.xz
> cd linux-source-4.19
> cp ../linux-patch-4.19-rt.patch.xz .
> unxz linux-patch-4.19-rt.patch.xz
> patch -p1 < linux-patch-4.19-rt.patch
> make oldconfig
> make -j4 targz-pkg
Output of uname -a:
> uname -a
Linux ravenclaw 4.19.208-rt88u0 #2 SMP Fri Dec 3 21:58:08 CET 2021
x86_64 GNU/Linux
libc 2.28-10
This recent kernel update included a security fix in the BPF subsystem,
and the error break there, so I think that the securityfix might have
broken something.
Compilation command line error output:
----------------------------------------------------
In file included from ./include/linux/export.h:45:0,
from ./include/linux/linkage.h:7,
from ./include/linux/kernel.h:7,
from ./include/linux/list.h:9,
from ./include/linux/timer.h:5,
from ./include/linux/netdevice.h:28,
from arch/x86/net/bpf_jit_comp.c:12:
./include/linux/netdevice.h: In function ‘netdev_queue_has_owner’:
./include/linux/compiler.h:327:20: error: lvalue required as unary ‘&’
operand
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/linux/compiler.h:333:22: note: in expansion of macro ‘__READ_ONCE’
#define READ_ONCE(x) __READ_ONCE(x, 1)
^~~~~~~~~~~
./include/linux/netdevice.h:3917:6: note: in expansion of macro ‘READ_ONCE’
if (READ_ONCE(txq->xmit_lock_owner != -1))
^~~~~~~~~
./include/linux/compiler.h:329:28: error: lvalue required as unary ‘&’
operand
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/linux/compiler.h:333:22: note: in expansion of macro ‘__READ_ONCE’
#define READ_ONCE(x) __READ_ONCE(x, 1)
^~~~~~~~~~~
./include/linux/netdevice.h:3917:6: note: in expansion of macro ‘READ_ONCE’
if (READ_ONCE(txq->xmit_lock_owner != -1))
^~~~~~~~~
CC arch/x86/kernel/cpu/intel_pconfig.o
make[4]: *** [scripts/Makefile.build:309: arch/x86/net/bpf_jit_comp.o]
Error 1
make[3]: *** [scripts/Makefile.build:549: arch/x86/net] Error 2
make[3]: *** Waiting for unfinished jobs....