Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Failing to boot custom configured kernel

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
141 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
Author
Message
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

FineIBT or module or something, no real clue

  • Quote

Post by alecStewart1 » Thu May 08, 2025 4:19 am

This is an extension of this thread, as it somehow...broke. I see there's page 6, but I can't navigate to it:

viewtopic-t-1173089.html

I've tried many things at this point, and in my latest reboot I get the following error

Code: Select all

SMP alternative: Using FineIBT CFI
Missing ENDBR: 0xfffffff8cbaf410
------------[ cut here ]----------------
kernel BUG at arch/x86/kernel/cet.c:132!
Oops: Invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tained: G                                  T 6.14.5 #6
Tainted: [T]=RANDSTRUCT
Hardware name: Micro-Star International Co, Ltd. MS-7032/MAG Z690 TOMAHAWK WIFI

// bunch of memory stuff

Modules linked in:
---[ end trace 000000000000000000 ]---

// more memory stuff

Kernel panic - not syncing: Fatal exception in interrupt
-- [ end Kernel panic - not syncing: Fatal exception in interrupt ]---
This was from the following boot entry:

Code: Select all

Boot0000* Debug (CachyOS Sources)       HD(1,GPT,d5d977e1-f515-574f-8949-caf8f2c41559,0x800,0x80000)/\EFI\BOOT\BOOTx64.EFI earlycon=efifb keep_bootcon ignore_loglevel efi=debug initrd=\EFI\BOOT\amd-uc.img initrd=\EFI\BOOT\intel-uc.img initrd=\EFI\BOOT\initramfs.cpio
And this kernel configuration:

https://dpaste.org/JRR68

I think there was some module issue, so I disable module signing and and Lockdown, but obviously, that didn't work.

At this point, I think I'll just give up and use gentoo-kernel-bin. My sound still doesn't work, but I think I'll just come to accept it'll never work 100% on linux. That or this MSI motherboard and GPU suck. Oh well.

There is an update to the BIOS firmware for my motherboard, so maybe that fixes something...except gentoo-kernel-bin still works fine minus the sound.
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Thu May 08, 2025 9:40 am

You have already been told in the other thread not to use special compile/linker options; I have also given you links on how to configure a kernel manually. But if you use/copy a kernel configuration that comes from another distribution, then the problems are pre-programmed; there is no such kernel option in gentoo-sources: CONFIG_CACHY=y (but I know where it comes from).
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu May 08, 2025 10:52 am

Merged above two posts here as this is an extension of the same discussion.

The forums have a bug where pages numbers are miscalculated. The last page shown by the page counter may be empty.
No posts are lost or missing, it just that there are none on the last page. It's considered a feature now. :)

alecStewart1,

Baby steps.
Stop trying random things with random compiler options. That way goes nowhere, except maybe premature baldness as you tear your own hair out.
Start with a known working kernel with known working compiler options.
Once you can make that work, try once change at a time. Keep copious notes as the order in which you apply changes matters a great deal too.

With the aid of your notes, you may be able to do a binary search to determine the cause of some breakage - but only after you have a known working start.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Fri May 09, 2025 3:24 am

pietinger wrote:You have already been told in the other thread not to use special compile/linker options; I have also given you links on how to configure a kernel manually. But if you use/copy a kernel configuration that comes from another distribution, then the problems are pre-programmed; there is no such kernel option in gentoo-sources: CONFIG_CACHY=y (but I know where it comes from).
NeddySeagoon wrote: Stop trying random things with random compiler options. That way goes nowhere, except maybe premature baldness as you tear your own hair out.
Unfortunately, I have not used any special CFLAGS, KCFLAGS, LDFLAGS or KLDFLAGS for quite some time.

EDIT: By quite some time, I mean the past several and recent tests I've been doing here, not in general.

I simple do

Code: Select all

make LLVM=1 -j12
I will try gentoo-sources instead. If compiling recent kernels with LLVM=1 is what causes thing to break, then I'd question how anything on my system works at all since I use Clang as my system's compiler for most packages.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri May 09, 2025 11:32 am

alecStewart1,

That should work with no random patches.
I'm sure that there is a LLVM config option in the kernel, which I would trust to do therightthing more.

Whatever, get to a working baseline and start from there.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Sat May 10, 2025 12:00 am

