Bug 201381
Summary: | Unloading acpi table through configfs causes NULL pointer dereference bug | ||
---|---|---|---|
Product: | ACPI | Reporter: | Ferry Toth (ferry.toth) |
Component: | Other | Assignee: | Erik Kaneda (erik.kaneda) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | andy.shevchenko, ferry.toth, jan.kiszka, rui.zhang |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 4.18 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Ferry Toth
2018-10-11 20:39:53 UTC
@Rui, this is an issue with Linux rather than ACPICA. @Ferry, out of curiosity, what are you trying to accomplish by unloading the table? @Erik the obvious use would be during table development where you unload the table instead of rebooting to get a faster workflow. But on Edison I was considering another use: A certain line is being used by both the LED and the SPI. During initial configuration you would like to load a table to flash the LED to signal to the user setup is running (he can connect to the wifi AP using his browser). After that has completed you would like to load the spi table, without rebooting. The only thing I can think of now is exclude the shared line from both tables and set the gpio (to external mux) from user space. So in general I would say, where there are 2 hardware functions that are mutually exclusive and you want to use both without reboot. I have just sent a patch to upstream to fix this: https://marc.info/?l=linux-acpi&m=155232247029944&w=2 I can confirm Linux 5.0.0 with Andy's patch fixes this issue (tested by unloading arduino table above). |