[Bug 238113] snd_hda(4) NULL dereference in attach when loaded as module on powerpc64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 25 02:39:25 UTC 2019


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

            Bug ID: 238113
           Summary: snd_hda(4) NULL dereference in attach when loaded as
                    module on powerpc64
           Product: Base System
           Version: CURRENT
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: jhibbits at FreeBSD.org

Loading snd_hda(4) on powerpc64 as a module causes a NULL dereference in
hdaa_attach() on powerpc64.  It works fine when built into the kernel, and
loads correctly as a module on powerpc(32) and powerpcspe.

The backtrace points to hdac_if.h:43, which is in HDAC_CODEC_COMMAND().

It appears the KOBJLOOKUP() fails, returning a NULL pointer.  There may be a
bug in the module loading on powerpc64.

A workaround was committed in r348250, compiling snd_hda(4) into GENERIC64,
just as is done in amd64's GENERIC.

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


More information about the freebsd-bugs mailing list