[Bug 230993] sysutils/acpi_call: Kernel panic since CURRENT r336876 (Use SMAP on amd64)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 13 20:25:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230993

Jean-Sébastien Pédron <dumbbell at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #196667|0                           |1
        is obsolete|                            |
                 CC|                            |dumbbell at FreeBSD.org

--- Comment #2 from Jean-Sébastien Pédron <dumbbell at FreeBSD.org> ---
Created attachment 197075
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=197075&action=edit
Patch to fix accesses to userland pointers in kernel module

I also hit a kernel panic on a recent laptop (Skylake) with acpi_call, but not
on an older one (Haswell) which probably confirms the SMAP cause.

I tried your patch and it was not enough to get rid of the panic because, in my
case, the kernel fails to read the `path` located in userland. I had to modify
it further to use copyin(9) to get the `path`.

Here is a new patch (to apply to the port directly) which fixes the problem for
me. I can turn off the discrete GPU of my laptop using acpi_call. The new patch
includes your initial, that's why I marked yours as obsolete.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list