Re: FW: ls -l Segmentation fault

2024-03-26 Thread guenther
On Tue, 26 Mar 2024, Peter Fraser wrote: > Ls fault with symbols > > lldb /usr/src/bin/ls/ls > (lldb) target create "/usr/src/bin/ls/ls" > Current executable set to '/usr/src/bin/ls/ls' (x86_64). > (lldb) run -l > run -l > Process 88451 launched: '/usr/src/bin/ls/ls' (x86_64) > total 2176 >

Re: Crash on TOSHIBA PORTEGE Z30-A laptop

2023-10-22 Thread Philip Guenther
as well happen with some other device interrupting the ACPI processing. If there isn't a newer BIOS that resolves this, I would tend to return the box as not suitable. Phlip Guenther

Re: Crash on TOSHIBA PORTEGE Z30-A laptop

2023-10-20 Thread Philip Guenther
nel which allocates more pages per thread for its kernel stack by bumping the UPAGES #define in /usr/src/sys/arch/amd64/include/param.h and building a new kernel. It's really only the ACPI thread that needs this, but we don't currently have code to control that on a per-thread basis. Philip Guenther

Re: i386 kernels broken on ALIX machines: identifycp_0x75b: rdmsr

2023-08-16 Thread guenther
=== > RCS file: /cvs/src/sys/arch/i386/i386/machdep.c,v > retrieving revision 1.666 > diff -u -p -r1.666 machdep.c > --- sys/arch/i386/i386/machdep.c 9 Aug 2023 00:01:44 - 1.666 > +++ sys/arch/i386/i386/machdep.c 16 Aug 2023 06:26:24 - > @@ -1863,7 +1863,8 @@ identifycpu(struct cpu_info *ci) > uint64_t level = 0; > uint32_t dummy; > > - if (strcmp(cpu_vendor, "AuthenticAMD") == 0) { > + if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && > + ci->ci_family >= 0x0f) { All the ucode they publish is for that family and up? ok guenther@

Re: delaying ptrace(2)'ing a process about to change credentials

2023-07-22 Thread guenther
g PS_SUGID in its ps_flags * the process doing ptrace(PT_ATTACH) holds the kernel lock across the check you quoted, so it can't see target_ruid==my_ruid without also seeing PS_SUGID set What am I missing? Philip Guenther

Re: bcmp() integer overflow bug

2023-07-13 Thread guenther
ize_t, as an int. Instead, just return 1 if there is a difference. Found by lint. OK millert. ---- Best wishes. Philip Guenther

Re: Bad behavior of background process in ksh pipeline subshell

2023-07-12 Thread guenther
sh -ic 'echo before=$-; echo foo_first=$- | { echo second=$-; cat & tr o e ; }' before=himBHc second=himBHc foo_first=himBHc $ Philip Guenther

Re: MTU setting during installation

2022-06-03 Thread guenther
uot; to get a shell, from which "exit" will return you back to that prompt. --- So, you can use '!' to get a shell where you enter the necessary ifconfig command, and you can of course tweak the install before rebooting. Philip Guenther

Re: panic with softdep and softraid crypto on USB stick

2022-05-24 Thread guenther
and maybe you'll be able to get some more use out of that USB stick, but I wouldn't trust it for anything important. Philip Guenther

Re: Unusual tty changing behavior

2022-05-15 Thread guenther
ops where F5 and F6 have the brightness - and + markings, so if the "function lock" isn't activated I get those behaviors instead of the F5/F6 keys. Does your F4 have the brightness- marking? Is there some sort of "function lock" in the keyboard that selects whether to do F4 or brightness-? Philip Guenther

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-10 Thread guenther
On Thu, 10 Feb 2022, Jan Stary wrote: > > > When you build a kernel with this, do please add ACPI_DEBUG to your > > > kernel > > > config, so we can see more details about what the firmware is telling us. > > > > Full dmesg below, without ACPI_DEBUG. > > > > Also below, full /var/log/messages

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-09 Thread guenther
would be useful test change to see if it results in notifications being reported on this T420 that affect the presence of C2. When you build a kernel with this, do please add ACPI_DEBUG to your kernel config, so we can see more details about what the firmware is telling us. Philip Guenther

Re: sparc64 dlopen data access fault

2022-02-02 Thread guenther
On Wed, 2 Feb 2022, Alexander Bluhm wrote: > On Wed, Feb 02, 2022 at 07:53:59PM +, Miod Vallat wrote: > > Hi, > > > > > On my sparc64 machine > regress/lib/libpthread triggers a panic. It > > happend with Feb 1 and Jan 31 > snapshot. Jan 29 snapshot paniced > > > > On Wed, Feb 02, 2022 at

Re: crash on booting GENERIC.MP since upgrade to Jan 18 snapshot

2022-01-19 Thread guenther
ge in the pmap layer in multiple months. The areas of concern IMO are DRM and (because it was the last thing mentioned) iwm, but the former seems _much_ more likely. Philip Guenther ... > sd2 at scsibus4 targ 1 lun 0: > sd2: 1953513MB, 512 bytes/sector, 4000795775 sectors > root

Re: resume from hibernate fails on amd64 with current snap

2021-12-31 Thread guenther
On Sun, 26 Dec 2021, Philip Guenther wrote: > Installed snap from Friday on my X1 extreme and it's no longer able to > resume from hibernation, even when hibernation was done right after > boot+login, showing 16 "hibernate_block_io open failed" before showing >

resume from hibernate fails on amd64 with current snap

2021-12-26 Thread guenther
Unable to resume hibernated image That length seems completely bogus, of course. If I'm reading my /var/log/daemon and /var/log/messages correctly, my successful resume on Dec 25th was with a kernel I built on Dec 3rd. :-/ Philip Guenther OpenBSD 7.0-current (GENERIC.MP) #200: Fri Dec 24 22:15:0

Re: vmm cpuid handling [was: Re: fdc: fdcresult: overrun]

2021-11-20 Thread guenther
On Sat, 20 Nov 2021, Dave Voutila wrote: > Philip Guenther writes: > > > On Wed, 17 Nov 2021, Josh Grosse wrote: > > ... > >> vmm_handle_cpuid: function 0x0a (arch. perf mon) not supported > >> vmx_handle_cr: mov to cr0 @ 100149e, data=0x80010031 > &g

vmm cpuid handling [was: Re: fdc: fdcresult: overrun]

2021-11-18 Thread guenther
On Wed, 17 Nov 2021, Josh Grosse wrote: ... > vmm_handle_cpuid: function 0x0a (arch. perf mon) not supported > vmx_handle_cr: mov to cr0 @ 100149e, data=0x80010031 > vmx_handle_wrmsr: wrmsr exit, msr=0x8b, discarding data written from > guest=0x0:0x0 > vmx_handle_wrmsr: wrmsr exit, msr=0x8b,

Re: pthread: segfault with user stack

2020-12-01 Thread guenther
On Tue, 1 Dec 2020, Otto Moerbeek wrote: > On Tue, Dec 01, 2020 at 08:00:18PM +0100, Otto Moerbeek wrote: > > On Tue, Dec 01, 2020 at 10:13:29AM -0800, guent...@openbsd.org wrote: ... > > The man page is lacking or even wrong in this respect. It explicitly > > talks about how to do deallocation.

Re: pthread: segfault with user stack

2020-12-01 Thread guenther
value(s) that are within the range of that stack. In particular, the region of memory cannot be freed, nor can it be later specified as the stack for another thread. Note that last sentence. Philip Guenther

Re: _exit() / exit / return doesn't flush write buffer

2020-10-27 Thread guenther
, I guess that fine, but it's not a way to architect an overall system. Philip On Tue, 27 Oct 2020, Luke Small wrote: > Thanks Guenther for the well thought out answer! > > I figured I could take yet another step to sloppiness > which is may actually be more efficient like not ca

Re: _exit() / exit / return doesn't flush write buffer

2020-10-27 Thread guenther
er is "nope, you've chosen a problem too complicated for a simple answer". Good luck! Philip Guenther On Tue, 27 Oct 2020, Luke Small wrote: > from man _exit: > > All open file descriptors in the calling process are closed. This > may entail delays; for

Re: _exit() / exit / return doesn't flush write buffer

2020-10-27 Thread guenther
xit(3), such as flushing stdio buffers. You should follow up with whatever documentation that suggested you should call _exit(2) in the child, so that it can be corrected. Philip Guenther

Re: [Released] mail.local(8) corrupts messages where `>From ` follows blank line

2020-03-05 Thread guenther
consistent and mangling a different set of messages. If you need a format that doesn't mangle this sort of content, then Don't Use UNIX mailbox format. Philip Guenther Unix Email Greybeard ** it's sometimes called the BSD format, but it predates BSD

Re: Compiling ncurses-6.1 on OpenBSD

2019-12-28 Thread guenther
ff when you select an environment before locale_t was added b) our header needs to broaden its conditional to go ahead and provide locale_t (and the functions?) when in a C++ environment that should have them Philip Guenther

Re: _POSIX_VERSION>=200809L, but fflush(3) overloading not implemented?

2019-12-23 Thread guenther
On Sat, 21 Dec 2019, Steffen Nurpmeso wrote: > Philip Guenther wrote in : > |On Sat, 21 Dec 2019, Steffen Nurpmeso wrote: ... > |> /* There are problems with dup()ing of file-descriptors for child \ > |> processes. > |>* We have to somehow accomplish that t

Re: _POSIX_VERSION>=200809L, but fflush(3) overloading not implemented?

2019-12-21 Thread guenther
On Sat, 21 Dec 2019, Steffen Nurpmeso wrote: > I was struggling with a pre-release problem of my mailer, which has an > increasing test coverage, and was head banging on OpenBSD. (And i was > wondering whether i should have Cc:'d Philip Guenther for this exact > problem, but i lo

Re: Syzkaller witness reports locking order issue

2019-12-17 Thread guenther
On Tue, 17 Dec 2019, Mark Kettenis wrote: ... > > However, thos "vmmaplk" instances really are different classes. In > > the sys_mlock codepath it is a lock for a userland vmmap whereas the > > other codepath is dealing with a kernel vmmap. So there isn't > > actually a lock order reversal. >

Re: dhcpcd: if_learnaddrs: if_addrflags6: Invalid argument

2019-11-17 Thread guenther
On Sun, 17 Nov 2019, Theo de Raadt wrote: > >I think sa_len has written extensively on this before, that sa_len is > ^^ -- guenther Shit, my superhero identity has been revealed and now the SysV minions will put my family in peril! Philip

Re: execve -1 errno 12 Cannot allocate memory

2019-11-07 Thread guenther
On Thu, 7 Nov 2019, Theo Buehler wrote: ... > and other tests run as expected. It has a more decently sized random > section: > > OPENBSD_RANDOM 0x01185000 0x01185000 0x01185000 >0x7d28 0x7d28 RW 8 A 97.3% reduction in

Re: execve -1 errno 12 Cannot allocate memory

2019-11-07 Thread guenther
On Thu, 7 Nov 2019, Theo Buehler wrote: > On Thu, Nov 07, 2019 at 03:32:48PM -0700, Theo de Raadt wrote: > > > kern.version=OpenBSD 6.6-current (GENERIC.MP) #433: Thu Nov 7 10:41:08 > > > MST 2019 > > > > That is too old and does not contain the solution. > > I obtained a different binary with

Re: execve -1 errno 12 Cannot allocate memory

2019-11-07 Thread guenther
On Thu, 7 Nov 2019, Theo Buehler wrote: > I was trying to debug a WIP port, so I compiled it with '-g -O0' on my > amd64 laptop. When trying to execute the binary, I got > > $ ./lean > ksh: ./lean: Cannot allocate memory > > mpi was able to pinpoint this to the following check in exec_elf.c: >

Re: ltrace fails to display symbols for huge libraries ?

2019-11-06 Thread guenther
On Wed, 6 Nov 2019, Landry Breuil wrote: > playing with ltrace, trying to see what functions are called by firefox, > it works fine in many situations: > > ltrace -i -ulibnspr4 /usr/local/bin/firefox > ltrace -i -u:NSS* /usr/local/bin/firefox > > *but* for some reason it doesnt seem to work with

Re: xenodm resets on suspend/resume with external monitors

2019-11-03 Thread guenther
On Sun, 3 Nov 2019, Matthieu Herrb wrote: > On Sun, Nov 03, 2019 at 12:50:07AM +0100, Klemens Nanni wrote: > > My workstation consists of a X230 with docking station featuring two > > DisplayPort as well as two DVI-D connectors. I used to use one external > > monitor over DVI-D with a resolution

Re: Kernel panic upon resume of Linux/KVM VM (OpenBSD 6.6)

2019-10-22 Thread guenther
s quality (sc->sc_tc->tc_quality) downward while that's the case? I'm not sure if that would be enough, but you could try implementing that. Lacking that, I guess you'll want to have KVM stop the guest before you suspend the host, and then on resume wait a bit until the clock settles--not sure how long that takes or how you would know--before restarting the guest. Philip Guenther

Re: Frequent kernel panic on apu2d4 and external usb3 hard drive

2019-07-10 Thread guenther
> drive? I was using this same hard drive with Linux and I don't remember > having issues. I am going to disable softdep to see if things get > better. That should help with the panics. Watch your dmesg for additional reports of I/O errors that might indicate failures of the drive itself. Philip Guenther

Re: bhyve OpenBSD guest crash on boot between #61 and #65

2019-06-24 Thread guenther
. Congrats, that's legal according to Intel (reportedly, Windows will use SSE(!) instructions to read LAPIC registers), so this seems like a bug in Bhyve. Philip Guenther

Re: NFS exports everything (fwd)

2019-06-19 Thread guenther
s to put what you're exporting on its own filesystem. Philip Guenther

Re: witness report

2019-06-03 Thread guenther
e .. > i put kern.witness.watch=3 in sysctl.conf so now i'm in ddb and will > leave it like this if something is needed >From pguent...@proofpoint.com Sat Jun 1 13:25:04 2019 Date: Sat, 1 Jun 2019 13:25:00 -0700 From: Philip Guenther To: Antoine Jacoutot Cc: hack...@openbsd.org Subject: R

Re: pthread_rwlock deadlock

2019-03-04 Thread Philip Guenther
On Sat, 2 Mar 2019, Visa Hankala wrote: > On Sat, Mar 02, 2019 at 11:41:21PM -0700, Theo de Raadt wrote: > > We previously decided that the dprintf family is as safe as > > snprintf+write, and we are preferring dprintf in various places, > > such as signal-safe. > > > > Can you explain why it not

Re: OpenBSD 6.4 doesn't boot on 486 class processor anymore

2019-02-27 Thread Philip Guenther
e_load() could copy the chunk from machdep.c...or someone could add a global and do the check once, early... Philip Guenther

Re: Issue relating to SCN{d,u}FAST{8,16} macros in inttypes.h

2018-11-22 Thread Philip Guenther
ariables (see below). Your code looks correct to me; seems incorrect. oks for the diff below? Philip Guenther Index: inttypes.h === RCS file: /data/src/openbsd/src/include/inttypes.h,v retrieving revision 1.11 diff -u -p -r1.11 i

Re: pthread_join() can return before thread has exited

2018-11-20 Thread Philip Guenther
On Tue, 20 Nov 2018, Josh Elsasser wrote: > The test suite for lang/sbcl has uncovered a race between pthread_join() > and the exiting thread: it may return before it's safe to unmap a custom > thread stack. > > In the exiting thread: > 1) pthread_exit() calls _thread_release() via the

Re: OpenBSD 6.4 amd64 keeps rebooting on an AMD FX-8300 CPU...

2018-11-17 Thread Philip Guenther
On Sat, 17 Nov 2018, Adam Stouffer wrote: > On 11/17/2018 10:58 AM, Peter Hessler wrote: > > > > Yes, the fix is "don't use a single root partition" and instead > > "partition your damn disk as intended". > > So what is the maximum root partition size or don't you know because > this is an

Re: Dell Latitude E6440 - only SP working, not MP

2018-11-12 Thread Philip Guenther
r and step through the frames to see what the last output displayed before reboot is? Philip Guenther

Re: kernel build error with optimization levels other than -O2

2018-10-28 Thread Philip Guenther
lways be placed first in the declaration. C11 declared "placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration" to be an obsolescent feature. Philip Guenther

Re: OpenBSD 6.4 amd64 keeps rebooting on an AMD FX-8300 CPU...

2018-10-22 Thread Philip Guenther
n process _before_ you encountered the problem? It's such a broad warning that I can't believe it'll be generally effective except as a post-facto "we told you so!"...which is not often appreciated. :( Philip Guenther

armv7/cubox: panic using umodem console on OverDrive1000

2018-10-21 Thread Philip Guenther
I had attached the umodem serial console of my OD1000 to the free USB port on my cubox and it had worked just fine when I upgraded the OD1000 to the July 19 snapshot. The cubox was running this at that time: OpenBSD 6.3-current (GENERIC) #40: Fri May 25 13:29:14 MDT 2018 Now, the

Re: Openbsd amd64 bad.mp and bad.sp stuck in reboot loop

2018-10-21 Thread Philip Guenther
GB root partition? Does it work with a sanely sized root partition? Philip Guenther

Re: OpenBSD 6.4 amd64 keeps rebooting on an AMD FX-8300 CPU...

2018-10-21 Thread Philip Guenther
oader there would be more space available but it appears to not be using EFI so it's more limited in the memory available to it and such large disk blocks might push the loader beyond what it can support. Philip Guenther

Re: OS fails to notice MP CPU

2018-10-21 Thread Philip Guenther
On Sun, 21 Oct 2018, Dr.Boutari wrote: > Original Message > On 21 Oct 2018, 22:52, Philip Guenther wrote: > > > I downloaded bsd.mp from a mirror and booted it first with acpi enabled. > > It crashed as usual at about the same point where the crash o

Re: OS fails to notice MP CPU

2018-10-21 Thread Philip Guenther
On Sun, 21 Oct 2018, Dr.Boutari wrote: > Original Message > On 21 Oct 2018, 01:55, Philip Guenther wrote: > > IMHO, if you want assistance from the OpenBSD developers in making this > machine function better, you need to go back to the original problem: when >

Re: OpenBSD 6.4 amd64 bsd.mp & bsd.sp stuck in reboot loop on AMD FX-8300 CPU

2018-10-20 Thread Philip Guenther
.." output plus the output of "machine memory" at the boot prompt. Philip Guenther

Re: OS fails to notice MP CPU

2018-10-20 Thread Philip Guenther
is the sequence of events leading to the crash (boot? shutdown?) - what is the output before the crash? - if it drops into ddb, then gather the crash or panic message and the other information requested at https://www.openbsd.org/ddb.html Philip Guenther

Re: OpenBSD 6.4 amd64 keeps rebooting on an AMD FX-8300 CPU...

2018-10-20 Thread Philip Guenther
The only odd thing I can think of with this system is the installation > is on the second hard drive. The first hard drive is disabled in the > BIOS. The kernel doesn't access the drive until later while probing the device tree, so I don't think that's the issue. Philip Guenther

Re: OpenBSD 6.4 amd64 keeps rebooting on an AMD FX-8300 CPU...

2018-10-20 Thread Philip Guenther
In addition, when an MP install panics, you should follow the "Note for SMP systems" section at https://www.openbsd.org/ddb.html and capture the backtraces from _all_ the CPUs. Philip Guenther

Re: OS fails to notice MP CPU

2018-10-20 Thread Philip Guenther
- acpidump(8) output If it includes all of those, then email it to If it doesn't include those, then don't bother emailing it in, as without those we can only guess what the problem is...and no one is going to waste their time trying to guess what the problem is. Philip Guenther

Re: GAS Intel syntax problems with hexadecimal numbers

2018-10-16 Thread Philip Guenther
programming forums such as stackexchange, where these sorts of queries have already been answered. Philip Guenther

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

2018-10-14 Thread Philip Guenther
diff that added support without adding clutter to the headers it's plausible it would be accepted, but it would have to be _really_ simple. ...or just go with your workaround. ;-) Philip Guenther

Re: "ld" bug - R_X86_64_32S, -fPIC

2018-10-12 Thread Philip Guenther
ddressing instead of with absolute addresses. If you _must_ have a non-PIE program (perhaps on your way to understanding how to write PIE assembly), you can link a non-PIE program by passing ld the -nopie option. Philip Guenther

Re: hw.ncpu=64 but hw.ncpuonline=8

2018-10-05 Thread Philip Guenther
On Fri, 5 Oct 2018, Mark Kettenis wrote: > > Date: Fri, 5 Oct 2018 00:34:02 -0700 > > From: Philip Guenther ... > > Now, perhaps the smt values returned by cpuid are misleading on this > > CPU: it appears that the combination of smt and core is unique > > _acr

Re: hw.ncpu=64 but hw.ncpuonline=8

2018-10-05 Thread Philip Guenther
this CPU: it appears that the combination of smt and core is unique _across_ packages: maybe we should instead enable the CPU with the lowest smt value for each package and core. Philip Guenther

Re: security(8) NFS occasional errors

2018-10-03 Thread Philip Guenther
a code for this unless it can be made race-proof (IMHO). Unfortunately, it looks like perl's opendir() doesn't have an fdopendir(3) variant, so I'm not convinced the race can be completely closed from the script itself.) Philip Guenther

Re: Snapshot AMD64, 2018-09-21, /etc/rc[430] > 0: unexpected '>'

2018-09-24 Thread Philip Guenther
On Mon, 24 Sep 2018, Sven Wolf wrote: > last weekend I've updated two computers to the amd64 current snapshot. > At every restart of the computer (after the keyboard mapping is set and > before the network gets started) following message is displayed: > /etc/rc[430]: > 0: unexpected '>' > > On

Re: bsd.rd wont boot

2018-09-16 Thread Philip Guenther
Known bug in my PCID diff in the snaps. The snap building right now should fix this. Philip

Re: Snapshot bsd.rd fails to boot on Fujitsu TX1320M1

2018-09-16 Thread Philip Guenther
On Sun, 16 Sep 2018, Karel Gardas wrote: > snapshot obtained from spline.de, build from Sep 14 stops booting > (bsd.rd) on Fujitsu Primergy TX 1320 M1. The machine BIOS/BMC firmware > was updated June/July 2018. The output of boot looks: Yep: bug in my PCID diff in the snaps. The snap building

Re: Fujitsu RX2530 M4 16 cores null acpi panic

2018-09-14 Thread Philip Guenther
d and the other even. Yell at the vendor for a firmware update... Philip Guenther

Re: double fault trap, code=0

2018-07-31 Thread Philip Guenther
tify an increase in stack use in an interrupt path, we should fix that - making aml_parse() iterative instead of recursive...by tracking frames of AML state in an explict stack...would be annoying, more complex to maintain, and probably inefficient. Maybe it's time to let kernel threads request a larger than default stack size and have acpi_thread request another page or so? - if all else fails, there's always increasing UPAGES... Philip Guenther

Re: Lenovo M700 Tiny Type 10HY inteldrm

2018-07-19 Thread Philip Guenther
On Thu, 19 Jul 2018, j...@securebytes.org wrote: ... > >How-To-Repeat: > > >Fix: > Since you didn't mention a problem, should we understand that everything is working 100% fine and that you meant this to go to dm...@openbsd.org?

Re: newaliases seg fault

2018-07-16 Thread Philip Guenther
On Mon, 16 Jul 2018, sc...@datagenic.com wrote: > >Synopsis:newaliases(8) segmentation fault > >Category:newaliases(8) segmentation fault > >Environment: > System : OpenBSD 6.3 > Details : OpenBSD 6.3-current (GENERIC.MP) #80: Sun Jul 1 12:22:16 > MDT 2018 >

Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-29 Thread Philip Guenther
NESS work and not part of the xcr0 problem. > vmm_fpurestore: guest attempted to set invalid bits in xcr0 (guest > %xcr0=0x1, host mask=0x) Oh, duh: this box doesn't have XSAVE at all but we init guests as if it does. Try this diff on the host. Philip Guenther Ind

Re: bsd.mp hits witness panic under vmm (single CPU)

2018-06-07 Thread Philip Guenther
On Thu, 7 Jun 2018, Mike Larkin wrote: > Is this a panic inside the guest in vmm, or is this the host panicing when > you're doing something while a VM is running in vmm on that host? > > Can't really tell from the trace here... This was a guest panicing. visa@ thinks this is the same

bsd.mp hits witness panic under vmm (single CPU)

2018-06-07 Thread Philip Guenther
shouldn't lead to a witness panic either.) (The weird "show witness" output for scsi_base.c mutexes is because they're on the stack and need to be unlinked from witness before returning; that *might* be causing the problem here, but I doubt it. I'm starting on a diff for that part..

Re: booting after hibernate = reboot

2018-06-07 Thread Philip Guenther
ked correctly? That'll narrow down when the regression occurred. Depending on how long a range of time+builds that is, there are various strategies for identifying the source of the failure... Philip Guenther

Re: witness report

2018-06-02 Thread Philip Guenther
On Sat, 2 Jun 2018, Christophe Prévotaux wrote: > This a witness report I got on boot with snapshot Jun 1st amd64 > > root on sd0a (9b49e3196b9bfae8.a) swap on sd0b dump on sd0b > lock order reversal: > 1st 0xff021cdac180 vmmaplk (>lock) @ /usr/src/sys/uvm/uvm_map.c:4433 > 2nd

Re: panic on -current amd64 bsd.rd (May 30)

2018-05-31 Thread Philip Guenther
4e8, 0, 1) -> e > fatal page fault in supervisor mode > type type 6 code 0 rip 811ca1fc cs 8 rflags 10002 cr2 4e8 cpl d rsp > 7f7ec9d0 > panic: trap type 6, code=0. pc=811ca1fc This is mine. I may poke you to try a diff later... Philip Guenther

Re: library error when upgrading from 6.1 to 6.3

2018-05-02 Thread Philip Guenther
2018-03-17! Wherever that login_ldap was compiled was a broken system. If that broken version came from the official packages builds then we need to make sure the involved ports build systems are being updated correctly. Philip Guenther

Re: Kernel Panic on OpenBSD 6.3 AMD64 // Chrome Related (fwd)

2018-05-01 Thread Philip Guenther
Forwarded with permission. -- Forwarded message -- Date: Tue, 1 May 2018 12:22:41 -0700 From: Davide Marini <dmar...@inkbit.xyz> To: Philip Guenther <pguent...@proofpoint.com> Subject: Re: Kernel Panic on OpenBSD 6.3 AMD64 // Chrome Related Hi Philip, Thank

Re: Kernel Panic on OpenBSD 6.3 AMD64 // Chrome Related

2018-05-01 Thread Philip Guenther
s of /var/run/dmesg from this box, with the complete dmesg output. (Rule of thumb: when reporting *any* problem, include the dmesg from the box so we have some idea of the set up of the involved machine.) Philip Guenther

Re: library error when upgrading from 6.1 to 6.3

2018-05-01 Thread Philip Guenther
ommand and the answer should be of the form /usr/lib/libc.so.X.Y # What's the output of # nm /path/to/the/reported/libc.so | grep pthread_once ? You should run nm on that libc, *not* libcrypto. Philip Guenther

Re: library error when upgrading from 6.1 to 6.3

2018-05-01 Thread Philip Guenther
ldap should have been on the list and IMHO updating them *all* with "pkg_add -u" is the only sane option.) Philip Guenther

Re: NFS keeps crashing

2018-04-28 Thread Philip Guenther
On Sat, 28 Apr 2018, Otto Moerbeek wrote: > On Fri, Apr 27, 2018 at 09:12:36PM -0400, Rupert Gallagher wrote: > > > The lack of information originates from "mountd -d". When it terminates > > because of an error, it should log the name of the last function and its > > parameters. > > Wrap your

Re: curl/w3m https request with torsocks core dump at exit

2018-04-24 Thread Philip Guenther
On Tue, 24 Apr 2018, Jeremie Courreges-Anglas wrote: ... > We took a quick look yesterday, the crash happens in dtors, the cause of > the crash looks like a use after free. I'm not a BIO_* hacker, here's > a stack trace on amd64, curl rebuilt with DEBUG=-g: > > Program received signal SIGBUS, Bus

Re: 6.3 on Dell 390

2018-04-10 Thread Philip Guenther
"sendbug" and fill in the detail there, and send the generated message to bugs@openbsd.org. Doing that automatically includes output of the dmesg, acpidump, and pcidump commands, all of which are possibly relevant to the problem you're experiencing. Philip Guenther

Re: socketpair(2) and getpeereid(3)

2018-04-07 Thread Philip Guenther
formation or not. But at least, > ENOTCONN is wrong: socketpair(2) returns connected sockets. That's a bug, IMO: socketpair(2) should support use of getpeereid(3). Philip Guenther

Re: 6.2 Installation Fails on Soekris net5501

2018-01-01 Thread Philip Guenther
o allocate to /var/tmp should just be combined into your /tmp. This has been the behavior since November 2014 and the OpenBSD 5.7 release. Philip Guenther

Re: Issue with /dev/zero fcntl/F_SETFL

2017-12-13 Thread Philip Guenther
On Wed, 13 Dec 2017, Jeremy Evans wrote: > I think this may be a bug. I'm guessing either: > > 1) fcntl(fd,F_SETFL, O_NONBLOCK) shouldn't fail, because >open("/dev/zero", O_NONBLOCK) doesn't fail; or Yes. > After more testing, it appears any fcntl/F_SETFL call on /dev/zero > fails, even if

Re: Double fee when using openssl ocsp

2017-11-29 Thread Philip Guenther
sting a diff to do so. Philip Guenther

Re: file timestamps wrap around

2017-11-12 Thread Philip Guenther
On Sun, 12 Nov 2017, Otto Moerbeek wrote: > On Sun, Nov 12, 2017 at 08:12:26PM +0100, Mark Kettenis wrote: ... > > It certainly doesn't make sense to have touch(1) do the checks. > > > > Note that POSIX says that futimens(2) shall faill if: > > > > [EINVAL] > > A new file timestamp would be

Re: umsc(4) no longer works since t2k17 hackathon

2017-10-04 Thread Philip Guenther
On Wed, 4 Oct 2017, Paul de Weerd wrote: ... > which bumps dev/usb/umcs.c to revision 1.5 with commit message: > > "Deactivate the device if I/O fails in attach. > > Coverity CID 1453399; ok deraadt@" > > reverting this makes the device work again, but since there's a > Coverity CID attached,

Re: install(1) fails when reading from stdin

2017-09-25 Thread Philip Guenther
gt; argument to fall back on. > >How-To-Repeat: > $ echo test | install /dev/stdin /tmp/bug > install: /dev/stdin: Inappropriate file type or format That's not a documented and supported use of install(1). "Not a bug" "What problem are you trying to solve" Philip Guenther

Re: Race-condition vulnerability in lpd, revisions up to the current 1.58

2017-09-19 Thread Philip Guenther
nsigned long long. Simply removing the intermediate variables seems to be the simplest solution in both cases. Philip Guenther <guent...@openbsd.org> Index: lpd/printjob.c === RCS file: /data/src/openbsd/src/usr.sbi

iwm failures on yoga12, "hw rev 0x210, fw ver 16.242414.0"

2017-08-16 Thread Philip Guenther
5 dmesg of boot with rev 1.205 below. Philip Guenther OpenBSD 6.1-current (LOCAL) #10: Wed Aug 16 21:11:41 PDT 2017 guenther@corwin.local:/usr/src/sys-lock0/arch/amd64/compile/LOCAL real mem = 8458018816 (8066MB) avail mem = 8127426560 (7750MB) mpath0 at root scsibus0 at mpath0: 256 target

Re: Iperf and X crash, mininet port

2017-08-13 Thread Philip Guenther
On Sun, 13 Aug 2017, Ayaka Koshibe wrote: > > It sounded like this isn't difficult to reproduce, or at least you've done > > so a couple times already. I suggest rebuilding libpthread with gcc > > instead of clang and see if it's equally reproducible. If not, well, you > > can get done what you

Re: Iperf and X crash, mininet port

2017-08-12 Thread Philip Guenther
you say you tried recompiling all libpthread with gcc? Philip Guenther

Re: coredump of ..., write failed: errno 14

2017-08-12 Thread Philip Guenther
On Sat, 12 Aug 2017, Stuart Henderson wrote: > On 2017/07/13 17:16, Stuart Henderson wrote: > > I've seen this a lot recently (14 = EFAULT) > > > > 2017-07-13T16:05:57.935Z symphytum /bsd: coredump of Xorg(62706), write > > failed: errno 14 > > 2017-07-13T16:05:57.993Z symphytum /bsd: coredump

Re: OpenBSD 6.1 with syspatch 14 crash

2017-07-08 Thread Philip Guenther
On Sat, 8 Jul 2017, Mike Cole wrote: > I can't use sendbug because it only boots to ddb. This is OpenBSD 6.1 with > latest syspatch 14 running in byhve under FreeBSD. This is a bug in bhyve. c.f. http://marc.info/?t=14913605473=1=3 Philip Guenther

Re: fork error using kevent rather than wait(2)

2017-06-18 Thread Philip Guenther
r. Note that kevent() EVFILT_PROC filters don't reap zombies, so your program is accumulating zombie children until you reach your process limit. As for the behavior of EVFILT_PROC on an already exited process, I look forward to your sendbug report. Philip Guenther

Re: pax pledge issue

2017-04-16 Thread Philip Guenther
On Sun, 16 Apr 2017, Martin Natano wrote: > The issue here is, that pledge("tape") does not allow to perform > MTIOCGET on tty devices. So we should call isatty() beforehand and > shortcut ioctl() in case the file descriptor is a tty. ok guenther@

X fails on Macbook with 6.1 snap

2017-04-01 Thread Philip Guenther
>Synopsis: X fails on Macbook with 6.1 snap >Category: system >Environment: System : OpenBSD 6.1 Details : OpenBSD 6.1 (GENERIC) #2: Fri Mar 31 00:00:16 MDT 2017 dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC

  1   2   3   >