Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Gentoo sources 6.7.0 move to 6.8.4 kernel panic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 2:22 pm    Post subject: [solved] Gentoo sources 6.7.0 move to 6.8.4 kernel panic Reply with quote

Hello all,

I'm getting kernel panics with gentoo sources 6.8.4 after using the config from my running 6.7.0 kernel as the foundation for the new kernels I've tried and fail.

I have gone through the handbook for AMD64 kernel configuration again to verify all those concerns seem to be met (as I would have assumed given I copied my working config).

Anyone aware of any pitfalls or "gotchas" with this move? I've tinkered with it for a few hours here and there over a few days and I have not found anything in searching through menuconfig or Google search results.

I considered pasting my two configs but that seems a bit like spam at this point.

Thanks for your time and thoughts!

Regards,
BonezTheGoon

[Edit] Added the "[solved]" to the title, wasn't room to say "[solved by pietinger]" or I would have said that![/Edit]
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."


Last edited by BonezTheGoon on Thu Apr 11, 2024 3:58 am; edited 2 times in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Wed Apr 10, 2024 2:37 pm    Post subject: Re: Gentoo sources 6.7.0 move to 6.8.4 kernel panic Reply with quote

BonezTheGoon wrote:
I'm getting kernel panics with gentoo sources 6.8.4 after using the config from my running 6.7.0 kernel as the foundation for the new kernels I've tried and fail.

Have you made a "make oldconfig" or a "make olddefconfig" ?

