From: Patrick Talbert <ptalbert(a)redhat.com>
redhat/configs: enable CONFIG_SAMPLE_VFIO_MDEV_MTTY
Red Hat QE would like the mtty module to be built and present in the
kernel-modules-internal package.
Signed-off-by: Patrick Talbert <ptalbert(a)redhat.com>
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES
@@ -0,0 +1 @@
+CONFIG_SAMPLES=y
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_ANDROID_BINDERFS is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_AUXDISPLAY is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_CONFIGFS is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_CONNECTOR is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FANOTIFY_ERROR is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FPROBE is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FTRACE_DIRECT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FTRACE_DIRECT_MULTI is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_HIDRAW is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_HW_BREAKPOINT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_INTEL_MEI is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KDB is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KFIFO is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KOBJECT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KPROBES is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_LANDLOCK is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_LIVEPATCH is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_PIDFD is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_SECCOMP is not set
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1746
From: Jerry Snitselaar <jsnitsel(a)redhat.com>
configs: remove redundant Fedora config for INTEL_IDXD_COMPAT
This is already in common/
Signed-off-by: Jerry Snitselaar <jsnitsel(a)redhat.com>
diff --git a/redhat/configs/fedora/generic/x86/CONFIG_INTEL_IDXD_COMPAT b/redhat/configs/fedora/generic/x86/CONFIG_INTEL_IDXD_COMPAT
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/x86/CONFIG_INTEL_IDXD_COMPAT
+++ /dev/null
@@ -1 +0,0 @@
-# CONFIG_INTEL_IDXD_COMPAT is not set
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1749
From: Justin M. Forbes <jforbes(a)fedoraproject.org>
Build intel_sdsi with %{tools_make}
Building with %{make} leaves off some CFLAGS and LDFLAGS which make this
build fail. Building with %{tools_make} fixes this.
Signed-off-by: Justin M. Forbes <jforbes(a)fedoraproject.org>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2249,7 +2249,7 @@ chmod +x tools/power/cpupower/utils/version-gen.sh
%{make} CFLAGS+="-D_GNU_SOURCE -Iinclude -I/usr/include/libnl3"
popd
pushd tools/arch/x86/intel_sdsi
- %{make}
+ %{tools_make}
popd
%endif
%endif
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1747
From: Patrick Talbert <ptalbert(a)redhat.com>
redhat/configs: enable CONFIG_SAMPLE_VFIO_MDEV_MTTY
Red Hat QE would like the mtty module to be build and present in the
kernel-modules-internal package.
Signed-off-by: Patrick Talbert <ptalbert(a)redhat.com>
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLES
@@ -0,0 +1 @@
+CONFIG_SAMPLES=y
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_ANDROID_BINDERFS
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_ANDROID_BINDERFS is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_AUXDISPLAY
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_AUXDISPLAY is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONFIGFS
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_CONFIGFS is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_CONNECTOR
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_CONNECTOR is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FANOTIFY_ERROR
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FANOTIFY_ERROR is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FPROBE
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FPROBE is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FTRACE_DIRECT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_FTRACE_DIRECT_MULTI
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_FTRACE_DIRECT_MULTI is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HIDRAW
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_HIDRAW is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_HW_BREAKPOINT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_HW_BREAKPOINT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_INTEL_MEI
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_INTEL_MEI is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KDB
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KDB is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KFIFO
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KFIFO is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KOBJECT
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KOBJECT is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_KPROBES
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_KPROBES is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LANDLOCK
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_LANDLOCK is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_LIVEPATCH
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_LIVEPATCH is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_PIDFD
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_PIDFD is not set
diff --git a/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/s390x/CONFIG_SAMPLE_SECCOMP
@@ -0,0 +1 @@
+# CONFIG_SAMPLE_SECCOMP is not set
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1746
From: Prarit Bhargava <prarit(a)redhat.com>
redhat/configs: Set CONFIG_X86_AMD_PSTATE built-in on Fedora
In order to use the amd-pstate driver on AMD systems, users must first
unload the acpi-cpufreq driver and then load the amd-pstate driver.
Another option is to denylist the acpi-cpufreq driver but this also
requires user modifications to the system.
In ARK we have decided to build the amd-pstate driver into the kernel so
that it loads before the acpi-cpufreq driver. Do the same for Fedora.
Set CONFIG_X86_AMD_PSTATE to 'y' on Fedora.
Suggested-by: Joel Wirāmu Pauling <jwp(a)redhat.com>
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/configs/fedora/generic/x86/CONFIG_X86_AMD_PSTATE b/redhat/configs/fedora/generic/x86/CONFIG_X86_AMD_PSTATE
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/x86/CONFIG_X86_AMD_PSTATE
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_X86_AMD_PSTATE=m
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1710
From: pjgeorg on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1610
Removes all
{mark_driver,mark_hardware,pci_hw}_{disabled,deprecated,unmaintained} and
mark_tech_preview markers.
These are used in downstream RHEL to notify the user about support state.
However this only applies to that specific release and may or may not affect
future releases. Hence remove all these markers in ARK.
Note: This MR does not revert 7e761c32ef94a, 5cc4742a2435c, fa7b1655d4cfc,
df94c0106ec38, 1217d330b082f, e0be2cf6271ee, 71fc877b2e067, 117432b276e68,
96d74f2b9f3f7, d755f2826bf24 which drop PCI IDs not supported in RHEL 8/9.
Following the argument above all of these should be reverted as well.
---
arch/x86/kernel/setup.c | 2 --
drivers/net/ethernet/intel/e1000/e1000_main.c | 2 --
drivers/net/team/team.c | 2 --
drivers/net/wireguard/main.c | 1 -
drivers/virtio/virtio_mem.c | 13 -------------
fs/ext4/super.c | 5 -----
fs/xfs/xfs_super.c | 5 -----
include/linux/kernel.h | 2 +-
mm/cma.c | 10 ----------
9 files changed, 1 insertions(+), 41 deletions(-)
So, I responded and forgot to forward to the list.
Fixing.
Begin forwarded message:
Date: Sun, 10 Apr 2022 18:59:24 -0700
From: stan <upaitag(a)zoho.com>
To: Sérgio Basto <sergio(a)serjux.com>
Subject: Re:
kernel-5.18.0-0.rc1.20220408git1831fed559732b1.20.fc37.src.rpm fails to
build locally
On Sun, 10 Apr 2022 23:06:24 +0100
Sérgio Basto <sergio(a)serjux.com> wrote:
> On Sun, 2022-04-10 at 13:35 -0700, stan via kernel wrote:
> > /usr/bin/ld: /tmp/cc6wxoxI.o: relocation R_X86_64_32 against
> > `.rodata.str1.1' can not be used when making a PIE object; recompile
> > with -fPIE
>
> Relocation R_X86_64_PC32 against undefined symbol , usually happens
> when LDFLAGS are set with hardening and CFLAGS not . An usually
> happens when configure.ac override all system flags with
> CFLAGS="something" you need change it to CFLAGS+="something"
> https://stackoverflow.com/a/69005262/778517
Thanks. I would never have figured that out. Or, at least it would
have taken a long time.
> maybe is an effect of
> https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck have
> you tried %undefine _auto_set_build_flags ?
>
I'm using the default in the kernel spec, as far as I know. Which
should be the rh flags with all hardening.
+ CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1
-Wl,-dT,/home/stan/rpmbuild/BUILD/kernel-5.18-rc1-184-g1831fed559732b1/.package_note-kernel-5.18.0-0.rc1.20220408git1831fed559732b1.20.20220410.fc37.x86_64.ld'
This is a typical compilation stanza from the build:
gcc -Wp,-MMD,arch/x86/realmode/.init.o.d -nostdinc -I./arch/x86/include
-I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi
-I./arch/x86/include/generated/uapi -I./include/uapi
-I./include/generated/uapi -include ./include/linux/compiler-version.h
-include ./include/linux/kconfig.h -include
./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./=
-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE <-----------
-Werror=implicit-function-declaration -Werror=implicit-int
-Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx
-mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1
-falign-loops=1 -mno-80387 -mno-fp-ret-in-387
-mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic
-mno-red-zone -mcmodel=kernel -Wno-sign-compare
-fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks
-Wno-frame-address -Wno-format-truncation -Wno-format-overflow
-Wno-address-of-packed-member -O2 -fno-allow-store-data-races
-Wframe-larger-than=2048 -fstack-protector-strong
-Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable
-Wno-unused-const-variable -fomit-frame-pointer
-ftrivial-auto-var-init=zero -fno-stack-clash-protection
-fzero-call-used-regs=used-gpr -fno-inline-functions-called-once
-Wdeclaration-after-statement -Wvla -Wno-pointer-sign
-Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow
-Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than
-fno-strict-overflow -fno-stack-check -fconserve-stack
-Werror=date-time -Werror=incompatible-pointer-types
-Werror=designated-init -Wno-packed-not-aligned
-fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so
-fplugin=./scripts/gcc-plugins/stackleak_plugin.so -DRANDSTRUCT_PLUGIN
-DSTACKLEAK_PLUGIN -fplugin-arg-stackleak_plugin-track-min-size=100
-fplugin-arg-stackleak_plugin-arch=x86
-DKBUILD_MODFILE='"arch/x86/realmode/init"' -DKBUILD_BASENAME='"init"'
-DKBUILD_MODNAME='"init"' -D__KBUILD_MODNAME=kmod_init -c -o
arch/x86/realmode/init.o arch/x86/realmode/init.c
Could the -fno-PIE be the culprit?