mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [VM/MEMORY-SICKNESS] 2.4.15-pre7 kmem_cache_create invalid opcode
@ 2001-11-21  6:59 Jeff Merkey
  0 siblings, 0 replies; 29+ messages in thread
From: Jeff Merkey @ 2001-11-21  6:59 UTC (permalink / raw)
  To: Jeff Merkey, jmerkey, David S. Miller; +Cc: linux-kernel

> > You are really a fucking pain in the ass to help Jeff.
>
> Dave,  I went and looked at this stuff.  I have been running this code for
> over a year on 2.4 and I AM NOT CREATING A SLAB CACHE TWICE!!!!
> I am building an NWFS module external of the kernel tree, and unless make
> dep
> has been run, the default behavior of the includes causes me to drop into
> the
> BUG() trap.

This is a bug in how these includes are structured.  It may be ok to leave
the damn
thing the way it is, but warn folks who build custom drivers (like the SCI
drivers I
maintain for Dolphin, NWFS, etc.) that their f_cking code will be broken and
generate these garbage errors if they have not run make dep against the tree
they
try to build against.

I would not have expected you or most LKML folks to have seen this, since
you live
in a world where everything is in the kernel tree.   I am telling you there
is a problem there,
and it can bite.  After I build this module (since the generated code thatr
ends up in
the external module is crap) it will routinely crash over and over gain
until it gets rebuilt
against a kernel that has had make dep (and make bzImage) run against it.

Jeff

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


^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [VM/MEMORY-SICKNESS] 2.4.15-pre7 kmem_cache_create invalid opcode
  2001-11-21  6:22   ` David S. Miller
@ 2001-11-21  7:33 Jeff V. Merkey
  2001-11-21  6:54 ` Chris Abbey
  2001-11-21  7:16 ` Jeff V. Merkey
  0 siblings, 2 replies; 29+ messages in thread
From: Jeff V. Merkey @ 2001-11-21  7:33 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel, jmerkey

On Tue, Nov 20, 2001 at 10:22:03PM -0800, David S. Miller wrote:
> 
> Your code is violating one of the assertions in
> kmem_cache_create(), check the BUG(); calls in
> mm/slab.c:kmem_cache_create() to try and figure out
> which one you are firing off.
> 
> Probably either you are trying to send it debug flags
> but CONFIG_SLAB_DEBUG is not defined _OR_ you are trying
> to create the same SLAB cache twice (forgetting to destroy
> it on module unload perhaps)?
> 
> Slab if fine, it's your code which is busted :)

David,

I need some help here (big surprise).  I did nothing other than 
download pre7, apply my patch, and do the build.  I went back 
over how I did the build, and this is the result of the build 
if you have unpacked, patched, then run "make oldconfig."  If I
do a "make dep" then this problem does not occur, and the build 
works fine.  If I build the external module (this bug only 
shows up when building the external module file system driver,
not the kernel patched version of NWFS).

No. I think the build in linux is broken.  The Linux tree should 
not generate garbase opcodes from the includes is make dep 
has not been run and someone is simply building a module against
the include files.

:-)

Jeff


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2001-11-21 21:30 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-21  6:59 [VM/MEMORY-SICKNESS] 2.4.15-pre7 kmem_cache_create invalid opcode Jeff Merkey
2001-11-21  7:33 Jeff V. Merkey
2001-11-21  6:54 ` Chris Abbey
2001-11-21  7:05   ` Jeff Merkey
2001-11-21  7:16 ` Jeff V. Merkey
2001-11-21  6:22   ` David S. Miller
2001-11-21  6:47     ` David S. Miller
2001-11-21  6:54       ` Jeff Merkey
2001-11-21  6:56       ` David S. Miller
2001-11-21  7:03         ` Jeff Merkey
2001-11-21  7:49           ` arjan
2001-11-21 18:31             ` Jeff Merkey
2001-11-21 19:06               ` Doug Ledford
2001-11-21 19:51                 ` Jeff Merkey
2001-11-21 19:58                   ` J Sloan
2001-11-21 20:38                   ` Doug Ledford
2001-11-21 21:17                     ` Jeff Merkey
2001-11-21 19:16               ` Arjan van de Ven
2001-11-21 19:53                 ` Jeff Merkey
2001-11-21 20:36                   ` Doug Ledford
2001-11-21 21:16                     ` Jeff Merkey
2001-11-21 21:28                     ` Robert Love
2001-11-21  7:09         ` David S. Miller
2001-11-21  7:14           ` Jeff Merkey
2001-11-21  7:28         ` Stuart Young
2001-11-21  6:47   ` Kai Henningsen
2001-11-21 18:28     ` Jeff Merkey
2001-11-21  8:49   ` Alan Cox
2001-11-21 18:28     ` Jeff Merkey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®