Displaying 1 50 of 175,654 commits (0.017s)

OpenBSD — etc/examples pkg.conf

add new mirror in Lithuania to examples/pkg.conf, ok deraadt
Delta File
+4 -1 etc/examples/pkg.conf
+4 -1 1 file

OpenBSD — sys/conf GENERIC

disable tmpfs because it receives zero maintainance.
Delta File
+2 -2 sys/conf/GENERIC
+2 -2 1 file

OpenBSD — sys/netinet ip_carp.c

fix revision 1.290 of sys/netinet/ip_carp.c.

diff from jsg@
ok deraadt@, benno@
Delta File
+2 -1 sys/netinet/ip_carp.c
+2 -1 1 file

OpenBSD — usr.sbin/rarpd arptab.c

Fix rarpd hang. The receive buffer of a route socket can become full
while rarpd process is idle. To avoid getting stuck in rtmsg(),
the process has to clear the buffer and retry.

ok benno@ deraadt@ millert@
Delta File
+7 -3 usr.sbin/rarpd/arptab.c
+7 -3 1 file

OpenBSD — sbin/newfs newfs.c

Revert change to density calculation. David Vasek points out this
is a more complicated problem than it appears.

ok deraadt@
Delta File
+2 -2 sbin/newfs/newfs.c
+2 -2 1 file

OpenBSD — usr.sbin/bgpd session.c

Initialize the log subsytem in the SE like it is done in the RDE. Without
this all logging is going via stderr to /dev/null which is not helpful.
OK deraadt@ phessler@
Delta File
+4 -1 usr.sbin/bgpd/session.c
+4 -1 1 file

OpenBSD — sys/net bpf.c

Make sure closed bpf devices are removed from bpf_d_list to free the
minor number for reuse by the device cloning code. This fixes a panic
reported by bluhm@.

initial diff from tedu
ok deraadt
Delta File
+5 -24 sys/net/bpf.c
+5 -24 1 file

OpenBSD — gnu/usr.bin/perl patchlevel.h, gnu/usr.bin/perl/cpan/Archive-Tar/bin ptar ptardiff

Patch perl CVE-2016-1238

The problem relates to Perl 5 ("perl") loading modules from the
includes directory array ("@INC") in which the last element is the
current directory (".").  That means that, when "perl" wants to
load a module (during first compilation or during lazy loading of
a module in run-time), perl will look for the module in the current
directory at the end, since '.' is the last include directory in
its array of include directories to seek. The issue is with requiring
libraries that are in "." but are not otherwise installed.

The major problem with this behavior is that it unexpectedly puts
a user at risk whenever they execute any Perl scripts from a directory
that is writable by other accounts on the system. For instance, if
a user is logged in as root and changes directory into /tmp or an
account's home directory, it is possible to now run any shell
commands that are written in C, Python or Ruby without fear.

The same isn't true for any shell commands that are written in Perl,
since a significant proportion of Perl scripts will execute code
in the current working directory whenever they are run. For example,
if a user on a shared system creates the file /tmp/Pod/Perldoc/Toterm.pm,
and then I log in as root, change directory to /tmp, and run "perldoc
perlrun", it will execute the code they have placed in the file.

    [2 lines not shown]

OpenBSD — usr.sbin/tcpdump privsep.c

err() instead of errx(); noted by tim
Delta File
+2 -3 usr.sbin/tcpdump/privsep.c
+2 -3 1 file

OpenBSD — usr.sbin/tcpdump privsep.c

Split the root vs not-root cases better with regards to chroot setup.
ok kettenis benno tedu canacar
Delta File
+12 -9 usr.sbin/tcpdump/privsep.c
+12 -9 1 file

OpenBSD — usr.sbin/smtpd smtpd.h

bump version

ok deraadt@
Delta File
+2 -2 usr.sbin/smtpd/smtpd.h
+2 -2 1 file

OpenBSD — usr.bin/ssh version.h

