Bug 218205

Summary: kernel 6.6.3 NULL pointer dereference send UDP
Product: Networking Reporter: Jiří Netolický (netolish)
Component: IPV4Assignee: Stephen Hemminger (stephen)
Status: RESOLVED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: holger, mike, sam
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: NULL pointer error log
Photo of kernel panic screen
BUG kernel log.

Description Jiří Netolický 2023-11-29 09:10:57 UTC
Created attachment 305506 [details]
NULL pointer error log

In new 6.6.3 kernel on Gentoo during start chronyd kernel NULL pointer message
is show and after a while system hangs-up with kernel panic. 6.6.2 version works fine.
Comment 1 Jiří Netolický 2023-11-29 09:32:17 UTC
Created attachment 305507 [details]
Photo of kernel panic screen
Comment 2 Holger Hoffstätte 2023-11-29 17:26:11 UTC
If this is a hardened profile then the likely fix is:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=45b3fae4675d
Comment 3 Mike Civil 2023-11-30 12:11:53 UTC
Created attachment 305519 [details]
BUG kernel log.
Comment 4 Mike Civil 2023-11-30 12:12:02 UTC
Just a me too - kernel log attached. This is not a hardened profile. Identical .config to 6.6.2 which boots and runs fine.
Comment 5 Jiří Netolický 2023-11-30 12:36:19 UTC
(In reply to Holger Hoffstätte from comment #2)
> If this is a hardened profile then the likely fix is:
> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/
> ?id=45b3fae4675d

It is gentoo-source kernel - vanila kernel with few gentoo patches
https://dev.gentoo.org/~mpagano/genpatches/.
I only sign kernel modules with my private key.

I try your recommended patch and it seems it help. System
booted without any kernel errors and works fine.
Thank you very much.
Comment 6 Holger Hoffstätte 2023-11-30 13:21:10 UTC
(In reply to Mike Civil from comment #4)
> Just a me too - kernel log attached. This is not a hardened profile.
> Identical .config to 6.6.2 which boots and runs fine.

It does not explicitly need to be a hardended profile - anybody can enable the CONFIG_RANDSTRUCT_* options (except for NONE, obviously) and that is the root of the problem. Apply the mentioned patch or disable structure layout randomization and 6.6.3 should work just fine.
Comment 7 Mike Civil 2023-11-30 13:39:03 UTC
(In reply to Holger Hoffstätte from comment #6)
> It does not explicitly need to be a hardended profile - anybody can enable
> the CONFIG_RANDSTRUCT_* options (except for NONE, obviously) and that is the
> root of the problem. Apply the mentioned patch or disable structure layout
> randomization and 6.6.3 should work just fine.

Thanks. Am now at the machine, applied the patch and confirmed it now boots fine with 6.6.3.