public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Framebuffer, mmap(), hanging in D state, root FS unmount failure.
@ 2001-12-27 19:50 Mark J Roberts
  2001-12-29  0:23 ` Andrew Morton
  0 siblings, 1 reply; 38+ messages in thread
From: Mark J Roberts @ 2001-12-27 19:50 UTC (permalink / raw)
  To: linux-kernel

#include <assert.h>
#include <sys/mman.h>
#include <fcntl.h>
int main(void)
{
	char *p;
	assert((p = mmap(0, 1, PROT_READ|PROT_WRITE, MAP_SHARED, open("/dev/fb/0", O_RDWR), 0)) != MAP_FAILED);
	p[4096] = 0; /* this hangs */
	return 0;
}

When I run this on my 2.4.17rc2aa2 kernel with a Voodoo3000
framebuffer, the process hangs forever in D state. ps and top will
then hang the same way when they read the /proc/pid files for the
hung process. And my root filesystem won't unmount.

It only happens when PROT_READ|PROT_WRITE is specified - when I use
only PROT_WRITE, the program segfaults like you'd expect.... but
once the PROT_READ|PROT_WRITE version has hung, PROT_WRITE-only
versions will also hang.

^ permalink raw reply	[flat|nested] 38+ messages in thread
* Re: [patch] Re: Framebuffer...Why oh Why???
@ 2002-01-07  6:36 Zwane Mwaikambo
  2002-01-07 11:11 ` Marco Ermini
  0 siblings, 1 reply; 38+ messages in thread
From: Zwane Mwaikambo @ 2002-01-07  6:36 UTC (permalink / raw)
  To: markoer; +Cc: werner.lx, Linux Kernel

Do you have CONFIG_MTRR enabled?

Regards,
	Zwane Mwaikambo



^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2002-01-07 11:12 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-27 19:50 Framebuffer, mmap(), hanging in D state, root FS unmount failure Mark J Roberts
2001-12-29  0:23 ` Andrew Morton
2001-12-30  8:34   ` [patch] " Andrew Morton
2001-12-30 21:13     ` [patch] Re: Framebuffer...Why oh Why??? Timothy Covell
     [not found]       ` <3C2F8727.5D4AAE21@zip.com.au>
2001-12-30 22:27         ` Timothy Covell
2001-12-31  1:51           ` James Simmons
2001-12-31  2:49             ` Andrew Morton
2001-12-31  3:23               ` James Simmons
2001-12-31 12:07               ` Geert Uytterhoeven
2001-12-31 13:18                 ` Alan Cox
2001-12-31 21:53                   ` Oliver Xymoron
2001-12-31  0:19       ` Linus Torvalds
2001-12-31  1:54         ` [Linux-fbdev-devel] " James Simmons
2001-12-31  8:03         ` gmack
2001-12-31  9:05         ` Benjamin Herrenschmidt
2001-12-31 21:41         ` Rob Landley
2002-01-01  7:00           ` Werner Puschitz
2002-01-03 22:26             ` Marco Ermini
2002-01-04 13:27               ` [OT] " Tommi Kyntola
2002-01-04 14:04                 ` Marco Ermini
2002-01-01  7:00           ` Timothy Covell
2002-01-01 10:42             ` Alan Cox
2002-01-01 20:36               ` Rob Landley
2002-01-02 11:36               ` Daniel Phillips
2002-01-01 14:31           ` Marius Gedminas
2001-12-31 21:42         ` Scott McDermott
2001-12-31 21:56           ` Arnaldo Carvalho de Melo
2001-12-31 22:26             ` James Simmons
2001-12-31 22:31               ` Arnaldo Carvalho de Melo
2002-01-01  2:43                 ` Bill Nottingham
2002-01-01  6:15                   ` Arnaldo Carvalho de Melo
2002-01-01 18:42                   ` Joachim Steiger
2002-01-01 10:21                 ` Alan Cox
2002-01-01  0:23         ` Ken Moffat
2002-01-01  7:03           ` Timothy Covell
2001-12-31 12:10       ` Geert Uytterhoeven
  -- strict thread matches above, loose matches on Subject: below --
2002-01-07  6:36 Zwane Mwaikambo
2002-01-07 11:11 ` Marco Ermini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox