Commit Graph

153904 Commits

Author SHA1 Message Date
uwe 13117244bf Recompile. Important fixes since the previous version (according to
my archive of commit mail):

Take DST into account when computing bi.timezone offset, so that
NetBSD gets correct time when booted in the summer.

Fix framebuffer address for Jornada 7xx machines, so that you can boot
with layouts other than "Japanese" (which happened to have the
framebuffer address in its entry).

Fix a bug where ksyms were not loaded correctly, which also caused the
kernel to not recognize detached miniroot.

Kludge required memory size calculations to compensate for partially
filled tagged pages, or kernel with certain segment sizes wouldn't
load.

[hpcarm have picked up some of these fixes in hpcboot v14 that was
compiled/committed in the meanwhile, for hpcarm only].
2006-11-14 23:20:18 +00:00
apb 324b3b8a78 Fix error in previous. Pass 1 needs to use progress_setrange(),
not progress_sethighlim().
2006-11-14 22:51:11 +00:00
dogcow ea8336c632 As uwe points out, it looks like the L on the version constant was
accidentally removed. Add it back, especially as the documentation still
claims that the constant is a long.
2006-11-14 22:30:33 +00:00
bouyer 70aa8a0541 vn_lock() the vnode we got from bdevvp(), otherwise if something else uses
this device in userland (e.g. qemu-dm when running a HVM guest), we'll reuse
the existing vnode and we'll panic in VOP_UNLOCK(). We don't have this issue
most of the time because when xbdback is the only user, we get a specfs
vnode for which locking operation are NOPs.

Thanks to Antti Kantee for spotting the missing vn_lock() in sources and
giving details about vnode locking.
2006-11-14 22:14:56 +00:00
christos 83293ad752 back to casting to long since we think that the openssl version dropping the
'L' suffix was an accident.
2006-11-14 21:54:24 +00:00
adrianp 1be366570b From http://www.openssh.org/txt/release-4.5: (CVE-2006-5794)
* Fix a bug in the sshd privilege separation monitor that weakened its
  verification of successful authentication. This bug is not known to
  be exploitable in the absence of additional vulnerabilities.

Bump __NETBSDSSH_VERSION
2006-11-14 21:52:09 +00:00
pooka 2f8a6afe2a fs du jour: sysctlfs, which mounts an equivalent of "sysctl -a" as
a fs hierarchy.  This is currently ro, lacking features, and very
much unfinished in every other possible sense.  Should investigate
if this can share code with sbin/sysctl so that everything must
not be rewritten.
2006-11-14 21:37:36 +00:00
apb f93df16b06 Improve the progress bar displayed by fsck_ffs -p -P.
The progress bar will now travel from 0 to 20% during pass 1, from 20%
to 95% during pass 2, and from 95% to 100% during passes 3, 4, and 5.
Previously, the progress bar was not displayed at all during pass 1,
slowly traveled from 0 to about 50% during pass 2, and then very rapidly
traveled from 50% to 100% during passes 3, 4, and 5.

Note that fsck_ffs is the only user of fsck/progress.{c,h}.
2006-11-14 21:01:46 +00:00
christos ccc92a707d fix the sort order too. 2006-11-14 20:27:10 +00:00
pooka 2293b63a7e Fix a race condition with unmount where the mountpoint might disappear
from under us while waiting for syncer_lock and before we got to vfs_busy.
This happens easily e.g. when the userspace server loses its will to
live in VOP_RECLAIM, which is called from vflush() in VFS_UNMOUNT.  We
get two competing unmounters.  When the first one finishes, it releases
syncer_lock.  Now the second one tries to vfs_busy(), but is greeted
with garbage in *mp.

XXX: Technically this is a more general issue and should be fixed
elsewhere, but it's hard to trigger it with normal file systems
unless they are unmounted "simultaneously" twice and are dirty
enough for flushing to take a while.  So make a note about it in
the little black book next to the poems and postpone the crusade
for now.
2006-11-14 19:36:50 +00:00
christos 65811b35f5 openssl changed its version number from long to int; compensate. 2006-11-14 19:23:47 +00:00
christos ce725e8fad Fix signal list generation, from Jukka Salmi 2006-11-14 19:10:55 +00:00
bouyer 927492edcd wdc_sataprobe():
- wait up to 1s for SStatus_DET_DEV after SControl_DET_INIT toggle (from
  FreeBSD)
- reset the drive once we know it's there. It may be in some PM state and
  not able to properly reply to IDENTIFY. Tested by Teemu Rinta-aho,
  fixes PR kern/35049 and should also fix PR kern/35008.
