Commit Graph

151885 Commits

Author SHA1 Message Date
elad
5ec8c535f2 PR/34648: Nino Dehne: Kernel panic when using NFS root and configuring an
interface that needs firmware

Firmload routines were using FSCRED, which in this case would get to the
NFS code and dereferenced, resulting in a panic. Use the credentials from
the LWP instead.
2006-09-30 12:47:32 +00:00
yamt
11ac1566d0 - KERNEL_LOCK_ASSERT_LOCKED: check cpu_biglock_count as well.
- implement KERNEL_LOCK_ASSERT_UNLOCKED.
2006-09-30 11:59:37 +00:00
yamt
3606cbeb14 constify ttydefchars. 2006-09-30 11:58:44 +00:00
pavel
338033d1c7 revert change of default shell, reguested by agc@. 2006-09-30 11:47:00 +00:00
elad
53ca07b4d7 If Veriexec enforces access type, don't allow mmap() to use PROT_EXEC on
files that don't have the "indirect" flag. Also change the "library" alias
in veriexecctl(8) to mean "file, indirect".

okay blymn@
2006-09-30 10:56:31 +00:00
pavel
4d8dbf3bf0 Change the default shell to /bin/ksh, which is our best interactive
shell at the moment. Proposed on tech-userlevel and approved by hubertf@.
2006-09-30 10:50:32 +00:00
pavel
3b850c18c8 in userinfo, initialize buf (the buffer which will hold group names)
to be a null-terminated string. Otherwise, if the user is not a member
of any secondary groups, buf is completely uninitialized and userinfo
adds garbage to the list of groups printed.
2006-09-30 10:44:55 +00:00
yamt
3545644943 more todo. 2006-09-30 09:07:45 +00:00
yamt
1da8d3a36e note what's this. 2006-09-30 09:03:19 +00:00
yamt
a5c3459e65 implementations of some replacement algorithms for comparison. 2006-09-30 09:00:00 +00:00
yamt
2ebf73755e a script to modify a list so that it uses small numbers as far as possible.
useful when feeding real world examples into a hackish code like lirs.c
which can't handle large numbers.
2006-09-30 08:57:17 +00:00
yamt
adf92c530f implementations of some replacement algorithms for comparison. 2006-09-30 08:50:32 +00:00
yamt
538ff1a080 an artificial access pattern generator. 2006-09-30 08:48:17 +00:00
yamt
94330f3fe8 a simple program to test uvm_pdpolicy_*.c in userland. 2006-09-30 08:47:39 +00:00
tsutsui
19aaf84f7e Mention that m68k and mips has been switched to GCC4.
(They will be moved to CHANGES.prev once after pulled up to netbsd-4)
2006-09-30 04:07:27 +00:00
seanb
dfb8aa55d3 - Avoid array overrun in kfilter_byname_user() when all user
kfilter slots are used: no guarantee previously that last
  slot had a NULL name.
- Reuse previously deregistered user kfilter slots in
  kfilter_register().
2006-09-30 02:39:18 +00:00
macallan
18bbc9e1d3 mention ofctl(8) and timecounter on macppc 2006-09-30 01:09:07 +00:00
cube
55269b80c3 Grab a couple of lines from OpenSSH-portable that allow PAM authentication
to succeed.  I guess the default configuration of NetBSD wasn't tested
before the import...
2006-09-29 22:47:21 +00:00
macallan
ed1eed3512 add timecounter support, mostly from prep. 2006-09-29 22:20:08 +00:00
manu
efb59e1b32 Fix the fix: handle_recv closes the socket, so we must call com_init before
sending any data.
2006-09-29 21:39:35 +00:00
cube
86f0ff14cc Regen. 2006-09-29 20:49:48 +00:00
cube
a556b65796 Add ids of devices found in the nForce 570 chipset.
Add GeForce 6200LE.
2006-09-29 20:48:41 +00:00
apb
9eda896a8f Use ${HOST_SH}, not just sh, in the shell command to set MAGDIRF. 2006-09-29 20:20:47 +00:00
apb
9a724f1a2d Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Don't use GROFF_CSH_HACK.  It would change the "#! /bin/sh" to just
  ":", and this causes trouble for some shells.  For example, if
  CONFIG_SHELL=/bin/ksh, when the groff build uses ${CONFIG_SHELL} to
  run a script that has been modified in this way, ksh sees the ":" and
  decided to run the script under /bin/sh instead.

* Use SH_SCRIPT_SED_CMD="1s,/bin/sh,${CONFIG_SHELL},"
  to edit the "#! /bin/sh" line, to ensure that scripts
  are always run under the correct shell.
2006-09-29 20:19:40 +00:00
apb
9130d905da Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Pass MAKE and CONFIG_SHELL in the environment to configure scripts
  that are run as part of the gcc3 and gcc4 build.