( https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#What_does_a_.22make_oldconfig.22_.3F )

You can use wgetpaste to give us your kernel configs. It would be also helpful if you give us your dmesg (when booting 6.7)

( https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22578

PostPosted: Wed Apr 10, 2024 3:10 pm    Post subject: Reply with quote

Is this a panic at boot, or a panic after the system is up and in use? Regardless, seeing the panic text might be helpful.
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 6:19 pm    Post subject: Reply with quote

It is a panic during boot, before attempting to mount file systems.

Yes I used both "make oldconfig" and "make olddefconfig" during various attempts to remedy this.
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 6:39 pm    Post subject: Reply with quote

When I try to post the output of dmesg I get "Error posting" from the forums. I suspect it is over some character count.
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 225
Location: Gentoo forums

PostPosted: Wed Apr 10, 2024 6:53 pm    Post subject: Reply with quote

BonezTheGoon wrote:
When I try to post the output of dmesg I get "Error posting" from the forums. I suspect it is over some character count.

You can use app-text/wgetpaste instead.
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 6:55 pm    Post subject: Reply with quote

BonezTheGoon wrote:
It is a panic during boot, before attempting to mount file systems.

Yes I used both "make oldconfig" and "make olddefconfig" during various attempts to remedy this.


I was wrong, clearly it mentions btrfs on the screen. I will attempt to post a picture of the panic here.

https://photos.app.goo.gl/WPEd1SsV6iE1ouPv5
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 6:58 pm    Post subject: Reply with quote

# dmesg | wgetpaste
Your paste can be seen here: https://bpa.st/MASQ
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 7:05 pm    Post subject: Reply with quote

# wgetpaste /usr/src/linux-6.7.0-gentoo/.config
Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
--debug to get the output from wget that can help diagnose it correctly.

# cat /usr/src/linux-6.7.0-gentoo/.config | wgetpaste
Apparently nothing was received. Perhaps the connection failed. Enable --verbose or
--debug to get the output from wget that can help diagnose it correctly.
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 7:09 pm    Post subject: Reply with quote

# cat /usr/src/linux-6.7.0-gentoo/.config | grep -v \# | wgetpaste
Your paste can be seen here: https://bpa.st/7A5Q

# cat /usr/src/linux-6.8.4-gentoo/.config | grep -v \# | wgetpaste
Your paste can be seen here: https://bpa.st/B5WA
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1896

PostPosted: Wed Apr 10, 2024 7:32 pm    Post subject: Reply with quote

BonezTheGoon wrote:
# cat /usr/src/linux-6.7.0-gentoo/.config | grep -v \# | wgetpaste
Your paste can be seen here: https://bpa.st/7A5Q

# cat /usr/src/linux-6.8.4-gentoo/.config | grep -v \# | wgetpaste
Your paste can be seen here: https://bpa.st/B5WA

Using the kernel's tool:
Code:
$ /usr/src/linux/scripts/diffconfig config.6.7 config.6.8.4
-AS_HAS_NON_CONST_LEB128 y
-FB_SYS_FOPS y
-GCC11_NO_ARRAY_BOUNDS y
-HAVE_KVM_EVENTFD y
-HAVE_KVM_IRQFD y
-MISC_FILESYSTEMS y
+ACPI_THERMAL_LIB y
+ARCH_ENABLE_THP_MIGRATION y
+ARCH_HAS_HW_PTE_YOUNG y
+ARCH_WANT_PMD_MKWRITE y
+AS_HAS_NON_CONST_ULEB128 y
+BLK_DEV_WRITE_MOUNTED y
+BOOT_CONFIG y
+CC_NO_STRINGOP_OVERFLOW y
+EDD y
+FB_SYSMEM_FOPS y
+GCC10_NO_ARRAY_BOUNDS y
+GCC_ASM_GOTO_OUTPUT_WORKAROUND y
+GCC_NO_STRINGOP_OVERFLOW y
+GENERIC_CPU_DEVICES y
+KVM_COMMON y
+KVM_GENERIC_MMU_NOTIFIER y
+MITIGATION_RFDS y
+PER_VMA_LOCK y
+STACKDEPOT_MAX_FRAMES 64
+THP_SWAP y
+TRANSPARENT_HUGEPAGE y
+TRANSPARENT_HUGEPAGE_ALWAYS y
+X86_HAVE_PAE y

Nothing shouts out to a file system change
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Wed Apr 10, 2024 8:51 pm    Post subject: Reply with quote

grknight wrote:
Code:
+EDD y

This is the first option I would disable. Help says:
Code:
 CONFIG_EDD:                                                                                                                                                                                                                                                                                             │ 
  │                                                                                                                                                                                                                                                                                                         │ 
  │ Say Y or M here if you want to enable BIOS Enhanced Disk Drive                                                                                                                                                                                                                                          │ 
  │ Services real mode BIOS calls to determine which disk                                                                                                                                                                                                                                                   │ 
  │ BIOS tries boot from.  This information is then exported via sysfs.                                                                                                                                                                                                                                     │ 
  │                                                                                                                                                                                                                                                                                                         │ 
  │ This option is experimental and is known to fail to boot on some                                                                                                                                                                                                                                        │ 
  │ obscure configurations. Most disk controller BIOS vendors do                                                                                                                                                                                                                                            │ 
  │ not yet implement this feature.

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Apr 10, 2024 11:56 pm    Post subject: Reply with quote

OK, removing the EDD. I am pretty sure I added that during one of my iterations of "random" changes.

I will post results in a bit.

Thanks all for your time and consideration!

Is the picture of the actual panic I posted visible to you folks?

Regards,
BonezTheGoon
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Apr 11, 2024 12:05 am    Post subject: Reply with quote

No visible change in behavior with removing the EDD.

It does occur to me that my environment has changed a lot since I compiled the 6.7.0 kernel back on January 17th 2024. Maybe what is causing the panic has nothing to do with the kernel config itself.

Well I mostly wanted to see if there were known challenges with this move, and it doesn't seem like anyone is aware of any.

I will continue to tinker with this and if I ever figure anything out I will do my best to share.

Regards,
BonezTheGoon
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Thu Apr 11, 2024 12:42 am    Post subject: Reply with quote

What happens if you disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS ?

Help says:
Code:
 │ This will run some basic sanity tests on the free space cache                                                                                                                                                                                                                                           │ 
  │ code to make sure it is acting as it should.  These are mostly                                                                                                                                                                                                                                          │ 
  │ regression tests and are only really interesting to btrfs                                                                                                                                                                                                                                               │ 
  │ developers.                                                                                                                                                                                                                                                                                             │ 
  │                                                                                                                                                                                                                                                                                                         │ 
  │ If unsure, say N.

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Apr 11, 2024 3:56 am    Post subject: Reply with quote

pietinger wrote:
What happens if you disable CONFIG_BTRFS_FS_RUN_SANITY_TESTS ?

Help says:
Code:
 │ This will run some basic sanity tests on the free space cache                                                                                                                                                                                                                                           │ 
  │ code to make sure it is acting as it should.  These are mostly                                                                                                                                                                                                                                          │ 
  │ regression tests and are only really interesting to btrfs                                                                                                                                                                                                                                               │ 
  │ developers.                                                                                                                                                                                                                                                                                             │ 
  │                                                                                                                                                                                                                                                                                                         │ 
  │ If unsure, say N.


That did it! I am now booted into "6.8.4-gentoo #10 SMP PREEMPT_DYNAMIC Wed Apr 10 21:53:22 MDT 2024 x86_64 AMD Ryzen 5 2600 Six-Core Processor AuthenticAMD GNU/Linux" writing this now!

Thanks so much!!

Regards,
BonezTheGoon[/code]
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5036
Location: Bavaria

PostPosted: Thu Apr 11, 2024 2:19 pm    Post subject: Reply with quote

BonezTheGoon wrote:
That did it! I am now booted into "6.8.4-gentoo #10 SMP PREEMPT_DYNAMIC Wed Apr 10 21:53:22 MDT 2024 x86_64 AMD Ryzen 5 2600 Six-Core Processor AuthenticAMD GNU/Linux" writing this now!

Happy to hear that ! :D

BonezTheGoon wrote:
Thanks so much!!

You are very Welcome ! :D

Regards,
Peter
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum