<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech">
    <title>gmane.os.openbsd.tech</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32710"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32709"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32708"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32707"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32706"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32705"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32704"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32703"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32702"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32701"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32700"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32699"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32698"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32697"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32696"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32695"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32694"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32693"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32692"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.openbsd.tech/32691"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32710">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32710</link>
    <description>&lt;pre&gt;
Well... we had to use something..



&lt;/pre&gt;</description>
    <dc:creator>Theo de Raadt</dc:creator>
    <dc:date>2013-05-24T13:24:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32709">
    <title>Re: Question about MP safe audio/video</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32709</link>
    <description>&lt;pre&gt;
They are mp safe since they use the global kernel_lock; It's used
for everything, including interrupts. Basically this makes things
worse on MP systems than they are on SP systems.

Audio slightly different; cpu-intensive code is being moved to
user-space (preemptive, no explicit locking required). Interrupt
handlers (the most "sensive" code paths) don't need the kernel_lock
anymore, but still they are being delayed by other subsystems
because of side effects I don't understand yet. This is being
worked on. Syscall code-paths still take the kernel_lock.

&lt;/pre&gt;</description>
    <dc:creator>Alexandre Ratchov</dc:creator>
    <dc:date>2013-05-24T10:39:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32708">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32708</link>
    <description>&lt;pre&gt;
But the reason we did this was to reduce the amount of damage badly
written signal handlers could do.  Not to encourage people to actually
use the *printf(3) family of functions in signal handlers.


&lt;/pre&gt;</description>
    <dc:creator>Mark Kettenis</dc:creator>
    <dc:date>2013-05-24T09:49:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32707">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32707</link>
    <description>&lt;pre&gt;
From what I remember, the unsafe extensions were the $# positional
markers, that allow one to swap arguments around.


&lt;/pre&gt;</description>
    <dc:creator>Marc Espie</dc:creator>
    <dc:date>2013-05-24T09:35:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32706">
    <title>Question about MP safe audio/video</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32706</link>
    <description>&lt;pre&gt;Hi tech&amp;lt; at &amp;gt;.

Are uvideo(4), bktr(4) and similar also MP safe or they somewhat different
in terms of a technique used to make audio MP safe?

Cheers,
Alexey


&lt;/pre&gt;</description>
    <dc:creator>Alexey Suslikov</dc:creator>
    <dc:date>2013-05-24T08:35:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32705">
    <title>rtsold -a doc fix</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32705</link>
    <description>&lt;pre&gt;hi! mark johnston (markj&amp;lt; at &amp;gt;freebsd) just made the following change to
rtsold(8), related to the description of -a. it looks correct, but i'd
appreciate some verification.

my diff is a slightly tweaked version of mark's - i'll forward it, if we
end up committing it.

thanks,
jmc

Index: rtsold.8
===================================================================
RCS file: /cvs/src/usr.sbin/rtsold/rtsold.8,v
retrieving revision 1.28
diff -u -r1.28 rtsold.8
--- rtsold.823 Mar 2011 00:59:49 -00001.28
+++ rtsold.824 May 2013 07:21:01 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -169,15 +169,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 .Ar interface ,
 then exit.
 .It Fl a
-Autoprobe outgoing interface.
+Autoprobe outgoing interfaces.
 .Nm
-will try to find a non-loopback, non-point-to-point, IPv6-capable interface.
-If
-.Nm
-finds multiple interfaces,
-.Nm
-will exit with error.
-.\"
+will try to find any non-loopback, non-point-to-point, IPv6-capable interfaces,
+and send router solicitation messages on all of them.
 .It Fl D
 Enable more debugging (than that offered by the
 .Fl d

&lt;/pre&gt;</description>
    <dc:creator>Jason McIntyre</dc:creator>
    <dc:date>2013-05-24T07:26:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32704">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32704</link>
    <description>&lt;pre&gt;
The *5 table, yes.

I tried to improve the situation there.  I nearly lost my mind.


&lt;/pre&gt;</description>
    <dc:creator>Theo de Raadt</dc:creator>
    <dc:date>2013-05-24T04:11:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32703">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32703</link>
    <description>&lt;pre&gt;

Yes. I mean, what in the world is snprintf doing allocating some
locale crap to implement a behavior that strlcat clearly doesn't need
to allocate memory for?


It's in man signal.

The only thing you can't use is floating point, because dtoa is crazy,
but I think it'd even be possible to pass the buffer in from vfprintf
and make that signal safe too. Just nobody cares.


&lt;/pre&gt;</description>
    <dc:creator>Ted Unangst</dc:creator>
    <dc:date>2013-05-24T04:09:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32702">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32702</link>
    <description>&lt;pre&gt;
In OpenBSD, snprintf is designed to be thread and signal-handler safe,
as long as you don't use certain dangerous features.  I'm afraid I
can't find documentation which defines which are dangerous or not, but
remember auditing our tree to improve the situation.


I don't know if we are commited to such a restriction.  We could add such
things, but then put them in the "dangerous" catagory, to not be used in
unsafe situations...

Hmm, where are our docs for that...


&lt;/pre&gt;</description>
    <dc:creator>Theo de Raadt</dc:creator>
    <dc:date>2013-05-24T03:38:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32701">
    <title>Re: mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32701</link>
    <description>&lt;pre&gt;
In glibc snprintf has a memory allocation failure mode. I'm curious: is
OpenBSD committed to avoiding extensions (locale features, etc) which might
trigger allocation failure?


&lt;/pre&gt;</description>
    <dc:creator>William Ahern</dc:creator>
    <dc:date>2013-05-24T03:19:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32700">
    <title>simplify strlcat in tcpdump</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32700</link>
    <description>&lt;pre&gt;just pfctl_osfp.c. harder to replace strlcat when it's in a loop, but
some of the straight line calls can be done as snprintf followed by
one strlcat. worth it?

Index: pfctl_osfp.c
===================================================================
RCS file: /cvs/src/usr.sbin/tcpdump/pfctl_osfp.c,v
retrieving revision 1.7
diff -u -p -r1.7 pfctl_osfp.c
--- pfctl_osfp.c18 Oct 2010 15:55:28 -00001.7
+++ pfctl_osfp.c23 May 2013 21:28:31 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1001,33 +1001,28 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; const char *
 print_ioctl(struct pf_osfp_ioctl *fp)
 {
 static char buf[1024];
-char tmp[32];
+char tmp[1024];
 int i, opt;
+char *c;
 
-*buf = '\0';
+c = "";
+tmp[0] = '\0';
 if (fp-&amp;gt;fp_flags &amp;amp; PF_OSFP_WSIZE_DC)
-strlcat(buf, "*", sizeof(buf));
+c = "*";
 else if (fp-&amp;gt;fp_flags &amp;amp; PF_OSFP_WSIZE_MSS)
-strlcat(buf, "S", sizeof(buf));
+c = "S";
 else if (fp-&amp;gt;fp_flags &amp;amp; PF_OSFP_WSIZE_MTU)
-strlcat(buf, "T", sizeof(buf));
+c = "T";
 else {
 if (fp-&amp;gt;fp_flags &amp;amp; PF_OSFP_WSIZE_MOD)
-strlcat(buf, "%", sizeof(buf));
+c = "%";
&lt;/pre&gt;</description>
    <dc:creator>Ted Unangst</dc:creator>
    <dc:date>2013-05-23T21:35:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32699">
    <title>mandoc strlcat</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32699</link>
    <description>&lt;pre&gt;I was looking at mandoc and noticed it has too many strlcats (a common
affliction affecting quite a few programs.) It's faster and simpler to
use snprintf.

The code in roff.c was doing something twisty with the length argument
to strlcpy. Doing fancy length tricks kind of defeats the purpose of
having a simple to use function like strlcpy. I believe the intention
was to only copy part of the string, so I have retained that feature.

Index: html.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/html.c,v
retrieving revision 1.30
diff -u -p -r1.30 html.c
--- html.c28 May 2012 13:00:51 -00001.30
+++ html.c23 May 2013 20:52:43 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -618,10 +618,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; void
 bufcat_style(struct html *h, const char *key, const char *val)
 {
 
-bufcat(h, key);
-bufcat(h, ":");
-bufcat(h, val);
-bufcat(h, ";");
+bufcat_fmt(h, "%s:%s;", key, val);
 }
 
 void
Index: man_html.c
===================================================================
RCS file: /cvs/src/usr.bin/m&lt;/pre&gt;</description>
    <dc:creator>Ted Unangst</dc:creator>
    <dc:date>2013-05-23T21:05:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32698">
    <title>Re: [PATCH] add filter by host functionality to syslogd</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32698</link>
    <description>&lt;pre&gt;

Oh, my mistake. I thought host, like program, came via the network.
Thanks for explaining that. I should have looked at the whole program
again.


&lt;/pre&gt;</description>
    <dc:creator>Ted Unangst</dc:creator>
    <dc:date>2013-05-23T17:19:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32697">
    <title>Re: [PATCH] add filter by host functionality to syslogd</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32697</link>
    <description>&lt;pre&gt;
yes, it doesn't do any host resolution itself and there is no need in this,
because syslogd already does this. (the resolution happens in main cycle, namely cvthname() function  call).
the changes just compare the hostname given in configs and the hostname reported by cvthname, then act accordinly.


--
With best regards,
      Gregory Edigarov


&lt;/pre&gt;</description>
    <dc:creator>Gregory Edigarov</dc:creator>
    <dc:date>2013-05-23T16:55:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32696">
    <title>Re: [PATCH] add filter by host functionality to syslogd</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32696</link>
    <description>&lt;pre&gt;
I don't understand how that can be, since your patch isn't doing any
DNS resolution.

  if (f-&amp;gt;f_program)
  if (strcmp(prog, f-&amp;gt;f_program) != 0)
  continue;
+if (f-&amp;gt;f_host)
+if (strcmp(from,f-&amp;gt;f_host) != 0)
+continue;

That's just a string compare. The remote host can send any string it
wants.


&lt;/pre&gt;</description>
    <dc:creator>Ted Unangst</dc:creator>
    <dc:date>2013-05-23T16:20:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32695">
    <title>Re: route(8) use -inet6 automatically for addresses containing :</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32695</link>
    <description>&lt;pre&gt;
Possible manpage wording..

Index: route.8
===================================================================
RCS file: /cvs/src/sbin/route/route.8,v
retrieving revision 1.70
diff -u -p -r1.70 route.8
--- route.813 Jul 2012 10:15:53 -00001.70
+++ route.823 May 2013 13:49:50 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -310,6 +310,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; Actual
 data, in hexadecimal format
 .El
 .Pp
+In the absence of modifiers, an address is assumed to be IPv4,
+unless containing a : character when it is treated as IPv6.
+.Pp
 The optional modifier
 .Fl link
 specifies that all subsequent addresses are specified as link-level addresses,


&lt;/pre&gt;</description>
    <dc:creator>Stuart Henderson</dc:creator>
    <dc:date>2013-05-23T13:50:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32694">
    <title>Re: route(8) use -inet6 automatically for addresses containing :</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32694</link>
    <description>&lt;pre&gt;Stuart Henderson(sthen&amp;lt; at &amp;gt;openbsd.org) on 2013.05.22 21:18:05 +0100:

i see none other than making the maze of options of route(8) a bit more
bizarre.



ok

maybe a note in the manpage?


&lt;/pre&gt;</description>
    <dc:creator>Sebastian Benoit</dc:creator>
    <dc:date>2013-05-23T13:03:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32693">
    <title>Re: [PATCH] add filter by host functionality to syslogd</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32693</link>
    <description>&lt;pre&gt;
It is unsafe.


&lt;/pre&gt;</description>
    <dc:creator>Theo de Raadt</dc:creator>
    <dc:date>2013-05-23T12:14:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32692">
    <title>Re: [PATCH] add filter by host functionality to syslogd</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32692</link>
    <description>&lt;pre&gt;no, it is really a resolvable hosts.
works correctly with name in /etc/hosts.

  


&lt;/pre&gt;</description>
    <dc:creator>Gregory Edigarov</dc:creator>
    <dc:date>2013-05-23T09:57:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32691">
    <title>Re: pf state tracking and tos/dscp</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32691</link>
    <description>&lt;pre&gt;The TOS class isn't (and can't be) used to match packets to the state. Once you have created state from a packet with one TOS class, other packets with the same src/dest ip/port match this state even if the class is different. (It has to be this way - say you are natting - you wouldn't want a different source port if some packets  happen to use different TOS).

PF states include two queue names - one for normal traffic, one for "high prioroty" traffic: empty TCP ACKs and packets with TOS 'lowdelay' (0x10). So perhaps you would get somewhere by using 'match in from $work871 tos 0xB8 set tos lowdelay' to re-mark the incoming packets as 'lowdelay' and using e.g. 'set queue (vpn, vpn-fast)'.

Otherwise, if you don't need NAT, disabling state tracking for these packets might be an option.

Adam Gensler &amp;lt;openbsd&amp;lt; at &amp;gt;kristenandadam.net&amp;gt; wrote:




&lt;/pre&gt;</description>
    <dc:creator>Stuart Henderson</dc:creator>
    <dc:date>2013-05-23T07:39:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.openbsd.tech/32690">
    <title>Re: pf state tracking and tos/dscp</title>
    <link>http://permalink.gmane.org/gmane.os.openbsd.tech/32690</link>
    <description>&lt;pre&gt;

Another possible thing I see, is a tunnel originating side.

Since tos rules you have are unidirectional (in terms of match),
they will create state if only first packet comes from $work871.

However, first packet coming from other side will match another
rule and create state, so all subsequent tunnel's packets will
not hit tos rules.


&lt;/pre&gt;</description>
    <dc:creator>Alexey E. Suslikov</dc:creator>
    <dc:date>2013-05-23T06:55:55</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.os.openbsd.tech">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.os.openbsd.tech</link>
  </textinput>
</rdf:RDF>
