From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: alan@lxorguk.ukuu.org.uk
Cc: linux-kernel@vger.kernel.org, urban@teststation.com
Subject: [PATCH] ncpfs and CONFIG_DEBUG_SLAB
Date: Wed, 7 Mar 2001 22:54:35 +0100 [thread overview]
Message-ID: <20010307225435.B1907@vana.vc.cvut.cz> (raw)
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)
reply other threads:[~2001-03-07 21:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010307225435.B1907@vana.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=urban@teststation.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®