lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080306223027.GA2869@uranus.ravnborg.org>
Date:	Thu, 6 Mar 2008 23:30:27 +0100
From:	Sam Ravnborg <sam@...nborg.org>
To:	James Bottomley <James.Bottomley@...senPartnership.com>
Cc:	"Darrick J. Wong" <djwong@...ibm.com>,
	Adrian Bunk <bunk@...nel.org>,
	Toralf Förster <toralf.foerster@....de>,
	linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI

On Thu, Mar 06, 2008 at 03:32:06PM -0600, James Bottomley wrote:
> On Thu, 2008-03-06 at 12:35 -0800, Darrick J. Wong wrote:
> > On Thu, Mar 06, 2008 at 10:22:46PM +0200, Adrian Bunk wrote:
> > > This patch fixes the following build error reported by Toralf Förster:
> > > 
> > > <--  snip  -->
> > > 
> > > ...
> > >   MODPOST 243 modules
> > > ERROR: "sas_bios_param" [drivers/scsi/mvsas.ko] undefined!
> > 
> > <snip>
> > 
> > > --- a/drivers/scsi/aic94xx/Kconfig
> > > +++ b/drivers/scsi/aic94xx/Kconfig
> > 
> > Maybe I'm missing something here, but how does patching aic94xx Kconfig
> > fix an mvsas build problem?
> 
> Actually, it's a dependency chain fault.  The config this was generated
> from has
> 
> CONFIG_SCSI=m
> 
> CONFIG_SCSI_AIC94XX=y
> 
> the latter then forces
> 
> CONFIG_SCSI_SAS_LIBSAS=y
> 
> I think the error reported is wrong: the kernel just should have failed
> to link, since both the built in aic94xx and libsas have scsi
> dependencies.
> 
> We have a few other drivers in this category (like ibmvscsi).  The root
> cause seems to be that SCSI_LOWLEVEL doesn't act as a tristate.  I think
> a fix that will prevent all of these issues from recurring is this one.

Until kconfig is fixed - never select a symbol with a prompt or dependencies.
Then most issues are gone.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