Re: NULL pointer dereference in igen6_probe - 6.16-rc2
From: Borislav Petkov
Date: Tue Jun 17 2025 - 10:58:43 EST
On Tue, Jun 17, 2025 at 02:09:42PM +0000, Zhuo, Qiuxu wrote:
> In the 10nm_edac driver for Intel Xeon server, 'cfg' is non-const, and the field
> 'cfg->ddr_imc_num' [1] is overwritten with the number of detected DDR memory
> controllers at runtime.
>
> Reverting 'cfg' in this igen6_edac driver to non-const, allowing it to be set
> with the actual number of detected memory controllers seems reasonable.
Question is: is that something the driver should allow? Detecting more memory
controllers but enabling less. How can that even happen?
> After that then applying Boris' fix above is the simplest way to resolve the
> issue. 😊
Right, just prepare a proper patch, please, so that Marek can test and
confirm.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette