Re: POSIX Inquiry

2024-10-01 Thread Philip Guenther
list of standards that OpenGroup publishes/maintains. The OpenGroup is _completely_ unrelated to OpenBSD. If you want information about their stuff you need to ask them. Philip Guenther

Re: Building -current incrementally.

2024-09-27 Thread Philip Guenther
On Fri, Sep 27, 2024 at 1:45 AM Christian Schulte wrote: > On 9/26/24 10:47, Philip Guenther wrote: > > On Thu, Sep 26, 2024 at 12:30 AM Christian Schulte wrote: ... > > Does there exist a documented, maintained, and tested way to "build > > base incrementally&

Re: Building -current incrementally.

2024-09-26 Thread Philip Guenther
o avoid. tl;dr: no really, snaps are full builds; if you take short cuts and it breaks you get to keep both pieces but you'll just get told to follow the normal process to get back and not waste people's time. Philip Guenther

Re: no diffie-hellman params file when using dhe in smtpd/relayd?

2024-09-09 Thread Philip Guenther
lve its meaning for the term PFS, but calling anything that has actually been built and standardized 'perfect' is just spitting in the face of the forward progress of science. tl;dr, sure, it'll be secure. Philip Guenther

Re: postgresql-16.4 error on initdb

2024-08-22 Thread Philip Guenther
Whee. Can someone send me or point me to a reproducer for this; e.g., does postgresql's own test suite hit this? Philip On Thu, Aug 22, 2024 at 10:35 AM Jeremy Evans wrote: > > On 08/22 03:43, Stuart Henderson wrote: > > On 2024/08/22 14:14, Jeremy Evans wrote: > > > On 08/22 11:53, Markus Hen

Re: misbehaving localtime zone link

2024-08-04 Thread Philip Guenther
the wrong value) on the one box? That's the only remaining factor I can think of... Philip Guenther

Re: failure to read huge .text section

2024-07-28 Thread Philip Guenther
write a configure test for “doesn’t have working .rodata so use .text instead” but it was the previous millenium when I last saw a working system like that… Philip Guenther On Saturday, July 27, 2024, Shein Asker wrote: > Dear Mr. Claudio, @misc readers, > > Thank you for your pro

Re: POSIX Inquiry

2024-07-18 Thread Philip Guenther
On Thursday, July 18, 2024, Katherine Mcmillan wrote: > > In the Core Program for the POSIX standards, a relational database is > listed. I am wondering what this is referring to? > You’ll need to be more specific about what you’re referring to and how it relates to OpenBSD. Philip Guenther

Re: cpu cores

2024-06-08 Thread Philip Guenther
ion about your laptop and the cpus inside it. Philip Guenther

Re: x64

2024-05-29 Thread Philip Guenther
st you developed yourself based on testing other systems or something you read about? Philip Guenther

Re: pax and ext2fs

2024-05-17 Thread Philip Guenther
On Thu, May 16, 2024 at 12:08 AM Philip Guenther wrote: > On Wed, May 15, 2024 at 1:14 AM Philip Guenther wrote: ... >> I think you've managed to hit a spot where the POSIX standard doesn't >> provide a way for a program to find the information it needs to do its job

Re: pax and ext2fs

2024-05-16 Thread Philip Guenther
On Thu, May 16, 2024 at 5:33 AM Walter Alejandro Iglesias wrote: > > On Thu May 16 09:48:45 2024 Philip Guenther wrote: > > So yeah, what's needed is pathconfat(2)** but whether this winding loose > > end ("That poor yak.") merits that much code and surface

Re: pax and ext2fs

2024-05-16 Thread Philip Guenther
On Wed, May 15, 2024 at 1:14 AM Philip Guenther wrote: > On Tue, May 14, 2024 at 11:59 AM Walter Alejandro Iglesias < > w...@roquesor.com> wrote: > >> Hi Philip, >> >> On Tue May 14 19:40:04 2024 Philip Guenther wrote: >> > If you like, you could try the

Re: pax and ext2fs

2024-05-15 Thread Philip Guenther
On Tue, May 14, 2024 at 11:59 AM Walter Alejandro Iglesias wrote: > Hi Philip, > > On Tue May 14 19:40:04 2024 Philip Guenther wrote: > > If you like, you could try the following patch to pax to more gracefully > > handle filesystems with time resolution more granular than n

Re: viomb0 unable to allocate256 physmem pages, error 12

2024-05-15 Thread Philip Guenther
r at least so that the OpenBSD guest(s) isn't the one being asked to slim itself (possibly by giving it *less* but _reserved_ memory, so that the VM host never tries to shrink its usage). Philip Guenther On Tue, May 14, 2024 at 4:16 PM F Bax wrote: > I'm not a coder; but I found

Re: pax and ext2fs

2024-05-14 Thread Philip Guenther
If you like, you could try the following patch to pax to more gracefully handle filesystems with time resolution more granular than nanoseconds. The whitespace will presumably be mauled by gmail so use patch's -l option. Philip Guenther Index: ar_s

Re: pax and ext2fs

2024-05-01 Thread Philip Guenther
-Z options > don't work with ext2fs? > It should work the same as on ffs, but since you put zero effort into describing _how_ its behavior didn't match your expectations, I wouldn't expect anyone to put more than zero effort in reading your mind. Good luck! Philip Guenther

Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Philip Guenther
RAID replicates the data in the RAIDed area, yes? Do you have some reason to believe that the boot information (MBR, etc) is _inside_ the RAID area, because I do not believe that. Really feels like installboot needs to be run on this drive to, uh, install the proper boot info. Philip Guenther

Re: AAAA entry for openbsd.org

2023-10-22 Thread Philip Guenther
ho try to help, particularly when doing exactly what you requested would NOT HAVE HELPED, unless you *want* people to drop you in their kill-file as "not worth trying to help".) Philip Guenther

Re: ImageMagick fails on OpenBSD 7.4 fresh install

2023-10-22 Thread Philip Guenther
Ah, sorry for my misreading what you wrote. Please use 'sendbug' to report the sequence of pkg_add operations that didn't work. Philip Guenther On Sun, Oct 22, 2023 at 5:50 PM Mark wrote: > It wasn't an upgraded system, that's fresh install, a completely new >

Re: X session doesn't survive zzz

2023-10-22 Thread Philip Guenther
icture but capture /var/log/Xorg.0.log both before suspending and then after resuming (ssh in if necessary) and see what X is falling over on. Philip Guenther On Wed, Oct 18, 2023 at 4:17 AM Jan Stary wrote: > On Oct 18 11:11:54, h...@stare.cz wrote: > > This is current/amd64 o

Re: ImageMagick fails on OpenBSD 7.4 fresh install

