linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: J Freyensee <james_p_freyensee@linux.intel.com>
Cc: linux-mm@kvack.org, gregkh@suse.de, hari.k.kanigeri@intel.com
Subject: Re: [PATCH] kernel buffer overflow kmalloc_slab() fix
Date: Fri, 20 May 2011 09:32:01 -0500 (CDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.1105200931400.5610@router.home> (raw)
In-Reply-To: <1305843552.2400.36.camel@localhost>

On Thu, 19 May 2011, J Freyensee wrote:

> > Not sure what to do instead of returning -1 in kmalloc_slab.
>
> I think returning -1 is fine; I just think code using the function
> should be checking for it and protect itself for errors in kernel space.

The function never returns -1 as I explained before.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2011-05-20 14:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 19:51 james_p_freyensee
2011-05-19 20:51 ` Christoph Lameter
2011-05-19 21:14   ` J Freyensee
2011-05-19 21:24     ` Christoph Lameter
2011-05-19 22:19       ` J Freyensee
2011-05-20 14:32         ` Christoph Lameter [this message]
2011-05-20 12:02   ` James Bottomley
2011-05-20 14:33     ` Christoph Lameter
2011-05-20 14:42       ` Christoph Lameter
2011-05-20 18:02         ` J Freyensee

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=alpine.DEB.2.00.1105200931400.5610@router.home \
    --to=cl@linux.com \
    --cc=gregkh@suse.de \
    --cc=hari.k.kanigeri@intel.com \
    --cc=james_p_freyensee@linux.intel.com \
    --cc=linux-mm@kvack.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