update63.html completeness

2018-04-13 Thread j
Hi, I noticed a couple of inconsistencies between upgrade63.html and INSTALL.. They don't both state to remove man pages and include files. Here is a patch to fix upgrade63 but I'm not sure how to go about fixing all INSTALL. an easy way. John Index: upgrade63.html

Re: update63.html completeness

2018-04-13 Thread j
On 2018-04-13 14:08, Stuart Henderson wrote: On 2018/04/13 20:29, Theo Buehler wrote: On Thu, Apr 12, 2018 at 05:04:32PM -0600, j...@bitminer.ca wrote: > Hi, > > I noticed a couple of inconsistencies between upgrade63.html and > INSTALL.. They don't both state to remove man pa

Re: update63.html completeness

2018-04-14 Thread j
On 2018-04-13 17:09, Theo Buehler wrote: ...snip... Looks like you'd be interested in the sysutils/sysclean package: Comment: list obsolete files between OpenBSD upgrades Description: sysclean is a script designed to help remove obsolete files between OpenBSD upgrades. sysclean compares a

arm64 ilogbf(0.0) incorrect result, should be INT_MIN

2020-10-30 Thread j
>Synopsis: arm64 ilogbf(0.0) incorrect result, should be INT_MIN >Category: system >Environment: System : OpenBSD 6.8 Details : OpenBSD 6.8-current (GENERIC.MP) #871: Wed Oct 28 10:16:14 MDT 2020 dera...@arm64.openbsd.org:/usr/src/sys/ar

Re: arm64 ilogbf(0.0) incorrect result, should be INT_MIN

2020-10-30 Thread j
On 2020-10-30 09:42, Mark Kettenis wrote: Date: Fri, 30 Oct 2020 08:34:46 -0700 (PDT) From: j...@bitminer.ca ...snip... It's a bit more complicated that that. ISO C actually says that ilogb(0) should return FP_ILOGB0, which shall either be INT_MIN or -(INT_MAX). Our defines FP_ILOG

Re: arm64 ilogbf(0.0) incorrect result, should be INT_MIN

2020-10-30 Thread j
> > So we either have the make FP_ILOGB0 machine dependent, or change some > of the implementations. Here is my patch for the first option, tested on arm64. John Index: include/math.h === RCS file: /cvs/src/include/math.h,v ret

Crach after fresh install

2022-07-03 Thread J
Hello, I can not test Openbsd 7.1 on my laptop it crach just after the installation in the boot sequence. I check https://www.openbsd.org/errata71.html and did not see anything for me, i can not run sendbug from my laptop. So, its a Dell Inspiron 3593, i have taken all picture asked on https://ww

egcc-ar in ports-gcc fails with Cannot find plugin 'liblto_plugin.so'

2019-08-26 Thread j
For ports package gcc-8.3.0p3, on abd64, using -current. The shared lib liblto_plugin.so.5.0 is installed but no link is created. Thus egcc-ar (and egcc-ranlib and egcc-nm) fail: snaptest66# cd /usr/local/libexec/gcc/x86_64-unknown-openbsd6.6/8.3.0/ snaptest66# ls -l total 208420 -rwxr-xr-x 1

Is gprof not working? (maybe syscall)

2023-11-23 Thread j
quot;. Type "apropos word" to search for commands related to "word"... Reading symbols from m.x... (gdb) run Starting program: /home/j/rnums/m.x Program received signal SIGSEGV, Segmentation fault. issetugid () at /tmp/-:2 2 /tmp/-: No such file or directory. (gdb) bt #0 isse

Re: Is gprof not working? (maybe syscall)

2023-11-23 Thread j
On 2023-11-23 06:13, Theo Buehler wrote: On Thu, Nov 23, 2023 at 06:04:42AM -0700, j...@bitminer.ca wrote: SYNOPSIS: using -pg with cc results in segfault CATEGORY: system ENVIRONMENT: System : OpenBSD 7.4 Details : OpenBSD 7.4-current (GENERIC) #1399: Wed Nov 22 08

7.0 ports.tar.gz missing leading ports/ directory name

2021-10-14 Thread j
...following instructions (blindly I admit), I untarred ports.tar.gz directly into /usr and kinda messed it up. This is different from 6.9 and prior. Downloaded from ftp.openbsd.org and from a US mirror; checked on both. Please note for other users!

Openbsd System 5.8 hangs at setting tty flags

2016-01-22 Thread Mik J
Version: Openbsd 5.8 Architecture: i386 and amd64 (I booted on bsd.mp and bsd.sp both had the problem) Kernel: GENERIC Hardware: ASUS motherboard Z97-P Repeatable problem: yes, 80% or 90% of the time Description: The Openbsd boots, do fsck if necessary and freezes with the "message setting t

Re: ikectl ca certificate create fails due to invalid subjectAltName

2017-10-25 Thread j...@posteo.de
The patched submitted by Andrei fixed it for me. There are some style issues, I fixed the ones I saw and reattached the patch. Index: ikeca.c === RCS file: /cvs/src/usr.sbin/ikectl/ikeca.c,v retrieving revision 1.46 diff -u -p -r1.46

Small bug in relayd's forward to option to http rules (patch included)

2015-03-15 Thread J. Fischer
Hi, please find attached patch for a small bug in relayd that was introduced with revision 1.126 of relayd.c. The bug makes relayd forget about the attached table in http rules (i.e. from forward to options) under certain circumstances. This was observed in 5.6 and -current on amd64. The bug be

ttyV0 on sparc64 without vcc(4)?

2012-10-20 Thread J Sisson
Fell victim to sendbug/Fwd. If this is sent multiple times, I apologize. Bug Report: I was reading: http://www.openbsd.org/papers/eurobsdcon2011-kettenis.pdf and noted the section about vcc. I read the vcc man page, and saw FILES /dev/ttyV[0-9a-zA-Z]. Looking at an Ultra5, I noted that ttyV0

Re: ttyV0 on sparc64 without vcc(4)?

2012-10-21 Thread J Sisson
On Sun, Oct 21, 2012 at 1:09 PM, Miod Vallat wrote: > > cu -l ttyV0 > > > > It immediately panic'd the machine. I grabbed trace/ps from the panic > > (dmesg at bottom): > > This is fixed in -CURRENT. Thanks for your bug report! > > Miod > Rebuilt and tested...it works like a charm. Thanks! Jo

Re: Touchpad (iatp) error on resume on Chromebook Pixel 2015

2018-03-01 Thread Anthony J. Bentley
bob writes: > Hardware is the Chromebook pixel 2015. No response from touchpad or touchscr > een on resume. These errors pop up in the dmesg. Full dmesg below. > > iatp0: failed reading main memory map > iatp1: failed reading main memory map > iatp0: failed reading 540 > iatp1: failed reading 68

Radeon HD 5450 panic

2018-03-20 Thread Anthony J. Bentley
Hi, Since updating this machine yesterday I've noticed repeated hangs during light usage. This is easily reproducible by, e.g., enabling TrueType fonts in XTerm, then running "cat /etc/ssl/cert.pem". Happens with a single screen or multiple. I think the previous snapshot this was running was abou

Re: Radeon HD 5450 panic

2018-03-20 Thread Anthony J. Bentley
Jonathan Gray writes: > On Tue, Mar 20, 2018 at 02:26:19AM -0600, Anthony J. Bentley wrote: > > Hi, > > > > Since updating this machine yesterday I've noticed repeated hangs during > > light usage. This is easily reproducible by, e.g., enabling TrueType > >

Re: Radeon HD 5450 panic

2018-03-20 Thread Anthony J. Bentley
Hi Bryan, Bryan Steele writes: > I think I had the same problem with: > > radeondrm0 at pci1 dev 5 function 0 "ATI Radeon HD 3000" rev 0x00 > > I believe it's related to the radeon(4) driver switching to glamor by > default on older families instead of EXA. I believe I saw this before > on the o

Panic in IPSEC

2018-05-19 Thread Peter J. Philipp
>Synopsis: unexpected panic in IPSEC on -current snapshot from today >Category: kernel >Environment: System : OpenBSD 6.3 Details : OpenBSD 6.3-current (GENERIC.MP) #40: Fri May 18 09:57:33 MDT 2018 dera...@amd64.openbsd.org:/usr/src/sys

Re: Panic in IPSEC

2018-05-19 Thread Peter J. Philipp
On Sat, May 19, 2018 at 02:02:35PM +0200, Alexander Bluhm wrote: > On Sat, May 19, 2018 at 12:57:19PM +0200, Peter J. Philipp wrote: > > panic: kernel diagnostic assertion...(cut) > > This is an important line. > panic: kernel diagnostic assertion "_kernel_lock_held()"

Re: Panic in IPSEC

2018-05-19 Thread Peter J. Philipp
On Sat, May 19, 2018 at 02:02:35PM +0200, Alexander Bluhm wrote: > On Sat, May 19, 2018 at 12:57:19PM +0200, Peter J. Philipp wrote: > > panic: kernel diagnostic assertion...(cut) > > This is an important line. > panic: kernel diagnostic assertion "_kernel_lock_held()"

Re: Panic in IPSEC

2018-05-19 Thread Peter J. Philipp
On Sat, May 19, 2018 at 02:46:35PM +0200, Alexander Bluhm wrote: > On Sat, May 19, 2018 at 02:30:27PM +0200, Peter J. Philipp wrote: > > I have applied it now, what it was > > missing was a terminating semicolon on KERNEL_LOCK(), so far my C goes I was > > able to correct that

lock panic on 2015 Chromebook Pixel

2018-06-21 Thread Anthony J. Bentley
panic: acquiring blockable sleep lock with spinlock or critical section held (rwlock) iiclk @ /usr/src/sys/dev/ic/dwiic.c:113 Stopped at db_enter+0x12: popq %r11 TIDPIDUID PRFLAGSPFLAGS CPU COMMAND *369747 67531 0 0x14000 0x2000K reaper db_enter() at db_ente

Re: lock panic on 2015 Chromebook Pixel

2018-06-22 Thread Anthony J. Bentley
joshua stein writes: > On Thu, 21 Jun 2018 at 19:47:21 -0600, Anthony J. Bentley wrote: > > panic: acquiring blockable sleep lock with spinlock or critical section hel > d (rwlock) iiclk @ /usr/src/sys/dev/ic/dwiic.c:113 > > Stopped at db_enter+0x12: popq %r11 > > TID

Re: scp with SKEY host seems impossible, fix provided

2018-06-27 Thread Peter J. Philipp
On Wed, Jun 27, 2018 at 11:15:38AM -0600, Theo de Raadt wrote: > > Index: misc.c > > === > > RCS file: /cvs/src/usr.bin/ssh/misc.c,v > > retrieving revision 1.129 > > diff -u -p -u -r1.129 misc.c > > --- misc.c 9 Jun 2018 03:01:12 -00

Re: scp with SKEY host seems impossible, fix provided

2018-06-27 Thread Peter J. Philipp
Hey you're right!  That's awesome.  So you may as well disregard my patches then. Thanks! -peter On 06/27/18 22:17, Todd C. Miller wrote: You should be able to use the URI syntax for this. E.g. scp scp://user:skey@localhost/tmp/somefile . - todd

Re: scp with SKEY host seems impossible, fix provided

2018-06-27 Thread Peter J. Philipp
Works too.  Thanks! -peter On 06/28/18 04:10, Darren Tucker wrote: Trying to enter an skey system with scp is impossible. Using -o and long (ssh_config(5) style options should work: $ scp -o user=user:skey localhost:/tmp/somefile .

Re: physmem is 0 on this G5 macppc

2018-07-04 Thread Peter J. Philipp
22 Jul 2017 18:33:38 - 1.56 +++ ofw_machdep.c 4 Jul 2018 18:05:59 - @@ -173,7 +173,8 @@ ofw_read_mem_regions(int phandle, int ad for (i = 0, j = 0; i < nreg; i++) { if (OFmem64[i].size == 0)

Re: physmem is 0 on this G5 macppc

2018-07-04 Thread Peter J. Philipp
On Wed, Jul 04, 2018 at 08:19:25PM +0200, Peter J. Philipp wrote: > Hi again, > > I came up with a fix, but not sure if it's correct. The problem is that the > physical memory here is 32 bits (paddr_t defined in > arch/powerpc/include/_types.h). > So when we have 4 banks

Re: physmem is 0 on this G5 macppc

2018-07-04 Thread Peter J. Philipp
18 at 01:12:32AM +0200, Peter J. Philipp wrote: According to wikipedia only the PowerMac11,2 supports up to 16 GB the rest are all maximum 4GB, and I don't think the PowerMac11,2 is supported. https://en.wikipedia.org/wiki/Power_Mac_G5 I'm not sure what the correct fix for this is but

Re: physmem is 0 on this G5 macppc

2018-07-05 Thread Peter J. Philipp
**memp void ofw_read_mem_regions(int phandle, int address_cells, int size_cells) { + const uint pagelimit = (UINT_MAX >> PAGE_SHIFT); int nreg, navail; int i, j; - uint physpages; + uint physpages, tmp; switch (address_cells) {

Re: physmem is 0 on this G5 macppc

2018-07-10 Thread Peter J. Philipp
Hi, Ping. I just booted with a bsd.rd and saw this issue is still outstanding. Is the patch that I provided not good enough? Regards, -peter On Thu, Jul 05, 2018 at 02:00:45PM +0200, Peter J. Philipp wrote: > On Thu, Jul 05, 2018 at 11:20:51AM +0200, Mark Kettenis wrote: > > > So s

Re: physmem is 0 on this G5 macppc

2018-07-10 Thread Peter J. Philipp
On Tue, Jul 10, 2018 at 06:15:49PM +0200, Mark Kettenis wrote: > > Date: Tue, 10 Jul 2018 17:37:05 +0200 > > From: "Peter J. Philipp" > >=20 > > Hi, > >=20 > > Ping. I just booted with a bsd.rd and saw this issue is still outstand= ing. > >

Re: physmem is 0 on this G5 macppc

2018-07-10 Thread Peter J. Philipp
On Tue, Jul 10, 2018 at 06:57:31PM +0200, Mark Kettenis wrote: > > Date: Tue, 10 Jul 2018 18:34:20 +0200 > > From: "Peter J. Philipp" > > > > Node 0xff891d98 > > name: 'memory'

uvm_fault in uvm_unmap_remove

2018-07-21 Thread Anthony J. Bentley
Hi, My desktop hung earlier today, sitting at the login prompt. Unfortunately I couldn't get any information from ddb, because I couldn't type anything from my USB keyboard, despite that machdep.forceukbd was 1. Not sure why that would be? uvm_fault(0x8acc8d80, 0x8146f000, 0, 1)

kernel panic when invoking cu

2020-07-20 Thread Peter J. Philipp
Hi, I have a screenshot of a kernel panic when I typed cu in a snapshot that I just downloaded. The panic string is: panic: kernel diagnositc assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/kern/kern_sched.c", line 353 Unfortunately I don't have very much time today so that's all I'

Re: endless loop in tcpdump

2020-10-26 Thread Peter J. Philipp
On Sun, Oct 25, 2020 at 12:15:22AM +0200, Jeremie Courreges-Anglas wrote: > > dunno why the strange combination of To/Cc headers so I'll keep bugs@ in Cc: My answer is inline below: > On Sat, Oct 24 2020, p...@centroid.eu wrote: > >>Synopsis: a specially crafted packet can set tcpdump into an

Re: endless loop in tcpdump

2020-10-26 Thread Peter J. Philipp
On Mon, Oct 26, 2020 at 08:23:15AM +0100, Peter J. Philipp wrote: > On the other screen then where I had a tcpdump on port (pretend it was > 53): ok sorry, that was a half-truth. I tried this out and it seems the DNS is printed over the 2123 port. However DNS on another port cause

Re: "lambda" misspelled in /usr/X11R6/share/X11/locale/en_US.UTF-8/Compose

2020-11-10 Thread Anthony J. Bentley
On Tue, Nov 10, 2020 at 1:51 PM James Cook wrote: > >Synopsis: "lambda" is misspelled as "LAMDA" in > >/usr/X11R6/share/X11/locale/en_US.UTF-8/Compose > A minor issue, but it caused me trouble when I tried to search for > "lambda" in order to find the character. The Compose

Android phone USB detach loop

2020-11-15 Thread Anthony J. Bentley
Hi, I have a Google Pixel 3A running GrapheneOS. When I plug it into a -current laptop over USB-C, it appears in dmesg: ugen1 at uhub0 port 5 "Google Pixel 3a" rev 2.00/4.40 addr 4 If I unplug the phone, turn on USB debugging (under Developer Options), and plug the phone back in, it starts attac

Multiple panics with ure(4)

2020-12-13 Thread Anthony J. Bentley
Hi, This weekend I pulled out an X40T Thinkpad to route some packets. I plugged in a ure(4) adapter (Cable Matters USB 3.0 to Gigabit) for that purpose. However, after any reasonably large burst in traffic, the machine would panic. There were two kinds of panics. The first happened many times. It

protection fault trap, stopped at ufs_ihashget

2020-12-20 Thread Anthony J. Bentley
Hi, I hit this a few minutes ago on my desktop. I was doing normal desktop tasks (chromium, mpv, etc) before suddenly being dropped to ddb. /var was full, which may or may not have been related. /var had been full for a few hours (spammy X log). I've filled up /var many times before and never got

Re: getaddrinfo() is not thread-safe in 6.8

2020-12-23 Thread Peter J. Philipp
On Wed, Dec 23, 2020 at 11:58:30PM -0700, Theo de Raadt wrote: > Brad Smith wrote: > > > On 12/23/2020 10:35 PM, Alexey Sokolov wrote: > > >> Synopsis:getaddrinfo() is not thread-safe in 6.8 > > >> Category:system > > >> Environment: > > > System : OpenBSD 6.8 > > > Detai

[p...@centroid.eu: December 26th snapshot bsd.rd is panic'ing]

2019-12-27 Thread Peter J. Philipp
Hi Bugs, Turns out it was the USB stick I left in the USB 3.0 hub. -> umass0 at uhub8 port 4 configuration 1 interface 0 "JetFlash Mass Storage Device" rev 3.20/11.00 addr 3 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd0 at scsibus2 targ 1 lun 0: removable

Re: Install on Power Mac G5 , PowerMac 7.2

2020-01-05 Thread Peter J. Philipp
On Sun, Jan 05, 2020 at 07:39:10AM +, Sid Holliday wrote: > After installing I went to the firmware and typed in 'boot hd:/ofwboot/bsd > then got this response: Not a ATA device can't open > here is a picture of my hard drive. > Any help would be greatly appreciated. Hi, In openfirmware it's

Re: Gif0 add to bridge

2020-01-22 Thread Peter J. Philipp
On Wed, Jan 22, 2020 at 03:32:19PM +0100, igor kos wrote: > Bsd 6.6, > > Ifconfig bridge0 add gif0 > Ifconfig: bridge0: gif0: invalid argument I do not think gif(4) is a ethernet device, which is what bridge(4) requires. Try doing this with a vxlan(4) device. man vxlan man bridge man gif Regard

Re: potential buffer/undo bug in vi (esoteric)

2020-06-05 Thread Anthony J. Bentley
Andras Farkas writes: > POSIX doesn't seem very clear on this, but this section seems to > support vim's vi-compatible behavior a little: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html#tag_20_152_13_35 I think nvi's unlimited undo "u ." might violate POSIX, but vim's "u u" de

Re: Tab key doesn't work with vi commands

2016-06-30 Thread Anthony J. Bentley
Pavan Maddamsetti writes: > Thank you for the clarification, Theo. I would like to politely submit > the following diff for common/options.c: > > @@ -345,7 +345,6 @@ opts_init(SCR *sp, int *oargs) > "directory=%s", (s = getenv("TMPDIR")) == NULL ? _PATH_TMP : s); > OI(O_TMP_DIRECTO

Re: pkg_add doesn't exit with a failure code if non-existant package installation is attempted

2016-08-14 Thread Anthony J. Bentley
Mart Tõnso writes: > Hello Bugs, > > Stumbled upon this: > > # pkg_add nonexistantpackage || echo false && echo true > Can't find nonexistantpackage > true > > This makes it impossible to detect in an external script/program that > package installation failed when an invalid package name was pas

Fwd: reproducable panic

2016-08-18 Thread Peter J. Philipp
Here is the panic trace, that I was able to read off the photo I made: ddb {1}> trace Debugger()= at Debugger+0x9 panic() at panic+0xfe __assert() at __assert+0x25 arp_rtrequest() at arp_rtrequest+0x339 (was hard to make out) rtrequest() at rtrequest+0x5e5 (hard to make out) rt_match() at rt_match

weird logic that I can't understand is it a bug?

2015-08-01 Thread Peter J. Philipp
I have a network at home. Host delta has the IP 192.168.180.33 and host alpha has the IP 192.168.1.127. When I put these pf rules on host delta I would expect the packet to drop and log to pflog0. On delta: # pfctl -srules block return all pass all flags S/SA block return in on ! lo0 proto tcp

Re: weird logic that I can't understand is it a bug?

2015-08-01 Thread Peter J. Philipp
Ugh. never mind I seem to be coming from a tunnel to delta. Really really sorry. -peter On 08/01/15 18:39, Peter J. Philipp wrote: > I have a network at home. Host delta has the IP 192.168.180.33 and host > alpha has the IP 192.168.1.127. When I put these pf rules on host delta >

PTP I/O Error in 5.8amd64 stable

2015-11-11 Thread J. Scott Heppler
txt --config Please make sure there is sufficient quoting around the arguments. My : OpenBSD 5.8 (GENERIC.MP) #0: Mon Nov 9 12:41:37 PST 2015 j...@poobear.home.yak:/usr/src/sys/arch/amd64/compile/GENERIC.MP . cut . ohci0 at pci0 dev 19 function 0 "ATI SB600 USB" rev 0x0

Re: 5.8 kernel 1305 crashes during boot on i386/VIA

2015-11-12 Thread J. Scott Heppler
root > > bios0 at mainbus0: date 05/16/06, BIOS32 rev. 0 @ 0xfb570, SMBIOS > > rev. 2.3 @ > > 0xf (34 entries) > > bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date > > 05/16/2006 > > acpi at bios0 function 0x0 not configured ..

Re: Natted, keep-alive UDP connections not killed on PPPoE address change

2014-10-11 Thread Peter J. Philipp
On 10/11/14 01:17, Yann Hamon wrote: > Synopsis: change> > Category: > Environment: > System : OpenBSD 5.5 > Details : OpenBSD 5.5 (GENERIC) #271: Wed Mar 5 09:31:16 MST 2014 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC > > Architecture: OpenBSD.amd64 > Machine : amd64 >

Re: Freeze when coredump in unexistant directory in tmpfs

2014-11-11 Thread Peter J. Philipp
On Tue, Nov 11, 2014 at 12:02:57PM +0100, S??bastien Marie wrote: > Hi, > > I run -current on amd64. > > When a program generate a coredump in unexistant directory (cwd before > rmdir) in a tmpfs mount, my system freeze. > > Under a tmpfs mount-point: > > $ cat coreme.c > #include > > int mai

Re: CVSync web pages

2017-05-13 Thread Anthony J. Bentley
Otto Moerbeek writes: > On Fri, May 12, 2017 at 07:12:37PM +0100, multiplex'd wrote: > > > Hello all, > > > > I've just noticed this error on the CVSync webpage on openbsd.org. > > It says that there are *six* main source repositories available via cvsync, > > > but it only lists four, which I

switchd unexpectedly exits

2018-09-03 Thread Anthony J. Bentley
Hi, I've been using an APU2 with OpenBSD as my home wired/wireless router for a couple of years now. Initially I used bridge(4), and never experienced any problems. About a release ago I replaced bridge(4) with switch(4). It works just the same, except that every so often my net goes down for see

Re: switchd unexpectedly exits

2018-09-06 Thread Anthony J. Bentley
Hi Ayaka, Ayaka Koshibe writes: > On Mon, Sep 3, 2018 at 1:20 PM, Anthony J. Bentley wrote: > > 22881 parent exiting > > control exiting, pid 20472 > > ofcconn exiting, pid 93222 > > # > > It looks like switchd died midway through processing a message from > t

stdint.h does not compile with -fms-extensions (resend)

2018-10-13 Thread Sijmen J. Mulder
>Synopsis: stdint.h does not compile with -fms-extensions >Category: library >Environment: System : OpenBSD 6.4 Details : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compi

Re: stdint.h does not compile with -fms-extensions (resend)

2018-10-15 Thread Sijmen J. Mulder
On Sun, 14 Oct 2018 12:32:03 -0700 Philip Guenther wrote: > To me, your workaround sounds ideal: I doubt any of the core developers > are interested in supporting that option and we certainly don't want to > add a twisty maze of #if conditionals to support something unused, > untested, and lik

relayd mixes up hosts

2018-11-14 Thread Anthony J. Bentley
Total wall clock time: 0.07s Downloaded: 1 files, 40 in 0s (4.24 MB/s) -- Anthony J. Bentley

vi crash on page forward with long lines

2019-01-10 Thread Anthony J. Bentley
less than 80 characters. Example foo.txt: a b c d 123456789012345678901234567890123456789012345678901234567890123456789012345678901 f g h i j k l m n o p q r s t u v w x y z A Example bar.txt: 1 2 3 4 5 6 Start with "vi foo.txt bar.txt". In foo, hit ^F once, then :n to switch files. In

reN networking hangs in KVM/QEMU

2019-02-08 Thread Sijmen J. Mulder
Hi, I run OpenBSD (snapshots) in a KVM+QEMU VM on Debian 9 and use it over SSH. Those SSH sessions stall almost without fail when there's a lot of output. Repro (or at least my set up): 1. Create a KVM+QMEU VM on Linux with virt-manager. I assigned two cores and otherwise used defaults. 2.

Re: reN networking hangs in KVM/QEMU

2019-02-09 Thread Sijmen J. Mulder
Juan Francisco Cantero Hurtado wrote: > > Why rtl8139? It's the worst option available to KVM/QEMU. You would be much > > better off with virtio or e1000 for the NIC. > > Change also the disk to 'virtio' instead of 'ide'. I went with the defaults out of caution but using virtio makes sense and swi

radeon panic

2019-03-07 Thread Anthony J. Bentley
Hi, While testing a games/pioneer update, my machine hit a panic. I wasn't able to get any more out of ddb as the keyboard didn't work. panic: extent_free: region not found Stopped at db_enter+0x12: popq%r11 TIDPIDUID PRFLAGS PFLAGS CPU COMMAND 456064 93872 10

Re: switchd segfaults

2019-03-14 Thread Anthony J. Bentley
Hi, Leon Lagodny writes: > #3 0x00313390ab56 in ?? () from /usr/sbin/switchd > #4 0x00313390cb32 in ?? () from /usr/sbin/switchd > #5 0x003133909672 in ?? () from /usr/sbin/switchd > #6 0x003133911625 in ?? () from /usr/sbin/switchd > #7 0x003133911157 in ?? () from /usr/s

Re: wscons.c chooses wrong variant for br layout

2019-04-03 Thread Anthony J. Bentley
Diogo Galvao writes: > On Thu, Nov 1, 2018 at 10:15 PM Diogo Galvao wrote: > > So the condition ((wsenc & kbdvar[i].val) == kbdvar[i].val) ends up > > being true for KB_BR & KB_SF, therefore "fr" variant gets configured. > > That bitmasking was introduced in revision 1.15 along with a bitmask for

Re: wscons.c chooses wrong variant for br layout

2019-04-04 Thread Anthony J. Bentley
Matthieu Herrb writes: > > cf becomes "variant fr-legacy" instead of "variant fr". > > > > cf.nodead becomes "variant fr-legacy" instead of "variant > > fr_nodeadkeys". > > I don't know the subtilities of the canadian french keyboards, but > that looks as a a behaviour change (even though it's mor

Re: traceroute manpage deadlink "http://www.team-cymru.org/Services/ip-to-asn.html"

2019-04-05 Thread Anthony J. Bentley
openbsdu...@airmail.cc writes: > traceroute(8) manpage unexpected link redirection: > "http://www.team-cymru.org/Services/ip-to-asn.html"; to > "http://www.team-cymru.com/"; Maybe this is the current link? https://www.team-cymru.com/IP-ASN-mapping.html

panic after re(4) watchdog timeouts

2019-04-19 Thread Anthony J. Bentley
Hi, I just hit the following panic. The machine had been under heavy network load (tens of megabits per second) for several hours. Every ten or twenty minutes it would lose network, hit a re(4) watchdog timeout (a recurring problem on this machine: https://marc.info/?m=143701763323995), then recov

Re: pppoe(4) should use uptime not microtime() for tracking connection time

2021-11-21 Thread Peter J. Philipp
On Mon, Nov 22, 2021 at 12:30:19AM +, Klemens Nanni wrote: > On Sun, Nov 21, 2021 at 11:18:29AM +0100, p...@delphinusdns.org wrote: > > >Synopsis: session uptime is wrong > > >Category: system > > >Environment: > > System : OpenBSD 7.0 > > Details : OpenBSD 7.0 (GENERIC.MP) #

Re: pppoe(4) should use uptime not microtime() for tracking connection time

2021-11-23 Thread Peter J. Philipp
On Mon, Nov 22, 2021 at 01:40:34PM +, Klemens Nanni wrote: > On Mon, Nov 22, 2021 at 09:30:13AM +0100, Claudio Jeker wrote: > > > Index: sbin/ifconfig/ifconfig.c > > > === > > > RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v > > > r

Re: panic on a macbook pro

2021-12-17 Thread Peter J. Philipp
On Fri, Dec 17, 2021 at 06:06:51PM +0300, Vitaliy Makkoveev wrote: > Hi, > > According to your dmesg output this snapshot is form December 15 > > dmesg: > > OpenBSD 7.0-current (GENERIC.MP) #172: Wed Dec 15 15:35:28 MST 2021 > >dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.

Re: panic on a macbook pro

2021-12-17 Thread Peter J. Philipp
On Fri, Dec 17, 2021 at 08:09:38AM -0700, Theo de Raadt wrote: > macppc snapshots take almost a week, and since this is a slower architecture, > are more likely to be interrupted/restarted because of trying to catch up to > later work. I dunno, I had no keyboard at the ddb prompt. Dunno why. It

Re: panic on a macbook pro

2021-12-17 Thread Peter J. Philipp
On Fri, Dec 17, 2021 at 06:44:57PM +0300, Vitaliy Makkoveev wrote: > > On 17 Dec 2021, at 18:37, Peter J. Philipp wrote: > > > > On Fri, Dec 17, 2021 at 06:06:51PM +0300, Vitaliy Makkoveev wrote: > >> Hi, > >> > >> According to your dmesg output

Re: On boot, screen remains black after radeondrm driver initializes

2022-02-19 Thread Frank J. Cameron
On Sun, Aug 02, 2020 at 06:51:53PM +, mglockeropenbsd!org wrote: > On Mon, 3 Aug 2020 02:24:47 +1000 Jonathan Gray wrote: > > On Sun, Aug 02, 2020 at 01:05:37PM +0200, mgloc...@openbsd.org wrote: > > > System : OpenBSD 6.7 > > > Installing an OpenBSD snapshot the first time on this iMac I

Re: On boot, screen remains black after radeondrm driver initializes

2022-02-21 Thread Frank J. Cameron
On Sat, Feb 19, 2022 at 05:30:47PM -0500, Frank J. Cameron wrote: > On Mon, 3 Aug 2020 02:24:47 +1000 Jonathan Gray wrote: > > On Sun, Aug 02, 2020 at 01:05:37PM +0200, mgloc...@openbsd.org wrote: > > > System : OpenBSD 6.7 > > > Installing an OpenBSD snapshot

Re: On boot, screen remains black after radeondrm driver initializes

2022-02-21 Thread Frank J. Cameron
On Tue, Feb 22, 2022 at 02:31:21PM +1100, Jonathan Gray wrote: > On Mon, Feb 21, 2022 at 07:39:14PM -0500, Frank J. Cameron wrote: > > That patch also seems to work well on 7.1 snapshot with the drm 5.15.14: > > I don't understand why you see this after the delay.h change

Re: Information leakage of IP-layer data on LAN

2022-08-22 Thread Peter J. Philipp
On Mon, Aug 22, 2022 at 08:15:13PM +0200, Alexander Bluhm wrote: > Do you have a "block return" in your pf.conf? Yes. > Does it work differently if you disable pf with pfctl -d? Yes it does. No return packet. > How does your pf.conf filter to such packets? I think it's the default pf.conf, I

radeondrm cursor problems

2019-05-03 Thread Anthony J. Bentley
Hi, Since the radeondrm update, I've noticed the cursor doesn't always behave as expected. Sometimes it displays the wrong graphic. For example, as I write this email, hovering over one xterm window shows the normal text selection cursor, but moving the mouse over the other it changes to the "poi

Re: alpine vm crashes repeatedly

2019-08-24 Thread Peter J. Philipp
On Sun, Aug 25, 2019 at 01:03:37AM +0200, Pierre Emeriaud wrote: > vm "alpine" { > #boot device cdrom > memory 1G > disable ^^^ > disk /home/petrus/vm/alpine.qcow2 > #cdrom /home/petrus/vm/

Re: Samsung NVMe M.2 SSD 970 EVO Plus fails to attach on VisionFive 2 (JH7110 SoC) board

2023-07-28 Thread Peter J. Philipp
[tying in misc@ for this resource] On Fri, Jul 28, 2023 at 03:26:54PM +0200, develo...@robert-palm.de wrote: > Many thanks! Please, will you commit it so I can test it with the next > snapshot version ? I have already contacted Robert (?) privately, here it is publically. I have exported my QEMU

code reading in progress, potential FPE soft spots

2023-07-29 Thread Peter J. Philipp
Hi, For a few hours I went grepping for MOD FPE conditions in the source code. I did this systematically examining them and here is my recommendations in form of patches for these spots. It's half the effort but I'm really wasted right now, and can't go on. Perhaps another time I'll continue. g

Re: code reading in progress, potential FPE soft spots [part 2]

2023-07-30 Thread Peter J. Philipp
On Sat, Jul 29, 2023 at 03:23:47PM +0200, Peter J. Philipp wrote: > Hi, > > For a few hours I went grepping for MOD FPE conditions in the source code. > I did this systematically examining them and here is my recommendations in > form of patches for these spots. It's hal

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 2023

Re: no termination on buffer

2023-08-12 Thread Peter J. Philipp
seek YYY below for comments On Thu, Aug 10, 2023 at 08:31:55PM +0200, p...@delphinusdns.org wrote: > >Synopsis:no termination on buffer > >Category:library > >Environment: > System : OpenBSD 7.3 > Details : OpenBSD 7.3 (GENERIC.MP) #2080: Sat Mar 25 14:20:25 MDT > 202

/usr/src/usr.bin/ssh/hmac.c improvement / calloc_conceal()

2023-08-14 Thread Peter J. Philipp
Hi, I spent most of the evening reading and programming on ssh/hmac.c. While the stuff I tried to do didn't work, here is something I believe will make the security better in any possible corefiles. We conceal the contents of the secret hmac key from being dumped. Also an update on a comment on

Re: pf nat-to doesn't match a crafted packet

2023-08-28 Thread Peter J. Philipp
On Mon, Aug 28, 2023 at 06:18:41PM +0200, Alexandr Nedvedicky wrote: > Hello, > > On Mon, Aug 28, 2023 at 05:13:29PM +0200, p...@delphinusdns.org wrote: > > >Synopsis: pf nat-to doesn't match a crafted packet > > >Category: system > > >Environment: > > System : OpenBSD 7.3 > > Detai

Re: pf nat-to doesn't match a crafted packet

2023-08-29 Thread Peter J. Philipp
On Tue, Aug 29, 2023 at 09:45:24AM +1000, David Gwynne wrote: > How are you injecting the crafted packet into the stack? Via BPF. It is a spoofing program that I made 23 years ago. While that's not really a great achievement it found at least 5 or so panic conditions on OpenBSD throughout its ex

Re: pf nat-to doesn't match a crafted packet

2023-08-29 Thread Peter J. Philipp
On Mon, Aug 28, 2023 at 07:13:29PM +0100, Stuart Henderson wrote: > On 2023/08/28 18:30, Peter J. Philipp wrote: > > Here is my icmp rulesets: > > > > root@stern# grep icmp /etc/pf.conf > > a partial pf.conf fragment is hardly ever enough to debug a ruleset > prob

Re: pf nat-to doesn't match a crafted packet

2023-08-29 Thread Peter J. Philipp
On Tue, Aug 29, 2023 at 11:11:53AM +0200, Alexandr Nedvedicky wrote: > Hello, > > On Tue, Aug 29, 2023 at 09:48:21AM +0200, Peter J. Philipp wrote: > > On Tue, Aug 29, 2023 at 09:45:24AM +1000, David Gwynne wrote: > > > How are you injecting the crafted packet into the

Re: pf nat-to doesn't match a crafted packet

2023-08-29 Thread Peter J. Philipp
On Tue, Aug 29, 2023 at 12:35:47PM +0200, Claudio Jeker wrote: > On Tue, Aug 29, 2023 at 12:16:23PM +0200, Peter J. Philipp wrote: > > On Tue, Aug 29, 2023 at 11:11:53AM +0200, Alexandr Nedvedicky wrote: > > > Hello, > > > > > > On Tue, Aug 29, 2023 at 09:4

Re: pf nat-to doesn't match a crafted packet

2023-08-29 Thread Peter J. Philipp
On Tue, Aug 29, 2023 at 11:11:53AM +0200, Alexandr Nedvedicky wrote: > Hello, > > On Tue, Aug 29, 2023 at 09:48:21AM +0200, Peter J. Philipp wrote: > > On Tue, Aug 29, 2023 at 09:45:24AM +1000, David Gwynne wrote: > > > How are you injecting the crafted packet into the

Re: riscv64: Fatal page fault at [amap_wiperange_chunk?]

2023-08-31 Thread Peter J. Philipp
On Thu, Aug 31, 2023 at 10:28:45AM +0200, Jeremie Courreges-Anglas wrote: > > First kernel crash during this ports bulk build, I have rebooted the > machine. No idea whether this is the usual memory corruption I see on > this hardware. > > OpenBSD/riscv64 (riscv64-4.ports.openbsd.org) (console)

Re: pf nat-to doesn't match a crafted packet

2023-09-02 Thread Peter J. Philipp
On Sun, Sep 03, 2023 at 04:12:35AM +0200, Alexandr Nedvedicky wrote: > Hello, > > so there is actually bug. I was able to reproduce it with very simple > rules on my router: > > set skip on em1 > block return all > pass out on em0 from 192.168.2.0/24 to any nat-to(em0) > > em1 is int

RISCV - physmem is an address not pages in locore.S

2023-09-17 Thread Peter J. Philipp
Hi OpenBSD/riscv64'ers! After a week of debugging a different issue I noticed this issue with the L2 cache in locore.S: The physical address of the base boot memory is held in register s9, and this is shifted by the L2 cache code by 21 to the right. In order to make 2 MiB offsets. However, I h

Re: RISCV - physmem is an address not pages in locore.S

2023-09-17 Thread Peter J. Philipp
On Sun, Sep 17, 2023 at 04:22:14PM +0200, Mark Kettenis wrote: > > Date: Sun, 17 Sep 2023 12:40:29 +0200 > > From: "Peter J. Philipp" > > Sorry Peter, > > But this doesn't make any sense to me. Your C code is just as > unreadable as the assembly code ;

  1   2   3   >