Ticket #2212 (new defect)

Opened 10 years ago

Last modified 15 months ago

pppd: page allocation failure. order:4, mode:0x4d0

Reported by: lindi Owned by: openmoko-kernel
Priority: normal Milestone:
Component: kernel Version: unspecified
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: yes PatchReviewResult:
Reproducible:

Description

Today I noticed that dmesg had the following error messages:

[124531.130000] Restarting tasks ... done.
[124531.330000] pcf50633 0-0073: INT1=0x80 INT2=0x00 INT3=0x00 INT4=0x40 INT5=0x00
[124531.330000] soc-audio soc-audio: starting resume work
[124531.955000] soc-audio soc-audio: resume work completed
[124532.030000] fbcon_event_notify action=1, data=c7b3ddf0
[124532.090000] pcf50633 0-0073: INT1=0x80 INT2=0x00 INT3=0x00 INT4=0x00 INT5=0x00
[124532.110000] pcf50633 0-0073: INT1=0x00 INT2=0x00 INT3=0x00 INT4=0x00 INT5=0x00
[124555.135000] pppd: page allocation failure. order:4, mode:0x4d0
[124555.135000] [<c03a5f04>] (dump_stack+0x0/0x14) from [<c008f220>] (__alloc_pages_internal+0x3c0/0x3e8)
[124555.145000] [<c008ee60>] (__alloc_pages_internal+0x0/0x3e8) from [<c00ae6c0>] (cache_grow+0xc8/0x354)
[124555.150000] [<c00ae5f8>] (cache_grow+0x0/0x354) from [<c00aeb4c>] (cache_alloc_refill+0x200/0x264)
[124555.160000] [<c00ae94c>] (cache_alloc_refill+0x0/0x264) from [<c00aec50>] (__kmalloc+0xa0/0xdc)
[124555.170000] [<c00aebb0>] (__kmalloc+0x0/0xdc) from [<c01ff470>] (z_decomp_alloc+0x90/0xd4)
[124555.180000]  r7:c7a4f400 r6:00000009 r5:00000000 r4:c7b97920
[124555.185000] [<c01ff3e0>] (z_decomp_alloc+0x0/0xd4) from [<c01fac64>] (ppp_set_compress+0x16c/0x1f8)
[124555.195000]  r6:c7a4f400 r5:c04ddff4 r4:c1cb4000
[124555.195000] [<c01faaf8>] (ppp_set_compress+0x0/0x1f8) from [<c01fb4fc>] (ppp_ioctl+0x2cc/0x664)
[124555.205000] [<c01fb230>] (ppp_ioctl+0x0/0x664) from [<c00be510>] (vfs_ioctl+0x3c/0x9c)
[124555.215000]  r8:c0034048 r7:00000009 r6:400c744d r5:03f7598c r4:c6ef9be0
[124555.220000] [<c00be4d4>] (vfs_ioctl+0x0/0x9c) from [<c00beba4>] (do_vfs_ioctl+0x1f0/0x21c)
[124555.230000]  r6:400c744d r5:c6ef9be0 r4:03f7598c
[124555.235000] [<c00be9b4>] (do_vfs_ioctl+0x0/0x21c) from [<c00bec10>] (sys_ioctl+0x40/0x60)
[124555.240000]  r7:c6ef9be0 r6:400c744d r5:03f7598c r4:00000009
[124555.250000] [<c00bebd0>] (sys_ioctl+0x0/0x60) from [<c0033ea0>] (ret_fast_syscall+0x0/0x2c)
[124555.255000]  r7:00000036 r6:00099444 r5:00099434 r4:00000000
[124555.260000] Mem-info:
[124555.265000] Normal per-cpu:
[124555.265000] CPU    0: hi:   42, btch:   7 usd:   0
[124555.270000] Active_anon:1812 active_file:4736 inactive_anon:4638
[124555.270000]  inactive_file:5995 unevictable:0 dirty:16 writeback:0 unstable:0
[124555.270000]  free:3985 slab:8071 mapped:2120 pagetables:139 bounce:0
[124555.275000] Normal free:15940kB min:1440kB low:1800kB high:2160kB active_anon:7248kB inactive_anon:18552kB active_file:18944kB inactive_file:23980kB unevictable:0kB present:130048kB pages_scanned:0 all_unreclaimable? no
[124555.280000] lowmem_reserve[]: 0 0
[124555.285000] Normal: 2079*4kB 683*8kB 111*16kB 8*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15940kB
[124555.295000] 10769 total pagecache pages
[124555.300000] 0 pages in swap cache
[124555.300000] Swap cache stats: add 0, delete 0, find 0/0
[124555.305000] Free swap  = 0kB
[124555.305000] Total swap = 0kB
[124555.320000] 32768 pages of RAM
[124555.320000] 4126 free pages
[124555.320000] 2968 reserved pages
[124555.320000] 8071 slab pages
[124555.325000] 9133 pages shared
[124555.330000] 0 pages swap cached
[124555.420000] pppd: page allocation failure. order:4, mode:0x4d0
[124555.420000] [<c03a5f04>] (dump_stack+0x0/0x14) from [<c008f220>] (__alloc_pages_internal+0x3c0/0x3e8)
[124555.430000] [<c008ee60>] (__alloc_pages_internal+0x0/0x3e8) from [<c00ae6c0>] (cache_grow+0xc8/0x354)
[124555.435000] [<c00ae5f8>] (cache_grow+0x0/0x354) from [<c00aeb4c>] (cache_alloc_refill+0x200/0x264)
[124555.445000] [<c00ae94c>] (cache_alloc_refill+0x0/0x264) from [<c00aec50>] (__kmalloc+0xa0/0xdc)
[124555.455000] [<c00aebb0>] (__kmalloc+0x0/0xdc) from [<c01ff470>] (z_decomp_alloc+0x90/0xd4)
[124555.465000]  r7:c7a4f400 r6:00000009 r5:00000000 r4:c7b97920
[124555.470000] [<c01ff3e0>] (z_decomp_alloc+0x0/0xd4) from [<c01fac64>] (ppp_set_compress+0x16c/0x1f8)
[124555.480000]  r6:c7a4f400 r5:c04ddff4 r4:c1cb4000
[124555.485000] [<c01faaf8>] (ppp_set_compress+0x0/0x1f8) from [<c01fb4fc>] (ppp_ioctl+0x2cc/0x664)
[124555.490000] [<c01fb230>] (ppp_ioctl+0x0/0x664) from [<c00be510>] (vfs_ioctl+0x3c/0x9c)
[124555.500000]  r8:c0034048 r7:00000009 r6:400c744d r5:03f75964 r4:c6ef9be0
[124555.505000] [<c00be4d4>] (vfs_ioctl+0x0/0x9c) from [<c00beba4>] (do_vfs_ioctl+0x1f0/0x21c)
[124555.515000]  r6:400c744d r5:c6ef9be0 r4:03f75964
[124555.520000] [<c00be9b4>] (do_vfs_ioctl+0x0/0x21c) from [<c00bec10>] (sys_ioctl+0x40/0x60)
[124555.525000]  r7:c6ef9be0 r6:400c744d r5:03f75964 r4:00000009
[124555.535000] [<c00bebd0>] (sys_ioctl+0x0/0x60) from [<c0033ea0>] (ret_fast_syscall+0x0/0x2c)
[124555.540000]  r7:00000036 r6:00099444 r5:00099434 r4:00000000
[124555.545000] Mem-info:
[124555.550000] Normal per-cpu:
[124555.550000] CPU    0: hi:   42, btch:   7 usd:   4
[124555.555000] Active_anon:1812 active_file:4734 inactive_anon:4638
[124555.555000]  inactive_file:6004 unevictable:0 dirty:16 writeback:0 unstable:0
[124555.555000]  free:4063 slab:7982 mapped:2121 pagetables:139 bounce:0
[124555.560000] Normal free:16252kB min:1440kB low:1800kB high:2160kB active_anon:7248kB inactive_anon:18552kB active_file:18936kB inactive_file:24016kB unevictable:0kB present:130048kB pages_scanned:0 all_unreclaimable? no
[124555.565000] lowmem_reserve[]: 0 0
[124555.570000] Normal: 2087*4kB 702*8kB 117*16kB 9*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 16252kB
[124555.580000] 10776 total pagecache pages
[124555.585000] 0 pages in swap cache
[124555.590000] Swap cache stats: add 0, delete 0, find 0/0
[124555.595000] Free swap  = 0kB
[124555.595000] Total swap = 0kB
[124555.610000] 32768 pages of RAM
[124555.610000] 4208 free pages
[124555.610000] 2968 reserved pages
[124555.610000] 7982 slab pages
[124555.615000] 9134 pages shared
[124555.620000] 0 pages swap cached
[124682.645000] fbcon_event_notify action=9, data=c7b3de08
[124682.645000] jbt6k74 spi2.0: **** jbt6k74 vsync suspend

I am using andy-tracking andy-tracking_b8b36e5ec3db71d5 with the
following patch to workaround #2073. I don't think this has anything
to do with the allocation bug but just in case it matters I'll mention
it here:

diff --git a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
index 7dd1983..84cbb52 100644
--- a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
@@ -154,7 +162,13 @@ static int neo1973_gta02_hifi_hw_free(struct snd_pcm_substream *substream)
        struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
 
        /* disable the PLL */
-       return codec_dai->dai_ops.set_pll(codec_dai, WM8753_PLL1, 0, 0);
+        if (codec_dai->dai_ops.set_pll == NULL) {
+            printk(KERN_INFO "lindi: hw_free: set_pll NULL\n");
+            return 0;
+        } else {
+            printk(KERN_INFO "lindi: hw_free: set_pll not NULL\n");
+            return codec_dai->dai_ops.set_pll(codec_dai, WM8753_PLL1, 0, 0);
+        }
 }

Attachments

ppp-decomp-use-vmalloc-for-large-allocation.patch (730 bytes) - added by werner 10 years ago.

Change History

Changed 10 years ago by werner

comment:1 Changed 10 years ago by werner

  • HasPatchForReview set

This is nasty :-( It's z_decomp_alloc trying to allocate a chunk of
64kB of contiguous kernel memory for its 'struct inflate_workspace',
defined in lib/zlib_inflate/infutil.h (MAX_WBITS is 15.)

Such large allocations are generally bad practice and it's a bit
disconcerting to find one here. Fortunately, there may be an easy
fix by just using vmalloc. I've attached an untested patch.

I'm not sure if the problem is very reproducible and if you're
actually using PPP compression. If the answer to at least one of
these items is yes, then could you please give it a try ?

comment:2 Changed 10 years ago by lindi

I do not know a way to reproduce the problem. I do not know if I am really using compression:

/usr/sbin/pppd /dev/pts/12 connect /var/tmp/ogsmd/gprs-connect-chat disconnect /var/tmp/ogsmd/gprs-disconnect-chat 115200 nodetach crtscts defaultroute debug hide-password holdoff 3 ipcp-accept-local ktune lcp-echo-failure 10 lcp-echo-interval 20 ipcp-max-configure 4 lock noauth noipdefault novj novjccomp proxyarp replacedefaultroute usepeerdns user x

does not mention any compression but

Jan 20 22:58:10 ginger local2.notice pppd[28779]: Connect: ppp0 <--> /dev/pts/12
Jan 20 22:58:11 ginger local2.warn pppd[28779]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jan 20 22:58:11 ginger local2.debug pppd[28779]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x59062554> <pcomp> <accomp>]
Jan 20 22:58:11 ginger local2.debug pppd[28779]: rcvd [LCP ConfRej id=0x1 <magic 0x59062554>]
Jan 20 22:58:11 ginger local2.debug pppd[28779]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Jan 20 22:58:11 ginger local2.debug pppd[28779]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: sent [LCP EchoReq id=0x0 magic=0x0]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: rcvd [CHAP Challenge id=0x1 <1c48e86d81593b59610ab90eb6f316af62b989b092081333ef4e8f268b3c7e1986fd90e08434f2eccfb85b6a4b0fd4191dab4a>, name = ""]
Jan 20 22:58:12 ginger local2.warn pppd[28779]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Jan 20 22:58:12 ginger local2.debug pppd[28779]: sent [CHAP Response id=0x1 <8c1674df4f25333bdd88f9a5804dadd0>, name = "x"]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: rcvd [LCP EchoRep id=0x0 magic=0x0]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: rcvd [CHAP Success id=0x1 ""]
Jan 20 22:58:12 ginger local2.info pppd[28779]: CHAP authentication succeeded
Jan 20 22:58:12 ginger local2.notice pppd[28779]: CHAP authentication succeeded
Jan 20 22:58:12 ginger local2.debug pppd[28779]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jan 20 22:58:12 ginger local2.debug pppd[28779]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Jan 20 22:58:13 ginger user.info kernel: [152171.845000] fbcon_event_notify action=9, data=c7b3de08
Jan 20 22:58:13 ginger user.info kernel: [152171.845000] jbt6k74 spi2.0: **** jbt6k74 hsync suspend
Jan 20 22:58:15 ginger local2.debug pppd[28779]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: rcvd [IPCP ConfReq id=0x1]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: rcvd [IPCP ConfNak id=0x1 <addr 85.77.208.13> <ms-dns1 195.197.54.100> <ms-dns3 195.74.0.47>]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: sent [IPCP ConfReq id=0x2 <addr 85.77.208.13> <ms-dns1 195.197.54.100> <ms-dns3 195.74.0.47>]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: rcvd [IPCP ConfReq id=0x2]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: sent [IPCP ConfAck id=0x2]
Jan 20 22:58:16 ginger local2.debug pppd[28779]: rcvd [IPCP ConfAck id=0x2 <addr 85.77.208.13> <ms-dns1 195.197.54.100> <ms-dns3 195.74.0.47>]
Jan 20 22:58:16 ginger local2.warn pppd[28779]: Could not determine remote IP address: defaulting to 10.64.64.64
Jan 20 22:58:16 ginger local2.notice pppd[28779]: replacing old default route to usb0 [192.168.4.200]
Jan 20 22:58:16 ginger local2.err pppd[28779]: Cannot determine ethernet address for proxy ARP
Jan 20 22:58:16 ginger local2.notice pppd[28779]: local  IP address 85.77.208.13
Jan 20 22:58:16 ginger local2.notice pppd[28779]: remote IP address 10.64.64.64
Jan 20 22:58:16 ginger local2.notice pppd[28779]: primary   DNS address 195.197.54.100
Jan 20 22:58:16 ginger local2.notice pppd[28779]: secondary DNS address 195.74.0.47

