mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: s_kieu@hotmail.com
Cc: haiquy@yahoo.com, linux-kernel@vger.kernel.org
Subject: Re: 2.6.2-rc1-mm1 pppd: page allocation failure (Got it now :-)
Date: Sat, 31 Jan 2004 00:42:14 -0800	[thread overview]
Message-ID: <20040131004214.05851d6e.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.53.0401311928350.1657@darkstar.example.net>

haiquy@yahoo.com wrote:
>
> Finally I got it happened again and here is the attached dmesg output.
>

Good, thanks.

> 
> pppd: page allocation failure. order:4, mode:0xd0
>  Call Trace:
>   [<c013a140>] __alloc_pages+0x300/0x350
>   [<c013a1af>] __get_free_pages+0x1f/0x50
>   [<c013ccdc>] cache_grow+0x8c/0x250
>   [<c013cfee>] cache_alloc_refill+0x14e/0x210
>   [<c013d334>] __kmalloc+0x74/0x80
>   [<c01fe857>] z_decomp_alloc+0xb7/0x100
>   [<c01fae94>] ppp_set_compress+0x1b4/0x270
>   [<c01f92b1>] ppp_ioctl+0x4e1/0x610
>   [<c0150052>] vfs_write+0xd2/0x130
>   [<c0160cbb>] sys_ioctl+0xdb/0x260
>   [<c02b604f>] syscall_call+0x7/0xb

This should fix it up.


diff -puN drivers/net/ppp_deflate.c~ppp-allocation-fix drivers/net/ppp_deflate.c
--- 25/drivers/net/ppp_deflate.c~ppp-allocation-fix	2004-01-31 00:39:08.000000000 -0800
+++ 25-akpm/drivers/net/ppp_deflate.c	2004-01-31 00:40:21.000000000 -0800
@@ -351,7 +351,7 @@ static void *z_decomp_alloc(unsigned cha
 	state->w_size         = w_size;
 	state->strm.next_out  = NULL;
 	state->strm.workspace = kmalloc(zlib_inflate_workspacesize(),
-					GFP_KERNEL);
+					GFP_KERNEL|__GFP_REPEAT);
 	if (state->strm.workspace == NULL)
 		goto out_free;
 

_


  reply	other threads:[~2004-01-31  8:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-31 19:30 haiquy
2004-01-31  8:42 ` Andrew Morton [this message]
2004-02-03 19:35   ` 2.6.2-rc1-mm1 pppd: page allocation failure (Solved!) Steve Kieu

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=20040131004214.05851d6e.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=haiquy@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=s_kieu@hotmail.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®