Delta File
+2 -2 usr.bin/ssh/version.h
+2 -2 1 file

OpenBSD — distrib/sets/lists/man mi

Delta File
+1 -0 distrib/sets/lists/man/mi
+1 -0 1 file

OpenBSD — share/man/man4 Makefile

add chvgpio.4 overlooked when the file was added
ok deraadt@
Delta File
+2 -2 share/man/man4/Makefile
+2 -2 1 file

OpenBSD — usr.bin/openssl openssl.1

rework crl2pkcs7; with help from jsing
Delta File
+18 -57 usr.bin/openssl/openssl.1
+18 -57 1 file

OpenBSD — usr.sbin/pkg_add/OpenBSD FwUpdate.pm

no quirks in FwUpdate.

okay theo

OpenBSD — distrib/miniroot install.sub

Back out the automatic pkg.conf installpath changes; because pkg_add has
an immature heuristic for "what is a release and what is a snapshot".
This change maybe improved the post-release experience, but it damages the
pre-release experience, which may result in less effective pre-release
testing, which risks creating poor releases, which may result in poor
post-release experiences.
Specific case: subtle breakage to fw_update.
Delta File
+2 -2 distrib/miniroot/install.sub
+2 -2 1 file

OpenBSD — distrib/notes/armv7 prep

Some armv7 machines are shipped with linux images that run USB OTG ports
in client mode and provide serial access to a getty and networking.

Make it clear that a real serial console that can interact with the
firmware is required.

Suggested by and wording tweaks from ian@
Delta File
+7 -1 distrib/notes/armv7/prep
+7 -1 1 file

OpenBSD — sbin/dhclient bpf.c dhclient.c

Back out the dhclient BPF change. There are DHCP servers out there which
send frames to the ethernet broadcast address, so this will need some more
thought and it's too late for 6.0.
Problem reported by Holger Mikolon.
ok mpi@
Delta File
+2 -29 sbin/dhclient/bpf.c
+1 -2 sbin/dhclient/dhclient.c
+3 -31 2 files

OpenBSD — sys/arch/armv7/imx imxuart.c

Previously the uarts attached in order, so that the first attached uart
is always the serial console.  With device tree enumeration, this order
is not given anymore.  The serial console might now attach with a
different minor and has to be updated, otherwise there will be no
further output on the serial.  Thus, re-create the i.MX6 console with
the correct minor number on attach.

ok jsg@, kettenis@
Delta File
+10 -2 sys/arch/armv7/imx/imxuart.c
+10 -2 1 file

OpenBSD — sys/conf GENERIC

do the pool debug release dance. ok deraadt
Delta File
+2 -2 sys/conf/GENERIC
+2 -2 1 file

OpenBSD — sys/arch/armv7/imx if_fec.c

The linux kernel treated the "phy-reset-gpio" as active-low regardless of what
the device tree says.  As a result many device trees encode it as active-high
when active-low is needed.  For now just override the device tree.

ok jsg@, patrick@
Delta File
+13 -3 sys/arch/armv7/imx/if_fec.c
+13 -3 1 file

OpenBSD — sbin/newfs newfs.c

At n2k16 David Vasek pointed out that FFS partitions on 4K disks are
created with far fewer inodes than DEV_BSIZE devices.

Scale the default 'density' value by (sector size)/DEV_BSIZE to
create the same number of inodes. Obviously a NO-OP on DEV_BSIZE

Thanks David!

ok deraadt@
Delta File
+2 -2 sbin/newfs/newfs.c
+2 -2 1 file

OpenBSD — bin/stty stty.c

Before terminal characteristics are displayed, stty(1) activates
pledge(2).  Then the values cannot be modified anymore.  Let stty
error out if the display and modify mode are combined on the command
line to avoid a pledge violation later on.
OK deraadt@
Delta File
+5 -1 bin/stty/stty.c
+5 -1 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

Fix a few CPUID emulation issues:

Don't advertise a hyperthreaded CPU. This doesn't make a lot of sense now
as we only provide UP guest support. This, combined with the other CPUID
issues fixed, fooled NetBSD's topology enumeration code into thinking we
had an unsupportable core/thread/package configuration.

Also fixed the unsupported CPUID functions by returning 0 in the return
registers instead of leaving whatever trash happened to be there before
the call was made.
Delta File
+47 -2 sys/arch/amd64/amd64/vmm.c
+47 -2 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

Dump vcpu state on unknown exit type, and add a diagnostic message
(including vcpu state dump) on failure to enter due to an incorrect
guest state.

Added as a debug facility when diagnosing interruptibility state
problems seen while testing NetBSD guest VMs.
Delta File
+25 -4 sys/arch/amd64/amd64/vmm.c
+25 -4 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

Ensure some undesirable entry controls are cleared, instead of relying
on the default settings.

Noticed when booting a NetBSD guest VM.
Delta File
+6 -3 sys/arch/amd64/amd64/vmm.c
+6 -3 1 file

OpenBSD — usr.bin/ssh clientloop.c

fix pledge violation with ssh -f; reported by Valentin Kozamernik
ok dtucker@
Delta File
+7 -3 usr.bin/ssh/clientloop.c
+7 -3 1 file

OpenBSD — share/man/man8 release.8

hint at the default for XSRCDIR; from tim kuijsten
allows us to zap some verbiage from the beginning...

ok deraadt
Delta File
+5 -10 share/man/man8/release.8
+5 -10 1 file

OpenBSD — sys/arch/armv7/imx imx.c

Attach imx(4) on i.mx6 quad plus which appears to be largely compatible
with i.mx6 quad but with more memory bandwidth and some graphics tweaks.

ok kettenis@
Delta File
+2 -1 sys/arch/armv7/imx/imx.c
+2 -1 1 file

OpenBSD — sbin/dhclient dhclient.c

Actually DECLINE and delete unused offers. Don't just say so in a comment.

In situations where >1 offer is received this will eliminate unbounded memory
growth and make us a more polite netizen. In some corner cases it might
prevent reuse of inappropriate older offers.

ok millert@
Delta File
+15 -12 sbin/dhclient/dhclient.c
+15 -12 1 file

OpenBSD — sys/arch/armv7/imx if_fec.c

Fallback to the known fec irq number on imx.6 if the fdt
interrupts-extended property is missing or not the size we expect.

Some dtbs implement a workaround for "ERR006687 ENET: Only the ENET
wake-up interrupt request can wake the system from Wait mode" suggested
by the IMX6DQCE errata document to set an undocumented gpio mux mode and
handle the interrupt via gpio.

We don't support gpio interrupts yet, hopefully this change is enough
to make interrupts work on wandboard and sabre lite again till we do.

Discussed with kettenis and patrick, tested on sabre lite by patrick.
Delta File
+2 -2 sys/arch/armv7/imx/if_fec.c
+2 -2 1 file

OpenBSD — sys/tmpfs tmpfs_vfsops.c

Set the vfs_systcl member of the vsfops struct to eopnotsupp.  While we check
for a null pointer now, all other filesystems fill in the complete table.

ok deraadt@, tom@
Delta File
+2 -2 sys/tmpfs/tmpfs_vfsops.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd smtp_session.c

Create a smtp transaction context on a session only for the duration of
that transaction.

ok gilles@
Delta File
+79 -99 usr.sbin/smtpd/smtp_session.c
+79 -99 1 file

OpenBSD — sys/netinet in_pcb.c in_pcb.h, sys/netinet6 in6_src.c raw_ip6.c

Revert in_selectsrc() refactoring, it breaks IPv6.

Reported by Heiko on bugs@.

ok stsp@, claudio@

OpenBSD — sys/net route.c

Check for errors when deleting routes inside rtable_walk() and abort
the walk if a route cannot be deleted.

