lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200902092334.48635.nickpiggin@yahoo.com.au>
Date:	Mon, 9 Feb 2009 23:34:47 +1100
From:	Nick Piggin <nickpiggin@...oo.com.au>
To:	wixor <wixorpeek@...il.com>
Cc:	Alexey Dobriyan <adobriyan@...il.com>,
	Arjan van de Ven <arjan@...radead.org>,
	JosephChan@....com.tw, linux-kernel@...r.kernel.org
Subject: Re: viafb triggers BUG at mm/vmalloc.c:294 [kernel 2.6.28.3]

On Monday 09 February 2009 22:48:22 wixor wrote:
> Okay, I'm not quite sure what's happening here (i'm not kernel
> developer). That's that I've done:
>     printk(KERN_DEBUG "alloc_vmap_area(%lu, %lu, %p,
> %p)\n",size,align,vstart,vend);
> at the very beginning of alloc_vmap_area,
>     printk(KERN_DEBUG "alloc_vmap_area: allocated %p -
> %p\n",va->va_start, va->va_end);
> at very end and
>         WARN(1,KERN_WARNING "alloc_vmap_area failed\n");

Great, thanks.

alloc_vmap_area(268439552, 524288, f0690000, fffaa000)
vmap allocation failed: use vmalloc=<size> to increase size.
------------[ cut here ]------------
WARNING: at mm/vmalloc.c:395 alloc_vmap_area+0x25d/0x2a0()
alloc_vmap_area failed
Modules linked in: viafb(+) fb i2c_algo_bit cfbcopyarea cfbimgblt cfbfillrect 
af_packet p4_clockmod speedstep_lib loop sr_mod cdrom wlan_scan_sta 
snd_hda_intel rtc_cmos rtc_core rtc_lib pcspkr ath_rate_sample snd_pcm psmouse 
ath_pci evdev ehci_hcd snd_timer snd_page_alloc snd_hwdep snd wlan ath_hal(P) 
soundcore uhci_hcd i2c_viapro via_rhine mii i2c_core usbcore pata_via video 
backlight output fan battery ac thermal button processor thermal_sys hwmon 
via_agp agpgart unix
Pid: 1740, comm: modprobe Tainted: P       A   2.6.28.3-dsdt-fix #17
Call Trace:
 [<c01200df>] warn_slowpath+0x6f/0x90
 [<c0243ba0>] vt_console_print+0x0/0x2f0
 [<c0120383>] __call_console_drivers+0x43/0x50
 [<c01111e0>] lapic_next_event+0x10/0x20
...
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<c0116e53>] __ioremap_caller+0x1c3/0x350
 [<c0205209>] pci_get_subsys+0x59/0x80
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<c0117138>] ioremap_nocache+0x18/0x20
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<f08b5000>] viafb_init+0x0/0xf40 [viafb]
 [<c0101126>] do_one_initcall+0x36/0x1b0

So this path is trying to allocate 256MB of vmalloc space. Even if you did
have enough to satisfy the request, it would leave almost nothing left and
use up a huge amount of precious 32-bit kernel virtual memory.

Does viafb really need to ioremap 256MB? This isn't going to work so 
well on 32-bit systems... Either we should come up with a way to window
into the memory, or otherwise add some sane limits for 32-bit.


> before returning EBUSY. Full dmesg attached. What still bugs me is
> that video ram is allocated from system memory by bios. Does the
> kernel know that and does it try to allocate the framebuffer in that
> "video ram"?

I'm not the one to ask here, but perhaps if you can turn down the memory
size in the BIOS, the driver will use less KVA.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