Re: pf log drop default rule

2023-10-13 Thread J Doe
ket, but shows up in WireShark as "pass". Thanks, - J

Re: Some bwfm(4) diffs

2023-10-11 Thread Peter J. Philipp
On Tue, Oct 10, 2023 at 06:25:44AM +0200, Peter J. Philipp wrote: > > > Thanks, I actually have one of these myself. So I'm going to > > > investigate (and probably drop one of the diffs). > > > > I don't see any problems on my machine. Firmware loads and

Re: Some bwfm(4) diffs

2023-10-09 Thread Peter J. Philipp
On Mon, Oct 09, 2023 at 10:07:36PM +0200, Mark Kettenis wrote: > > Date: Mon, 09 Oct 2023 20:31:04 +0200 > > From: Mark Kettenis > > > > > Date: Mon, 9 Oct 2023 06:09:57 +0200 > > > From: "Peter J. Philipp" > > > > > &g

Re: Some bwfm(4) diffs

2023-10-08 Thread Peter J. Philipp
On Sun, Oct 08, 2023 at 07:42:54PM +0200, Mark Kettenis wrote: > Hector Martin has added support for the BCM4388 that is found on the > last generation of Apple Macs. Based on his commits I've managed to > get it working on my M2 Pro mini. I still have to clean up some of > that stuff, but here

Re: document USE_NOBTCFI in bsd.port.mk

2023-09-08 Thread Anthony J. Bentley
Lucas Raab writes: > New version attached ok bentley@ > diff /usr/src > commit - 2933f00289463a6d1923d1b9cc5e5c1c5c697ece > path + /usr/src > blob - 00ec6c3f81fcf03ea69eabe8de1741a6e562 > file + share/man/man5/bsd.port.mk.5 > --- share/man/man5/bsd.port.mk.5 > +++

Re: document USE_NOBTCFI in bsd.port.mk

2023-09-08 Thread Anthony J. Bentley
Lucas Raab writes: > +writes a wrapper script to ${WRKDIR}/bin/ld in Use: .Pa ${WRKDIR}/bin/ld I see it's wrong elsewhere in the manpage, but let's not introduce another. > +.Cm patch > +to request that the linker adds an > +.Dv PT_OPENBSD_NOBTCFI > +ELF section. Use when a port requires no

Re: document USE_NOBTCFI in bsd.port.mk

2023-09-08 Thread Anthony J. Bentley
Lucas Raab writes: > +Use when a port requires no enforcement of indirect branch targets. Use New sentence, new line. > +.Ev USE_NOBTCFI-${MACHINE_ARCH} > +to apply to specific architectures instead of all architectures. I would invert the wording: "Applies to all architectures; set

Re: simple pledge for xeyes(1)

2023-09-08 Thread Anthony J. Bentley
Sebastien Marie writes: > For me, you are pledging too early (before initialization). I agree with everything you said regarding pledge(2) technique, including this statement, but it is worth remembering that the list of promises can be narrowed later with another pledge call. It's very

Re: riscv64 possible alignment issue?

2023-09-06 Thread Peter J. Philipp
On Tue, Sep 05, 2023 at 11:40:42PM +0200, Peter J. Philipp wrote: > Hi, > > I'm porting OpenBSD to the Mango Pi D1. Most of the work is done but now > is the time to try to get a RAMDISK kernel to boot. > > I'm having an issue with atomic_store_64() as shown here (line 1

riscv64 possible alignment issue?

2023-09-05 Thread Peter J. Philipp
Hi, I'm porting OpenBSD to the Mango Pi D1. Most of the work is done but now is the time to try to get a RAMDISK kernel to boot. I'm having an issue with atomic_store_64() as shown here (line 1192): 1184 for (; va < DMAP_MAX_ADDRESS && pa < max_pa; 1185 pa += L1_SIZE,

Re: ping.c modifications proof of concept

2023-08-24 Thread Peter J. Philipp
On Thu, Aug 24, 2023 at 09:22:07AM -0400, A Tammy wrote: > I don't think having a daemon for ping (or other trivial network > operations) might be the best design. There's nothing about the service > that demands a continuously running process in the background. > > Aisha Ok Aisha, thanks. Well

ping.c modifications proof of concept

2023-08-24 Thread Peter J. Philipp
in(int argc, char *argv[]) } if (options & F_HOSTNAME) { - if (pledge("stdio inet dns", NULL) == -1) + if (pledge("stdio unix dns recvfd", NULL) == -1) err(1, "pledge"); } else { -

Re: __predict_{true,false} is this right?

2023-08-22 Thread Peter J. Philipp
On Tue, Aug 22, 2023 at 02:33:39PM +0200, Peter J. Philipp wrote: > Hi, > > I have an outstanding bug report that I send to deraadt and claudio, in > reading the code I came across these macros: > > https://github.com/openbsd/src/blame/master/sys/sys/cdefs.h > > li

__predict_{true,false} is this right?

2023-08-22 Thread Peter J. Philipp
Hi, I have an outstanding bug report that I send to deraadt and claudio, in reading the code I came across these macros: https://github.com/openbsd/src/blame/master/sys/sys/cdefs.h lines 195 and 196. Now my question, does this not sorta look wrong? Shouldn't these values be a little more

Re: Diff for evaluation (WACOM tablet driver)

2023-08-12 Thread Peter J. Philipp
On Sat, Aug 12, 2023 at 02:27:13PM +, Miod Vallat wrote: > Third time's (hopefully) the charm. How about that diff? Too much things > have been removed in uwacom. partial success! The wacom driver is recognized, no panics this time. But the input is all over the place when I try to draw

Re: Diff for evaluation (WACOM tablet driver)

2023-08-12 Thread Peter J. Philipp
On Sat, Aug 12, 2023 at 01:12:26PM +, Miod Vallat wrote: > > On Sat, Aug 12, 2023 at 08:00:48AM +, Miod Vallat wrote: > > > I have had a look at your diff and I think it's decent enough to go in > > > after some polishing. > > > > > > Can Wacom tablet users try this cleaned up diff? > >

Re: Diff for evaluation (WACOM tablet driver)

2023-08-12 Thread Peter J. Philipp
On Sat, Aug 12, 2023 at 08:00:48AM +, Miod Vallat wrote: > I have had a look at your diff and I think it's decent enough to go in > after some polishing. > > Can Wacom tablet users try this cleaned up diff? Hi, My WACOM tablet stopped working with this, here is a dmesg with the patch and

Re: buffer overprint in riscv64/cpu.c

2023-08-04 Thread Peter J. Philipp
On Tue, Aug 01, 2023 at 01:43:36PM +0200, p...@delphinusdns.org wrote: > >Synopsis:non-terminated strings buffer in riscv64/cpu.c > >Category:kernel > >Environment: > System : OpenBSD 7.3 > Details : OpenBSD 7.3-current (GENERIC.MP) #376: Thu Jul 13 > 03:59:40 MDT

Re: sigcontext in signal.h

2023-08-03 Thread Peter J. Philipp
On Thu, Aug 03, 2023 at 08:11:40PM +0200, Robert Palm wrote: > I am looking at following code from arm64 and riscv64. > > ARM64: > https://github.com/openbsd/src/blob/master/sys/arch/arm64/include/signal.h#L51 > > -- > struct sigcontext { > int

Re: add extract example to tar(1) man page

2023-08-03 Thread Peter J. Philipp
On Thu, Aug 03, 2023 at 08:29:31AM +0200, Peter J. Philipp wrote: > On Thu, Aug 03, 2023 at 07:23:45AM +0100, Jason McIntyre wrote: > > On Wed, Aug 02, 2023 at 05:52:02PM -0400, aisha wrote: > > > Hi, > > > Someone - https://www.youtube.com/watch?v=NQ5uD5x8vzg - me

Re: add extract example to tar(1) man page

2023-08-03 Thread Peter J. Philipp
On Thu, Aug 03, 2023 at 07:23:45AM +0100, Jason McIntyre wrote: > On Wed, Aug 02, 2023 at 05:52:02PM -0400, aisha wrote: > > Hi, > > Someone - https://www.youtube.com/watch?v=NQ5uD5x8vzg - mentioned that > > our man page for tar(1) doesn't have an extract example, so I thought it > > would be

Re: VisionFive 2

2023-08-01 Thread Peter J. Philipp
On Tue, Aug 01, 2023 at 11:11:43PM +0200, Robert Palm wrote: > I own a VF 2 version 1.2a and can successfully install / boot the machine. > > The inner network port (dwqe1) works at 100 full duplex and receives ipv4 > via DHCP. > > The outer port currently doesn't seem to get an ip, but gets

calendar.usholiday: add Juneteenth

2023-05-15 Thread Anthony J. Bentley
A federal holiday since 2021. ok? Index: usr.bin/calendar/calendars/calendar.usholiday === RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.usholiday,v retrieving revision 1.9 diff -u -p -r1.9 calendar.usholiday ---

Re: crontab: support random offsets for steps

2023-05-04 Thread matthew j weaver
On Wed, May 3, 2023, at 15:30, Todd C. Miller wrote: > Opinions? Does the proposed syntax seem OK? Speaking strictly as an operator/administrator, I think this is great. I would use it immediately, as it replaces deployed configuration I have in place today which does something roughly

/var/db/kernel.SHA256 - kernel relinking

2023-04-10 Thread Heppler, J. Scott
=12389 My fix was to cp kernel.SHA256 KERNEL.SHA256 and run sha256 -h /var/db/KERNEL.SHA256 /bsd My other machine was running an up-to-date current and /var/db is also populated w/ kernel.SHA256. -- J. Scott Heppler Penguin Innovations

Re: [PATCH] Add -executable, -readable, and -writable options to /usr/bin/find

2023-04-02 Thread Anthony J. Bentley
Stuart Henderson writes: > On 2023/04/01 11:27, Jared Harper wrote: > > For some reason I haven't received the email from Solène (even after > > requesting it re-sent on lists.openbsd.org; nor is it in spam; I will > > look further into this issue), so I'm adding my reply in-line here: > >

Re: patch for httpd implementing clickjacking protection

2023-02-07 Thread Peter J. Philipp
On Tue, Feb 07, 2023 at 10:41:34AM +, Stuart Henderson wrote: > On 2023/02/07 10:20, Peter J. Philipp wrote: > > Hi, > > > > Arslan Kabeer (on the Internet) made me aware of clickjacking being done on > > my site using OpenBSD httpd. This following patch implement

patch for httpd implementing clickjacking protection

2023-02-07 Thread Peter J. Philipp
Hi, Arslan Kabeer (on the Internet) made me aware of clickjacking being done on my site using OpenBSD httpd. This following patch implements a RFC 7034 protection called "noiframe" which disallows other sites (but not the same site) to add an iframe to my site. The config change is like this:

Re: define arm system register names

2022-12-29 Thread Peter J. Philipp
On Thu, Dec 29, 2022 at 02:38:18PM +0100, Janne Johansson wrote: > > +#defineSCTLR_EOE 0x0100 /* endianness of > > explcit data */ > > Misspelled "explicit" there. > > -- > May the most significant bit of your life be positive. Some had to be cut short in order

define arm system register names

2022-12-29 Thread Peter J. Philipp
from: https://developer.arm.com/documentation/den0024/a/ARMv8-Registers/System-registers/The-system-control-register?lang=en The following patch tries to describe the system register in the source code to the best of my ability. Source comment change only, no binary change. Excuse that this is

TrustCore/Msgsafe Certificate Authority -

2022-11-12 Thread Heppler, J. Scott
Worth looking into? https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/oxX69KFvsm4 -- J. Scott Heppler

Re: 7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Heppler, J. Scott
GPT(G). The whole disk should have been newly formatted. /etc/installurl came up as my nearest mirror: mirrors.sonic.net which I had previously used for the snapshot install. If it's working - sorry for the noise. On Oct 20, 2022: 17:32, Stuart Henderson wrote: On 2022/10/20 09:05, Heppler, J

7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Heppler, J. Scott
Using the miniroot img from https://cdn.openbsd.org/pub/OpenBSD/7.2, the set retrival still points to snapshots. -- J. Scott Heppler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

duplicate line in /etc/protocols

2022-09-22 Thread j
Noticed this while reading files. Accidental duplication of a line in /etc/protocols. --J Index: protocols === RCS file: /cvs/src/etc/protocols,v retrieving revision 1.24 diff -u -p -u -r1.24 protocols --- protocols 12 Jul 2014

match driver rkanxdp(4) with netbsd further...

2022-04-16 Thread Peter J. Philipp
Hi, I don't know if we're locked but I'd like to point out that in NetBSD's http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/rockchip/rk_anxdp.c.diff?r1=1.3=1.4_with_tag=MAIN There is this change from 0x3 to 0x2. I don't know if it'll help me, as I have a pinephone pro and this driver had

Re: adding MIME type for XSLT

2022-02-11 Thread Anthony J. Bentley
Jesse Alama writes: > XSLT is a well-established XML-based language for stylesheets. It has been ar > ound since the late 90s; the most recent version was finalized in 2017 (see > https://www.w3.org/TR/xslt-30/). The mime.types file bundled with OpenBSD 7.0 > -- typically used with httpd --

Re: DANE in libressl?

2021-08-29 Thread Peter J. Philipp
out there is doing this already right? Best Regards, -peter > Peter J. Philipp wrote: > > > Hi, > > > > I was wondering if anyone has wanted to implement DANE functions into > > OpenBSD? > > And LibreSSL perhaps? I want this for syslogd with TLS, but not sure if

DANE in libressl?

2021-08-29 Thread Peter J. Philipp
Hi, I was wondering if anyone has wanted to implement DANE functions into OpenBSD? And LibreSSL perhaps? I want this for syslogd with TLS, but not sure if I'd be on someones toes here, if I start implementing... With unwind we can make use of things such as DANE due to validation of DNSSEC.

Re: list hyperv features in dmesg

2021-06-14 Thread Peter J. Philipp
, struct if (hv_vmbus_connect(sc)) return; - DPRINTF("%s", sc->sc_dev.dv_xname); - printf(": protocol %d.%d, features %#x\n", - VMBUS_VERSION_MAJOR(sc->sc_proto), - VMBUS_VERSION_MINOR(sc->sc_proto), - hv->

list hyperv features in dmesg

2021-06-14 Thread Peter J. Philipp
Hi, I may be interested in looking into hyperv since I have a MS Windows Server 2019 machine that has a hyper-v running OpenBSD (half the resources). I have two things that would need my attention 1. the time doesn't jump when I patch the host OS and reboot, hyperv guest gets snapshotted at boot

Re: uwacom: reduce tip pressure for click activation

2021-06-03 Thread Peter J. Philipp
On Thu, Jun 03, 2021 at 09:23:16PM +0200, Stefan Hagen wrote: > Peter J. Philipp wrote: > > On Thu, Jun 03, 2021 at 08:06:06PM +0200, Stefan Hagen wrote: > >> Which one? > > > > It didn't say in the dmesg if I recall correctly, luckily I found the > > packaging.

Re: uwacom: reduce tip pressure for click activation

2021-06-03 Thread Peter J. Philipp
On Thu, Jun 03, 2021 at 08:06:06PM +0200, Stefan Hagen wrote: > Peter J. Philipp wrote: > > > I have a Wacom Intuos. > > Which one? It didn't say in the dmesg if I recall correctly, luckily I found the packaging. CTL-490 DW-S. > > I found that I could no

Re: uwacom: reduce tip pressure for click activation

2021-06-03 Thread Peter J. Philipp
On Thu, Jun 03, 2021 at 05:10:57PM +0200, Stefan Hagen wrote: > Hi, > > I'm using a Wacom CTL-490 to draw on virtual whiteboards in online > meetings. Hi, I tried your patch and got rejections, though I was able to fix it. I have a Wacom Intuos. I found that I could not write anything as good

Re: macppc bsd.mp pmap's hash lock

2021-05-19 Thread Peter J. Philipp
[cross posting this to ppc@] On Wed, May 19, 2021 at 12:27:51AM -0400, George Koehler wrote: > On Thu, 13 May 2021 02:20:45 -0400 > George Koehler wrote: > > > My last diff (11 May 2021) still has a potential problem with memory > > barriers. I will mail a new diff if I think of a fix. > >

Re: httpd with rdomain

2021-05-17 Thread Peter J. Philipp
On Mon, May 17, 2021 at 05:55:00PM +0200, Claudio Jeker wrote: [..] > > Granted I did not test it with a difficult config. And I advise any > > committer > > to test this fully before trusting my code. For me it's better than using > > route and starting httpd twice, though. > > > > I don't

httpd with rdomain

2021-05-17 Thread Peter J. Philipp
Hi, I found myself wanting this, this morning. I made a patch but then I put it in the wrong spot, and noticed it needed rewriting of SERVER in parse.y. Later in the day I found myself looking into this, and a better patch came out of it. It works on a simple setup for me (mind the censored

explicit_bzero csalt

2021-01-21 Thread Peter J. Philipp
Hi, On IRC, someone and I were arbitrarily going through bcrypt.c and I noticed the following resulting from bcrypt_newhash(): int bcrypt_newhash(const char *pass, int log_rounds, char *hash, size_t hashlen) { char salt[BCRYPT_SALTSPACE]; if (bcrypt_initsalt(log_rounds, salt,

Re: acme-client(1): backup certs

2021-01-02 Thread Peter J. Philipp
On Sat, Jan 02, 2021 at 05:10:01PM -0600, Chris Bennett wrote: > On Sat, Jan 02, 2021 at 05:23:11PM +0100, Florian Obser wrote: > > > > Create .1 backup files when acme-client is going to overwrite a > > certificate file. > > > > This files are not terribly big and it's convenient to keep one >

Re: AUDIORECDEVICE environment variable in sndio lib

2020-11-18 Thread Peter J. Philipp
Sorry I apologize, I had my kern.audio.record set to 0. It works for me. *red faced* -peter On Wed, Nov 18, 2020 at 04:12:25PM +0100, Peter J. Philipp wrote: > On Wed, Nov 18, 2020 at 11:00:17AM +0100, Alexandre Ratchov wrote: > > Thanks; semarie suggested a similar diff,

Re: AUDIORECDEVICE environment variable in sndio lib

2020-11-18 Thread Peter J. Philipp
On Wed, Nov 18, 2020 at 11:00:17AM +0100, Alexandre Ratchov wrote: > Thanks; semarie suggested a similar diff, so below is an attempt to > take into account all the suggestions: > > - add AUDIOPLAYDEVICE, to handle play-only devices as well. We've the > very same problem for them. > > - use

Re: AUDIORECDEVICE environment variable in sndio lib

2020-11-17 Thread Peter J. Philipp
On Tue, Nov 17, 2020 at 05:09:28PM +, Stuart Henderson wrote: > On 2020/11/17 17:13, Peter J. Philipp wrote: > > Hi, > > > > I have a mic on snd/1 and speakers on snd/0. I had tried a lot of different > > settings with audacity port but couldn't get this to work

AUDIORECDEVICE environment variable in sndio lib

2020-11-17 Thread Peter J. Philipp
Hi, I have a mic on snd/1 and speakers on snd/0. I had tried a lot of different settings with audacity port but couldn't get this to work, so I chose the method of last resort. Below is a patch to allow an AUDIORECDEVICE environment variable specifying the wanted microphone. -peter Index:

Re: Fix ilogb(3)

2020-11-02 Thread j
...snip... Here is a diff that fixes those issues by: ...snip... The code reads OK. Needs the manpage update to refer to FP_ILOGB0 not INT_MIN. John

Re: ssh(1), getrrsetbyname(3), SSHFP and DNSSEC

2020-07-29 Thread Peter J. Philipp
On Wed, Jul 29, 2020 at 05:42:16PM +0200, Florian Obser wrote: > > First you mention fallback to DHCP-learned resolvers. Those you should > > probably not trust indeed, but it looks like unwind(8) attempts to use > > them to perform its own validation. So the value of the AD flag in > >

Re: ssh(1), getrrsetbyname(3), SSHFP and DNSSEC

2020-07-17 Thread Peter J. Philipp
On Fri, Jul 17, 2020 at 11:45:22PM +0200, Jesper Wallin wrote: > Thoughts? > > > Yours, > Jesper Wallin I found this very interesting. Too bad you didn't quote any RFC's that support this behaviour because RFC 4033 says you shouldn't set the AD bit in a query, RFC 4035 says something similar,

DNS options for sppp(4)

2020-07-06 Thread Peter J. Philipp
Hello, This is an old patch from Gerhard Roth, and mpf@ dating back to 2007. Please see: https://marc.info/?l=openbsd-tech=134943767022961=2 I contacted Gerhard who said instead of begging for this I should make it IPv6 capable. So I tried and nearly flooded my ISP off the net (sorry), it

Re: Error reporting in ikev2_ike_sa_alive (was: Improve error reporting in pfkey_sa_last_used)

2020-06-03 Thread matthew j weaver
On Sun, May 31, 2020, at 17:27, Tobias Heider wrote: > I don't think this is a good idea > With your diff the log gets spammed with 'Undefined error: 0' for child SAs > that have never been used. > Also log_warn seems a bit too much as those errors are rarely serious. Thank you for having a

Re: Xwindows keymap weirdness

2020-06-01 Thread Anthony J. Bentley
Marc Espie writes: > > To setup the right alt key as compose, you can either: > > > > - run 'setxkbmap -option compose:ralt' somewhere in your session > > startup script > > > > - create /etc/X11/xorg.conf.d/90-keyboard.conf containing > > > > --- Cut --- > > Section "InputClass" > >

Error reporting in ikev2_ike_sa_alive (was: Improve error reporting in pfkey_sa_last_used)

2020-05-26 Thread matthew j weaver
During childsa last use checks, iked debug logs results, per SA, after a successful pfkey_sa_last_used call. This patch makes logging behavior more closely match that, on error. I chose log_warn instead of log_debug since iked will complain about the nonzero errno after pfkey_reply:

Improve error reporting in pfkey_sa_last_used

2020-05-24 Thread matthew j weaver
While I hunt for the reason child SAs expiring results in ESRCH during pfkey_sa_last_used, this more detailed log message on error is much more helpful than the default pretty print of "pfkey_sa_last_used: No such process". I suspect it's useful to others. Thank you, all. matthew weaver ---

Re: httpd diff (fixes single instance of XHTML-style element)

2020-05-20 Thread Anthony J. Bentley
owever, it's probably worthwhile to use the modern idiom here, which is -- Anthony J. Bentley

Re: Document vi range

2020-05-18 Thread Anthony J. Bentley
or equal to the second address. The first address must be greater than or equal to the first line of the file, and the last address must be less than or equal to the last line of the file. >From that I think trailing +/-, relative line numbers, and ?? regular expressions should be described too. > Comments, OK? Regarding markup: Ar should be used for things that get replaced (start, end, c, pattern) but literal characters like . $ % should use Cm. > +.Ar 'c This ' should be \(aq so it doesn't become a curly quote in groff -Tpdf. -- Anthony J. Bentley

Re: [PATCH] add ping(1)-like stats to tcpbench(1)

2020-05-02 Thread j
A couple of further questions embedded: On 2020-05-02 05:41, richard.n.proc...@gmail.com wrote: On Fri, 1 May 2020, j...@bitminer.ca wrote: > From: richard.n.procter () gmail ! com > This implements ping(1)-like summary statistics for tcpbench(1), e.g. > > ^C > --- loc

Re: [PATCH] add ping(1)-like stats to tcpbench(1)

2020-05-01 Thread j
From: richard.n.procter () gmail ! com Date: Fri, 01 May 2020 10:12:05 + To: openbsd-tech Subject: [PATCH] add ping(1)-like stats to tcpbench(1) Hi, This implements ping(1)-like summary statistics for tcpbench(1), e.g. ^C --- localhost tcpbench statistics --- 1099642814 bytes sent over

Re: powerpc: mplock & WITNESS

2020-04-10 Thread Peter J. Philipp
On Thu, Apr 09, 2020 at 10:58:29PM -0400, George Koehler wrote: > In the trace, #0 and #1 are wrong, but the rest of the trace looks > good enough for WITNESS. I added an artificial lock order reversal to > ums(4) for WITNESS to catch. I got this trace, > > #0 0xe4d764 > #1

Re: powerpc: mplock & WITNESS

2020-04-09 Thread Peter J. Philipp
On Thu, Apr 09, 2020 at 01:08:12PM +0200, Martin Pieuchot wrote: > On 09/04/20(Thu) 12:20, Peter J. Philipp wrote: > > It's April 9th for me, so no chance for April 1st things. Both patches > > didn't > > boot (they loaded on ofwboot though) for me. I assume you wan

Re: powerpc: mplock & WITNESS

2020-04-09 Thread Peter J. Philipp
It's April 9th for me, so no chance for April 1st things. Both patches didn't boot (they loaded on ofwboot though) for me. I assume you wanted me to enable WITNESS option which I did. The kernel did not print anything so it must have done something before openfirmware... I'm going to check out

arm64 mainbus.c patch

2020-04-09 Thread Peter J. Philipp
Hi, While code-reading the riscv64 port (which leans on some arm64 code), I have found a small gotcha in /sys/arch/arm64/dev/mainbus.c. The patch is self explanatory and leans on the fix from simplebus.c line 210. Index: mainbus.c

patch for dump for high percentages

2020-02-29 Thread Peter J. Philipp
Hi, I have a patch for dump(8) if it is generally considered bad if percentage done is over 100.0%. I checked the archives on marc.info for this and didn't see any discussion whether this was a topic before. Here is the odd DUMP message I got on a host: DUMP: 102.41% done, finished in 0:00

Re: add DIOCRADDADDRS ioctl to kern_pledge pf

2020-01-14 Thread Peter J. Philipp
On Tue, Jan 14, 2020 at 11:05:38AM -0700, Theo de Raadt wrote: > Some of the pledges (such as "pf") exist to support a cluster of > programs -- not just 1 program -- and improve their security by limiting > what they can do. So that when the program gets subverted due something > on it's input,

add DIOCRADDADDRS ioctl to kern_pledge pf

2020-01-14 Thread Peter J. Philipp
Hi, I'm in the process of building a program that adds IP addresses to a table, from the network, It is HMAC'ed. I was stopped by a pledge, it seems it was not configured. Here is the ktrace snippet: 40051 table-server CALL open(0xbb705fb11f6,0x2) 40051 table-server NAMI "/dev/pf" 40051

Re: FAQ4.html Commit Revert

2020-01-03 Thread Anthony J. Bentley
Diogo Galvao writes: > On Fri, Jan 3, 2020 at 6:37 PM Anthony J. Bentley wrote: > > > > What browser are you using that misrenders the page like that? > > Firefox 71.0. It must have something to do with monospace font > rendering on Windows. Thanks. These details wer

Re: FAQ4.html Commit Revert

2020-01-03 Thread Anthony J. Bentley
Diogo Galvao writes: > On Thu, Jan 2, 2020 at 12:46 PM Oleg Pahl wrote: > > > > could you be so kind to revert this commit in FAQ 4? > > > > https://cvsweb.openbsd.org/cgi-bin/cvsweb/www/faq/faq4.html.diff?r1=1.495 > 2=1.496 > > > > Instead of reverting the commit, this change in CSS fixes the

Re: Clarify drand48() return values

2019-12-20 Thread j
For completeness: Index: src/lib/libc/stdlib/rand48.3 === RCS file: /cvs/src/lib/libc/stdlib/rand48.3,v retrieving revision 1.20 diff -u -r1.20 rand48.3 --- src/lib/libc/stdlib/rand48.310 Nov 2015 23:48:18 - 1.20

Re: Clarify drand48() return values

2019-12-19 Thread j
OK ok ok. I admit and agree my original patch was flawed. Dumbing down need not be done just for my benefit. --J On 2019-12-19 21:34, Theo de Raadt wrote: Yes, it should be fixed. I'll let the math nerds crawl through the tree looking for additional errors. My objection stands, that we

Clarify drand48() return values

2019-12-19 Thread j
Clarify that drand48 returns values not including 1.0. Index: src/lib/libc/stdlib/rand48.3 === RCS file: /cvs/src/lib/libc/stdlib/rand48.3,v retrieving revision 1.20 diff -u -r1.20 rand48.3 --- src/lib/libc/stdlib/rand48.3

Re: ntpd is too noisy about 'DNS lookup tempfail' on IPv6 only hosts

2019-11-06 Thread Peter J. Philipp
On Wed, Nov 06, 2019 at 11:30:32AM +0100, Florian Obser wrote: > > @@ -94,7 +95,7 @@ host_dns1(const char *s, struct ntp_addr > > struct ntp_addr *h, *hh = NULL; > > > > memset(, 0, sizeof(hints)); > > - hints.ai_family = AF_UNSPEC; > > + hints.ai_family = (test_v4_gw() == 0)

ntpd is too noisy about 'DNS lookup tempfail' on IPv6 only hosts

2019-11-05 Thread Peter J. Philipp
Hi, I have an IPv6 only host arrowhead.ip6.centroid.eu, that has very noisy: Oct 29 09:12:48 arrowhead ntpd[18744]: DNS lookup tempfail Oct 29 09:21:45 arrowhead last message repeated 2 times in fact: arrowhead# grep 'DNS lookup tempfail' /var/log/daemon | wc -l 1354 This is because the

Re: ppppoe octeon kernel panic .6.6

2019-10-24 Thread Peter J. Philipp
Hi Miod, Thanks for helping. With this patch unfortunatly I still get a trap 2 on my small unifi security gateway which I pulled out again to test your patch. ---> cnmac0: 192.168.177.35 lease accepted from 192.168.177.1 (24:a4:3c:06:9f:16) pppoe0: received unexpected PADO pppoe0: host

Re: ppppoe octeon kernel panic .6.6

2019-10-23 Thread Peter J. Philipp
+0200, Janne Johansson wrote: > Den ons 23 okt. 2019 kl 09:15 skrev Peter J. Philipp : > > > Hi Holger & Tech, > > > > I have made my octeon router work again and I have a patch. > > > > > Truncated it a lot, leaving the things I reacted on: > > >

Re: ppppoe octeon kernel panic .6.6

2019-10-23 Thread Peter J. Philipp
On Wed, Oct 23, 2019 at 11:18:11AM +0200, Martin Pieuchot wrote: > On 23/10/19(Wed) 08:43, Peter J. Philipp wrote: > > Hi Holger & Tech, > > Hello Peter, > > > I have made my octeon router work again and I have a patch. But I'm not an > > openbsd developer, nor

Re: ppppoe octeon kernel panic .6.6

2019-10-23 Thread Peter J. Philipp
On Wed, Oct 23, 2019 at 08:21:50AM +0200, Holger Glaess wrote: > hi > > > here the traceback , i hope ;) Hi Holger & Tech, I have made my octeon router work again and I have a patch. But I'm not an openbsd developer, nor is this patch official in any way. It was a lot of debugging and

AMD64 current update overwrites grub2 in dual boot setup

2019-09-30 Thread Heppler, J. Scott
OpenBSD-current update. Please provide specifics as to what is needed. Thanks -- J. Scott Heppler

Re: printf.1: fix incorrect conversion of apostrophe

2019-06-02 Thread Anthony J. Bentley
Stephen Gregoratto writes: > In the escape sequences section of printf.1, the > character is represented using "\e\'". In UTF-8 mode, mandoc converts > this to an acute accent. To fix this I explicitly used "\(aq" as per the > Accents section of mandoc_char(7), although using "\e'" works as

typos in /src/sys/dev/pci/if_jme.c

2019-05-25 Thread J Sisson
Noticed a typo in jme(4) printf output. Found additional typos while browsing the code. Yes, possibly the most useless diff ever...I freely admit it. Index: sys/dev/pci/if_jme.c === RCS file: /cvs/src/sys/dev/pci/if_jme.c,v

Re: archaic quotes in calendar

2019-01-30 Thread Anthony J. Bentley
Jason McIntyre writes: > in the man page you have used Sq. that will make it mark up the same as > it already does: > > (`*') There's a difference: Ted uses a UTF-8 locale where Sq shows up as pretty Unicode quotes. Literally typing `' doesn't (not in the terminal, anyway). mandoc should

Re: if_pppoe.c patch

2019-01-20 Thread Peter J. Philipp
On Sun, Jan 20, 2019 at 12:56:22PM +, Stuart Henderson wrote: > On 2019/01/18 10:59, Peter J. Philipp wrote: > > I have "covered" up PPPoE Session ID's from users because it is a value that > > is only gotten on the Data Link layer and historically non-root users did

if_pppoe.c patch

2019-01-18 Thread Peter J. Philipp
I have "covered" up PPPoE Session ID's from users because it is a value that is only gotten on the Data Link layer and historically non-root users did not have access to that. It really is a value that doesn't concern them. I have wrapped the display with a suser() conditional. The magic value

handling of magic number in LCP echo replies

2019-01-18 Thread Peter J. Philipp
Hi, I'd like to get some help determining if this is a problem per se. In /sys/net/if_spppsubr.c lines 1323-1327 the nmagic is assembled and checked against sp->lcp.magic, and if it doesn't match then it does something weird. It resets the sp->pp_alivecnt to 0. This to me does nothing much

Re: [PATCH] Gemini Lake SoC pcidevs

2018-12-16 Thread Heppler, J. Scott
Revision=0x4 -- J. Scott Heppler

Re: [PATCH] add Gemini Lake SoC pcidevs

2018-12-13 Thread Heppler, J. Scott
I have an HP Stream 14 with an n4000 Gemini Lake mobile processor. The amd64_current does not find the eMMC storage Would it be of value to the project to apply the patch, generate an install image using release(8), test and submit the dmesg? -- J. Scott Heppler

Re: Importing FreeBSD eMMC code

2018-12-11 Thread Heppler, J. Scott
/parted. -- J. Scott Heppler --- Begin Message --- Heppler, J. Scott [shep...@centurylink.net] wrote: > I'll add my dmesg from an HP Stream 14 cb112wm > > OpenBSD 6.4-current (RAMDISK_CD) #465: Wed Nov 28 22:26:21 MST 2018 >dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compil

Re: Importing FreeBSD eMMC code

2018-12-10 Thread Heppler, J. Scott
at uvideo0 sdmmc0: can't enable card vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (50925dce733bad21.a) swap on sd0b dump on sd0b umass1 at uhub0 port 2 configuration 1 interface 0 "HP v125w" rev 2.00/1.00 addr 5 umass1: usi

Re: Importing FreeBSD eMMC code

2018-12-08 Thread Heppler, J. Scott
. Scott On Dec 06, 2018: 17:53, Chris Cappuccio wrote: Heppler, J. Scott [shep...@centurylink.net] wrote: I'll add my dmesg from an HP Stream 14 cb112wm OpenBSD 6.4-current (RAMDISK_CD) #465: Wed Nov 28 22:26:21 MST 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD sdhc0

Re: Importing FreeBSD eMMC code

2018-12-06 Thread Heppler, J. Scott
addr 4 at uhub0 port 6 not configured sdmmc0: can't enable card softraid0 at root scsibus1 at softraid0: 256 targets root on rd0a swap on rd0b dump on rd0b umass1 at uhub0 port 2 configuration 1 interface 0 "HP v125w" rev 2.00/1.00 addr 5 umass1: using SCSI over Bulk-Only scsibus2 at umass1: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: SCSI2 0/direct removable serial.03f033073S9A091102A6 sd1: 3821MB, 512 bytes/sector, 7827392 sectors On Dec 06, 2018: 15:54, Ted Unangst wrote: Heppler, J. Scott wrote: Is there interest in installing/booting OpenBSD on eMMC? this is expected to work. -- J. Scott Heppler

Importing FreeBSD eMMC code

2018-12-06 Thread Heppler, J. Scott
Is there interest in installing/booting OpenBSD on eMMC? -- J. Scott Heppler

Re: NTPd server using DVB-T as clocksource

2018-11-11 Thread j
Lars Schotte [l...@gustik.eu] wrote: Now, I do not like all this, that's why I ordered vk-172 gmouse g-mouse USB GPS/GLONASS USB over amazon and hope I can use that in combination with some Raspberry PI as NTPd clocksource, as I saw some ppl doing. These usually come with a (usb-) serial

Re: httpd(8): don't send HSTS headers over unencrypted connections

2018-10-15 Thread Anthony J. Bentley
Florian Obser writes: > On Sun, Oct 14, 2018 at 07:36:18PM -0600, Anthony J. Bentley wrote: > > Hi, > > > > RFC 6797 says: > > > >An HSTS Host MUST NOT include the STS header field in HTTP responses > >conveyed over non-secure transport. > >

Re: httpd(8): don't send HSTS headers over unencrypted connections

2018-10-15 Thread Anthony J. Bentley
* tls port 443" and "listen on * port 80" in the same server block. The other TLS-related options only apply to encrypted connections in such a scenario. Then again, none of them work by injecting headers. -- Anthony J. Bentley

httpd(8): don't send HSTS headers over unencrypted connections

2018-10-14 Thread Anthony J. Bentley
Hi, RFC 6797 says: An HSTS Host MUST NOT include the STS header field in HTTP responses conveyed over non-secure transport. Is this the correct check? With this I get what I expect: HSTS headers over TLS, and no HSTS headers over unencrypted HTTP. Index: server_fcgi.c

  1   2   3   >