Displaying 1 50 of 174,597 commits (0.016s)

OpenBSD — sys/arch/octeon/dev cn30xxgmx.c if_cnmac.c

Map ASX registers only if link control needs them.

ok mpi@

OpenBSD — sys/arch/arm/mainbus mainbus.c

use fdt "model" string for hw.product
ok kettenis@
Delta File
+10 -4 sys/arch/arm/mainbus/mainbus.c
+10 -4 1 file

OpenBSD — sys/arch/macppc/dev smu.c

Add support for new smu-firmware fan commands.  This fixes wrong sysctl
hw.sensors fan values seen on macppc models with a new smu-firmware.

Help and ok kettenis
Delta File
+112 -37 sys/arch/macppc/dev/smu.c
+112 -37 1 file

OpenBSD — sys/arch/octeon/dev cn30xxgmx.c

The same MAC filter setup code should work with all PHY link types.
Remove unnecessary abstraction.

ok mpi@
Delta File
+108 -128 sys/arch/octeon/dev/cn30xxgmx.c
+108 -128 1 file

OpenBSD — sbin/mount mount.8

sort mount options, and shorten slightly the wxabort text;
Delta File
+7 -7 sbin/mount/mount.8
+7 -7 1 file

OpenBSD — lib/libc/arch/hppa/gen setjmp.S, lib/libc/arch/powerpc/gen setjmp.S

Only require 4 byte alignment on ILP32 archs

OpenBSD — distrib/armv7/ramdisk install.md Makefile, etc/etc.armv7 Makefile.inc

Stop building u-boot kernel and ramdisk images.  The kernel make targets
are left for now but umg files are no longer built when building
releases.

OpenBSD — lib/libc/arch/powerpc/gen setjmp.S

Use .balign instead of .align; only need 8 byte alignment not 2^8

OpenBSD — lib/libc/net getaddrinfo.3, lib/libc/sys socketpair.2

Prefer AF_* over PF_* and 'address family' over 'protocol family'

ok jung@

OpenBSD — usr.sbin/rbootd utils.c parseconf.c

Delete blocking/unblocking of signals, as the handlers now just set flags
that are tested by the main loop.

ok jca@ deraadt@

OpenBSD — usr.bin/mklocale mklocale.1 lex.l

Eat all blanks between the VARIABLE keywords and the definition,
not just the first one.  Otherwise we end up storing the blanks.
Now the file generated by mklocale(1) is the same regardless of
whether or not the input is sent through the C preprocessor.
OK deraadt@ jca@ schwarze@

OpenBSD — sys/sys exec_elf.h

define PT_OPENBSD_WXNEEDED
Delta File
+2 -1 sys/sys/exec_elf.h
+2 -1 1 file

OpenBSD — sbin/ncheck_ffs ncheck_ffs.c

Don't pledge before opendev() and ioctl DIOCGDINFO were called.
Avoids a pledge crash with 'ncheck_ffs /dev/tty'.

deraadt agrees
Delta File
+1 -4 sbin/ncheck_ffs/ncheck_ffs.c
+1 -4 1 file

OpenBSD — sbin/tunefs tunefs.c

Don't pledge before opendev. Just leave pledge "stdio" right
afterwards.

deraadt agrees
Delta File
+1 -9 sbin/tunefs/tunefs.c
+1 -9 1 file

OpenBSD — sbin/disklabel disklabel.c

back out previous; -wAT template vnd0 fails
Delta File
+8 -3 sbin/disklabel/disklabel.c
+8 -3 1 file

OpenBSD — gnu/usr.bin/binutils-2.17/bfd elf.c elf-bfd.h, gnu/usr.bin/binutils-2.17/binutils readelf.c

-z wxneeded creates a PHDR PT_OPENBSD_WXNEEDED.  This annotation is placed
on a binary by a software builder (ie. packager) to indicate to the kernel
that this software performs W^X violations.
ok kettenis guenther millert

OpenBSD — sbin/pdisk pdisk.c

Remove all the pledge "disklabel" before ioctl DIOCGPDINFO is
called in order to avoid a pledge crash with 'pdisk /dev/tty'.
Only the pledge "stdio" right after the ioctl remains.

ok krw
Delta File
+1 -11 sbin/pdisk/pdisk.c
+1 -11 1 file

OpenBSD — usr.sbin/smtpd smtpd.c config.c

Implement the fork+exec pattern in smtpd.

