ukbd(4): support apple brightness keys

2020-10-26 Thread Tobias Heider
Hi, the diff below makes the brightness keys work on apple powerbooks > 5,6 where the keyboard attaches via ukbd(4). I'm wondering if it would be better to go through wskbd as is done with audio, but we don't have keycodes allocated for brightness up/down. Thoughts? ok? Index: ukbd.c ===

Re: patch: httpd(8) use LOG_FTP for transfers, like $DEITY intended

2020-10-26 Thread Solene Rapenne
On Mon, 26 Oct 2020 17:32:41 +0100 : > #?patch > # > # This patch corrects the logging of transfers, of OpenBSD's httpd(8), > # to xferlog, where it belongs. > # > # A simple patch to a waaay overcomplicated bit of software (with insane > # defaults to boot; security anyone?). > # > # --z

Re: radeondrm(4) unaligned access fix

2020-10-26 Thread Mark Kettenis
> Date: Sun, 25 Oct 2020 10:42:38 +0100 (CET) > From: Mark Kettenis > > While making radeondrm(4) work on powerpc64 I'm running into an > interesting unaligned access issue. > > Modern POWER CPUs generally support unaligned access. Normal load and > store unstructions work fine with addresses t

Re: Thunderbolt(/USB4) followup & I'm happy to donate some hardware Re: Feature request: Use the PCIe devices on Thunderbolt (aka PCIe hotplug?)

2020-10-26 Thread Joseph Mayer
Hi Tom, I share your understanding that Thunderbolt has a lower security profile due to TB having dynamic memory addresses access while USB does not. I presume the engineering idea is that the IOMMU (when enabled and properly configured) should uphold memory safety. Remember though you have this

libagentx use variable for malloc argument

2020-10-26 Thread Martijn van Duren
OK? martijn@ Index: ax.c === RCS file: /cvs/src/lib/libagentx/ax.c,v retrieving revision 1.2 diff -u -p -r1.2 ax.c --- ax.c26 Oct 2020 16:02:16 - 1.2 +++ ax.c26 Oct 2020 18:07:30 - @@ -69,9 +69,9 @@ ax_ne

Re: [patch] const cclasses reference in ksh

2020-10-26 Thread Philip Guenther
On Mon, Oct 26, 2020 at 8:35 AM Matthew Martin wrote: > Recently cclasses in lib/libc/gen/charclass.h was made const.[1] > Mark the pointer used to walk the array in ksh const as well. > > 1: https://marc.info/?l=openbsd-cvs&m=160256416506433&w=2 > Ugh, I totally missed that reach-around. ok gu

Re: macppc: fix wsconsctl for non-vgafb

2020-10-26 Thread Mark Kettenis
> Date: Mon, 26 Oct 2020 18:20:25 +0100 > From: Tobias Heider > > Hi, > > i am trying to get backlight and brightness control running on my > Powerbook G4. Both can be controlled via ofw. > The vgafb(4) video driver currently directly calls of_setbrightness() directly > instead of relying on ws

patch: httpd(8) use LOG_FTP for transfers, like $DEITY intended

2020-10-26 Thread zeurkous
#?patch # # This patch corrects the logging of transfers, of OpenBSD's httpd(8), # to xferlog, where it belongs. # # A simple patch to a waaay overcomplicated bit of software (with insane # defaults to boot; security anyone?). # # --zeurkous, Sat Oct 24 17:51:55 UTC 2020. # --- src/usr.sbi

[patch] const cclasses reference in ksh

2020-10-26 Thread Matthew Martin
Recently cclasses in lib/libc/gen/charclass.h was made const.[1] Mark the pointer used to walk the array in ksh const as well. 1: https://marc.info/?l=openbsd-cvs&m=160256416506433&w=2 diff --git misc.c misc.c index 9e6e9db5e76..7226f74eccf 100644 --- misc.c +++ misc.c @@ -713,7 +713,7 @@ do_gma

macppc: fix wsconsctl for non-vgafb

2020-10-26 Thread Tobias Heider
Hi, i am trying to get backlight and brightness control running on my Powerbook G4. Both can be controlled via ofw. The vgafb(4) video driver currently directly calls of_setbrightness() directly instead of relying on wscons, DRM users are out of luck. The diff below wires the ofw backlight comma

relayd: allow mix of TLS and non-TLS backend

2020-10-26 Thread Denis Fondras
With this config : --- relay "proxy" { listen on {{publicip}} port 443 tls protocol "httpproxy" forward with tls to port 443 forward to port 10100 } --- relayd(8) will currently use TLS for all backends. This diff will use TLS only if 'with tls' is used. In the example above, relayd w

Re: Please test: switch select(2) to kqfilters

2020-10-26 Thread Scott Cheloha
On Mon, Oct 12, 2020 at 11:11:36AM +0200, Martin Pieuchot wrote: > On 09/10/20(Fri) 10:38, Martin Pieuchot wrote: > > On 02/10/20(Fri) 12:19, Martin Pieuchot wrote: > > > Diff below modifies the internal implementation of {p,}select(2) to > > > query kqfilter handlers instead of poll ones. > > > >

Re: Let relayd use libagentx

2020-10-26 Thread Theo Buehler
On Mon, Oct 26, 2020 at 05:20:09PM +0100, Martijn van Duren wrote: > Mostly mechanical diff coping with the API-change for libagentx > just committed and link it to libagentx instead of using its own > copy. > > This also allows for the removal of {sub,}agentx.[ch] > subagentx_internal.h and subag

Let relayd use libagentx

2020-10-26 Thread Martijn van Duren
Mostly mechanical diff coping with the API-change for libagentx just committed and link it to libagentx instead of using its own copy. This also allows for the removal of {sub,}agentx.[ch] subagentx_internal.h and subagentx_log.c, not included in the diff. OK? martijn@ Index: Makefile =

Thunderbolt(/USB4) followup & I'm happy to donate some hardware Re: Feature request: Use the PCIe devices on Thunderbolt (aka PCIe hotplug?)

2020-10-26 Thread Joseph Mayer
(If this one belongs on misc@ please say.) Hi tech@, If anyone is interested in implementing Thunderbolt support for OpenBSD, I'd like to donate some PCIe expansion Thunderbolt 3 enclosure and M.2 NVMe SSD Thunderbolt 3 enclosure as appropriate, if so please let me know. BSDCan 2020 presentation

Re: Thunderbolt(/USB4) followup & I'm happy to donate some hardware Re: Feature request: Use the PCIe devices on Thunderbolt (aka PCIe hotplug?)

2020-10-26 Thread Tom Smyth
Hi Joseph,All There are some PCI-E attack surfaces that might need to be considered... perhaps the availability of more devices with thunderbolt connections make PCI-E / DMA Attacks more viable and hence more prevalent. https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-934.pdf I did come across in

Re: Infinite loop in uvm protection mapping

2020-10-26 Thread Tom Rollet
On 26/10/2020 03:31, Tom Rollet wrote: On 20/10/2020 06:16, Philip Guenther wrote: On Mon, Oct 19, 2020 at 3:13 PM Tom Rollet > wrote: Hi, I'm starting to help in the development of the dt device. I'm stuck on permission handling of memory. I'm trying t

Re: httpd(8): fix location duplicate detection

2020-10-26 Thread Denis Fondras
On Mon, Oct 26, 2020 at 09:28:54AM +0100, m...@fn.de wrote: > Ping. Latest diff below. > OK denis@ I will commit tonight if nobody stands against. Thank you. > Index: usr.sbin/httpd/parse.y > === > RCS file: /cvs/src/usr.sbin/httpd

Re: httpd(8): fix location duplicate detection

2020-10-26 Thread mpfr
Ping. Latest diff below. Index: usr.sbin/httpd/parse.y === RCS file: /cvs/src/usr.sbin/httpd/parse.y,v retrieving revision 1.118 diff -u -p -u -p -r1.118 parse.y --- usr.sbin/httpd/parse.y 11 Oct 2020 03:21:44 - 1.118 ++

Re: uplcom driver update for 23a3 (HXN) chip

2020-10-26 Thread Stefan Huber
On 26.10.2020 09:30, Patrick Wildt wrote: On Mon, Oct 26, 2020 at 09:12:17AM +0100, Stefan Huber wrote: Hey all, I recently got hands on an USB-TTY converter that is not (yet) supported by OpenBSD: > addr 03: 067b:23a3 Prolific Technology Inc., USB-Serial Controller Simply adding the device I

Re: uplcom driver update for 23a3 (HXN) chip

2020-10-26 Thread Patrick Wildt
On Mon, Oct 26, 2020 at 09:12:17AM +0100, Stefan Huber wrote: > Hey all, > > I recently got hands on an USB-TTY converter that is not (yet) supported by > OpenBSD: > > > addr 03: 067b:23a3 Prolific Technology Inc., USB-Serial Controller > > Simply adding the device ID to usbdevs and the uplcom d

Re: [PATCH] bgpd leaks memory when reading roa-set

2020-10-26 Thread Claudio Jeker
On Sun, Oct 25, 2020 at 01:44:43PM +0100, Felix Maurer wrote: > I noticed that bgpd leaks memory when it parses a roa-set containing > multiple entries with the same prefix. Such entries are present in the > output rpki-client generates at the moment. To use rpki-client, one needs to > reload bgpd

uplcom driver update for 23a3 (HXN) chip

2020-10-26 Thread Stefan Huber
Hey all, I recently got hands on an USB-TTY converter that is not (yet) supported by OpenBSD: addr 03: 067b:23a3 Prolific Technology Inc., USB-Serial Controller Simply adding the device ID to usbdevs and the uplcom driver did not do the trick, as apparently it is what the linux driver call