[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/46592: lib/libc/sys/t_mmap cause kernel panic
The following reply was made to PR kern/46592; it has been noted by GNATS.
From: yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi)
Cc: gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Subject: Re: kern/46592: lib/libc/sys/t_mmap cause kernel panic
Date: Fri, 15 Jun 2012 02:51:36 +0000 (UTC)
> but it looks like the intend of the code was to set the size for both block
> char disk devices, so I'm not sure what the right thing to do here really is.
unless we want to revive checkalias, a fix would be
- use bdev_type for VBLK
- defer sd_opencnt-- logic for VBLK to somewhere later so that
it covers mmap. probably spec_inactive?
- before decrementing sd_opencnt, flush caches.
Main Index |
Thread Index |