2006-09-29 20:14:10 +00:00
apb
0de1d80a7e Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} ${rootdir}/move-if-change
  instead of just ${rootdir}/move-if-change.
2006-09-29 20:12:32 +00:00
macallan
e4bbe76d49 fix typo 2006-09-29 20:12:01 +00:00
apb
da8e22116c Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} instead of just /bin/sh when creating
  temporary shell scripts.
2006-09-29 20:11:07 +00:00
apb
cb575a16ce Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Add CONFIG_SHELL=$(SHELL) to the environment when invoking genmultilib.
  Due to substitutions made by associated configure scripts, the make
  variable $(SHELL) will actually refer to the environment variable
  ${CONFIG_SHELL}.
2006-09-29 20:10:01 +00:00
apb
f90c5ef1d5 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Explicitly use $(SHELL) to run shell scripts.

* Use SHELL = @SHELL@, not SHELL = /bin/sh.  @SHELL@ will be substituted
  by associated configure scripts, and will actually refer to the
  environment variable ${CONFIG_SHELL}.
2006-09-29 20:08:36 +00:00
plunky
a9ed4719e4 Fix it so that PINs are single use only.
This is important when you generate a random PIN and can't remember it.
2006-09-29 20:06:11 +00:00
apb
01948befcb Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* _PATH_BSHELL from the host's <paths.h> might be broken, so override it
  with our PATH_BSHELL, which is derived from HOST_SH.
2006-09-29 20:00:15 +00:00
apb
be15399d6a Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Describe the HOST_SH variable, and the way build.sh attempts to set it.

* Suggest passing HOST_SH in the environment if /bin/sh is not a working
  shell.
2006-09-29 19:57:04 +00:00
apb
1889c0e175 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Try to guess a suitable value for HOST_SH, if it was not set in
  the environment.  First try host-specific heuristics (Solaris has
  /usr/xpg4/bin/sh); then try to find the name of the shell that was used
  to run build.sh itself (by parsing the output from ps -p $$ -o comm);
  then fall back to "sh".

* Having found a value for HOST_SH, copy it to BSHELL and CONFIG_SHELL.

* Use ${HOST_SH} instead of /bin/sh when creating the make wrapper.

* Use ${HOST_SH} instead of unqualified sh when running shell scripts.
2006-09-29 19:53:54 +00:00
christos
804dfaa036 Coverity CID 2960: Don't print NULL vnode (from Arnaud Lacombe) 2006-09-29 19:41:16 +00:00
dsl
4bde2b5d8d Redraw the 'welcome' message when we redisplay the 'utility' menu.
Otherwise it will sit atop the last data output by the last executed
utility.  Even a blank screen looks funny.
2006-09-29 19:41:07 +00:00
christos
1d0edbd583 Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref 2006-09-29 19:39:43 +00:00
dsl
a178085551 Reap any dead children that we have at startup.
If there are any undead ones set a flag so we don't report the 'Child (pid)
not in table' message when they die - it is impossible to (portably) find
the childrens pids.
This happens when make is run as 'make -f- ... <<EOF' and the shell uses
a child of (what will be) make to write the data into a pipe.
2006-09-29 19:38:48 +00:00
christos
f1a4e9cae0 Coverity CID 2949: comment out dead code (from Arnaud Lacombe) 2006-09-29 19:37:11 +00:00
macallan
8c774caf8c Add gimpy's OF device tree dumping tool.
Tested on macppc and sparc64
2006-09-29 19:03:11 +00:00
tsutsui
7db79c4e79 - KNF
- u_intNN_t -> uintNN_t
- misc cosmetics
2006-09-29 18:56:29 +00:00
plunky
ebb327f7cd back off previous changes since the 'memory leak' fix - we dont need any of
that, just use the _nocopy version of the function.
2006-09-29 18:48:17 +00:00
christos
e02941da8f Coverity CID 2714: Fix reversed test (from Arnaud Lacombe) 2006-09-29 18:40:57 +00:00
christos
f89dbcf8f7 Coverity CID 2435: Add KASSERT before NULL deref (from Arnaud Lacombe) 2006-09-29 18:30:37 +00:00
tsutsui
60abfbb6b9 ANSIfy. 2006-09-29 18:27:51 +00:00
tsutsui
0afee5cb99 TAB/space cleanup. 2006-09-29 18:20:02 +00:00
christos
8da6ea8890 Check for cert being NULL too. 2006-09-29 17:07:32 +00:00
christos
a0feefba6a Avoid buffer overflow. 2006-09-29 17:02:04 +00:00
tsutsui
ab86520375 Set a timeout only if any TX packet is actually queued. 2006-09-29 16:46:49 +00:00
tsutsui
7d6d7a0b22 rtk_intr() should return 1 only if any interrupts are actually handled. 2006-09-29 16:40:15 +00:00