Bug_reply : Out of range ptr error in module indicates bug in slab.c
From: selvakumar nagendran (kernelselva_at_yahoo.com)
Date: 12/30/04
- Previous message: Mike Hearn: "Re: ptrace single-stepping change breaks Wine"
- In reply to: Arjan van de Ven: "Re: Bug : Out of range ptr error in module indicates bug in slab.c"
- Next in thread: Arjan van de Ven: "Re: Bug_reply : Out of range ptr error in module indicates bug in slab.c"
- Reply: Arjan van de Ven: "Re: Bug_reply : Out of range ptr error in module indicates bug in slab.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 04:13:10 -0800 (PST) To: Arjan van de Ven <arjan@infradead.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
-
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/
- Previous message: Mike Hearn: "Re: ptrace single-stepping change breaks Wine"
- In reply to: Arjan van de Ven: "Re: Bug : Out of range ptr error in module indicates bug in slab.c"
- Next in thread: Arjan van de Ven: "Re: Bug_reply : Out of range ptr error in module indicates bug in slab.c"
- Reply: Arjan van de Ven: "Re: Bug_reply : Out of range ptr error in module indicates bug in slab.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|