summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-08viocon: Remove obsolete handling of sc_intrhandStefan Fritsch
2019-01-08virtio: Don't include feature strings without VIRTIO_DEBUGStefan Fritsch
They are only used if VIRTIO_DEBUG is enabled. This should make the kernel slightly smaller.
2019-01-08The child processes of snmpd(8) did not detach from the terminal.Alexander Bluhm
Dup /dev/null to the stdio file descriptors in the children. based on a fix for httpd(8) and relayd(8); from Jan Klemkow
2019-01-08RL (NAK count reload) field in QH should be zero when using periodicSASANO Takayoshi
(interrupt) transfer. When RL is not zero, interrupt transfer cannot work correctly. It causes USB2.0 hub cannot detect device attach/detach. ok by mpi@
2019-01-08Document SO_ZEROIZE socket option.Alexander Bluhm
OK claudio@
2019-01-08If the mbuf cluster in m_zero() is read only, propagate the M_ZEROIZEAlexander Bluhm
flag to the other references. Then the final m_free() will clear the memory. OK claudio@
2019-01-08syncFlorian Obser
2019-01-08Move acme-client.conf to examples. Since we no longer store theFlorian Obser
agreement url in here we no longer need to updated it all the time. OK deraadt
2019-01-08Remove missleading and outdated examples from man page.Florian Obser
/etc/examples/httpd.conf and /etc/examples/acme-client.conf (comming soon) are better places. Pointed out by & OK deraadt, OK benno
2019-01-08Botched up an if conditional in the last commit. The IP length needs toClaudio Jeker
bigger than the IP header len to be valid. With this I can traceroute again.
2019-01-07Extents code has its own set of flags and does not use malloc's.Alexander Bluhm
The code in pci_init_extents() accidently passed M_NOWAIT which is EX_FAST and does no harm. Replace it with EX_NOWAIT. from Christian Ludwig; OK kettenis@
2019-01-07short circuit mail check if MAIL is unset. ok antonTed Unangst
2019-01-07log dns failures, even if temporary. ok bennoTed Unangst
2019-01-07Enabling both kcov and retguard is now possible due to the recent bump ofanton
NKL2_KIMG_ENTRIES on amd64, allowing larger kernels. ok mpi@; "that's great!" deraadt@
2019-01-07Don't print "allocated section '.foobar' not in segment" warning forMark Kettenis
zero-sized sections. ok deraadt@, guenther@
2019-01-07Use the `iface' argument from the *attach() function instead of callingMartin Pieuchot
usbd_device2interface_handle(). ok visa@
2019-01-07Make the output fit in 80 chars when a serial number is printed.Martin Pieuchot
ok sthen@, millert@, denis@, kn@
2019-01-07add inteldrm for fw_updateStuart Henderson
2019-01-07Validate the version, and all length fields of IP packets passed to a raw socketClaudio Jeker
with INP_HDRINCL. There is no reason to allow badly constructed packets through our network stack. Especially since they may trigger diagnostic checks further down the stack. Now EINVAL is returned instead which was already used for some checks that happened before. OK florian@ Reported-by: syzbot+0361ed02deed123667cb@syzkaller.appspotmail.com
2019-01-07It is possible to call m_zero with a read-only cluster. In that case justClaudio Jeker
return. Hopefully the other reference holder has the M_ZEROIZE flag set as well. Triggered by syzkaller. OK deradt@ visa@ Reported-by: syzbot+c578107d70008715d41f@syzkaller.appspotmail.com
2019-01-07Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features)Ingo Schwarze
by the <p> HTML element and use the html_fillmode() mechanism for .Bd -unfilled, just like it was done for man(7) earlier, finally getting rid both of the horrible <div class="Pp"></div> hack and of the worst HTML syntax violations caused by nested displays. Care is needed because in some situations, paragraphs have to remain open across several subsequent macros, whereas in other situations, they must get closed together with a block containing them. Some implementation details include: * Always close paragraphs before emitting HTML flow content. * Let html_close_paragraph() also close <pre> for extra safety. * Drop the old, now unused function print_paragraph(). * Minor adjustments in the top-level man(7) node formatter for symmetry. * Bugfix: .Ss heads suspend no-fill mode, even though .Ss doesn't end it. * Bugfix: give up on .Op semantic markup for now, see the comment.
2019-01-07tweak ohci_checkrev so it doesnt print a leading comma and space.David Gwynne
it assumes that it always followed an interrupt string, but we don't print that on fdt. having the bus responsible for the whitespace means the fdt glue can print a colon to separate the bus info from checkrev output, while every other glue keeps the comma. ok deraadt@
2019-01-06the pledge handing for access(2) of /var/run/ypbind.lock is artificiallyTheo de Raadt
tough (so that non-YP using developers don't break the tree for YP/LDAP users). This check failed to handle the newish RPATH+UNVEIL_INSPECT namei operation. discovered by florian, ok beck
2019-01-06Increase L2 PTE reservation for the kernelMike Larkin
Bump the number of L2 page table entries reserved for the kernel from 16 to 64, to allow for larger kernels. This diff was in snaps for 21 days without any reported fallout. ok deraadt
2019-01-06Fix most of the .Li abuse:Ingo Schwarze
* Use .Vt for struct names and other type names like in_port_t. * Use .Dv for #define'd constants like CPUSTATES and KERN_SYSVIPC_INFO. * Use .Va for sysctl variable names like "machdep". Not touching some of the .Li use related to networking; that stuff looks suspicious in more than one way and a diff would need review.
2019-01-06fold a bunch of similar sysctl cases into a switch.Ted Unangst
ok deraadt mestre
2019-01-06the parent process doesn't do much but open files, but just the sameTed Unangst
there's no reason it can't use pledge to enforce that. ok brynet deraadt
2019-01-06Clear ps_uvpcwd when we free ps_uvpaths. Fixes a crash seen by kn@ and meMark Kettenis
where ps_uvpcwd obviously contains a dangling pointer. ok deraadt@, krw@
2019-01-06mention that tun is a point-to-point interface so that we know whatTed Unangst
word to search for in ifconfig(4). from claudio
2019-01-06set tracefile to null when clearing points.Ted Unangst
ok kn
2019-01-06note that tracefile must be null when clearing points.Ted Unangst
ok kn
2019-01-06allow q to exit the program.Ted Unangst
ok cheloha deraadt schwarze
2019-01-06grammar fix from chohag jtan com;Jason McIntyre
2019-01-06Unbreak SR_DEBUG buildskn
In arch/amd64/amd64/machdep.c r1.239 (21.02.2018) guenther added DPRINTF, redefining the one from dev/softraidvar.h. softraid(4) has been using DNPRINTF exclusively since import in 2007, so simply remove the DPRINTF macro definition from there. OK krw
2019-01-06Fix unsafe use of ptsignal() in mi_switch().Visa Hankala
ptsignal() has to be called with the kernel lock held. As ensuring the locking in mi_switch() is not easy, and deferring the signaling using the task API is not possible because of lock order issues in mi_switch(), move the CPU time checking into a periodic timer where the kernel can be locked without issues. With this change, each process has a dedicated resource check timer. The timer gets activated only when a CPU time limit is set. Because the checking is not done as frequently as before, some precision is lost. Use of timers adapted from FreeBSD. OK tedu@ Reported-by: syzbot+2f5d62256e3280634623@syzkaller.appspotmail.com
2019-01-06Rewrite ip_pcbopts() to fill a fresh mbuf with the ip options insteadClaudio Jeker
of fiddling with the user supplied mbuf and then copy it at the end. OK visa@
2019-01-06Finally, represent the man(7) .PP and .HP macros by the naturalIngo Schwarze
choice, which is <p> HTML element. On top of the previous fill-mode improvements, the key to making this possible is to automatically close the <p> when required: before headers, subsequent paragraphs, lists, indented blocks, synopsis blocks, tbl(7) blocks, and before blocks using no-fill mode. In man(7) documents, represent the .sp request by a blank line in no-fill mode and in the same way as .PP in fill mode.
2019-01-06after much wrangling over what might be an improved example,Ted Unangst
just delete it. ok deraadt schwarze
2019-01-06remove some old comments that were inherited from i386 (and wrong)Mike Larkin
2019-01-05In no-fill mode, avoid bogus blank lines in two situations:Ingo Schwarze
1. After the last child; the parent will take care of the line break. 2. At the .YS macro; the end of the preceding .SY already broke the line.
2019-01-05Simplify and clarify (i.e. shrink) code processingKenneth R Westerback
the bpf captures.
2019-01-05In groff, when the .SY block macro occurs in no-fill mode,Ingo Schwarze
the output line gets broken after the head. Do the same.
2019-01-05Slowly start doing more HTML output tests, in this case for theIngo Schwarze
interaction of .nf and .RS, related to man_macro.c rev. 1.106. HTML regression testing is tricky because it is extremely prone to over-testing, i.e. unintentional testing for volatile formatting details which are irrelevant for deciding whether the HTML output is good or bad. Minor changes to the formatter - which is still heavily under development - might result in the necessity to repeatedly adjust many test cases. Then again, HTML syntax rules are so complicated that without regression testing, the risk is simply too high that later changes will re-introduce issues that were already fixed earlier. Let's just try to design the tests very carefully in such a way that the *.out_html files contain nothing that is likely to change, and defer testing in cases where the HTML output is not yet clean enough to allow designing tests in such a way.
2019-01-05KNF nit.Kenneth R Westerback
2019-01-05In HTML output, man(7) .RS blocks get formatted as <div class="Bd-indent">,Ingo Schwarze
and i can see no reasonable alternative: they do indeed represent indented displays. They certainly require flow context and make no sense in phrasing context. Consequently, they have to suspend no-fill mode during their head, in just the same way as other paragraph-type macros do it. This fixes HTML syntax errors that resulted from .nf followed by .RS.
2019-01-05fix previous commitMark Kettenis
"please commit asap" deraadt@
2019-01-05Correctly account for the memory allocated when creating a set.Claudio Jeker
Should hopefully fix the error seen on systems after a few reloads where the size became negative. OK benno@
2019-01-05Expand a macro instruction for clang. Unlike gas, the integratedVisa Hankala
assembler does not handle the large immediate value automatically.
2019-01-05Replace two-operand instruction aliases that clang does notVisa Hankala
understand with the three-operand instructions. No binary change with gas.
2019-01-05match arm64 and armv7 and print unconfigured simplebus devices on octeonJonathan Gray
ok and tested by visa@