Commit Graph

179620 Commits

Author SHA1 Message Date
lukem 35ccf17c8c fix -Wcast-qual issues for WARNS=4 2009-04-11 12:18:45 +00:00
lukem dcbf1a1ff2 Fix WARNS=4 issues (many -Wcast-qual, one -Wsign-compare on amd64) 2009-04-11 12:16:12 +00:00
lukem 49f3b098c6 Fix WARNS=4 (-Wcast-qual -Wsign-compare -Wshadow) issues. 2009-04-11 12:10:02 +00:00
markd 270aadb75a For chown make auth checks consistent with UFS. Fixes PR kern/40933. 2009-04-11 11:59:04 +00:00
lukem 39a8950629 fix -W sign-compare issues. 2009-04-11 11:52:35 +00:00
lukem 53d5aab9a2 fix WARNS=4 issues 2009-04-11 11:26:34 +00:00
lukem eb2de0beef Resolve -Wcast-qual issues. 2009-04-11 11:10:43 +00:00
scw a73e6e5f81 Fix previous. printlp() and printclp() are not varargs functions. 2009-04-11 11:04:41 +00:00
scw 9678a68913 Invoke zs_lock_init() _after_ copying console state to avoid a later
lock-related panic.
2009-04-11 11:01:47 +00:00
lukem 94ec558cb9 fix sign-compare issue 2009-04-11 10:57:55 +00:00
scw 403ccaeac2 Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
2009-04-11 10:56:12 +00:00
lukem 31582cc99b fix -Wsign-compare and other WARNS=4 issues 2009-04-11 10:43:09 +00:00
skrll 77dafb503d Fixup two more syscalls with 64-bit args.
Remove reference to script that is supposed to do this automatically - I
don't have it.

Fixes PR/41185.
2009-04-11 09:49:23 +00:00
wiz 8216b2d443 Bump date for previous. 2009-04-11 09:44:22 +00:00
apb af9429a671 Honour the TMPDIR environment variable instead of always using /tmp
as a place to store temporary files.
2009-04-11 09:41:18 +00:00
lukem ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
lukem 6f957c8d46 fix sign-compare issue 2009-04-11 07:55:35 +00:00
lukem ad5ee40a86 fix WARNS=4 issues 2009-04-11 07:51:59 +00:00
lukem 002fe60580 fix sign-compare issues 2009-04-11 07:40:37 +00:00
lukem ccc69cfd56 fix sign-compare issue 2009-04-11 07:37:50 +00:00
lukem 8e2fe69844 fix sign-compare issues 2009-04-11 07:31:21 +00:00
lukem 6978bdec0e fix sign-compare issues 2009-04-11 07:20:09 +00:00
lukem 9e6bf7d7cc fix sign-compare issue 2009-04-11 07:16:30 +00:00
lukem a2b5923e3e fix sign-compare issues 2009-04-11 06:59:18 +00:00
lukem cefb0777de fix sign-compare issues 2009-04-11 06:48:36 +00:00
perry e4c34b0c5f SAVENAME was not set for rename and delete as required
Patch from christos, fixes pr 41183
2009-04-11 00:21:57 +00:00
tsutsui 20bc92487c Fix typo. 2009-04-10 23:30:57 +00:00
wiz 24e269dafa Split Nm over two lines. 2009-04-10 23:24:35 +00:00
wiz dfc0d0bdf2 Drop trailing whitespace. 2009-04-10 23:22:30 +00:00
christos 53439fb0dd bump libc for memrchr and glob_pattern_p 2009-04-10 23:19:26 +00:00
christos 6a466e7b71 add memrchr 2009-04-10 23:16:30 +00:00
christos 5207347451 Add a special lint stub for __sigaction14 which broke when we switched
to sigaction_sigtramp.
2009-04-10 23:14:58 +00:00
christos d4bf2b400d take the opportunity of the glob_pattern_p and add memrchr. 2009-04-10 23:14:07 +00:00
christos 3cf907e2b2 add memrchr 2009-04-10 23:13:38 +00:00
perry ce40f4f667 add (commented out) options LOCKDEBUG 2009-04-10 23:01:46 +00:00
perry 108f1637cb add commented out LOCKDEBUG 2009-04-10 23:00:53 +00:00
christos 84e3ca2d14 add memrchr 2009-04-10 23:00:52 +00:00
perry 167ca18cb2 LOCKDEBUG docs. Written by joerg. 2009-04-10 22:58:33 +00:00
ad 9f19801f75 add boilerplate missed in initial commit 2009-04-10 22:29:30 +00:00
ad d4b3790270 update for logging 2009-04-10 22:28:48 +00:00
ad 4caa909fff softdep is gone 2009-04-10 22:26:10 +00:00
ad 48f3755607 Sync with reality and be a bit less literal. 2009-04-10 21:30:24 +00:00
ad 81e91ba313 Remove ref to WAPBL_DEBUG_SERIALIZE. 2009-04-10 21:14:14 +00:00
perry f6bc268dff Make this reflect reality more -- next-server is necessary, there is
now this boot.cfg thing, etc. Also add a reasonable hint on how to set
up dhcp for booting install kernels via tftp.
2009-04-10 21:11:28 +00:00
perry 10604079d9 Check the size of the offered boot.cfg file. Bail out if it is larger
than 32k.

