Bug 218205 - kernel 6.6.3 NULL pointer dereference send UDP
Summary: kernel 6.6.3 NULL pointer dereference send UDP
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Networking
Classification: Unclassified
Component: IPV4 (show other bugs)
Hardware: Intel Linux
: P3 normal
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-29 09:10 UTC by Jiří Netolický
Modified: 2023-11-30 21:16 UTC (History)
3 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
NULL pointer error log (4.00 KB, text/plain)
2023-11-29 09:10 UTC, Jiří Netolický
Details
Photo of kernel panic screen (682.65 KB, image/jpeg)
2023-11-29 09:32 UTC, Jiří Netolický
Details
BUG kernel log. (4.31 KB, text/plain)
2023-11-30 12:11 UTC, Mike Civil
Details

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.

Note You need to log in before you can comment on or make changes to this bug.