Bug 238113 - snd_hda(4) NULL dereference in attach when loaded as module on powerpc64
Summary: snd_hda(4) NULL dereference in attach when loaded as module on powerpc64
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-25 02:39 UTC by Justin Hibbits
Modified: 2019-05-25 05:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Hibbits freebsd_committer freebsd_triage 2019-05-25 02:39:23 UTC
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.