2023-10-22 Thread Philip Guenther
/var/db/pkg/ or /usr/local/* 4) pkg_add -l manual Or maybe now's a good time to do a fresh install. Philip Guenther On Sun, Oct 22, 2023 at 3:34 PM Mark wrote: > Tried changing the installurl, an another mirror, but didn't help. > > Here's what actually happens; >

Re: Delay in starting xterm via ssh after upgrade from 7.3 to 7.4

2023-10-22 Thread Philip Guenther
If this had been observed _during_ 7.4 development then it would have been simpler to isolate what set of changes caused it. Since that didn't happen you'll have to debug this yourself on the affected systems. For starters, I would suggest turning up ssh logging with the -v option and capturing t

Re: Crash on TOSHIBA PORTEGE Z30-A laptop

2023-10-22 Thread Philip Guenther
On Sat, Oct 21, 2023 at 2:27 AM wrote: > Hi Philip, > > Thank you very much for your answer. > > I tried to disable all options (+devices) possible. Same issue. > And what's about disable acpi in the kernel using the bsd.re-config? > As Mike and Theo noted, this will certainly cause problems.

Re: Crash on TOSHIBA PORTEGE Z30-A laptop

2023-10-20 Thread Philip Guenther
The last possibility would be to build a kernel 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: reorder_kernel: failed

2023-10-17 Thread Philip Guenther
/ /bsd ? If it *is* marked immutable, then uh, you'll need to undo that and figure how the heck that happened and make sure it doesn't happen again. (If _you_ marked it immutable, then don't, or at least don't waste people's time when that breaks things.) Philip Guenther

Re: debugging "invalid argument" errors when loading elf files

2023-10-11 Thread Philip Guenther
On Tue, Oct 10, 2023 at 11:44 PM Lorenz (xha) wrote: > On Mon, Oct 09, 2023 at 01:29:52PM -0700, Philip Guenther wrote: > > On Mon, Oct 9, 2023 at 11:21 AM Lorenz (xha) wrote: > > > > > hi misc@, > > > > > > i'm currently porting the hare progra

Re: debugging "invalid argument" errors when loading elf files

2023-10-09 Thread Philip Guenther
he logic around the 10 occurrences of EINVAL in that code. Presumably the differences you identified will point to one or more of them Philip Guenther

Re: Speed: dump/restore vs rsync

2023-09-22 Thread Philip Guenther
7;t include that, you would appear to be running some >> other version of dump, which would make this the wrong place to get help. >> >> ...unless you truncated an error message before asking about it, which is >> kinda self-defeating. >> >> >> Philip Guenther >> >>

Re: rmt, rcmd, /etc/hosts.equiv and .rhosts

2023-09-11 Thread Philip Guenther
x27;t let untrusted people alter libc on your system" You *do* understand that you are trusting the OpenBSD developers by using OpenBSD, just as you are trusting the FreeBSD developers if you use FreeBSD, and trusting the Linux kernel and glibc and GNU-whatever utils, and systemd, and distro de

Re: struct kinfo_proc: p_schedflags and PSCHED_*

2023-09-11 Thread Philip Guenther
On Mon, Sep 11, 2023 at 12:01 PM Benjamin Stürz wrote: > I'm writing a little toy /proc fuse-fs for OpenBSD. > > The field p_schedflags defined in struct kinfo_proc > in file /usr/include/sys/sysctl.h refers to PSCHED_*, > but I can't find any references to these macros with: > $ grep -rn PSCHED_

Re: signify: invalid comment in SHA256

2023-06-17 Thread Philip Guenther
to read the SHA256 file. Perhaps you should follow all the examples for signify and pass it the SHA256.sig file. Philip Guenther

Re: chmod change means dump(8) the file

2023-01-25 Thread Philip Guenther
ven if the filesystem provided enough info for dump to know that only the file's mode had been changed, there's nothing it can do about it other than back up the entire file.) Philip Guenther

Re: Weirdness with du/df/my brain (latter more likely)

2023-01-22 Thread Philip Guenther
ems a plausible explanation of the expansion. Philip Guenther

Re: Relinking to create unique kernel... failed!

2023-01-13 Thread Philip Guenther
0, inum = 7, fs = /tmp > panic: ffs_valloc: dup alloc > Stopped at db_enter+0x10: popq %rbp > You have at least one filesystem with latent corruption. You should reboot in single-user mode and run fsck with the -f option on each partition. Philip Guenther

Re: rdist remove option and default behaviour

2022-12-13 Thread Philip Guenther
rdist is smart enough to know that it can't remove a directory without first removing its contents, so it tried that and presumably failed. If it _could_ remove the contents it would then remove the directory...and then fail when it tried to create a tempfile with prefix "/tmp/". Co

Re: port builds with inline source

2022-06-29 Thread Philip Guenther
Take a look at the Makefile for the sysutils/cpuid port, which has just one C file included in the ports source tree itself. Philip Guenther On Wed, Jun 29, 2022 at 3:53 PM Lyndon Nerenberg (VE7TFX/VE6BBM) < lyn...@orthanc.ca> wrote: > We have a number of in-house utilities that we pu

Re: rpcbind security

2022-06-17 Thread Philip Guenther
. (There is no rpcbind program in OpenBSD and that word doesn't appear in the manuals. If you see an rpcbind process then you're not on OpenBSD and need to check with a different mailing list.) Philip Guenther

Re: C states lost on amd64

2022-05-27 Thread Philip Guenther
depending on, say, whether the box is plugged in. You could give this diff a shot. It enables processing of CST change notifications. No committers have a (working) box that does that, so I couldn't get any interest and I have no idea when--or even if--it might go in. Philip Guenthe

Re: Can't attach gdb to cwm

2022-03-09 Thread Philip Guenther
ess tree, which breaks assumptions by both kernel and userspace programs. If that's the case, run gdb from an ssh session or something like that. Hmm, I guess I never updated the ptrace(2) manpage to mention that... Philip Guenther

Re: C2 state on AC/battery

2022-02-07 Thread Philip Guenther
pluging. > That aml_register_notify() path is a *boot* time path, when acpicpu is attaching. What printf() did you add and did it appear during boot? If not, then the OS isn't registering the notify callback. Please send a report to bugs@ with sendbug as root, including the acpidump output. Philip Guenther

Re: C2 state on AC/battery

2022-02-05 Thread Philip Guenther
would suggest adding a printf() right before the aml_register_notify() call in acpicpu.c to see if it's actually being hit, and if it is then dump the tables on your box and grovel around in them to see if you see notification support on the CPU nodes. Philip Guenther

Re: SSL write error: certificate verification failed: certificate has expired

2022-02-02 Thread Philip Guenther
he FAQ about upgrades so that you can keep your system up to date after installing. Philip Guenther

Re: cd*.iso reboot loop (vultr, Skylake AVX MDS)

2021-12-04 Thread Philip Guenther
The machine hosting your guest probably suffered some failure (thus the crash that you experienced) and they migrated your guest to another host to get you back up and running. I periodically see the tickets go by at my $DAYJOB of this sort of replacement. Hardware, especially modern PCs, don't live anywhere near forever... Philip Guenther

Re: Transferring ownership of SSH connection from process A to B, letting A quit nicely?

2021-08-11 Thread Philip Guenther
On Tue, Aug 10, 2021 at 12:13 PM mid wrote: > On Monday, August 9th, 2021 at 5:36 AM, Philip Guenther < > guent...@gmail.com> wrote: > > > If you're 100% sure you have it right, then it should be easy to provide > a > > program that demonstrates > >

Re: Transferring ownership of SSH connection from process A to B, letting A quit nicely?

2021-08-08 Thread Philip Guenther
On Sun, Aug 8, 2021 at 10:13 AM mid wrote: ... > I have tried sending the file descriptors associated with the connection > to process B via sendmsg, thinking that maybe the > file descriptors are reference-counted. It's a logical > assumption, but it didn't work - the connection closed with > pr

Re: /var/log/failedlogin is a binary file with a lot of null bytes?!

2021-07-17 Thread Philip Guenther
/usr/src/usr.bin/login/failedlogin.c and consists of an array of the 'badlogin' structure specified there. If you want to dump its contents in a more readable format then you should write a small program to do so in C or some other language which can easily handle binary files. Philip Guenther

Re: udp sendto performance

2021-07-05 Thread Philip Guenther
ever, if you have a target and are trying to figure out whether a setup can _reach_ that target then measuring an older release tells you nothing, because you would never deploy an out of date release. I Would Dearly Hope. Philip Guenther

Re: EACCES of UDP packet

2021-06-22 Thread Philip Guenther
etsockopt() calls? You say "I can confirm the packet was not sent to a broadcast address": *how* have you confirmed that your understanding of 'broadcast address' matches the kernel's understanding? It ain't just 255.255.255.255 Philip Guenther > > > Siegfried

Re: Usage of .note.openbsd.ident

2021-05-26 Thread Philip Guenther
d actively hostile to portability of tooling. If you find that ELF note obnoxious, just fix the linkers to instead set the ELF ABI field correctly. As I understand it, the 'go' tool chain has done that for years. It's really the better choice for this, would take less space a

Re: Fwd: umm_map returns unaligned address?

2021-04-23 Thread Philip Guenther
your game_mode_start_audio_thread(), where you advance the pointer from uvm_map() by four. Philip Guenther

Re: umm_map returns unaligned address?

2021-04-23 Thread Philip Guenther
; > if(uvm_map(&p->p_vmspace->vm_map, &memory_in_proc_space, > round_page(memory_size), uvm_object, >0, 0, UVM_MAPFLAG(PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE, >MAP_INHERIT_NONE, MADV_NORMAL, 0))) { > memory = 0; > This error handling is incomplete, lacking an unmap. Philip Guenther

Re: Unable to listen properly on UDP port 4500

2020-12-08 Thread Philip Guenther
port, which is enabled by default. If you're a masochist and likes making your life more difficult, you can use that port for your own purposes by disabling that sysctl. If you're not a masochist, use a different port. Philip Guenther On Tue, Dec 8, 2020 at 4:13 PM Chris Johnson

Re: Potential ksh bug?

2020-11-17 Thread Philip Guenther
closing quote is actually proper > behavior. > Nope. This is a bug in OpenBSD ksh. > As well it is good idea to avoid reserved words as a names for variables > ;-) > (test) Hmm? * 'test' is not a reserved word in the shell * shell variable names are a completely different namespace than shell reserved words or commands * code written to check whether something is a bug is 1000% out-of-bounds for style comments: either there's a bug or there isn't Philip Guenther

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

2020-11-16 Thread Philip Guenther
the qemu people and figure out why your host kernel isn't applying a documented fix. Paying attention to what the kernel tells you is a Good Thing. Honestly, what you showed above, that it trapped on wrmsr with those registers should have been enough for the qemu people to figure out what wasn't working. Philip Guenther

Re: time_t

2020-10-05 Thread Philip Guenther
ze, solving both the field size limit problem and the lack of subsecond resolution. Philip Guenther

Re: i386, parallel port permission error?

2020-08-19 Thread Philip Guenther
direct CPU instructions for I/O. To use them, the code must use i386_iopl(2) from libarch.a to enable it, which in turn requires the machdep.allowaperture sysctl to a non-zero value (per the manpage). > Any advice about this? Is this code amenable to being 'modernized'? > > If can't modernize the lcdproc code, can you give me specifics about: > Do I just put a line in /etc/rc.securelevel > kern.allowkmem=1 > Try machdep.allowaperture=1 instead. Philip Guenther

Re: sysctl and panic

2020-08-04 Thread Philip Guenther
still supported ? > Yes. Philip Guenther

Re: perl hex possible bug

2020-07-21 Thread Philip Guenther
the so-called poetry extension, where a bare word like aF is treated as a string. Turn on strict... $ perl -Mstrict -le 'print hex Af;' Bareword "Af" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. $ > I'm guessing there is a bug here but not sure if its software or > documentation. > No bug, just shell quoting traps. Philip Guenther

Re: Potential grep bug?

2020-06-24 Thread Philip Guenther
ore places that need to change for the reported problem to be handled safely. Philip Guenther On Tue, Jun 23, 2020 at 9:58 PM Martijn van Duren < open...@list.imperialat.at> wrote: > This seems to fix the issue for me. > > OK? > > martijn@ > > On Tue, 2020-06-23 a

Re: Potential awk bug?

2020-06-06 Thread Philip Guenther
Cell *bltin(Node **a, int n)/* builtin u = strlen(getsval(x)); break; case FLOG: + errno = 0; u = errcheck(log(getfval(x)), "log"); break; case FINT: modf(getfval(x), &u); break; case FEXP: + errno = 0; u = errcheck(exp(getfval(x)), "exp"); break; case FSQRT: + errno = 0; u = errcheck(sqrt(getfval(x)), "sqrt"); break; case FSIN: u = sin(getfval(x)); break; Todd, are we up to date with upstream, or is this latent there too? Philip Guenther

Re: Convert ffs1 to ffs2?

2020-05-20 Thread Philip Guenther
re the proper question...and the answer appears to be *no*. Philip Guenther

Re: OpenBSD insecurity rumors from isopenbsdsecu.re

2020-05-11 Thread Philip Guenther
them you should stay away from OpenBSD because I am a committer and if you can't trust my questions then you shouldn't trust my code. Philip Guenther

Re: OpenBSD insecurity rumors from isopenbsdsecu.re

2020-05-11 Thread Philip Guenther
in part by someone who is/was a US citizen, in OpenSSH even, as a check of copyright/license statements on source files show. How does that change your world view? Philip Guenther

Re: Double fault trap in rtable_l2

2020-04-20 Thread Philip Guenther
ld require you providing the full stack trace to the list, so that the correct parties can see it and identify where it's incorrectly looping. Philip Guenther

Re: Openbsd supports pae?

2020-04-10 Thread Philip Guenther
Because it would be a total PITA now and in the future and benefit only that small set of machines that have >4GB of memory but that can't run 64bit. Since you like one-liner questions: why do you care?

Re: ffs details

2020-02-25 Thread Philip Guenther
anges have been included in OpenBSD. Check his biography and his personal website for links to papers and presentations. Philip Guenther

Re: is there a 2GB limit on amd64 link?

2020-02-05 Thread Philip Guenther
eed to work with the the docs, mailling lists, etc of the upstream gnu fortran project about how to have it generate code for the medium or large data models per the amd64 ABI. Philip Guenther

Re: Readv and writev failing across ethernet

2019-12-24 Thread Philip Guenther
ng further to contribute to this thread) Philip Guenther

Re: Re-organising partitions without re-installation

2019-12-23 Thread Philip Guenther
On Mon, Dec 23, 2019 at 3:10 PM Stuart Longland wrote: ... > Where do you get `sysclean` from? I don't seem to have it: > > sjl-router# man sysclean > > > man: No entry for sysclean in the manual. > > sjl-router# which sysclean > > which: sysclean: Command not found. > $ pkg_info sysclean Infor

Re: Readv and writev failing across ethernet

2019-12-23 Thread Philip Guenther
On Mon, Dec 23, 2019 at 6:07 AM Ingo Schwarze wrote: > Theo de Raadt wrote on Sun, Dec 22, 2019 at 05:34:45PM -0700: > > Philip Guenther wrote: > >> Somebody wrote: > > >>> The man pages for readv and writev don't document the possibility of > >&

Re: Disabling ACPI permanently

2019-12-23 Thread Philip Guenther
ith this. ... > acpipci0 at acpi0 PCI0panic: malloc: allocation too large, type = 33, size > = 292057776136 > Philip Guenther

Re: Readv and writev failing across ethernet

2019-12-23 Thread Philip Guenther
At this point I think you're clearly in the "device driver is buggy" situation. If this device has an in-tree driver (and not something you're compiling locally into your kernel) then you should start a new thread starting with a dmesg and a clear description of the involved hardware. Philip Guenther

Re: Readv and writev failing across ethernet

2019-12-22 Thread Philip Guenther
7;t document the possibility of > such errors. IMO, weird errnos from devices should be documented in the manpage for the device. Consider the termios(4) manpage, for example. Philip Guenther

Re: Unable to build OpenBSD 6.6 libc on beaglebone black

2019-12-07 Thread Philip Guenther
t", then my recommendation would be to grab the 6.6 bsd.rd, boot to it, and (u)pgrade to 6.6 being sure to include the comp66 set in your install, and _then_ try building things...or just run syspatch. Philip Guenther

Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Philip Guenther
On Sun, Nov 24, 2019 at 7:53 PM Jeffrey Walton wrote: > On Sun, Nov 24, 2019 at 10:10 PM Philip Guenther > wrote: > > > > On Sun, Nov 24, 2019 at 3:11 AM Jeffrey Walton > wrote: > >> > >> I am struggling to get a USB modem and terminal configured proper

Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Philip Guenther
to be done to initialize a tty on first open. We can (and I guess we should at this point) define O_TTY_INIT to be zero. How do I achieve O_TTY_INIT when > using a struct termios tty? > Before calling tcsetattr(3) you should call tcgetattr(3) to get the tty device's current settings and only alter the setting you care about. Philip Guenther

Re: Value of eax register after BIOS interrupt call from boot(8)

2019-11-09 Thread Philip Guenther
On Friday, November 8, 2019, Theo de Raadt wrote: > Philip Guenther wrote: > > > No, it should be the other way, moving the “clear NT flag” block down > after > > the “save registers into save area” block > > Ah. > > Ind

Re: Value of eax register after BIOS interrupt call from boot(8)

2019-11-08 Thread Philip Guenther
On Friday, November 8, 2019, Theo de Raadt wrote: > Philip Guenther wrote: > > > Since we're unlikely to do _more_ with BIOS calls in the boot loader, my > > inclination would be to eliminate the structure value and the code that > > sets it (incorrectly). Opin

Re: vi in ramdisk?

2019-11-07 Thread Philip Guenther
o use the ramdisks for (installing, reinstalling, upgrading, fixing boot and set issues), vi is not necessary, while other functionality and drivers extend their applicability. We will keep the latter and not include the former. Philip Guenther

Re: Value of eax register after BIOS interrupt call from boot(8)

2019-11-07 Thread Philip Guenther
so the fact that the wrong value is saved there hasn't mattered. Since we're unlikely to do _more_ with BIOS calls in the boot loader, my inclination would be to eliminate the structure value and the code that sets it (incorrectly). Opinions? Philip Guenther

Re: this assembly example works in linux, netbsd - but not in openbsd, why?

2019-10-29 Thread Philip Guenther
than in ASM. I've touched ASM on every single current OpenBSD arch, so I understand the high cost of doing that when it _has_ been necessary and I have no interest in borking around in ASM for stuff C can reasonably do. Philip Guenther

Re: help with understanding __BSD_VISIBLE

2019-07-13 Thread Philip Guenther
_SOURCE -- standardized: specifies a POSIX version _XOPEN_SOURCE-- standardized: specifies a POSIX + XSI version _ISOC11_SOURCE-- adds C2011 interfaces _BSD_SOURCE -- adds all BSD and obsoleted interfaces Make sense? Philip Guenther

Re: Putting fifos in subshells into the background

2019-06-12 Thread Philip Guenther
om an over-zealous optimization in the logic handling subshells where the possibility that an inner redirection could be blocking wasn't taken into account when it tries to avoid unnecessary forks. Sorry, I don't have a fix in my back pocket. Your workaround is good; I'll note the intermediate set of parens can also be braces, which would let you avoid the otherwise necessary whitespace between open-parens if that grates on your soul like it does mine. :) Philip Guenther

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

2019-05-27 Thread Philip Guenther
ther processes accessing the disk"? The word 'interrupt' is overloaded in computing and what you saw may be a real problem with device support, or it may be completely innocuous, something which you should be ignoring. Philip Guenther

Re: Purpose of primary and secondary user groups

2019-01-13 Thread Philip Guenther
behavior. The use of the SGID bit on directories to request BSD behavior was an addition in SystemV-based systems when enough of their devs and users yelled at them to Not Be Stupid And Provide the Better Behavior. I'm not sure who or when first added the mount option. Linux certainly has both of those, but is not the only one. Philip Guenther

Re: demystifying trap

2019-01-12 Thread Philip Guenther
CK when allocating memory for thread stacks. Philip Guenther

Re: Porting some software to OpenBSD

2019-01-05 Thread Philip Guenther
> > The easy fix is to change the format to '%llu', but this brakes FreeBSD > and Linux. Am i missing something or should i be investigating the log > implementation? > Option 1) log(DEBUG, "Solo5: clock_init(): freq=%llu\n", (unsigned long long)freq); Option 2) #include log(DEBUG, "Solo5: clock_init(): freq=%"PRIu64"\n", freq); Software native to OpenBSD uses option 1 when necessary. Philip Guenther

Re: Purpose of primary and secondary user groups

2018-12-29 Thread Philip Guenther
kets, but for SysV stuff it affects what operations processes can perform. Philip Guenther

Re: I can't make build stable 6.4

2018-12-22 Thread Philip Guenther
o this wasn't source files updated in the middle of the builds. Without know the exact sequence of operations on this tree it would be hard to diagnose how this happened. "When in doubt, rm -rf /usr/obj/* before building" Philip Guenther

Re: Is HPET timer accessible in userland?

2018-12-13 Thread Philip Guenther
ross CPUs, real or virtual. Philip Guenther

Re: netstat *:* udp sockets

2018-12-13 Thread Philip Guenther
ports? > Those are just UDP sockets on which connect() hasn't been called and that aren't in the middle of a recvfrom() or recvmsg(), no? And, perhaps more directly, how would I block this in pf.conf? > Excellent choice, blocking dhclient from receiving the leases that it reque

Re: Core Dev?

2018-12-04 Thread Philip Guenther
tems that were _clearly_ going to happen is completely believable. Philip Guenther

Re: statethreads crashes in ld on 6.4

2018-12-03 Thread Philip Guenther
www.openbsd.org/64.html * Implemented MAP_STACK option for mmap(2). At pagefaults and syscalls the kernel will check that the stack pointer points to MAP_STACK memory, which mitigates against attacks using stack pivots. To confirm, if you check your dmesg(8) or /var/log/messages you should find the kernel complaining something like syscall [server]65554/### sp 13cd24a## not inside 0x7f7f###-0x7f7f### Philip Guenther

Re: statethreads crashes in ld on 6.4

2018-12-02 Thread Philip Guenther
On Sun, Dec 2, 2018 at 7:51 PM Edgar Pettijohn wrote: > Sorry just saw it came with some examples. Testing with the `lookupdns' > program > ended with a Bus error (core dumped). Here is gdb output: > > Core was generated by `lookupdns'. > Program terminated with signal SIGBUS, Bus error. > #0 _l

Re: 6.4-release tset(1) really slow, what have I missed?

2018-12-02 Thread Philip Guenther
> but I have no idea what on earth could be causing it. > It requested a sleep of 1 second and 15 seconds passed. That's a kernel timetracking issue, so the output of "sysctl kern.timecounter" would be a good place to start. Is this is an MP kernel using the CPU TSC, but on a VM where the virtual CPU's TSCs aren't in sync? Philip Guenther

Re: statethreads crashes in ld on 6.4

2018-12-02 Thread Philip Guenther
e syscalls leading up to signal were (and what extra info was in the signal) tells a lot. Philip Guenther

Re: why thread is not usable in perl5 of OpenBSD6.4?

2018-11-25 Thread Philip Guenther
hread function was disabled in this release? > Is it security reason? > Upstream has it off by default, nothing so far has needed it, and it makes things slower (or at least that's why upstream says). Why would we enable it? Philip Guenther

Re: non-interactive sh and SIGTERM

2018-11-25 Thread Philip Guenther
kill 16632 [3] - Terminated sh -c "while :; do :; done" : morgaine; : morgaine; sh -c 'while :; do sleep 1; done' & [3] 59539 : morgaine; kill 59539 : morgaine; [3] - Terminated sh -c "while :; do sleep 1; done" : morgaine; sh itself doesn't ignore SIGTERM, but rather exits after receiving it. Philip Guenther

Re: non-interactive sh and SIGTERM

2018-11-22 Thread Philip Guenther
t mention the non-interactive case. > In my quick test it doesn't ignore SIGTERM, so you'll need to provide additional information for us to help you. Philip Guenther

  1   2   3   4   5   6   7   8   9   10   >