netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: nelhage@ksplice.com
Cc: eric.dumazet@gmail.com, robert.olsson@its.uu.se,
	andy.shevchenko@gmail.com, netdev@vger.kernel.org,
	eugene@redhat.com
Subject: Re: [PATCH] pktgen: Limit how much data we copy onto the stack.
Date: Thu, 28 Oct 2010 11:32:37 -0700 (PDT)	[thread overview]
Message-ID: <20101028.113237.193691913.davem@davemloft.net> (raw)
In-Reply-To: <1288279242-22153-1-git-send-email-nelhage@ksplice.com>

From: Nelson Elhage <nelhage@ksplice.com>
Date: Thu, 28 Oct 2010 11:20:42 -0400

> A program that accidentally writes too much data to the pktgen file can overflow
> the kernel stack and oops the machine. This is only triggerable by root, so
> there's no security issue, but it's still an unfortunate bug.
> 
> printk() won't print more than 1024 bytes in a single call, anyways, so let's
> just never copy more than that much data. We're on a fairly shallow stack, so
> that should be safe even with CONFIG_4KSTACKS.
> 
> Signed-off-by: Nelson Elhage <nelhage@ksplice.com>

Applied, thanks a lot.

      reply	other threads:[~2010-10-28 18:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27 19:13 [PATCH] pktgen: Remove a dangerous debug print Nelson Elhage
2010-10-27 19:21 ` David Miller
2010-10-27 19:28   ` Nelson Elhage
2010-10-27 19:30     ` David Miller
2010-10-27 19:41     ` Eric Dumazet
2010-10-27 19:49       ` Nelson Elhage
2010-10-27 20:38 ` Ben Greear
2010-10-27 22:12 ` [patch] fix stack overflow in pktgen_if_write() Dan Carpenter
2010-10-27 22:40   ` Dan Carpenter
2010-10-27 22:43   ` [patch v2] " Dan Carpenter
2010-10-27 23:06     ` Nelson Elhage
2010-10-28  6:05       ` Dan Carpenter
2010-10-28  6:05       ` [patch v3] " Dan Carpenter
2010-10-28 15:22         ` Nelson Elhage
2010-10-28 16:28           ` Dan Carpenter
2010-10-28 16:30             ` Nelson Elhage
2010-10-28 23:11         ` Andi Kleen
2010-11-01  3:47           ` Dan Carpenter
2010-10-28 15:20 ` [PATCH] pktgen: Limit how much data we copy onto the stack Nelson Elhage
2010-10-28 18:32   ` David Miller [this message]

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=20101028.113237.193691913.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andy.shevchenko@gmail.com \
    --cc=eric.dumazet@gmail.com \
    --cc=eugene@redhat.com \
    --cc=nelhage@ksplice.com \
    --cc=netdev@vger.kernel.org \
    --cc=robert.olsson@its.uu.se \
    /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;
as well as URLs for NNTP newsgroup(s).