Skip to content

EDAC/igen6: Avoid segmentation fault and add polling support

Orange Kao linux-edac lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2EDAC/igen6: Avoid segmentation fault when rmmoddrivers/edac/igen6_edac.c+2 -01 reply
2/2EDAC/igen6: Add polling supportdrivers/edac/igen6_edac.c+22 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] EDAC/igen6: Avoid segmentation fault and add polling support

Hello. This is Orange from Aiven Australia. I want to propose two patches to fix a bug that affects my machine with Intel N100.

Patch 1: Avoid segmentation fault during rmmod
Patch 2: Add polling support

The detailed reproduce steps has been documented in kernel bugzilla 219360. Summary below

I have a PC with Intel N100 (with PCI device 8086:461c, DID_ADL_N_SKU4 in igen6_edac.c) with a BIOS/UEFI that allows me to enable IBECC and error injection.

Interrupt seems not working in Linux, but it seems able to detect the error when "modprobe igen6_edac". I am not sure if this is a BIOS bug or not, but I have no access to BIOS source code. So I tried to implement polling, and it seems to work. My proposal in patch 2.

Also "rmmod igen6_edac" can trigger segmentation fault. It seems caused by double kfree on the same memory address. I tried to fix it in patch 1.

Thanks for considering this. I am new to this area so I could be wrong, and I might need extra help and guidance.