More notes:

gentoo-source-6.14.6 fails to build with GCC:

Code: Select all

scripts/Makefile.build:392: update target 'sound/modules.order' due to: target does not exist
set -e;    trap 'rm -f sound/modules.order; trap - HUP; kill -s HUP $$' HUP;  trap 'rm -f sound/modules.order; trap - INT; kill -s INT $$' INT;  trap 'rm -f sound/modules.order; trap - QUIT; kill -s QUIT $$' QUIT;  trap 'rm -f sound/modules.order; trap - TERM; kill -s TERM $$' TERM;  trap 'rm -f sound/modules.order; trap - PIPE; kill -s PIPE $$' PIPE; {   cat sound/core/modules.order;   cat sound/i2c/modules.order;   cat sound/drivers/modules.order;   cat sound/isa/modules.order;   cat sound/pci/modules.order;   cat sound/ppc/modules.order;   cat sound/arm/modules.order;   cat sound/sh/modules.order;   cat sound/synth/modules.order;   cat sound/usb/modules.order;   cat sound/firewire/modules.order;   cat sound/sparc/modules.order;   cat sound/spi/modules.order;   cat sound/parisc/modules.order;   cat sound/pcmcia/modules.order;   cat sound/mips/modules.order;   cat sound/soc/modules.order;   cat sound/atmel/modules.order;   cat sound/hda/modules.order;   cat sound/x86/modules.order;   cat sound/xen/modules.order;   cat sound/virtio/modules.order; :; } > sound/modules.order; printf '%s\n' 'savedcmd_sound/modules.order := {   cat sound/core/modules.order;   cat sound/i2c/modules.order;   cat sound/drivers/modules.order;   cat sound/isa/modules.order;   cat sound/pci/modules.order;   cat sound/ppc/modules.order;   cat sound/arm/modules.order;   cat sound/sh/modules.order;   cat sound/synth/modules.order;   cat sound/usb/modules.order;   cat sound/firewire/modules.order;   cat sound/sparc/modules.order;   cat sound/spi/modules.order;   cat sound/parisc/modules.order;   cat sound/pcmcia/modules.order;   cat sound/mips/modules.order;   cat sound/soc/modules.order;   cat sound/atmel/modules.order;   cat sound/hda/modules.order;   cat sound/x86/modules.order;   cat sound/xen/modules.order;   cat sound/virtio/modules.order; :; } > sound/modules.order' > sound/.modules.order.cmd
Putting child 0x55f4e67c3060 (sound/modules.order) PID 26041 on the chain.
 Recipe of 'sound/modules.order' is being run.
 Considering target file 'sound/arm'.
 File 'sound/arm' was considered already.
 Considering target file 'sound/atmel'.
 File 'sound/atmel' was considered already.
 Considering target file 'sound/core'.
 File 'sound/core' was considered already.
 Considering target file 'sound/drivers'.
 File 'sound/drivers' was considered already.
 Considering target file 'sound/firewire'.
 File 'sound/firewire' was considered already.
 Considering target file 'sound/hda'.
 File 'sound/hda' was considered already.
 Considering target file 'sound/i2c'.
 File 'sound/i2c' was considered already.
 Considering target file 'sound/isa'.
 File 'sound/isa' was considered already.
 Considering target file 'sound/mips'.
 File 'sound/mips' was considered already.
 Considering target file 'sound/parisc'.
 File 'sound/parisc' was considered already.
 Considering target file 'sound/pci'.
 File 'sound/pci' was considered already.
 Considering target file 'sound/pcmcia'.
 File 'sound/pcmcia' was considered already.
 Considering target file 'sound/ppc'.
 File 'sound/ppc' was considered already.
 Considering target file 'sound/sh'.
 File 'sound/sh' was considered already.
 Pruning file 'sound/soc'.
 Considering target file 'sound/sparc'.
 File 'sound/sparc' was considered already.
 Considering target file 'sound/spi'.
 File 'sound/spi' was considered already.
 Considering target file 'sound/synth'.
 File 'sound/synth' was considered already.
 Considering target file 'sound/usb'.
 File 'sound/usb' was considered already.
 Considering target file 'sound/virtio'.
 File 'sound/virtio' was considered already.
 Considering target file 'sound/x86'.
 File 'sound/x86' was considered already.
 Considering target file 'sound/xen'.
 File 'sound/xen' was considered already.
