| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ensure that io to a file backing a vnd is IO_SYNC, so IO to a
vnd device is both synchronous and not cached in the buffer cache.
This allows the "mount" regress to work repeatably, and avoids
a situation where when the buffer cache cleaner runs to clear
dirty buffers while people are waiting, it actually increases the
dirty buffers when the writes to the underlying vnd are also
delayed.
ok bluhm@
|
|
|
|
|
|
|
| |
vn_open when vnconfig'ing from a read-only filesystem. This bug has
been with us for a long time and was spotted by Kawamata Yoshihiro
<kaw@on.rim.or.jp> after recent changes making vn_open more
picky about the structure it is called with.
|
|
|
|
|
|
|
|
| |
sweep tree to correct NDIINT op and flags ahead of time. document
the requirement. This allows KERNELPATH to be used to bypass
unveil for crash dumps with nosuidcoredump=2 or 3
ok visa@ deraadt@ florian@
|
|
|
|
|
|
|
| |
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.
OK mpi@, deraadt@
|
|
|
|
|
|
|
| |
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
|
|
|
|
| |
ok deraadt@ krw@
|
|
|
|
|
|
| |
via ioctl are 0.
Noticed by bluhm
ok bluhm millert
|
|
|
|
|
| |
Found by Ilja Van Sprundel
ok claudio kettenis
|
|
|
|
|
|
| |
struct proc to struct process.
ok deraadt@ kettenis@
|
| |
|
| |
|
|
|
|
|
|
|
| |
Introduce a new ioctl for VNDIOCSET, the old ioctl will stay around for
a bit to cope with old vnconfig/mount_vnd.
ok deraadt@
|
|
|
|
| |
ok kettenis@ tedu@
|
|
|
|
|
|
| |
torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt
|
|
|
|
| |
allocation is clearly spelled out as ptr = malloc(sizeof(*ptr), ...)
|
| |
|
|
|
|
| |
ok tedu@ deraadt@
|
| |
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
| |
%u for u_int32_t d_secsize.
|
|
|
|
|
|
| |
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
|
|
|
|
| |
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
|
|
|
|
| |
identify bad distrib scripts/tools.
ok deraadt@
|
|
|
|
| |
Verified by deraadt@ to fix distrib/sgi/iso.
|
|
|
|
|
| |
they do not get integer truncated on 64-bit machines.
ok matthew
|
|
|
|
|
|
|
| |
32-bit on 32-bit architectures; we need off_t to support >4GB vnd(4)
images.
Discovered by, tested, and ok bluhm@
|
|
|
|
| |
structs and calling vn_lock+VOP_READ/WRITE+VOP_UNLOCK.
|
|
|
|
|
| |
xxstrategy() methods, and punt in validating it in vndread() and
vndwrite() (also like we do in other xx{read,write}() methods...).
|
|
|
|
| |
use it instead.
|
|
|
|
| |
anymore.
|
|
|
|
| |
ok krw@
|
|
|
|
| |
bounds_check_with_label().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the logic slightly and makes vnd(4) more like any other disk driver.
To avoid races, this means vndopen() can only set VNF_HAVELABEL if
dk_openmask == 0. Otherwise, it's possible for userspace to open
rvnd0c, call VNDIOCSET, open vnd0a, then while vndreaddisklabel() (via
vndstrategy) is waiting for VOP_READ() to finish, you could issue a
read or write on the still open rvnd0c and have VNF_HAVELABEL set but
the disklabel might be in a weird state.
Note that this makes VNF_HAVELABEL nicely analogous to sd(4)/cd(4)'s
SDEV_MEDIA_LOADED flag, which is handled similarly in
{sd,cd}{open,close,strategy}.
ok dlg@, krw@, deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
| |
that they're implemented consistently in bounds_check_with_label().
Also, per krw's request, change bounds_check_with_label() to return 0
if the checks succeed, and change the drivers to test == -1 instead of
<= 0. (Man page update to follow; intentionally omitting
arch/vax/mba/hp.c from this commit because it doesn't even build
currently and miod@ promises to kill it soon.)
ok krw@
|
| |
|
|
|
|
|
|
| |
uses standard disk device numbering.
ok deraadt@
|
|
|
|
|
|
|
|
| |
before closing the vnode, because VNDRW() checks for the VNF_READONLY
bit and the vnode layer doesn't like it when you close a read-only
vnode with FREAD|FWRITE.
ok deraadt@
|
|
|
|
|
|
| |
subr_disk.c. For now just the MI disk drivers.
ok deraadt@, krw@; jsing@ liked the approach too
|
| |
|
| |
|
|
|
|
|
| |
we have problems with instantiating new disks
ok matthew
|
|
|
|
|
| |
be interrupted.
ok matthew
|
|
|
|
|
|
| |
rather than using various wrappings. Convert vnd to using the sc_dk
rwlock instead of using one of its own.
ok matthew
|
| |
|
| |
|
|
|
|
| |
ok matthew
|
|
|
|
|
|
|
|
|
| |
of silly flag twiddling code in various disk drivers.
ok deraadt@, miod@
N.B., users will need a -current disklabel(8) to be able to write new
disklabels to disk now.
|
|
|
|
|
|
|
|
|
| |
never done anything in OpenBSD and just clutters disk drivers with
silly flag handling.
More cleanup to follow.
ok deraadt@, millert@; no objections krw@
|
|
|
|
| |
ok thib matthew
|
|
|
|
| |
Spotted by matthew, verified by me.
|