The parent process forks child processes and re-exec each of them with
an additional "-x <proc>" argument.  During the early setup phase, the
parent process sends ipc socket pairs to interconnect the child
processes as needed, and it passes the queue encryption key to the
queue if necessary. When this is done, all processes have their
environment set as in the fork-only case, and they can start doing
their work as before.

ok gilles@ jung@
Delta File
+410 -92 usr.sbin/smtpd/smtpd.c
+10 -46 usr.sbin/smtpd/config.c
+11 -9 usr.sbin/smtpd/smtpd.h
+2 -13 usr.sbin/smtpd/ca.c
+2 -13 usr.sbin/smtpd/queue.c
+2 -13 usr.sbin/smtpd/scheduler.c
+6 -39 3 files not shown
+443 -225 9 files

OpenBSD — sbin/growfs growfs.c

Give growfs a chance to error out with ENOTTY before pledging disklabel.
Fixes pledge crash due to ioctl DIOCGDINFO with an inappropriate file.

looks good to deraadt
Delta File
+4 -4 sbin/growfs/growfs.c
+4 -4 1 file

OpenBSD — usr.bin/nc netcat.c

Fix pledge violation with -P s used and we need to supply a password
for an http proxy - we need tty in this case.  Found and fixed by
Anthony Coulter <bsd at anthonycoulter.name>.
ok tb@
Delta File
+12 -3 usr.bin/nc/netcat.c
+12 -3 1 file

OpenBSD — regress/sys/net/pf_fragment Makefile

comment typos

OpenBSD — usr.bin/nc netcat.c

Fix nc -verbose mode when used on a unix domain socket.
Noticed by and a modified version of fix from <attila at stalphonsos.com>
Delta File
+11 -5 usr.bin/nc/netcat.c
+11 -5 1 file

OpenBSD — lib/libc/gen signal.3

The synopsis rendered very poorly because of a "Quite Ugly but
syntactically correct" roff mess. Follow the mdoc style guide on
function pointers to improve this a little. Neglect and remove a
comment that advises against trying to fix this.

guidance and ok schwarze@
Delta File
+8 -6 lib/libc/gen/signal.3
+8 -6 1 file

OpenBSD — share/man/man4 iwm.4

Mention 3165 device support in iwm(4) man page.
Patch by Imre Vadasz.
Delta File
+2 -2 share/man/man4/iwm.4
+2 -2 1 file

OpenBSD — usr.bin/vi/cl cl_screen.c

Test if stdin is a terminal before resetting the tty state.
Diff supplied by Kai Antweiler.

OK semarie@ and deraadt@
Delta File
+3 -2 usr.bin/vi/cl/cl_screen.c
+3 -2 1 file

OpenBSD — sys/dev/pci if_iwm.c

Add support for Intel Wireless 3165 devices to iwm(4).
Patch by Imre Vadasz.
Delta File
+10 -1 sys/dev/pci/if_iwm.c
+10 -1 1 file

OpenBSD — sbin/fsck_msdos main.c

Another misplaced pledge disklabel that needs to be removed because of
a DIOCGPDINFO that could be applied to a non-disk and thus cause a
crash.  After that ioctl, the program continues with pledge "stdio".

ok beck semarie
Delta File
+1 -4 sbin/fsck_msdos/main.c
+1 -4 1 file

OpenBSD — sbin/fsirand fsirand.c

Fix a pledge abort that can be triggered by using DIOCGDINFO on a file
that is not a disk device (e.g. fsirand -p /altroot) by removing the
first of the two pledges.  The program then runs with pledge "stdio"
right after the ioctl.

ok deraadt
Delta File
+1 -4 sbin/fsirand/fsirand.c
+1 -4 1 file

OpenBSD — sbin/disklabel disklabel.c

host readlabel() above the pledge so we can avoid pledge violations
when the provided device is not a disk
ok tb@
Delta File
+3 -8 sbin/disklabel/disklabel.c
+3 -8 1 file

OpenBSD — usr.bin/lock lock.c

repair braces. from ilya.kaliman/gsoares/natano
Delta File
+3 -2 usr.bin/lock/lock.c
+3 -2 1 file

OpenBSD — sbin/disklabel disklabel.c

fix crash if filename not provided
Delta File
+3 -1 sbin/disklabel/disklabel.c
+3 -1 1 file

OpenBSD — sys/arch/amd64/stand/boot conf.c, sys/arch/amd64/stand/cdboot conf.c

crank version numbers of those bootloaders that have been changed by
the com_init fix.  ok beck deraadt

OpenBSD — lib/libc/net rcmd.3 rcmdsh.3

Delta File
+5 -5 lib/libc/net/rcmd.3
+4 -4 lib/libc/net/rcmdsh.3
+9 -9 2 files