The prerequisites of 'sound/' are being made.
Live child 0x55f4e67c3060 (sound/modules.order) PID 26041
Reaping winning child 0x55f4e67c3060 PID 26041
Removing child 0x55f4e67c3060 PID 26041 from chain.
Considering target file 'sound/'.
 File 'sound/' does not exist.
 Considering target file 'sound/built-in.a'.
 File 'sound/built-in.a' was considered already.
 Considering target file 'sound/modules.order'.
 File 'sound/modules.order' was considered already.
 Considering target file 'sound/arm'.
 File 'sound/arm' was considered already.
 Considering target file 'sound/atmel'.
 File 'sound/atmel' was considered already.
 Considering target file 'sound/core'.
 File 'sound/core' was considered already.
 Considering target file 'sound/drivers'.
 File 'sound/drivers' was considered already.
 Considering target file 'sound/firewire'.
 File 'sound/firewire' was considered already.
 Considering target file 'sound/hda'.
 File 'sound/hda' was considered already.
 Considering target file 'sound/i2c'.
 File 'sound/i2c' was considered already.
 Considering target file 'sound/isa'.
 File 'sound/isa' was considered already.
 Considering target file 'sound/mips'.
 File 'sound/mips' was considered already.
 Considering target file 'sound/parisc'.
 File 'sound/parisc' was considered already.
 Considering target file 'sound/pci'.
 File 'sound/pci' was considered already.
 Considering target file 'sound/pcmcia'.
 File 'sound/pcmcia' was considered already.
 Considering target file 'sound/ppc'.
 File 'sound/ppc' was considered already.
 Considering target file 'sound/sh'.
 File 'sound/sh' was considered already.
 Considering target file 'sound/soc'.
 File 'sound/soc' was considered already.
 Considering target file 'sound/sparc'.
 File 'sound/sparc' was considered already.
 Considering target file 'sound/spi'.
 File 'sound/spi' was considered already.
 Considering target file 'sound/synth'.
 File 'sound/synth' was considered already.
 Considering target file 'sound/usb'.
 File 'sound/usb' was considered already.
 Considering target file 'sound/virtio'.
 File 'sound/virtio' was considered already.
 Considering target file 'sound/x86'.
 File 'sound/x86' was considered already.
 Considering target file 'sound/xen'.
 File 'sound/xen' was considered already.
Finished prerequisites of target file 'sound/'.
Must remake target 'sound/'.
Need a job token; we don't have children
scripts/Makefile.build:449: update target 'sound/' due to: target is .PHONY
:
Successfully remade target file 'sound/'.
Reaping winning child 0x55e7e801ba40 PID 27816
Removing child 0x55e7e801ba40 PID 27816 from chain.
Reaping losing child 0x55ccd9bb9740 PID 24194
make[1]: *** [/usr/src/linux-6.14.6-gentoo/Makefile:1997: .] Error 2
Removing child 0x55ccd9bb9740 PID 24194 from chain.
Reaping losing child 0x5653fd889c10 PID 23183
make: *** [Makefile:251: __sub-make] Error 2
Removing child 0x5653fd889c10 PID 23183 from chain.
Acquired all 11 jobserver tokens.
So I guess we'll keep trying LLVM/Clang.

...except that fails.

Code: Select all

set -e;    trap 'rm -f drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o; trap - HUP; kill -s HUP $$' HUP;  trap 'rm -f drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o; trap - INT; kill -s INT $$' INT;  trap 'rm -f drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o; trap - QUIT; kill -s QUIT $$' QUIT;  trap 'rm -f drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o; trap - TERM; kill -s TERM $$' TERM;  trap 'rm -f drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o; trap - PIPE; kill -s PIPE $$' PIPE; if llvm-nm drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o 2>/dev/null | grep -q ' __export_symbol_'; then clang -E -D__GENKSYMS__ -Wp,-MMD,drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/.display_mode_vba_31.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -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__ --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -Werror -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mstack-alignment=8 -mskip-rax-setup -march=alderlake -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mretpoline-external-thunk -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -mharden-sls=all -fpatchable-function-entry=27,27 -fno-delete-null-pointer-checks -O2 -fstack-protector-strong -fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -fsanitize=kcfi -fsanitize-cfi-icall-experimental-normalize-integers -falign-functions=32 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wvla -Wno-pointer-sign -Wcast-function-type -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wextra -Wunused -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-format-overflow -Wno-override-init -Wno-pointer-to-enum-cast -Wno-tautological-constant-out-of-range-compare -Wno-unaligned-access -Wno-enum-compare-conditional -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -Wextra -Wunused -Wno-unused-parameter -Wmissing-format-attribute -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wformat-overflow -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-sign-compare -Wno-override-init -I./drivers/gpu/drm/amd/amdgpu/../include/asic_reg -I./drivers/gpu/drm/amd/amdgpu/../include -I./drivers/gpu/drm/amd/amdgpu/../pm/inc/ -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/pmfw_if -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11 -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu12 -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13 -I./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu14 -I./drivers/gpu/drm/amd/amdgpu/../pm/powerplay/inc -I./drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr -I./drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr -I./drivers/gpu/drm/amd/amdgpu/../pm/legacy-dpm -I./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/ -I./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw -I./drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr -I./drivers/gpu/drm/amd/amdgpu/../display/dc/hwss -I./drivers/gpu/drm/amd/amdgpu/../display/dc/resource -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dsc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/optc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dpp -I./drivers/gpu/drm/amd/amdgpu/../display/dc/hubbub -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dccg -I./drivers/gpu/drm/amd/amdgpu/../display/dc/hubp -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dio -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dwb -I./drivers/gpu/drm/amd/amdgpu/../display/dc/hpo -I./drivers/gpu/drm/amd/amdgpu/../display/dc/mmhubbub -I./drivers/gpu/drm/amd/amdgpu/../display/dc/mpc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/opp -I./drivers/gpu/drm/amd/amdgpu/../display/dc/pg -I./drivers/gpu/drm/amd/amdgpu/../display/modules/inc -I./drivers/gpu/drm/amd/amdgpu/../display/modules/freesync -I./drivers/gpu/drm/amd/amdgpu/../display/modules/color -I./drivers/gpu/drm/amd/amdgpu/../display/modules/info_packet -I./drivers/gpu/drm/amd/amdgpu/../display/modules/power -I./drivers/gpu/drm/amd/amdgpu/../display/dmub/inc -I./drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp -DBUILD_FEATURE_TIMING_SYNC=0 -I./drivers/gpu/drm/amd/amdgpu/../display/dc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2 -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_mcg/ -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/ -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/ -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_standalone_libraries/ -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/inc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/inc -I./drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/ -I./drivers/gpu/drm/amd/amdgpu/../include/asic_reg -I./drivers/gpu/drm/amd/amdgpu/../include -I./drivers/gpu/drm/amd/amdgpu/../amdgpu -I./drivers/gpu/drm/amd/amdgpu/../pm/inc -I./drivers/gpu/drm/amd/amdgpu/../acp/include -I./drivers/gpu/drm/amd/amdgpu/../display -I./drivers/gpu/drm/amd/amdgpu/../display/include -I./drivers/gpu/drm/amd/amdgpu/../display/modules/inc -I./drivers/gpu/drm/amd/amdgpu/../display/dc -I./drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm -I./drivers/gpu/drm/amd/amdgpu/../amdkfd -msse -msse2 -D_LINUX_FPU_COMPILATION_UNIT -Wframe-larger-than=3072    -fsanitize=kernel-address -mllvm -asan-mapping-offset=0xdffffc0000000000  -mllvm -asan-instrumentation-with-call-threshold=10000  -mllvm -asan-stack=1  -mllvm -asan-globals=1  -mllvm -asan-kernel-mem-intrinsic-prefix=1  -fsanitize=array-bounds -fsanitize=local-bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -fsanitize-trap=undefined  -fsanitize=signed-integer-overflow  -DMODULE  -DKBUILD_BASENAME='"display_mode_vba_31"' -DKBUILD_MODNAME='"amdgpu"' -D__KBUILD_MODNAME=kmod_amdgpu drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c | ./scripts/genksyms/genksyms    >> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/.display_mode_vba_31.o.cmd; fi
Live child 0x55e6416c3930 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o) PID 24128
Live child 0x55e6416b5700 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o) PID 24179
Live child 0x55e6416977d0 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o) PID 23973
Reaping winning child 0x55e6416b5700 PID 24179
:
:
:
Removing child 0x55e6416b5700 PID 24179 from chain.
Released token for child 0x55e6416b5700 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.o).
Live child 0x55e6416c3930 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o) PID 24128
Live child 0x55e6416977d0 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o) PID 23973
Live child 0x55e6416c3930 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o) PID 24128
Live child 0x55e6416977d0 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o) PID 23973
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3528:6: error: stack frame size (3576) exceeds limit (3072) in 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than]
 3528 | void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib)
      |      ^
