mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ncpfs and CONFIG_DEBUG_SLAB
@ 2001-03-07 21:54 Petr Vandrovec
  0 siblings, 0 replies; only message in thread
From: Petr Vandrovec @ 2001-03-07 21:54 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel, urban

Hi Alan,
   if you are going to apply patch I saw today morning on linux-kernel
to disable redzoning on SLAB_HWCACHE aligned areas, drop this one into
wastebasket.
   If not, please apply this. When CONFIG_DEBUG_SLAB is enbled,
dentries do not live on 16bytes boundary, but on x*8 + 4 :-( So I
can validate only two low bits.
   This patch is for 2.4.2-ac13 with applied patch I sent just few
minutes ago.
   Urban's smbfs has same problem, as it uses almost same validate
code...
					    Thanks,
						Petr Vandrovec
						vandrove@vc.cvut.cz


--- linux/fs/ncpfs/dir.c	Wed Mar  7 22:40:12 2001
+++ linux/fs/ncpfs/dir.c	Wed Mar  7 21:09:36 2001
@@ -332,7 +332,11 @@
 {
 	unsigned long dent_addr = (unsigned long) dentry;
 	const unsigned long min_addr = PAGE_OFFSET;
+#ifdef CONFIG_DEBUG_SLAB
+	const unsigned long align_mask = 0x03;
+#else
 	const unsigned long align_mask = 0x0F;
+#endif
 	unsigned int len;
 
 	if (dent_addr < min_addr)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-07 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-07 21:54 [PATCH] ncpfs and CONFIG_DEBUG_SLAB Petr Vandrovec

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®