OpenBSD — sbin/disklabel disklabel.c

Hoist the opendev() call before the pledge because it can ioctl() when
the provided path is bogus or not a device.
ok deraadt
Delta File
+7 -7 sbin/disklabel/disklabel.c
+7 -7 1 file

OpenBSD — lib/libc/net rcmdsh.c

Use getaddrinfo() instead of the non-standard gethostbyname2().
OK deraadt@ jca@ jung@ florian@
Delta File
+14 -5 lib/libc/net/rcmdsh.c
+14 -5 1 file

OpenBSD — usr.bin/mandoc cgi.c man.cgi.8

Simplify search form: minus two visible control elements, minus
one table, minus twenty lines of code, no loss of functionality.
No idea why i didn't do this earlier...
Delta File
+9 -28 usr.bin/mandoc/cgi.c
+11 -16 usr.bin/mandoc/man.cgi.8
+20 -44 2 files

OpenBSD — sys/net pf_norm.c pf.c

Backout pf.c r1.972, pf_norm.c r1.184, ok claudio

pf_test calls pf_refragment6 with dst=NULL, which is passed down to
rtable_match which attempts to dereference it.
Delta File
+2 -14 sys/net/pf_norm.c
+2 -11 sys/net/pf.c
+4 -25 2 files

OpenBSD — distrib/armv7/miniroot Makefile.inc, distrib/armv7/ramdisk install.md

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.

OpenBSD — distrib/armv7/miniroot Makefile.inc, etc/etc.armv7 disktab

use efiboot in armv7 miniroot images

OpenBSD — sys/dev/pci if_iwm.c

In iwm(4), don't parse nvram antenna data for 7k devices, they don't have it.
And don't complain if no data is provided in nvram, needed for 3165 devices.
Patch by Imre Vadasz.
Delta File
+1 -10 sys/dev/pci/if_iwm.c
+1 -10 1 file

OpenBSD — share/man/man4 iwm.4 pci.4

iwm(4) man page updates (new firmware version 16, 8260 device support)
Delta File
+8 -7 share/man/man4/iwm.4
+3 -3 share/man/man4/pci.4
+11 -10 2 files

OpenBSD — sys/dev/pci if_iwm.c if_iwmreg.h

Add support for Intel Wireless 8260 devices to iwm(4).

Firmware has been available in fw_update(1) for some time (thanks sthen!).
Tested by robert, reyk, Imre Vadasz, Bryan Vyhmeister.
Thank you, Emmanuel Grumbach, for helping me diagnose issues during development.
ok kettenis
Delta File
+713 -53 sys/dev/pci/if_iwm.c
+345 -1 sys/dev/pci/if_iwmreg.h
+11 -1 sys/dev/pci/if_iwmvar.h
+1,069 -55 3 files

OpenBSD — usr.bin/aucat aucat.c

Fix file block size rounding and ensure it's large enough to store a
full audio block.
Delta File
+1 -1 usr.bin/aucat/aucat.c
+1 -1 1 file

OpenBSD — usr.sbin/arp arp.c, usr.sbin/dhcpd bpf.c

Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).
ok deraadt jca

OpenBSD — sys/dev/usb uvideo.c

Do the endpoint verification before opening the pipe on the selected
alternate interface endpoint instead statically on interface 0.
Fix duplicate DPRINTF output while there.

Initial diff from Patrick Keshishian, thanks!
Delta File
+6 -8 sys/dev/usb/uvideo.c
+6 -8 1 file

OpenBSD — sys/kern kern_descrip.c

add sizes to free() calls for descrip tables
Delta File
+11 -7 sys/kern/kern_descrip.c
+11 -7 1 file

OpenBSD — sys/dev softraid_crypto.c

no need to open key disk for writing, from bytevolcano. ok jung
Delta File
+2 -2 sys/dev/softraid_crypto.c
+2 -2 1 file

OpenBSD — usr.bin/tmux screen-write.c

Padding cell is always the same so use a static.
Delta File
+6 -5 usr.bin/tmux/screen-write.c
+6 -5 1 file

OpenBSD — usr.bin/tmux screen-write.c

Break the save-last-cell code into a separate function (so it can be
called conditionally later).
Delta File
+45 -38 usr.bin/tmux/screen-write.c
+45 -38 1 file

OpenBSD — usr.bin/tmux utf8.c

Most of the utf8_data is fixed so simplify utf8_set to use a memcpy.
Delta File
+3 -9 usr.bin/tmux/utf8.c
+3 -9 1 file