From: selvakumar nagendran <kernelselva@yahoo.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Bug_reply : Out of range ptr error in module indicates bug in slab.c
Date: Thu, 30 Dec 2004 04:13:10 -0800 (PST) [thread overview]
Message-ID: <20041230121310.41867.qmail@web60605.mail.yahoo.com> (raw)
In-Reply-To: <1104405521.4170.10.camel@laptopd505.fenrus.org>
Hello,
Thanks for ur help. The user will be changing
this using system calls like dup,dup2 etc. If I keep
track of all these modifications by intercepting all
those syscalls and use inode number for identifying
the structure uniquely, will it break?
Thanks,
selva
> nagendran wrote:
> > else {
> > new -> pipe_read_end = fdes[0];
> > new -> pipe_write_end = fdes[1];
>
> this is a bug; fdes is a USERSPACE pointer, you
> cannot directly access
> that from kernel space, you need to use
> copy_from_user() for that.
>
> And note, what you are doing is unreliable, since
> the user is capable of
> changing that information before you log it in your
> structure, so if you
> want to use the data you log for anything security
> related or for
> something that has to be accurate, it's broken...
>
> > while(temp != NULL)
> > {
> > kfree(temp);
> > temp = temp -> next;
> > }
>
> that is of course wrong; you free temp and THEN you
> access it!!
>
>
> -
> 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/
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
next prev parent reply other threads:[~2004-12-30 12:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-30 10:54 Bug " selvakumar nagendran
2004-12-30 11:18 ` Arjan van de Ven
2004-12-30 12:13 ` selvakumar nagendran [this message]
2004-12-30 12:18 ` Bug_reply " Arjan van de Ven
2004-12-31 6:51 ` Interception for a resource based scheduler selvakumar nagendran
2004-12-31 7:48 ` Arjan van de Ven
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=20041230121310.41867.qmail@web60605.mail.yahoo.com \
--to=kernelselva@yahoo.com \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/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®