mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: achim.leubner@intel.com, linux-kernel@vger.kernel.org, achim@vortex.de
Subject: Re: memory allocation error messages in system log
Date: Sat, 18 Sep 2004 06:52:23 +0200	[thread overview]
Message-ID: <20040918045223.GH2780@alpha.home.local> (raw)
In-Reply-To: <20040918010459.GA5660@logos.cnet>

Hi Marcelo,

there are a lot of sprintf() in gdth_get_info(). There are a few overflow
checks, but they're being done *after* the problem happens, so it may
be possible that people experiencing problems get some data overwritten
which prevents something else from been released later.

Moreover, when some of those checks decide that the buffer is full, they
jump to stop_output without calling gdth_ioctl_free(). So it may also be
possible that this user who regularly reads /proc has his output truncated
and some memory never freed.

Regards,
Willy

On Fri, Sep 17, 2004 at 10:04:59PM -0300, Marcelo Tosatti wrote:
> 
> Achim,
> 
> This is not the first person I see complaining about 
> exact same bug (memory allocation failure while reading
> /proc/scsi/gdt/xxx
> 
> Do you have a card around so we can test?
> 
> Thanks
> 
> On Thu, Sep 16, 2004 at 06:14:08PM -0300, Marcelo Tosatti wrote:
> > On Thu, Sep 16, 2004 at 02:48:40PM +0200, Ingo Freund wrote:
> > > Hello,
> > > 
> > > I hope you guys can help, I cannot use any kernel 2.4 >23 without
> > > the here described problem.
> > > 
> > > [1.] One line summary of the problem:
> > > strange error messages concerning memory allocation
> > > 
> > > searching teh web for solutions to my problem I have already found
> > > a thread in a mailing list but no solution was mentioned, also the
> > > guys who talked about the error didn't answer to my direct mail.
> > > 
> > > [2.] Full description of the problem/report:
> > > The machine is a database server without any other service except sshd
> > > running. I do some tests on the ICP-Vortex GDT controller every 2 minutes.
> > > by using
> > > # cat /proc/scsi/gdt/2
> > > but the output of cat stops without beeing completed.
> > > 
> > > This is what I see in the syslog file every time when I use the cat
> > > command (the messages beginn after 3 days uptime):
> > > --> /var/log/messages
> > > kernel: __alloc_pages: 0-order allocation failed (gfp=0x21/0)
> > 
> > Ingo,
> > 
> > I've seen another report like this one - I'm convinced there
> > is something odd with the gdth proc handling code.
> > 
> > Can you "echo 1 > /proc/sys/vm/vm_gfp_debug" and 
> > rerun the "cat /proc/scsi/gdt/2" please?
> > -
> > 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/
> -
> 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/

      reply	other threads:[~2004-09-18  4:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 12:48 Ingo Freund
2004-09-16 21:14 ` Marcelo Tosatti
2004-09-18  1:04   ` Marcelo Tosatti
2004-09-18  4:52     ` Willy Tarreau [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=20040918045223.GH2780@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=achim.leubner@intel.com \
    --cc=achim@vortex.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.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®