NetBSD-Bugs archive
[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
hi,
> but it looks like the intend of the code was to set the size for both block
> and
> char disk devices, so I'm not sure what the right thing to do here really is.
good catch.
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.
YAMAMOTO Takashi
Home |
Main Index |
Thread Index |
Old Index