1 error generated.
Reaping losing child 0x55e6416977d0 PID 23973
make[6]: *** [scripts/Makefile.build:207: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o] Error 1
Removing child 0x55e6416977d0 PID 23973 from chain.
Released token for child 0x55e6416977d0 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.o).
Live child 0x55e6416c3930 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o) PID 24128
Live child 0x55e6416c3930 (drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o) PID 24128
1 error generated.
Reaping losing child 0x55e6416c3930 PID 24128
make[6]: *** [scripts/Makefile.build:207: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/calcs/dcn_calc_auto.o] Error 1
Removing child 0x55e6416c3930 PID 24128 from chain.
Reaping losing child 0x55c61e92cbf0 PID 16894
make[5]: *** [scripts/Makefile.build:465: drivers/gpu/drm/amd/amdgpu] Error 2
Removing child 0x55c61e92cbf0 PID 16894 from chain.
Reaping losing child 0x55f0dad16250 PID 9098
make[4]: *** [scripts/Makefile.build:465: drivers/gpu/drm] Error 2
Removing child 0x55f0dad16250 PID 9098 from chain.
Reaping losing child 0x55c5819abe60 PID 9090
make[3]: *** [scripts/Makefile.build:465: drivers/gpu] Error 2
Removing child 0x55c5819abe60 PID 9090 from chain.
Reaping losing child 0x563f45dde8d0 PID 21721
make[2]: *** [scripts/Makefile.build:465: drivers] Error 2
Removing child 0x563f45dde8d0 PID 21721 from chain.
Reaping losing child 0x561feaf02f10 PID 18091
make[1]: *** [/usr/src/linux-6.14.6-gentoo/Makefile:1997: .] Error 2
Removing child 0x561feaf02f10 PID 18091 from chain.
Reaping losing child 0x562d1bcf8ed0 PID 17123
make: *** [Makefile:251: __sub-make] Error 2
Removing child 0x562d1bcf8ed0 PID 17123 from chain.
Acquired all 11 jobserver token
So I'll wait on trying newer versions.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat May 10, 2025 12:36 am

What is the error when building with gcc? You enabled very verbose output from Make, but I do not see an actual error message in that block.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Sat May 10, 2025 3:40 am

Hu wrote:What is the error when building with gcc? You enabled very verbose output from Make, but I do not see an actual error message in that block.
I can check, but at least for Clang I had to enable LTO (thin or full). I looked up earlier something where LTO is needed for some optimization...but I don't remember what it is.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Sat May 10, 2025 4:52 am

Okay, I've disabled RANSTRUCT, module signing and compression to make sure I knock some things out of the way of finding my issue.

I keep getting some Kernel Oops, each time it's usually a module that I guess fails to load. This time it's intel_vsec.

Code: Select all

* Loading kernel modules: intel_vsec ehci_pci ohci_pci xhci_pci ahci ata_piix mei_me
insmod /lib/modules/6.14.6-gentoo/kernel/drivers/platform/x86/intel/intel-vsec.ko
[ xxxxxxxxx ] Oops: int3: 0000 [#1] PREEMPT SMP KASAN NOPTI

// oops and call trace

[ xxxxxxxx ] Modules linked in: intel_vsec(+)
I'm kind of confused as to what I should do about this. Booting into the gentoo-kernel-bin:

lsmod | rg 'intel_vsec'

Code: Select all

intel_vsec             16384  2 intel_pmc_core,xe
lspci -nnk | rg 'intel_vsec'

Code: Select all

        Kernel driver in use: intel_vsec
        Kernel modules: intel_vsec
The module is being loaded...but I don't know why it's causing issues in a manually built kernel.

Kernel config:

https://dpaste.org/FWqMq
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat May 10, 2025 8:42 am

alecStewart1,

WAG ... You hove manually edited or patched the kernel .config file, so it always produces a broken kernel, as the config is illegal.

Try to build the kernel with gcc and the .config file missing entirely.
That should build you a totally useless kernel with the default .config file for your arch.
The test here is does it build or not.

Do not install this kernel. It won't boot on any known hardware.

It's worth trying with LLVM=1 too. Again the idea is does it build, yes/no?
We already know that its not a useful kernel configuration.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat May 10, 2025 12:31 pm

alecStewart1,
maybe read the <Help> of CONFIG_SECURITY_LOADPIN=y
and maybe also: https://wiki.gentoo.org/wiki/User:Pieti ... ty_Modules
Maybe enable it:

Code: Select all

# CONFIG_IRQ_REMAP is not set
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Sat May 10, 2025 1:51 pm

pietinger wrote:alecStewart1,
maybe read the <Help> of CONFIG_SECURITY_LOADPIN=y
and maybe also: https://wiki.gentoo.org/wiki/User:Pieti ... ty_Modules
Maybe enable it:

Code: Select all

# CONFIG_IRQ_REMAP is not set
Here's that config with the changes from reading around some:

https://dpaste.org/OB39C
NeddySeagoon wrote: Try to build the kernel with gcc and the .config file missing entirely.
That should build you a totally useless kernel with the default .config file for your arch.
The test here is does it build or not.

Do not install this kernel. It won't boot on any known hardware.

It's worth trying with LLVM=1 too. Again the idea is does it build, yes/no?
Let me try that after I install the one I rebuilt with the above listed config and back that config file up.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Sat May 10, 2025 2:29 pm

NeddySeagoon wrote: Try to build the kernel with gcc and the .config file missing entirely.
With and without LLVM=1

Code: Select all

***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[1]: *** [/usr/src/linux-6.14.6-gentoo/Makefile:820: .config] Error 1
make: *** [Makefile:251: __sub-make] Error 2
If by "missing entirely" you mean to back the one I have up and run make menuconfig to generate a new .config entirely...

With gcc it errors out:

Code: Select all

make[1]: *** [/usr/src/linux-6.14.6-gentoo/Makefile:1997: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2
gcc --version

Code: Select all

gcc (Gentoo Hardened 15.1.0 p55) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
With LLVM=1 I get prompt for a lot of changes to the new config file, and then it compiles successfully.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Wed May 14, 2025 3:13 pm

Just as some notes:

I think I need to review some of the hardening options and/or modules. The kernel oops' I'm getting refers to modules, in the latest case it refers to the Intel Management Engine Interface (CONFIG_INTEL_MEI).

However, I don't know if my i5-12600K supports that. In the gentoo-kernel-bin, it the mei, mei_me etc. modules are loaded, but whether or not they're actively used I'm not sure.

For instance:

The help and here doesn't include the series of chipset that my i5-12600K is in, which is the 600/700 Series.

So...is part of my issues that I'm loading or building in modules that my custom kernel and hardware wouldn't actually ever use?

I don't know. I'll investigate a little more.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed May 14, 2025 3:59 pm

alecStewart1,

Code: Select all

lspci -nnk
will tell you if you have an Intel Management Engine or not.
Even if you do, you won't want to use it. It's for remote management in a corporate environment.
For everyone else, it's a back door.

Loading modules that you don't use is not a problem.
Many modules (not all) look for the hardware they bind to then unload if its not found.
Loaded but unused modules just waste RAM.

Be aware that the Used By count in lsmod is not always correct.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
alecStewart1
Apprentice
Apprentice
Posts: 257
Joined: Sun Jul 03, 2022 2:29 pm

  • Quote

Post by alecStewart1 » Fri May 16, 2025 5:03 pm

I think at this point I'll have to use gdb/lldb. There's gotta be some module or somewhere in the resulting vmlinuz.efi file that's gone awry in the compilation step. I'll have to disable ranstruct to get a reliable call stack.

Last module report on booting back up was ttm, but I'll have to see after disabling randstruct if that is the module causing issues or if it's something else.
Top
Post Reply

141 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy