Re: strcmp.c: make it a little cleaner

2020-09-11 Thread Greg Steuck
west...@airmail.cc writes: > I accidentally included a duplicated patch. > Let's try again. I agree the changed code is substantially more readable. Yet, the change results in different assembly on e.g. amd64. Now, given that the code was like this in 4.4BSD Lite and still is like this in FreeBS

Re: [Patch] Change httpd's handling of request "Host:" headers

2020-09-11 Thread Rafael Possamai
>I've been using the following at the top of my httpd.conf for a while >now and it seems to be working fine: > >server "default" { >    listen on * port 80 >     block return 400 >} > >This should also prevent httpd from wasting cycles looking for >non-existent locations on the filesystem

Re: [Patch] Change httpd's handling of request "Host:" headers

2020-09-11 Thread Jordan Geoghegan
On 2020-08-10 08:49, Jeremie Courreges-Anglas wrote: On Sun, Aug 09 2020, Ross L Richardson wrote: At present, if a request contains no "Host:" header [HTTP pre-1.1] or if the supplied header does not match any of the servers configured in httpd.conf, the request is directed to the first ser

Re: acpiapplesmc(4)

2020-09-11 Thread Mark Kettenis
> Date: Fri, 11 Sep 2020 17:42:23 +0200 > From: Marcus Glocker > > On Thu, 10 Sep 2020 23:44:38 +0200 > Joerg Jung wrote: > > > Don’t give up so quickly ;) > > let’s try to make the driver work on your iMac, send me dmesg and > > sysctl hw output please. > > > > Your idea of converting it to

rtm_getifa: Never ignore RTA_IFP

2020-09-11 Thread Demi M. Obenour
If an RTM_ADD command on a routing socket includes an RTA_IFA sockaddr, and that sockaddr is an exact match for one of the interfaces in the relevant routing domain, any RTA_IFP sockaddr in the same message is ignored. If there are multiple interfaces with the same IP address, this can cause packe

Re: utpms(4): fix geyser 2 y_sensors

2020-09-11 Thread Patrick Wildt
On Thu, Sep 10, 2020 at 10:13:30AM +0200, Tobias Heider wrote: > Hi, > > the newer Geyser 2 touchpad has only 9 sensors in the Y-direction instead > of 16 like the other Apple touch pads. > The driver sets sc_y_sensors correctly and then immediately overwrites > it with the wrong default. > I thin

PATCH: Add cookie argument to pci_add_device/pci_add_bar for vmd, needed for PCI passthrough

2020-09-11 Thread Jordan Hargrave
This patch adds an extra size/cookie argument to pci_add_device and pci_add_bar. Changes required for implementing passthrough PCI. diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c index 954235eb6..47a133b9a 100644 --- a/usr.sbin/vmd/pci.c +++ b/usr.sbin/vmd/pci.c @@ -39,6 +39,26 @@ extern cha

Re: acpiapplesmc(4)

2020-09-11 Thread Marcus Glocker
On Thu, 10 Sep 2020 23:44:38 +0200 Joerg Jung wrote: > Don’t give up so quickly ;) > let’s try to make the driver work on your iMac, send me dmesg and > sysctl hw output please. > > Your idea of converting it to ACPI is the right thing to do anyways, > would be nice to get this working. Here w

Re: Format string check for dprintf(3)

2020-09-11 Thread Theo de Raadt
ok deraadt Christian Weisgerber wrote: > Add format string checking annotations for dprintf(3) and vdprintf(3). > > This was apparently forgotten when the functions were added. It is > required so the compiler can warn > > t.c:25:25: warning: format string is not a string literal (potentially

Re: strcmp.c: make it a little cleaner

2020-09-11 Thread western
I accidentally included a duplicated patch. Let's try again. Index: strcmp.c === RCS file: /cvs/src/lib/libc/string/strcmp.c,v retrieving revision 1.9 diff -u -p -u -p -r1.9 strcmp.c --- strcmp.c31 Aug 2015 02:53:57 - 1.

strcmp.c: make it a little cleaner

2020-09-11 Thread western
By using a for loop instead of a while loop, the pointers s1 and s2 are not unnecessarily incremented, and how they're manipulated is not all over the place. Index: strcmp.c === RCS file: /cvs/src/lib/libc/string/strcmp.c,v retriev

Re: httpd: use the original uri for REQUEST_URI

2020-09-11 Thread Todd C . Miller
On Fri, 11 Sep 2020 16:55:35 +0900, YASUOKA Masahiko wrote: > Anyone? > > This is a tiny change but makes httpd(8) more correct. > The diff is not so complicated. OK millert@ - todd

Re: UVM tracepoints for dt(4)

2020-09-11 Thread Mark Kettenis
> Date: Fri, 11 Sep 2020 10:23:34 +0200 > From: Martin Pieuchot > > To investigate the race exposed by the last locking change in > uvm_map_inentry() [0], I'd like to add the following tracepoints. > > The idea is to compare page fault addresses and permissions with > the insertion/removal of en

Re: httpd: use the original uri for REQUEST_URI

2020-09-11 Thread YASUOKA Masahiko
Anyone? This is a tiny change but makes httpd(8) more correct. The diff is not so complicated. On Thu, 03 Sep 2020 13:09:49 +0900 (JST) YASUOKA Masahiko wrote: > Let me update the diff. Previous doesn't have an error handling when > strdup() failed. > > On Thu, 03 Sep 2020 13:02:51 +0900 (JST)

UVM tracepoints for dt(4)

2020-09-11 Thread Martin Pieuchot
To investigate the race exposed by the last locking change in uvm_map_inentry() [0], I'd like to add the following tracepoints. The idea is to compare page fault addresses and permissions with the insertion/removal of entries in a given map. Diff below is the first part of the puzzle, ok? [0] ht