Bug 10202
Summary: | KMalloc redzone overwritten at very old battery insertion - Acer 1511 LMi laptop | ||
---|---|---|---|
Product: | ACPI | Reporter: | Christian Casteyde (casteyde.christian) |
Component: | Power-Battery | Assignee: | Alexey Starikovskiy (astarikovskiy) |
Status: | CLOSED DUPLICATE | ||
Severity: | normal | CC: | acpi-bugzilla, bunk |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25-rc4 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 9243 | ||
Attachments: |
DSDT file for this laptop
Don't fail on broken package |
Description
Christian Casteyde
2008-03-09 00:48:37 UTC
I also can reproduce it each time i do: cat /proc/acpi/battery/BAT1/state with this battery. Will you please attach the output of acpidump? Thanks. Created attachment 15272 [details]
DSDT file for this laptop
Here is the dsdt.
Please note that this bug is **not** a regression, the crash also occurred with 2.6.24 (and maybe previous kernels, but at that time the battery was OK).
Please check the patch attached to original bug report. *** This bug has been marked as a duplicate of bug 8573 *** The computer does not crash anymore with 8573 patch. However, I get "bad address" errors: christian@athor:~$ cat /proc/acpi/battery/BAT1/state cat: /proc/acpi/battery/BAT1/state: Bad address That may be the right behaviour, the most important is that now it doesn't crash. Ok, this is -EFAULT returned. Created attachment 15274 [details]
Don't fail on broken package
Please check if adding this patch to the mix helps :)
It works now: christian@athor:~$ cat /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: charged present rate: unknown remaining capacity: unknown present voltage: 0 mV christian@athor:~$ cat /proc/acpi/battery/BAT1/info present: yes design capacity: 4400 mAh last full capacity: 65524 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 300 mAh design capacity low: 132 mAh capacity granularity 1: 32 mAh capacity granularity 2: 32 mAh model number: ZP02 serial number: 1 battery type: LION OEM info: SIMPLO The last small detail ;-) is the "last full capacity > design capacity"... but the battery is simply dead so I consider this as normal. However, I would have expected 65536, no -32... funny. Thanks a lot. Thanks for report and testing :) This seems like a case of BIOS bug triggering a Linux bug. External (Z005) Name (PBST, Package (0x04) { 0x00, Z005, Z005, 0x2710 }) Z005 is undefined. In the case of a functional battery, the Z005 references in PBST (referenced by _BST) are over-written with the run-time present-rate and remaining-capacity. But in the case of a failing battery, these entries are not over-written, but instead the bogus reference to Z005 is attempted, which confuses Linux. |