summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-28regenMark Kettenis
2014-11-28Add a few entries for SPARC T3/T4/T5/M5 machines. The IDT 89H64H16G3 entryMark Kettenis
is a bit of a guess, but it is the only PCIe Gen3 part listed on their website that has enough lanes/ports.
2014-11-28Simplify by making the eqn and tbl steering functions void;Ingo Schwarze
no functional change, minus 15 lines of code.
2014-11-28Simplify by making many functions in the man(7) parser void,Ingo Schwarze
and some cleanup; no functional change, minus 70 lines.
2014-11-28Simplify by making the mdoc parser callbacks void, and some cleanup;Ingo Schwarze
no functional change, minus 50 lines of code.
2014-11-28Simplify the code by making various mdoc parser helper functions void.Ingo Schwarze
No functional change, minus 130 lines of code.
2014-11-28Simplify code by making mdoc validation handlers void.Ingo Schwarze
No functional change, minus 90 lines of code.
2014-11-27Downgrade .Bd -file from FATAL to ERROR.Ingo Schwarze
Since this was the last remaining FATAL error in this area, this change will allow major simplifications in the mdoc(7) parser.
2014-11-27Use if_nametoindex() to get the interface index, and thereby checkKenneth R Westerback
the validity of the interface name as soon the actual name is known. i.e. right after 'egress' is expanded. One less thing for get_hw_address() to do.
2014-11-27Multiple fixes with respect to .Eo:Ingo Schwarze
1. Correctly parse stray .Ec without preceding .Eo, avoiding an assertion violation found by jsg@ with afl. 2. Correctly parse .Ec arguments when breaking another block. 3. Correct spacing around closing delimiter when breaking another block. 4. Sync some related formatting control from -Tascii to -Thtml.
2014-11-27The sti(4) driver copies its ROM into kernel memory and executes the codeMark Kettenis
in there. It explicitly changes the mapping of that memory to RX, but this only works if the maximum protection of the mapping includes PROT_EXEC. ok miod@, deraadt@
2014-11-27Previous change wasn't quite right and broke "classic' PCI sparc64 machines.Mark Kettenis
Undo the code rearrangement in rev. 1.108 but keep the sparc64-specific code dealing with non-prefetchable 64-bit BARs. Found out the hard way by stsp@
2014-11-27Missing comparison caused NX to always be enabled during boot, even on CPUsMike Larkin
that may have had it disabled in BIOS. ok deraadt@
2014-11-27Fix the obsolete .Db (toggle debug mode) macro to ignore its argumentsIngo Schwarze
and not trigger an assertion when there is more than one argument; the latter found by jsg@ with afl.
2014-11-27Ensure that sess_cert is not NULL at the start ofJoel Sing
ssl3_send_client_key_exchange(), rather than checking it in the key exchange algorithm specific code. ok beck@ miod@
2014-11-27Avoid a double-free in an error path.Joel Sing
Reported by Felix Groebert of the Google Security Team. ok beck@ miod@
2014-11-27Avoid a NULL dereference in the DTLS client that can be triggered by aJoel Sing
crafted server response used in conjunction with an anonymous DH or anonymous ECDH ciphersuite. Fixes CVE-2014-3510, which is effectively a repeat of CVE-2014-3470 in copied code. Reported by Felix Groebert of the Google Security Team. ok beck@ miod@
2014-11-27Another spot where the VLAN tag doesn't need swapping in the currentlyBrad Smith
unused TSO code. ok mikeb@
2014-11-27macro cleanup; ok jmc@ stsp@Ingo Schwarze
2014-11-27Garbage collect some bits that were never used.Brad Smith
ok mikeb@
2014-11-27Fix a long standing bug in MAC statistics register access. OneBrad Smith
additional register was erroneously added in the MAC register set such that 7 TX statistics counters were wrong. From FreeBSD ok mikeb@
2014-11-27remove unneccessary inclusion protection; ok schwarzeTheo de Raadt
2014-11-27default for interactive should match non-interactive.Marc Espie
Pointed out by krw@
2014-11-27All cpus -> N CpusMarc Espie
"makes sense" theo
2014-11-27Document that sparc64 softraid boot only works with 'a' partitions.Stefan Sperling
Add an Xr to boot_sparc64(8) which has additional important details.
2014-11-27Remove ofwbootfd from sparc64 release dir since nobody will need it.Stefan Sperling
Requested by deraadt.
2014-11-27Fix typos in comments.Tobias Stoeckmann
ok jmc, yasuoka
2014-11-27Use dv_xname instead of if_xname to establish our interrupt. The latter isMark Kettenis
still unset when at this point, and some MD variants of pci_intr_establish(9) make a copy of the string instead of storing a pointer. Makes vmstat -i properly print the device name on sparc64. ok mikeb@, deraadt@
2014-11-27rxr ioctl handling.Brad Smith
2014-11-27rxr ioctl handling.Brad Smith
2014-11-27Make makewhatis(8) understand .so links to .gz pages.Ingo Schwarze
Drop the FORM_GZ annotation in the mpages table; it is conceptually wrong because it ought to be in the mlinks table: An uncompressed .so link file can point to a compressed manual page file and vice versa. Besides, it is no longer needed because mparse_open() handles it all. Sprinkle some KNF while here.
2014-11-26Let mparse_readfd() use mparse_open() and mparse_wait()Ingo Schwarze
and let mparse_open() fall back to .gz files such that .so works even when the target is zipped, requested by and in part using ideas from <bapt at FreeBSD>. While here, make sure files are readable before forking, both for efficiency and for better error reporting.
2014-11-26Manual page updates for sparc64 softraid boot support.Stefan Sperling
2014-11-26Simplify the mparse_open()/mparse_wait() interface.Ingo Schwarze
Don't bother the user with the PID of the child process, store it inside the opaque mparse handle.
2014-11-26Introduce softraid boot support to sparc64 ofwboot.Stefan Sperling
sparc64 machines should now be able to boot from softraid raid1 and crypto. Tested on sun blade100, sunfire v240, and sun t1000 ldom guests. Lots of encouragement from deraadt@
2014-11-26Add a new ELF segment .openbsd.bootdata to the sparc64 kernel.Stefan Sperling
This can be used to pass boot parameters to the kernel which can't be passed safely via the Open Firmware interface, such as softraid volume IDs and keys. The kernel already reads the arguments if available but ofwboot won't provide them until further changes are committed there. With support from deraadt, kettenis and matthew. ok deraadt@
2014-11-26Add softraid support to sparc64 first-level boot blocks.Stefan Sperling
Written with use of the forth by jedi jsing@ For now this only supports 'a' RAID partitions, no other partition letters.
2014-11-26Add softraid boot support code files ported by me to sparc64 from amd64.Stefan Sperling
Not hooked to the build yet. ok kettenis@
2014-11-26Copy some Open Firmware interface functions from the kernel to ofwboot.Stefan Sperling
Will be needed soon. ok kettenis@
2014-11-26Reset ifi->errors after a successful receive_packet(), rather thanKenneth R Westerback
incrementing sporadic errors until the limit is exceeded. i.e. only exit dhclient when enough consecutive errors occur. Tweak error messages. Don't bother checking interface_status() when receive_packet() fails. Let other status checks function on their own.
2014-11-26remove an unreachable warning about .Sm argumentsIngo Schwarze
2014-11-26The .Sm macro accepts at most one argument;Ingo Schwarze
fixing an assertion failure found by jsg@ with afl.
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26Make caretx a perl dependency, not just miniperlAndrew Fresh
OK millert@
2014-11-26Use perl's my_strlcat in DynaLoaderAndrew Fresh
OK millert@
2014-11-26garbage collect .TnIngo Schwarze
2014-11-26'ifi' is successfully calloc'd during initialization or dhclientKenneth R Westerback
exits, so there is no need to constantly check if 'ifi' is NULL. Similarly 'ifi->bfdesc' is successfully opened during initialization or dhclient exits, so there is no point in constantly checking if it has regressed to -1. Finally, no need to check 'ifi->linkstat' before trying to read a packet. If there is a packet it should just as well be read immediately rather than waiting for the link to reappear and confuse things. No intentional functional change.
2014-11-26Make option string/struct const (since it is...). I've had thisTodd C. Miller
in my tree for ages.
2014-11-26The onboard ix(4) interfaces on the SPARC T5 machines don't have a valid MACMark Kettenis
address in their EEPROM. Use the MAC address given by the "local-mac-address" Open Firmware property instead. ok mikeb@, deraadt@
2014-11-26Drop sysmerge.log ; it used to be handy for batch mode but now theAntoine Jacoutot
console output is clear and clean in that mode. Since /var/tmp is now a symlink to /tmp: - directly use /tmp - if modifications were done; at the end of the run: - display our backup directory (in case we want to move it to survive a reboot) - display where and what files are still left for comparison discussed with and ok sthen@