Prevent an infinite recursion reported by Dimitris Papastamos.

ok claudio@
Delta File
+16 -9 sys/net/route.c
+16 -9 1 file

OpenBSD — sys/kern vfs_subr.c

Prevent NULL-pointer call for filesystems that don't provide vfs_sysctl
in their vfsops.

Issue reported by Tim Newsham.

ok claudio@, natano@
Delta File
+2 -2 sys/kern/vfs_subr.c
+2 -2 1 file

OpenBSD — regress/usr.sbin/relayd args-http-filter-null-host.pl

add a regression test

OpenBSD — usr.sbin/switchd switchd.c

"wpath" is needed in the parent pledge when using the /dev/switch0 device.
Delta File
+3 -2 usr.sbin/switchd/switchd.c
+3 -2 1 file

OpenBSD — usr.sbin/relayd relay_http.c relayd.h

fix some cases where we relay_abort_http() the connection too soon.
instead, pass a more specific error back and handle the errors in
relay_test() instead.
reported by Arto Jonsson and Hiltjo Posthuma, thanks!
ok bluhm@ reyk@

OpenBSD — regress/usr.sbin/switchd Makefile

Fix generated Perl headers.

With input from bluhm@
Delta File
+4 -4 regress/usr.sbin/switchd/Makefile
+4 -4 1 file

OpenBSD — sys/netinet ip_input.c

Fix a double rtfree(9) triggered when IPSEC inserts a more specific
route because of PMTU.

otto@ reported the issue and helped me tracking it down during more
than one month, he is the man!

mikeb@ figured out the bug was in the forwarding path.

ok mikeb@, deraadt@, claudio@
Delta File
+2 -1 sys/netinet/ip_input.c
+2 -1 1 file

OpenBSD — usr.bin/ssh ssh_config.5

improve wording; suggested by jmc@
Delta File
+2 -2 usr.bin/ssh/ssh_config.5
+2 -2 1 file

OpenBSD — usr.bin/ssh sshconnect2.c

Lower loglevel for "Authenticated with partial success" message similar to
other similar level.  bz#2599, patch from cgallek at gmail.com, ok markus@
Delta File
+2 -2 usr.bin/ssh/sshconnect2.c
+2 -2 1 file

OpenBSD — usr.bin/ssh sftp.c

constify a few functions' arguments; patch from Jakub Jelen bz#2581
Delta File
+15 -14 usr.bin/ssh/sftp.c
+15 -14 1 file

OpenBSD — usr.bin/ssh monitor.c

move debug("%p", key) to before key is free'd; probable undefined
behaviour on strict compilers; reported by Jakub Jelen bz#2581
Delta File
+5 -4 usr.bin/ssh/monitor.c
+5 -4 1 file

OpenBSD — usr.bin/ssh readconf.c ssh_config.5

reverse the order in which -J/JumpHost proxies are visited to be
more intuitive and document

reported by and manpage bits naddy@
Delta File
+16 -9 usr.bin/ssh/readconf.c
+4 -3 usr.bin/ssh/ssh_config.5
+20 -12 2 files

OpenBSD — usr.bin/openssl openssl.1

rework DESCRIPTION a little: no-command seems clearer than no-XXX;
Delta File
+12 -17 usr.bin/openssl/openssl.1
+12 -17 1 file

OpenBSD — usr.bin/openssl openssl.1

rename NOTES to COMMON SYNTAX (explains itself better); rework the
passphrase section a little; move the DER|PEM stuff in there to help
avoid text repetition, and prefer the lowercase (less keys to press);
adjust ENVIRONMENT to format a little more nicely;
Delta File
+44 -43 usr.bin/openssl/openssl.1
+44 -43 1 file

OpenBSD — usr.bin/openssl openssl.1

strip back openssl crl somewhat: remove the examples
and move any relevant text into the main body;
Delta File
+21 -41 usr.bin/openssl/openssl.1
+21 -41 1 file