Skip to content
Permalink
Tree: 9a1bbc17e7
Commits on Jan 6, 2019
  1. Fix most of the .Li abuse:

    ischwarze committed Jan 6, 2019
    * 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.
  2. fold a bunch of similar sysctl cases into a switch.

    tedu
    tedu committed Jan 6, 2019
    ok deraadt mestre
  3. the parent process doesn't do much but open files, but just the same

    tedu
    tedu committed Jan 6, 2019
    there's no reason it can't use pledge to enforce that.
    ok brynet deraadt
  4. Clear ps_uvpcwd when we free ps_uvpaths. Fixes a crash seen by kn@ an…

    kettenis
    kettenis committed Jan 6, 2019
    …d me
    
    where ps_uvpcwd obviously contains a dangling pointer.
    
    ok deraadt@, krw@
  5. mention that tun is a point-to-point interface so that we know what

    tedu
    tedu committed Jan 6, 2019
    word to search for in ifconfig(4).
    from claudio
  6. set tracefile to null when clearing points.

    tedu
    tedu committed Jan 6, 2019
    ok kn
  7. note that tracefile must be null when clearing points.

    tedu
    tedu committed Jan 6, 2019
    ok kn
  8. allow q to exit the program.

    tedu
    tedu committed Jan 6, 2019
    ok cheloha deraadt schwarze
  9. grammar fix from chohag jtan com;

    jmc
    jmc committed Jan 6, 2019
  10. Unbreak SR_DEBUG builds

    kn
    kn committed Jan 6, 2019
    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
  11. Fix unsafe use of ptsignal() in mi_switch().

    visa
    visa committed Jan 6, 2019
    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
  12. Rewrite ip_pcbopts() to fill a fresh mbuf with the ip options instead

    cjeker committed Jan 6, 2019
    of fiddling with the user supplied mbuf and then copy it at the end.
    OK visa@
  13. Finally, represent the man(7) .PP and .HP macros by the natural

    ischwarze committed Jan 6, 2019
    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.
  14. after much wrangling over what might be an improved example,

    tedu
    tedu committed Jan 6, 2019
    just delete it.
    ok deraadt schwarze
Commits on Jan 5, 2019
  1. In no-fill mode, avoid bogus blank lines in two situations:

    ischwarze committed Jan 5, 2019
    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.
  2. Simplify and clarify (i.e. shrink) code processing

    krw
    krw committed Jan 5, 2019
    the bpf captures.
  3. In groff, when the .SY block macro occurs in no-fill mode,

    ischwarze committed Jan 5, 2019
    the output line gets broken after the head.  Do the same.
  4. Slowly start doing more HTML output tests, in this case for the

    ischwarze committed Jan 5, 2019
    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.
  5. KNF nit.

    krw
    krw committed Jan 5, 2019
  6. In HTML output, man(7) .RS blocks get formatted as <div class="Bd-ind…

    ischwarze committed Jan 5, 2019
    …ent">,
    
    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.
  7. fix previous commit

    kettenis
    kettenis committed Jan 5, 2019
    "please commit asap" deraadt@
  8. Correctly account for the memory allocated when creating a set.

    cjeker committed Jan 5, 2019
    Should hopefully fix the error seen on systems after a few reloads where
    the size became negative.
    OK benno@
  9. Expand a macro instruction for clang. Unlike gas, the integrated

    visa
    visa committed Jan 5, 2019
    assembler does not handle the large immediate value automatically.
  10. Replace two-operand instruction aliases that clang does not

    visa
    visa committed Jan 5, 2019
    understand with the three-operand instructions.
    
    No binary change with gas.
  11. regen

    jonathangray committed Jan 5, 2019
  12. we assumed that there was no such thing as an "mda session" so the logs

    poolpOrg committed Jan 5, 2019
    displayed 0000000000000000 as the session id for mda deliveries, but we
    were wrong. there's actually an identifier that's associated to a batch
    of envelopes to be delivered to the same user, and this most definitely
    is a session id for that user.
  13. minor cleanup, no functional change:

    ischwarze committed Jan 5, 2019
    * delete one irrelevant FIXME; no more fixed lengths in HTML, please
    * simplify some conditions
    * avoid testing pointers as truth values, use "!= NULL"
    * sort some declarations
    * delete some pointless blank lines
  14. introduce smtp 'timeout' reporting event to notify filters that a tim…

    poolpOrg committed Jan 5, 2019
    …eout
    
    occured during the smtp session
  15. Now that the NODE_NOFILL flag in the syntax tree is accurate,

    ischwarze committed Jan 5, 2019
    use it in the man(7) HTML formatter rather than keeping fill mode
    state locally, resulting in massive simplification (minus 40 LOC).
    
    Move the html_fillmode() state handler function to the html.c module
    such that both the man(7) and the roff(7) formatter (and in the future,
    also the mdoc(7) formatter) can use it.  Give it a query mode, to be
    invoked with TOKEN_NONE.
Older
You can’t perform that action at this time.