2006-11-14 18:39:10 +00:00
reinoud ccc98bbca8 Export nestiobuf_iodone(). This allows nested iobufs to have a custom
call-back function that can then call the nestiobuf_iodone() to propagate.
2006-11-14 15:50:00 +00:00
ad f2097c8b0d Remove misleading sentence, to be replaced by a manual page describing basic locking rules. 2006-11-14 15:30:09 +00:00
reinoud c4b555df90 Implement/add bufq strategy setting by dkctl for the CD class devices.
Though its hardly advisable to change the CD strategy setting to anything
other than `disksort' or `prioscan' it ought to be possible.
2006-11-14 14:56:55 +00:00
martin 9013d7c51c Remove a strange #if that broke libmagic for most 64 bit archs.
OK'd by christos.
2006-11-14 14:12:24 +00:00
drochner 58cf8a6614 as on i386, don't use ":=" assignments with .OBJDIR 2006-11-14 14:09:54 +00:00
drochner ff2890767a use "=" instead of ":=" where .OBJDIR is used because it might change
later in <bsd.obj.mk>, thanks to Alan Barrett for the hint
2006-11-14 14:03:12 +00:00
elad 68f43d80fe Clean some KAUTH_GENERIC_ISSUSER usage in compat code. 2006-11-14 13:34:29 +00:00
sketch 9abb034ccc Correct spelling of SSP. 2006-11-14 12:14:46 +00:00
rpaulo 7c10983a54 Remove ifndef COMPAT_42. No objections in tech-net. 2006-11-14 12:05:55 +00:00
pooka ae357b8c97 adapt to libpuffs namespace change 2006-11-14 11:45:53 +00:00
pooka a40549faca namespace previous change under puffs_vfsnop to avoid confusions 2006-11-14 11:45:03 +00:00
pooka f173564d8b use generic dummies for sync and unmount 2006-11-14 11:27:35 +00:00
pooka 2d9b770ec5 implement unmount, sync and statvfs as dummies for file system which
couldn't care less about implementing them
2006-11-14 11:23:44 +00:00
dyoung af1a9920a0 Fix a regression in socket(2): in the BSD 4.4 security model, you
don't have to be the superuser to open a PF_ROUTE socket.

Now, 'route -n get default' works again.
2006-11-14 05:20:21 +00:00
dogcow cfe7a78c9c change uint32_t to size_t; fixes build issue on 64-bit platforms. 2006-11-14 02:55:34 +00:00
dogcow 499ac5cbee Looks like OpenSSL now uses an int instead of a long for its version
number (!?), so explicitly cast to long in case they change it back.
2006-11-14 02:41:40 +00:00
lukem 968ace8d2a /etc/postfix/post-install needs to be 555 not 444. 2006-11-14 00:04:01 +00:00
christos 448509fba1 new openssl. 2006-11-13 22:31:05 +00:00
dogcow 02ef5933d0 add TCVN to mtree from the recent i18n changes. (hi, tnozaki!) 2006-11-13 22:28:47 +00:00
xtraeme 58528a6767 regen 2006-11-13 22:03:20 +00:00
xtraeme 4eb9440ff5 Fix typo in previous (hi bouyer). 2006-11-13 22:02:58 +00:00
christos 7f29b88c81 regen 2006-11-13 22:01:59 +00:00
mrg bb915868b8 properly detect when the output fails (eg, full filesystem) and do not
delete the input file.  patch from PR#35048.
2006-11-13 21:57:59 +00:00
christos 600680c6c3 merge conflicts. 2006-11-13 21:55:36 +00:00
christos 4a5ea8ca2f import 0.9.8d 2006-11-13 21:16:04 +00:00
pooka c025c6ae8f add note to BUGS about the questionable nature of puffs_node 2006-11-13 21:09:16 +00:00
pooka c3f04e4e04 sync with change to lookup 2006-11-13 21:06:16 +00:00
pooka 0ef848220b remove special-case handling for CREATE/RENAME from lookup() - this fs
does not need it, just return ENOENT
2006-11-13 20:59:48 +00:00
pooka 93a5732221 No need to return a special value for CREATE/RENAME lookup, so just
handle ENOENT.  If there's a real error, userspace will return
something else.
2006-11-13 20:57:56 +00:00
christos 381520cf11 PR/34979: Scott Ellis: Detect 0 length name and skip it instead of infinite
loop.
2006-11-13 20:24:00 +00:00
bouyer e530856a89 Regen: add NetMos 9855 Quad UART and 1284 Printer port 2006-11-13 20:12:10 +00:00
pooka bc745833ff fix link count for rootnode broken last week 2006-11-13 20:11:36 +00:00
bouyer 5b3f17e412 Add NetMos 9855 Quad UART and 1284 Printer port 2006-11-13 20:11:10 +00:00
dyoung 2ed50f892c make the routing socket report the right source address in RTM_GET
responses when a source-address selection policy is in use.
2006-11-13 19:16:01 +00:00
dyoung 00aa0b8d95 Fix bugs in rt_get_ifa() and put aside the sequence number stuff,
which isn't ready for primetime yet.
2006-11-13 19:14:30 +00:00
ad 048c3d68d9 Tweak output slightly, and fix a bug. 2006-11-13 19:08:52 +00:00
tnozaki 74fca02cf1 avoid infinity loop, iso2022 module's stdenc_get_state_desc_generic()
never return _STDENC_SDGEN_INITIAL.
2006-11-13 19:08:19 +00:00