summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-21Check the hibernation signature for softraid disks and select valid bsdYASUOKA Masahiko
for unhibernation. reported by Natasha Kerensikova. tested by Theo Buehler. ok deraadt
2017-07-21Drop Rx'd frames larger than MCLBYTES.Kevin Lo
Problem reported by Ilja Van Sprundel. ok stsp@, tb@
2017-07-20Make otus(4) drop frames larger than MCLBYTES.Stefan Sperling
Problem reported by Ilja Van Sprundel. ok deraadt@ tb@
2017-07-20extra test because mk38 triggers two issues and fixing the first oneMarc Espie
makes the second one vanish
2017-07-20Fixup pf109.ok and rewrite pf110Mike Belopuhov
2017-07-20Bring SIBUS/SIGSEGV reporting in line with amd64 and i386.Mark Kettenis
ok deraadt@, bluhm@
2017-07-20Move the execution of the {install,upgrade}.site script to the endRobert Peichaer
of the install/upgrade process. OK tb@
2017-07-20Allow leading . in nameConstraints. from openssl via jabberwock. ok jsingTed Unangst
2017-07-20When receiving a struct sockaddr from userland, enforce that memoryAlexander Bluhm
for sa_len and sa_family is provided. This will make handling of socket name mbufs within the kernel safer. issue reported by Ilja Van Sprundel; OK claudio@
2017-07-20Don't exit on invalid config lines, yet return a proper exit status.Jeremie Courreges-Anglas
newsyslog(8) is mainly used to proces log files, not rotating them because of an invalid field means that /var will end up full. Initially I wanted to ignore only getpwnam/getgrnam errors, but millert@ convinced me otherwise. malloc(3) errors are still fatal. Diff prompted by a report from Harald Dunkel, ok millert@
2017-07-20Start a list of isa(4) device names such that we can avoid printing themMark Kettenis
as "not configured". ok mikeb@, millert@, deraadt@
2017-07-20Accessing a mmap(2)ed file behind its end should result in a SIGBUSAlexander Bluhm
according to POSIX. Bring regression test and kernel in line for amd64 and i386. Other architectures have to follow. OK deraadt@ kettenis@
2017-07-20Restore RTM_DELADDR/RTM_NEWADDR monitoring to theKenneth R Westerback
minimum required to ensure that resolv.conf is written out on startup/HUP. Noticed by and fix tested by jmc@
2017-07-20Rename TBUF_LEN and FMT_LEN to _SIZE as they contain a NUL byte.Alexander Bluhm
Change FMT_SIZE to 1024+1 for consistency. Do not loop over the format string if there is no output space left. OK deraadt@ millert@
2017-07-20Remove SIGIO support. Base tools do not implement it and ports relyingMartin Pieuchot
on libusbhid, generally via SDL, shouldn't do it either since it's not portable. Suggested by deraadt@ after Ilja van Sprundel reported an issue with a stale struct proc pointer in similar code. ok kettenis@, deraadt@
2017-07-20Initialize a local variable to not leak kernel stack info to userlandMartin Pieuchot
if TIOCGPGRP fail. Issue found by Ilja van Sprundel. ok bluhm@, millert@, deraadt@
2017-07-20Avoid cross reference to mandoc(1) because it may cause a messageIngo Schwarze
on other operating systems where mandoc is not installed, causing the test to fail in the portable test suite.
2017-07-20update link to mandoc.bsd.lvIngo Schwarze
2017-07-20When login_skey was called for a user without skey, it crashed withAlexander Bluhm
NULL pointer dereference. It tried to pass a file descriptor that did not exist. This has to be done conditionally. bug found by Raimund Specht with process accounting; OK millert@
2017-07-20For -Tlint, put parser messages on stdout instead of stderr.Ingo Schwarze
Originally, naddy@ requested this in 2011 (or maybe even earlier). It was discussed with joerg@, kristaps@, naddy@, and espie@ in 2011, and everybody agreed in principle, but it was postponed because kristaps@ wanted to do some cleanup of the message system first. Meanwhile, message infrastructure was improved about a dozen times... This makes long, tedious commands like "mandoc -Tlint *.1 2>&1 | less" unnecessary and allows simple ones like "man -l -Tlint *.1".
2017-07-20Do not call err(3) from the parser. Call mandoc_vmsg() andIngo Schwarze
return failure such that we can continue with the next file.
2017-07-20Add missing <time.h> header.Okan Demirmen
ok joris@
2017-07-20correctly handle letters in .Nx arguments; improves for exampleIngo Schwarze
getpgid(2), ac(8), ldconfig(8), mount_ffs(8), sa(8), ttyflags(8), ...
2017-07-20Kernel relinking for luna88k, first step.Kenji Aoyama
Not yet split locore.S to locore.S and locore0.S. ok deraadt@
2017-07-20Add comments to explain correct code that might look wrong.Alexandre Ratchov
2017-07-20Fix debug printf used to report kernel bugs: print par.bps insteadAlexandre Ratchov
of par.bits. Found by coverity.
2017-07-20Fix integer overflow that would causes >12 hours filesAlexandre Ratchov
to not properly relocate. Found with coverity.
2017-07-20If pool_get() sleeps while allocating additional memory for socketAlexander Bluhm
splicing, another process may allocate it in the meantime. Then one of the splicing structures leaked in sosplice(). Recheck that no struct sosplice exists after a protential sleep. reported by Ilja Van Sprundel; OK mpi@
2017-07-20Zap space between function name and parens.anton
ok deraadt@ rpe@ tb@
2017-07-20Replace usage of strtol() with strtonum().anton
ok bentley@ deraadt@ millert@ tb@
2017-07-20Enable RX aggregation, fix configuring custom MAC address and removeMartin Pieuchot
double reset sequence. From and tested by sc.dying at gmail on RTL8152 (ver 4c10) and RTL8153 (ver 5c20).
2017-07-20Extend the scope of the socket lock in soo_stat() to protect `so_state'Martin Pieuchot
and `so_rcv'. ok bluhm@, claudio@, visa@
2017-07-20Prepare filt_soread() to be locked. No functionnal change.Martin Pieuchot
ok bluhm@, claudio@, visa@
2017-07-20"no-route" is also shown by -sinfo;Jason McIntyre
2017-07-20- listening on localhost is now adjustable; ok teduJason McIntyre
- document SIGUSR1, as noted by tedu
2017-07-19there's no nul byte after a name that ends in a crazy compression pointer.Ted Unangst
2017-07-19Remove SIGIO support. The audio(4) driver doesn't implement it either andMark Kettenis
the preferred method to access MIDI hardware is through sndiod(8) which doesn't use it. Fixes a potential issue with a stale struct proc pointer found by Ilja van Sprundel. ok deraadt@, ratchov@
2017-07-19Implement drm_pci_alloc() and drm_pci_free() and use them to reduce theMark Kettenis
diffs with Linux.
2017-07-19Plug an information leak in ieee80211_node2req().Stefan Sperling
Problem reported by Ilja Van Sprundel. ok tb@
2017-07-19Implement the enter_ddb() "accessop" here as well.Mark Kettenis
2017-07-19remove some spacing; ok schwarzeJason McIntyre
2017-07-19Update libexpat to 2.2.2. Fixes NULL parser dereference.Alexander Bluhm
no objections deraadt@
2017-07-19Fix previous commit; check the enter_ddb function pointer instead of theMark Kettenis
"accessops" pointer before calling it.
2017-07-19The first version of the edit program used to test csh, ksh and mail was basedanton
on the following reasoning: once the program to test has written some data it has entered the main-loop and is by now ready to receive user input. At this point it should be safe to start writing input and once the program once again enters a blocking reading state, its done processing the input. This approach was sensitive to timing and determining when a shell is done processing its input (if ever) is tricky. This iteration of the edit program takes a new approach and uses presence of a prompt for synchronisation of I/O. It doesn't solve all problems but is a step in the right direction. Joint work with bluhm@
2017-07-19Improve the heuristic which selects 5GHz APs over 2GHz APs.Stefan Sperling
The previous code wasn't quite right: it didn't account for the fact that some drivers don't set ic_max_rssi, and it compared 5GHz APs to a threshold relative to the max RSSI, rather than comparing RSSI on 5GHz relative to RSSI on 2GHz. This heuristic is only used by SCANNALLBAND drivers: iwn(4), iwm(4), wpi(4) In the future the AP selection heuristic should be made more intelligent, e.g. it should take BSS load information in beacons into account. Another open problem is inconsistent representation of RSSI measurement values throughout our drivers and stack. Help is welcome! For now, this hopefully improves AP selection at busy airports. ok sthen@ deraadt@
2017-07-19Check the return value of CBB_init_fixed(), since it can fail.Joel Sing
2017-07-19Rework the way that TLS configuration is sent/received via imsgs, so thatJoel Sing
are no longer limited by the 16KB maximum size of a single imsg. Configuration data that is larger than a single message is now chunked and sent via multiple imsgs. Prompted by a diff from Jack Burton <jack at saosce dot com dot au>. ok reyk@
2017-07-19Avoid the historical term "loader", consistently talk about the "linker".Ingo Schwarze
Outdated terminology noticed by espie@.
2017-07-19Turn this into a panic since there's no way to recover from itMike Belopuhov
2017-07-19Add a handler for RNDIS status messagesMike Belopuhov
RNDIS status messages may indicate various conditions reported by the hardware, including link status events. They're not supposed to be universally treated as errors. Issue reported by Artturi Alm, ok armani