seems to at least try to negotiate deflate compression? Downloading a file with zeroes over HTTP seems to happen at the same bandwidth as downloading a file that has random data so I don't think any real compression is in use.

In any case I'm waiting for the kernel to build with the patch and check that ppp works after it.

comment:3 Changed 10 years ago by werner

Thanks ! Yes, I was afraid that it may be pretty hard to reproduce.
We seem to run into fragmentation problems unusually fast, but this
may be just the usage pattern.

I guess we'll have to try one day to cap allocations after boot and
see what happens ...

  • Werner

comment:4 Changed 10 years ago by lindi

At lesat on top of b8b36e5ec3db71 the patch does not cause breakage and I can use gprs normally.

comment:5 Changed 19 months ago by Chassmetly

How To Buy Macrobid Legally Drugs <a href=http://accutane.ccrpdc.com/map.php>Amnesteem</a> Viagra Levitra And Cialis Non Prescription 400mg Viagra <a href=http://inderal.ccrpdc.com/propranolol-online-cheap.php>Propranolol Online Cheap</a> Dental Prophylaxis Amoxicillin Amoxicillin 500mg No Prescription <a href=http://clomid.ccrpdc.com/order-clomid-pills.php>Order Clomid Pills</a> Anti Oestrogene Homme Priligy Canada <a href=http://propecia.ccrpdc.com/propecia-cost-usa.php>Propecia Cost Usa</a> Viagra Alkohol Cialis Generique Tadalafil <a href=http://cial5mg.xyz/need-to-order-cialis.php>Need To Order Cialis</a> Viagra 100mg 40 Amoxicillin For Cats With No Prescription <a href=http://zol1.xyz/buy-generic-zoloft-online.php>Buy Generic Zoloft Online</a> Costo Cialis 5 Mg Isotretinoin Isotret <a href=http://zoloft.ccrpdc.com/cheap-zoloft-50mg.php>Cheap Zoloft 50mg</a> Propecia Prostate Toothache Abscess Keflex <a href=http://cial1.xyz/cialis-viagra.php>Cialis Viagra</a> Isotretinoin Acne Propecia Discount Pharmacy <a href=http://zol1.xyz/buy-implicane.php>Buy Implicane</a> Propecia Comprar Sin Receta Propecia How To Use <a href=http://zol1.xyz/mail-order-zoloft.php>Mail Order Zoloft</a> Amoxicilline Et Angine Rouge Avoir Clomid Enceinte <a href=http://zithromax.ccrpdc.com/zithromax-cost.php>Zithromax Cost</a> Mifepristone Et Misoprostol Cephalexin Puppies <a href=http://nolvadex.ccrpdc.com/buy-cheap-nolvadex.php>Buy Cheap Nolvadex</a> Cialis Preisvergleich Bestellen Acheter Viagra A Geneve <a href=http://zol1.xyz/implicane-generic.php>Implicane Generic</a> Precio Cialis 5 Mg 28 Comprimidos Buy Now Viagra <a href=http://cial5mg.xyz/cialis-viagra.php>Cialis Viagra</a> No Script Viagra Priligy Commentaires <a href=http://kama1.xyz/kamagra-tablet.php>Kamagra Tablet</a> Cialis Pagamento Alla Consegna Viagra Canada Mastercard <a href=http://viag1.xyz/generic-viagra-cheap.php>Generic Viagra Cheap</a> Alternativa A Propecia Originale Keflex Allergic Reaction Symptoms <a href=http://zol1.xyz/get-cheap-zoloft-online.php>Get Cheap Zoloft Online</a> Generic Propecia 2 Mg Clomiphene 60 Pills 25 Mg No Script Usa <a href=http://cial1.xyz/prices-cialis.php>Prices Cialis</a> Finasteride 1 Mg No Prescription Needed Buy Kamagra Europe <a href=http://kama1.xyz/buy-generic-kamagra.php>Buy Generic Kamagra</a> Tomar Propecia Informacion Buy Alli Uk <a href=http://viag1.xyz/viagra-online-store.php>Viagra Online Store</a> Which Online Pharmacies Accept Paypal Prevacid <a href=http://viag1.xyz/cheap-viagra-pill.php>Cheap Viagra Pill</a> Precio Levitra 4 Comprimidos Canada Ian Pharmacy <a href=http://zoloft.ccrpdc.com/cheap-zoloft-20mg.php>Cheap Zoloft 20mg</a> Canadapharmacy1 cheap isotretinoin accutane with free shipping <a href=http://inderal.ccrpdc.com/propranolol-cheap.php>Propranolol Cheap</a> Levitra Sirve Para La Mujer Children'S Dosage For Amoxicillin <a href=http://viag1.xyz/viagra-online-online.php>Viagra Online Online</a> Healthy Man Viagra Radio Ad Overnight Viagra Delivery <a href=http://viag1.xyz/cheap-viagra-pills.php>Cheap Viagra Pills</a> How Long Does Viagra Last Cialis Pas De Generique <a href=http://viag1.xyz/map.php>Sildenafil</a> Achat Cialis Pro Propecia Overstock <a href=http://cial5mg.xyz/buy-online-cialis.php>Buy Online Cialis</a> Viagra Pour Sante Popularity For Amoxicillin <a href=http://cial5mg.xyz/buy-tadalafil.php>Buy Tadalafil</a> Generic Stendra Medicine With Free Shipping Xenical No Prescription Canada <a href=http://zol1.xyz/zoloft-50mg.php>Zoloft 50mg</a> Buy Ed Propecia 98 Stuck <a href=http://zol1.xyz/zoloft-online-prices.php>Zoloft Online Prices</a> Erythromycin No Prescription Bentyl Medication Buying <a href=http://zol1.xyz/implicane.php>Implicane</a> Lioresal 25 Mg Viagra Gibraltar <a href=http://zol1.xyz/zoloft-online-cs.php>Zoloft Online Cs</a> Cialis Generika Tadacip Best Price For Diflucan Generic <a href=http://cial5mg.xyz/generic-cialis-online.php>Generic Cialis Online</a> Synthroid 75 Mcg No Prescription Kamagra Que Es <a href=http://viag1.xyz/how-much-is-viagra.php>How Much Is Viagra</a> Buying Viagra In Ireland Cialis Levitra Viagra Vergleich <a href=http://kama1.xyz/oral-jelly-kamagra.php>Oral Jelly Kamagra</a> Viagra Aumenta Dimensioni Priligy Viagra Ensemble <a href=http://inderal.ccrpdc.com/order-propranolol-pills.php>Order Propranolol Pills</a> Acheter Vrai Kamagra En Ligne 120 Mg Di Sildenafil Vendita <a href=http://kama1.xyz/sildenafil.php>Sildenafil</a> Costi Finasteride Propecia Acheter Du Clomid <a href=http://kama1.xyz/cheapest-kamagra.php>Cheapest Kamagra</a> Canadian Cheap Meds What Is Keflex Used To Treat <a href=http://cial1.xyz/buy-cheap-cialis-pills.php>Buy Cheap Cialis Pills</a> Zithromax Online

comment:6 Changed 15 months ago by RalphCleks

generic cialis online pharmacy canada

<a href="http://buycialisgenericbsl.com/">cialis generic</a>

how much do 5mg cialis cost

<a href=http://buycialisgenericbsl.com/>http://buycialisgenericbsl.com/</a>

Note: See TracTickets for help on using tickets.