[owc] Weekly src changes ending 2007-07-15
OWC
auto at squish.net
Mon Jul 16 07:00:01 BST 2007
OpenBSD src changes summary for 2007-07-08 to 2007-07-15 inclusive
==================================================================
distrib/alpha etc/ntpd.conf
games/quiz lib/libc
lib/libpthread lib/librthread
sbin/bioctl sbin/growfs
sbin/ncheck_ffs sbin/quotacheck
share/man sys/arch/hppa/conf
sys/arch/hppa/dev sys/arch/hppa/gsc
sys/arch/hppa/hppa sys/arch/hppa/include
sys/arch/mac68k/mac68k sys/arch/sgi/localbus
sys/arch/sgi/sgi sys/arch/sh/dev
sys/arch/sparc/dev sys/arch/vax/vax
sys/dev sys/dev/ic
sys/dev/microcode sys/dev/pci
sys/dev/pcmcia sys/kern
sys/net sys/net80211
sys/sys sys/ufs/ffs
usr.bin/cvs usr.bin/encrypt
usr.bin/file usr.bin/make
usr.bin/ssh usr.sbin/ospfd
usr.sbin/pkg_add usr.sbin/tcpdump
== distrib =========================================================== 01/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/distrib
alpha
~ bsd.rd/list ~ common/list
> do not put mt/eject onto small media; ok krw (deraadt@)
== etc =============================================================== 02/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/etc
ntpd.conf
~ ntpd.conf
> update URL for pool servers
> From: Pierre Riteau <pierre.riteau at free.fr> (henning@)
== games ============================================================= 03/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/games
quiz
~ datfiles/africa ~ datfiles/asia
> update some capital cities (and spelling); from Daniel Dickman (jmc@)
== lib =============================================================== 04/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/lib
libc
~ sys/poll.2
> add a STANDARDS section, as requested by itojun;
> ok otto (jmc@)
~ gen/sysctl.3
> fix typo: s/sensorsdev/sensordev/ (cnst@)
libpthread
~ uthread/uthread_stackseg_np.c
> Report the correct stack size and top for the primordial thread in
> pthread_stackseg_np(). With input and okay marc@ (kurt@)
librthread
~ rthread_np.c
> Report the correct stack size and top for the primordial thread in
> pthread_stackseg_np(). With input and okay marc@ (kurt@)
== sbin ============================================================== 05/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/sbin
bioctl
~ bioctl.8 ~ bioctl.c
> implement -q to query a scsi disk for its inquiry data (vendor, model,
> revision, serial #) and print that.
> when the default bio ioctl fails with ENOTTY because the given disk is not
> on a bio-supported raid controller, fall back to -q.
> use strnvis to sanitize inquiry data so it is safe to use in scripts.
> ok deraadt (henning@)
~ bioctl.8 ~ bioctl.c
> put -q in the right place; (jmc@)
growfs
~ Makefile
> remove -Wall (millert@)
~ Makefile
> Use -O1 for m68k to work around a gcc optimizer bug (millert@)
~ Makefile
> disable specific gcc optimization that triggers the gcc bug (millert@)
ncheck_ffs
~ ncheck_ffs.c
> correct a typo in an error message.
> use realpath(3) to sanitize the path we're going to
> work with, prevents silly errors when passing ncheck_ffs
> paths from the shell with a trailing '/' since that
> doesnt match the entry in fstab.
> ok deraadt@,krw@ (thib@)
quotacheck
~ quotacheck.c
> ffs2 support from FreeBSD. Tested by jmc@ and kili@ (millert@)
== share ============================================================= 06/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/share
man
~ man4/wpi.4
> change firmware loading code to adopt the new 2.14.4 firmware layout.
> while i'm here, fix allocation of the Rx ring descriptors so we don't
> waste memory.
> IMPORTANT: you must upgrade your wpi-firmware package to rev. 2.14.4
> or the driver will stop working. (damien@)
~ man4/wpi.4
> fix firmware file name to match reality. (damien@)
~ man8/compat_linux.8
> we use fedora instead of redhat these days
> from Arnaud Bergeron <abergeron at gmail.com> (sturm@)
~ man4/man4.sparc/pninek.4 ~ man4/man4.sparc/pnozz.4
> Reenable accelerated text console primitives on pnozz if running with a
> 800x600 panel, and document the acceleration code as currently broken on
> 640x480 panels. (miod@)
~ man4/man4.hppa/ssio.4
> Delete BUGS section; support for serial and parallel ports is there now.
> (kettenis@)
~ man4/man4.hppa/Makefile + man4/man4.hppa/lcd.4
> lcd(4) (kettenis@)
== sys =============================================================== 07/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/sys
arch/hppa/conf
~ GENERIC ~ RAMDISK
> Add bge(4). Tested by Maurice Janssen. (kettenis@)
~ files.hppa
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
~ files.hppa
> lcd(4); a driver for the front panel LCD display found on the four-digit
> B/C/J-class workstations, and many server systems.
> This is still work in progress; for now it only displays that the machine
> is running OpenBSD. Not enabled yet. (kettenis@)
arch/hppa/dev
~ com_dino.c ~ pdc.c
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
+ lcd.c
> lcd(4); a driver for the front panel LCD display found on the four-digit
> B/C/J-class workstations, and many server systems.
> This is still work in progress; for now it only displays that the machine
> is running OpenBSD. Not enabled yet. (kettenis@)
arch/hppa/gsc
~ com_gsc.c
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
arch/hppa/hppa
~ machdep.c
> Don't trust the privilige level in the sigcontext passed to sigreturn(2).
> ok miod@ (kettenis@)
~ machdep.c
> Make sigreturn(2) set the proper space ID for the instruction queue. Fixes
> a few more pthreads regression tests.
> ok miod@ (kettenis@)
~ conf.c ~ machdep.c
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
~ mainbus.c
> lcd(4); a driver for the front panel LCD display found on the four-digit
> B/C/J-class workstations, and many server systems.
> This is still work in progress; for now it only displays that the machine
> is running OpenBSD. Not enabled yet. (kettenis@)
arch/hppa/include
~ param.h
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
~ pdc.h
> Add PDC_CHASSIS_INFO and associated structures. (kettenis@)
arch/mac68k/mac68k
~ disksubr.c
> Try reading a native label in the first sector, before trying to find
> MBR-like partitions. (miod@)
~ clock.c
> When calibrating the delay const, only allow clock and above interrupts.
> This fixes infrequent hangs on reboot due to the ethernet interface
> interrupting
> on machines configured to use A/UX style interrupts. (miod@)
arch/sgi/localbus
~ macebus.c
> change the behaviour of the LED on the O2 so that it's red in user mode
> and green when idling.
> from Joel Sing <joel at ionix.com.au>
> ok miod@ (jasper@)
arch/sgi/sgi
~ disksubr.c
> Don't brelse() a buf we don't own in readsgilabel() by mistake. (miod@)
arch/sh/dev
~ shpcic.c
> Remove unused shpcic_intr_establish() and friends. (miod@)
arch/sparc/dev
~ p9100.c
> Reenable accelerated text console primitives on pnozz if running with a
> 800x600 panel, and document the acceleration code as currently broken on
> 640x480 panels. (miod@)
arch/vax/vax
~ disksubr.c
> Do not compile disk_reallymapin() unless it is really needed. (miod@)
dev
~ audio.c
> give the user what they expect instead of what we're working with
> by taking into account expansion we may have done in cases such as
> playing monoaural media on a device that only plays stereo, like
> auich(4). (jakemsr@)
~ audio.c
> take into account possible expansion and be more careful not to
> try to go past the end of the buffer.
> this and the last commit allow ffplay and gnash to work properly
> on devices that may need to do mono to stereo conversion, like
> auich(4).
> problem reported by and much debugging deanna@ (jakemsr@)
~ audio.c
> fix the bug rev 1.56 uncovered and rev 1.62 worked around.
> data is expanded before it goes in the buffer. all sizes
> and offsets used internally are of this expanded data.
> there's no need to compensate for this fact except when
> showing information to the user in case their actions
> depend on how many bytes are in the buffer. (jakemsr@)
~ audio.c
> - ANSI function declarations
> - remove argument names from function prototypes
> OK jasper@, ray@, "Didn't notice any errors" marc@ (jakemsr@)
dev/ic
~ aic6360.c
> ansify/de-register
> ok krw@ (jasper@)
~ ac97.c
> don't always spew massive debug messages just because AUDIO_DEBUG is
> defined. (jakemsr@)
~ com.c
> Delay switching to the real serial console until we attach the serial
> device.
> The variety of different serial devices is just too big to make a decision
> up
> front. This should make the second serial port on four-digit B/C/J-class
> workstation work as a serial console too.
> ok miod@ (kettenis@)
dev/microcode
~ aic7xxx/Makefile
> As pointed out by Mickey, "-I/usr/includes" is not required for
> successful compilation of assembler or generating microcode. (krw@)
dev/pci
~ if_wpi.c ~ if_wpireg.h
> change firmware loading code to adopt the new 2.14.4 firmware layout.
> while i'm here, fix allocation of the Rx ring descriptors so we don't
> waste memory.
> IMPORTANT: you must upgrade your wpi-firmware package to rev. 2.14.4
> or the driver will stop working. (damien@)
~ emuxki.c
> emu(4) incorrectly overrides the requested recoding format, setting
> it to 16-bit slinear_le.
> this appears to be the result of a mistake in porting the driver
> from NetBSD. when this driver was ported, NetBSD had some members
> in it's 'audio_params' structure that OpenBSD doesn't have. in
> particular, NetBSD had 'hw_encoding' and 'hw_precision', which store
> what the hardware is presenting. the 'encoding' and 'precision' members
> store what the audio layer is presenting (both in NetBSD and
> OpenBSD) and can be different than what the hardware is presenting.
> the original NetBSD code was setting 'hw_encoding' and 'hw_precision',
> and in porting was changed to 'encoding' and 'precision'.
> with this change the hardware is still presenting 16-bit slinear_le;
> having the variable 'b16' set to '1' is enough to ensure this.
> however now the audio layer will convert it to the requested format,
> instead of always outputting 16-bit slinear_le. (jakemsr@)
~ if_wpi.c
> endianness (damien@)
~ arc.c
> Use the full 64 bits available when reporting sizes; now bioctl shows
> the correct size for my 4.TB volume. Original diff from dlg@ with some
> tweaks by me; ok dlg@ (otto@)
dev/pcmcia
~ if_malo.c ~ if_malovar.h
> Process scan command results. Enable 'ifconfig -M'. (mglocker@)
kern
~ vfs_bio.c
> Do not allow clustering read for filesystems which block size is smaller
> than the hardware page size, as was the case in the old clustering code.
> This fixes vnd reads on alpha and sparc64
> On behalf of pedro@, ok art@ (miod@)
net
~ pf.c
> adjust pf_find_state_all() so that it works correctly for the new global
> table/state tail queue design. corrects ftp-proxy errors "server lookup
> failed (no rdr?)" okay henning@ (kurt@)
~ pf_if.c ~ pfvar.h
> remove obsolete pfi_statehead and pfik_w_states; ok henning@ (markus@)
net80211
~ ieee80211_input.c
> properly check ieee80211_setup_rates() return code.
> some cleanup while i'm here. (damien@)
~ ieee80211_input.c
> change the way we parse IEs to make sure we never read past the end of
> the rx buffer. (damien@)
~ ieee80211_input.c
> in ieee80211_recv_assoc_resp(), do not start updating the node
> structure until the frame has been fully validated. (damien@)
~ ieee80211_input.c
> cleanup parsing of beacon and probe response mgmt frames. (damien@)
~ ieee80211_output.c
> do not increment ic_stats.is_tx_nombuf in ieee80211_get_rts() and
> ieee80211_get_cts_to_self() if mbuf allocation fails. (damien@)
~ ieee80211_crypto.c ~ ieee80211_input.c
~ ieee80211_output.c ~ ieee80211_proto.h
> update QoS Tx/Rx sequence numbers for each TID.
> add a parameter to ieee80211_decap() to handle different 802.11
> header sizes.
> cleanup and clarify ieee80211_classify(). (damien@)
~ ieee80211_crypto.c
> s/uint8_t/u_int8_t/ for consistency. (damien@)
sys
~ mbuf.h
> Replace the huge MFREE macro with a simple call to m_free(). On today's
> computer the resulting code is smaller and faster. Also remove the
> _MEXTREMOVE macro which was only used by MFREE.
> OK markus@ long time ago (claudio@)
~ mbuf.h
> Revert previous commit, it probably was intended to come with matching
> changes to uipc_mbuf.c, but right now all it causes is infinite recursion.
> (miod@)
~ disklabel.h
> Do not divide by zero in DISKLABELV1_FFS_FSIZE if the argument value is
> bogus;
> ok otto@ millert@ krw@ (miod@)
ufs/ffs
~ ffs_softdep.c
> Bring back the change in rev 1.70, it is safe now:
> Propagate the wait flag from fsync down to softdep_fsync_mountdev()
> and do not perform synchronous sync there is no wait requested by
> skipping the drain_output() call. This fixes a problem where
> update kthread would sleep forever on some vnode since work is created
> faster than it can be flushed.
> OK deraadt@ (millert@)
== usr.bin =========================================================== 08/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin
cvs
~ config.c
> Do not fatal() if the CVSROOT/config file does not exist.
> Matches GNU's behaviour. OK ray at . (xsa@)
encrypt
~ encrypt.c
> Don't trim whitespace from stdin. Encrypt it the same as other
> input sources. Feedback and fixes from ray@ and fgsch at .
> ok millert@ (six years ago) ray@ fgsch@ (krw@)
file
~ file.h ~ funcs.c
~ magic.c
> Fix possible heap overflow in file(1), aka CVE-2007-1536.
> When writing data into a buffer in the file_printf() function, the
> length of the unused portion of the buffer is not correctly tracked,
> resulting in a buffer overflow when processing certain files.
> Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
> tweaks from canacar@ and ray at . (dim@)
~ file.h ~ funcs.c
~ magic.c
TAGGED OPENBSD_4_1
> Backport security fix.
> Original commit by: dim at openbsd.org
> Original commit message:
> Fix possible heap overflow in file(1), aka CVE-2007-1536.
> When writing data into a buffer in the file_printf() function, the
> length of the unused portion of the buffer is not correctly tracked,
> resulting in a buffer overflow when processing certain files.
> Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
> tweaks from canacar@ and ray at . (ckuethe@)
~ file.h ~ funcs.c
~ magic.c
TAGGED OPENBSD_4_0
> Backport security fix.
> Original commit by: dim at openbsd.org
> Original commit message:
> Fix possible heap overflow in file(1), aka CVE-2007-1536.
> When writing data into a buffer in the file_printf() function, the
> length of the unused portion of the buffer is not correctly tracked,
> resulting in a buffer overflow when processing certain files.
> Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor
> tweaks from canacar@ and ray at . (ckuethe@)
make
~ Makefile ~ cond.c
~ cond.h ~ cond_int.h
~ defines.h ~ generate.c
~ main.c ~ make.1
~ parse.c ~ parsevar.c
~ parsevar.h ~ var.c
~ var.h
> A set of big related changes. okay millert@, tested further by kettenis@
> and matthieu@
> This all revolves around putting ALL global variables into one single big
> hash, and using flags. This removes some impossible to understand stuff,
> like old varfind, and allows for some nice stuff.
> - each time we reference a global variable, we create it, possibly as a
> dummy
> variable.
> - each time we go to the environment, we remember it, thus we no longer go
> back to it.
> Lists of dependant changes:
> - isolate changes to oldVars and checkEnvFirst.
> - remove VAR_CMD and VAR_GLOBAL contexts. The only distinction is in
> parsevar.
> Split Parse_DoVar into Parse_DoVar and Parse_CmdlineVar
> - rework var modules around obtain_global_var, observe flags in various
> functions like Var_Value and Var_Seti.
> - Var_Seti/Var_Appendi are almost the same code, use that internally.
> - add magic to handle the very special SHELL variable.
> - introduce Var_Definedi for the cases where we don't want the actual
> value, to simplify tests.
> - add keyword .poison, parse it and set global flags accordingly.
> - do poison_checks where needed.
> - document poison.
> - in for loops, set variable temporarily, so that Var_SubstVar will also
> substitute it in varmodifiers expressions. (espie@)
~ var.c
> missed part: add check to avoid poison checking inexistent local vars,
> and do for loops for real. (espie@)
~ parsevar.c ~ var.c
~ var.h
> rename variable to errorIsOkay. What does oldVars mean anyway ? (espie@)
~ parsevar.c
> repair, sorry about that (obvious typo, duh) (espie@)
~ varname.c
> indent correctly (espie@)
~ make.1
> tweaks; (jmc@)
~ Makefile
> espie, you have got to be joking (deraadt@)
ssh
~ key.c
> Delint: remove some unreachable statements, from Bret Lambert.
> OK markus@ and dtucker at . (ray@)
== usr.sbin ========================================================== 09/09 ==
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin
ospfd
~ parse.y
> make the demote count argument optional as advertised in the man page.
> (pyr@)
pkg_add
~ OpenBSD/PackingElement.pm ~ OpenBSD/Paths.pm
> - there's no point in running mkfontdir only for @fontdir ; so let's run
> mkfontscale too (and remove fonts.scale on package removal)
> discussed with matthieu@ and espie@ weeks ago
> "seems fine" pyr@, ok espie@ (ajacoutot@)
tcpdump
~ print-ppp.c
> Handle IPv6 on PPP printer, from Stuart Henderson (canacar@)
===============================================================================
More information about the owc
mailing list