A bootconf file is normally only a few hundred bytes long. If it is
much bigger than expected, we can't load it into an 8086 real mode
segment anyway.

Much more to the point, in the pxeboot case, someone may have
configured their dhcpd to return the filename for the kernel, not
realizing that the filename is now for boot.cfg which didn't used to
be the case. If we try to load the kernel here, thinking it is
boot.cfg by accident, the boot loader will die ignominiously and
without much of an error message, so we don't want to do that.

This needs to be pulled up to 5.0 if 5.0 has all this machinery
-- I'm not sure whether it does.
2009-04-10 19:41:41 +00:00
bouyer 615c2e4e8d PR kern/41154: possible races in NFS server code
Fix some of the races (but probably not all of them) in the NFS server code.
nfssvc_nfsd(): change a splsoftclock()/spx() to mutex_enter/exit(&nfsd_lock)
 (I guess it was forgotten when the nfsd code was made SMP safe)
m_freem(nd_nam) in nfsrv_slpderef() instead of nfsrv_zapsock() to
 avoid possible use after free in nfssvc_nfsd()
Fix nfsrv_slpderef() to not release  nfsd_lock before testing SLP_VALID
 and reaquiring it just after. This could cause a use after free
 of the slp if one thread is in nfsrv_slpderef() and the other one grabs
 slp from nfssvc_sockpending and zap it.
2009-04-10 19:04:14 +00:00
bouyer 2f4b50f71c PR kern/41158: nfs_rename() locking against myself
nfsrv_rename() can exit without calling genfs_renamelock_exit() because
the nfsm_reply() can do return (0) on error.
Change nfsm_reply to use 'error = 0; goto nfsmout' instead.
Fix a few place so it's safe to goto nfsmout from nfsm_reply, or other
macros calling it.
As a side effect it could fix a missing vrele(dirp) in various place where
nfsm_reply could return(0).
2009-04-10 18:58:50 +00:00
wiz eb506f3e76 New sentence, new line. Use Sq for quoting single characters. Quote <> for
HTML. Whitespace fix.
2009-04-10 18:18:22 +00:00
wiz c1b6a79f1e New sentence, new line. Add RCS Id. Punctuation. 2009-04-10 18:15:26 +00:00
dyoung 1e6430c160 Use a PMF shutdown hook instead of shutdownhook_establish(). This ought
to stop the crash during shutdown that yamt@ reports in kern/41182.
2009-04-10 17:36:42 +00:00