freebsd-dev/sys
David Greenman ac8d676972 Fix setdumpdev():
- the major number wasn't checked, so accesses beyond the end of bdevsw[]
  were possible.  Bogus major numbers are easy to get because `sysctl -w'
  doesn't handle dev_t's reasonably - it doesn't convert names to dev_t's
  and it converts the number 1025 to the dev_t 0x35323031.
- Driver d_psize() functions return -1 to indicate error ENXIO or ENODEV
  (the interface is too braindamaged to say which).  -1 was interpreted
  as a size and resulted in the bogus error ENOSPC.
- it was possible to set the dumpdev for devices without a d_psize()
  function.  This is equivalent to setting the dumpdev to NODEV except
  it confuses sysctl.
- change a 512 to DEV_BSIZE.  There is an official macro dtoc() for
  converting "pages" to disk blocks but it is never used in /usr/src/sys.
  There is much confusion between PAGE_SIZE sized pages and NBPG sized
  pages.  Maxmem consists of both.

Not fixed:
- there is nothing to invalidate the dumpdev if the media goes away.
  This reduces the benefits of the early calculation of dumplo.  Bounds
  checking in the dump routines is relied on to reduce the risk of
  damage and little would be lost by relying on the dump routines to
  calculate dumplo.
- no attempt is made to stay away from the start of the device to
  avoid clobbering labels.

Fix wrong && anachronistic comment about the type of bootdev.

Reviewed by:	davidg
Submitted by:	Bruce Evans
1995-05-29 04:08:13 +00:00
..
alpha/include Third round in syscons update. 1995-01-28 22:18:05 +00:00
amd64 Fix setdumpdev(): 1995-05-29 04:08:13 +00:00
compile
conf Submitted by: dufault 1995-05-28 13:24:16 +00:00
ddb Print the address associated with an examine. Changed db_maxoff to 1995-05-22 13:07:12 +00:00
dev Increased delay after reset to 10ms. Suggested by several people, the last 1995-05-27 04:40:57 +00:00
fs Fixed panic that resulted from mmaping files in kernfs and procfs. A 1995-05-25 01:35:24 +00:00
gnu Fix -Wformat warnings from LINT kernel. 1995-05-11 19:26:53 +00:00
i386 Fix setdumpdev(): 1995-05-29 04:08:13 +00:00
isa Fixed problem with "char" cursor.. 1995-05-21 18:30:05 +00:00
isofs/cd9660 NFS diskless operation was broken because swapdev_vp wasn't initialized. 1995-05-19 03:27:08 +00:00
kern Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS" 1995-05-25 07:36:24 +00:00
libkern Do not install libkern into /usr/lib, blank target install: added. 1995-03-23 07:02:14 +00:00
miscfs Fixed panic that resulted from mmaping files in kernfs and procfs. A 1995-05-25 01:35:24 +00:00
modules Changed relase number in snake_saver.c from 2.1 to 2.0.5 1995-05-16 19:10:11 +00:00
msdosfs Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu> 1995-05-09 16:30:45 +00:00
net Added a fix for a bug which caused the wrong interface to be selected 1995-05-27 04:37:24 +00:00
netccitt Fix -Wformat warnings from LINT kernel. 1995-05-11 19:26:53 +00:00
netinet These diffs modify the behaviour of multicast clients to conform with the 1995-05-16 01:28:29 +00:00
netiso Make networking domains drop-ins, through the magic of GNU ld. (Some day, 1995-05-11 00:13:26 +00:00
netns Make networking domains drop-ins, through the magic of GNU ld. (Some day, 1995-05-11 00:13:26 +00:00
nfs Fixed some serious bugs that resulted in object reference counts not being 1995-05-29 04:01:09 +00:00
nfsclient Fixed some serious bugs that resulted in object reference counts not being 1995-05-29 04:01:09 +00:00
nfsserver Fixed some serious bugs that resulted in object reference counts not being 1995-05-29 04:01:09 +00:00
pci Fixed bugs in multicast address handling (flag was set in wrong register, 1995-05-26 02:02:44 +00:00
powerpc/include Don't define CLK_TCK here. 1995-02-03 21:49:18 +00:00
rpc
scsi Fix -Wformat warnings from LINT kernel. 1995-05-11 19:26:53 +00:00
sys Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
tools
ufs Mount MFS as root RW. Remounting doesn't make sense. 1995-05-29 03:27:37 +00:00
vm Removed check for sw_dev == NODEV; this is a normal condition for swap 1995-05-25 03:38:11 +00:00
Makefile