Re: Need some information about fork(2) -- Pedantic Correction

2024-09-23 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 04:47:33PM -0500, Jay F. Shachter wrote: > > > > > It's an exact copy, all memory allocations remain the same. > > > > Please forgive the pedantic correction, but, although I don't know how > OpenBSD does it, I certainly hope that OpenBSD does it the way other > operatin

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 08:07:54PM +0200, Страхиња Радић wrote: > Дана 24/09/22 07:59PM, Страхиња Радић написа: > > Of course, that would cause a memory leak if the memory was assigned to > > a variable, like this: > > > > char* tmp = malloc(13); > > > > otherwise, like this: > > > > m

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
Typically, a fork in the child is followed by an execve(2) call, which replaces the current process by a new one, whith only a few things inherited. -Otto > > On 2024-09-22T10:27:56.000+02:00, Otto Moerbeek > wrote: > > > On Sun, Sep 22, 2024 at 10:08:56AM +0

Re: Need some information about fork(2)

2024-09-22 Thread Otto Moerbeek
On Sun, Sep 22, 2024 at 10:08:56AM +0200, bi...@iscarioth.org wrote: > Hello OpenBSD team > > I'm having a little trouble understanding how this works. > > of fork(2), according to man. It's an exact copy of the parent > process. > > There are limitations that are explicit in the man. However,

Re: unbound(8) + host(1) + AAAA-only issue

2024-09-20 Thread Otto Moerbeek
On Fri, Sep 20, 2024 at 12:45:08PM +0200, Mike Fischer wrote: > > > Am 20.09.2024 um 12:13 schrieb Stuart Henderson : > > > >> From what you've shown I can only assume the auth servers are broken > > and probably refusing to respond for A (rather than an empty NOERROR > > response). > > I agree

Re: rw- directory mode : different ls behavior

2024-09-17 Thread Otto Moerbeek
On Tue, Sep 17, 2024 at 10:40:23AM +0100, Zé Loff wrote: > On Tue, Sep 17, 2024 at 10:56:27AM +0200, Denis Bodor wrote: > > On Tue, Sep 17, 2024 at 09:43:27AM +0200, tomas.ri...@tutanota.com wrote: > > > I would expect that without the 'x' bit, the directory is not searchable > > > and I won't be

Re: Automatic Disk Partitioning

2024-08-12 Thread Otto Moerbeek
On Wed, Aug 07, 2024 at 01:50:39AM +0200, David Uhden Collado wrote: > > The rationale is that the installer is not able to make a reasonable > > guess about > > how you plan to use the system.  It knows the minimum required filesystem > > sizes, and if you have a moderate amount of extra disk it

Re: tcpdump on openbsd

2024-07-05 Thread Otto Moerbeek
On Fri, Jul 05, 2024 at 02:39:48PM +, Mik J wrote: > Hello, > > I notice that tcpdump on openbsd differs from the linux version. > > Some options don't exist: > - G rotate_seconds > - W filecount > > Do you know why tcpdump on openbsd don't include these switch ? > > Would it be possible t

Re: /sys is a symlink to an empty directory

2024-07-04 Thread Otto Moerbeek
On Fri, Jul 05, 2024 at 04:15:32AM +, Anon Loli wrote: > On Thu, Jul 04, 2024 at 07:34:43PM +0200, Omar Polo wrote: > > On 2024/07/04 17:08:53 +, Anon Loli wrote: > > > Hello mailing list > > > Probably a stupid question, but I reinstalled OpenBSD like 10 times this > > > week, > > > and

Re: async-signal-safe *printf

2024-07-03 Thread Otto Moerbeek
On Wed, Jul 03, 2024 at 05:16:45PM +0900, Kensuke Matsuzaki wrote: > Hi, > > I'm reading libc source code. > > According to man signal(3), dprintf(), vdprintf() etc are > "async-signal-safe in OpenBSD except when used with floating-point > arguments or directives". > However __vfprintf seems to

Re: fsck similar to boot

2024-07-02 Thread Otto Moerbeek
On Tue, Jul 02, 2024 at 11:15:33AM +0100, 04-psyche.tot...@icloud.com wrote: > Hi all, > > I have removed my second drive away from /etc/fstab and I am now manually > mounting it as needed. > > I believe this means there is no automatic fsck check ran, and that feels > like a bad thing. > > I

Re: How are default config files populated?

2024-06-21 Thread Otto Moerbeek
On Fri, Jun 21, 2024 at 11:43:14PM +0100, Jo MacMahon wrote: > Hello, > > I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which > is in the base system, to its original version, and assumed I could get it > out of one of the file sets, most likely `base75.tgz`. However th

Re: cpu cores

2024-06-08 Thread Otto Moerbeek
On Sat, Jun 08, 2024 at 03:58:30PM +0200, Andreas Kähäri wrote: > On Sat, Jun 08, 2024 at 11:39:28AM +0100, Kirill A. Korinsky wrote: > > On Sat, 08 Jun 2024 11:09:29 +0100, > > Omar Polo wrote: > > > > > > On 2024/06/08 10:09:07 +0100, Kirill A. Korinsky wrote: > > > > On Sat, 08 Jun 2024 04:5

Re: [Solved] Edit: Installation amd64 7.5: How to access the distribution sets on the USB stick?

2024-06-08 Thread Otto Moerbeek
On Sat, Jun 08, 2024 at 03:33:15PM +0200, rfab...@mhsmail.ch wrote: > Dear Jan > > Thanks for your mail. > > Am 2024-06-08 08:28, schrieb Jan Stary: > > > When asked where the file sets are, > > you tell the installer where on the USB stick they are. > > The issue was the USB stick did not app

Re: Edit: Installation amd64 7.5: How to access the distribution sets on the USB stick?

2024-06-08 Thread Otto Moerbeek
On Fri, Jun 07, 2024 at 07:05:49PM -0400, Nick Holland wrote: > On 6/7/24 18:26, rfab...@mhsmail.ch wrote: > > Edit: I have just found in Michael W. Lucas' "OpenBSD Mastery: > > Filesystems" that "the rd recovery disk image is the OpenBSD install > > environment", not the USB stick. But my questio

Re: wifi

2024-05-24 Thread Otto Moerbeek
ort of that one. -Otto On Fri, May 24, 2024 at 08:54:40PM -0300, Gustavo Rios wrote: > Is there plan to add support ? > > Thanks a lot > > Em qui., 23 de mai. de 2024 às 04:10, Otto Moerbeek > escreveu: > > > On Thu, May 23, 2024 at 03:56:01AM -0300, Gustav

Re: wifi

2024-05-23 Thread Otto Moerbeek
On Thu, May 23, 2024 at 03:56:01AM -0300, Gustavo Rios wrote: > Here you have them: ... "Realtek 8821CE" rev 0x00 at pci2 dev 0 function 0 not configured That means there is no driver available in OpenBSD for that card. -Otto

Re: wifi

2024-05-22 Thread Otto Moerbeek
On Thu, May 23, 2024 at 01:44:57AM -0300, Gustavo Rios wrote: > Hi folks! > > I would like to setup my openbsd wifi but up to now, no success. > Here is my lspci output. May some one help me ? > > Thanks a lot. > > 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE > 802.11ac

Re: smtpd outgoing mail configuration

2024-05-16 Thread Otto Moerbeek
On Fri, May 17, 2024 at 08:12:27AM +0200, fr...@lilo.org wrote: > How to forward outgoing mail to a remote SMTP server with smtpd? > > I found this page, but it's out of date I think. > https://romanzolotarev.com/openbsd/smtpd-forward.html > > Tks > Pascal man smtpd.conf, first exmaple

Re: maximum file system size

2024-04-25 Thread Otto Moerbeek
On Thu, Apr 25, 2024 at 07:26:41AM +0200, Peter J. Philipp wrote: > On Thu, Apr 25, 2024 at 12:45:29AM -0300, Gustavo Rios wrote: > > Hi folks! > > > > What is the maximum file size in OpenBSD ? > > > > Thanks a lot. > > > > -- > > The lion and the tiger may be more powerful, but the wolves do

Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Otto Moerbeek
On Mon, Apr 22, 2024 at 10:09:51PM +0100, Steve Fairhead wrote: > Hi folks, > > (Apologies if this is a dupe. Looks to me like this didn't originally get > far.) > > Pretty sure this is pilot error, so please be gentle. > > I sysupgraded 3 machines (all different) to 7.5; no problems. I then >

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-12 Thread Otto Moerbeek
On Fri, Apr 12, 2024 at 12:21:43PM +0200, Dan wrote: > > Really, I fear this value is due to a wrong tweak.. Fear is a bad advisor. If you look at man 3 sysctl, you'll see what vfs.ffs.dirhash_mem means: FFS_DIRHASH_MEM (vfs.ffs.dirhash_mem) The amou

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:29:14PM +0200, Otto Moerbeek wrote: > On Thu, Apr 11, 2024 at 05:20:24PM +0200, Otto Moerbeek wrote: > > > On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > > > > > On 4/11/24 16:15, Claudio Jeker wrote: > > >

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:20:24PM +0200, Otto Moerbeek wrote: > On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > > > On 4/11/24 16:15, Claudio Jeker wrote: > > > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > > > On

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 05:08:01PM +0200, Federico Giannici wrote: > On 4/11/24 16:15, Claudio Jeker wrote: > > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > > On 4/11/24 14:12, Nick Holland wrote: > > > > On 4/11/24 05:47, Federico Giannici wrote: > > > > > We have a serv

Re: Upgraded to 7.5: vfs.ffs.dirhash_dirsize no longer exists and large directory ere veeery slow

2024-04-11 Thread Otto Moerbeek
On Thu, Apr 11, 2024 at 04:15:19PM +0200, Claudio Jeker wrote: > On Thu, Apr 11, 2024 at 03:36:29PM +0200, Federico Giannici wrote: > > On 4/11/24 14:12, Nick Holland wrote: > > > On 4/11/24 05:47, Federico Giannici wrote: > > > > We have a server with A LOT of files in some directories (an email

Re: newfs fast, but newfs_msdos and newfs_ext2fs very slow

2024-04-10 Thread Otto Moerbeek
On Wed, Apr 10, 2024 at 08:31:26AM -, Stuart Henderson wrote: > On 2024-04-09, Stanislav Syekirin > wrote: > > Hi, > > > > I'm trying to figure out the best way to format a USB stick as FAT32. > > This is what I've tried: > > > > $ time doas newfs_msdos /dev/rsd1c > > /dev/rsd1c: 60007944 s

Re: Ping blocked by firewall

2024-04-09 Thread Otto Moerbeek
On Tue, Apr 09, 2024 at 10:52:45AM +0200, Karel Lucas wrote: > I defined the table as stated in your book (3rd edition, page 42). However, > that gives an error message. In the lines with that table: macro 'martians' > not defined. Moreover, I now also have a Syntax error in lines 38, 39 and > 46,

Re: need help to access my machine after upgrade -- system immediately logs me out

2024-04-02 Thread Otto Moerbeek
On Wed, Apr 03, 2024 at 12:45:33AM +0530, Sandeep Gupta wrote: > Thank you for all the inputs. This is so useful. I am able to at least > access the file system and rescue the data. > However, I'm not able to restore the system yet. The command "pkg_add -u" > runs into "out of memory error". > ul

Re: unbound signature expired

2024-03-21 Thread Otto Moerbeek
On Mon, Mar 18, 2024 at 08:04:38PM +0100, Evan Sherwood wrote: > > Wild guess, your time is off. > > Huh, I think you're right. `date` shows me 7 hours ahead of my timezone. > > I restarted ntpd and I see no errors in /var/log/daemon, but the time is > still off. I should be 1200 PDT but it's s

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 12:14:14PM -, beecdadd...@danwin1210.de wrote: > On Sun, March 3, 2024 12:07 pm, Otto Moerbeek wrote: > > On Sun, Mar 03, 2024 at 12:01:12PM -, beecdadd...@danwin1210.de > > wrote: > > > > > >> oh okay reserved for root? I ran

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
g newfs from the start). -Otto > > On Sun, March 3, 2024 11:57 am, Otto Moerbeek wrote: > > On Sun, Mar 03, 2024 at 11:48:01AM -, beecdadd...@danwin1210.de > > wrote: > > > > > >> > >> disklabel -h sd3 shows this > >> > >> # /dev/

Re: disklabel and df -h don't show same size

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 11:48:01AM -, beecdadd...@danwin1210.de wrote: > > disklabel -h sd3 shows this > > # /dev/rsd3c: > type: SCSI > disk: SCSI disk > label: SR CRYPTO > duid: some-number > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > c

Re: mount not working as expected? and what are my default bioctl rounds?

2024-03-03 Thread Otto Moerbeek
On Sun, Mar 03, 2024 at 10:47:31AM -, beecdadd...@danwin1210.de wrote: > hi list > I want to know how many rounds my computer defaults to for bioctl -r, so I > can change it and know how stronger it is can you help me? > > after reading mount manual about DUID I realized that it is not workin

Re: Not getting any reply, are bug report fixed?

2024-02-18 Thread Otto Moerbeek
On Sun, Feb 18, 2024 at 05:13:23PM +0700, Discord is hell wrote: > The title says all, although it is somewhat offensive. I'm not > going to disregard OpenBSD developers' efforts. > > I saw many bug report sent to b...@openbsd.org but get > no reply. I saw some bug are silently fixed (not sure fi

Re: KeyTrap DNS vulnerability

2024-02-13 Thread Otto Moerbeek
On Wed, Feb 14, 2024 at 04:55:20AM +0100, b...@fea.st wrote: > “A single packet can exhaust the processing > capacity of a vulnerable DNS server, effectively > disabling the machine, by exploiting a > 20-plus-year-old design flaw in the DNSSEC > specification. > > https://www.theregister.com/20

Re: ksh horizontal line scrolling

2024-02-08 Thread Otto Moerbeek
On Fri, Feb 09, 2024 at 01:17:06PM +1300, Jeremy Baxter wrote: > Hi all, I'm trying to disable the horizontal line scrolling feature in ksh, > enabled through `set -o vi' or `set -o emacs'. ksh(1) says this about it: > > In these editing modes, if a line is longer than the screen width (see >

Re: socket core

2024-01-15 Thread Otto Moerbeek
On Tue, Jan 16, 2024 at 08:16:38AM +0100, Janne Johansson wrote: > Den tis 16 jan. 2024 kl 01:16 skrev Gustavo Rios : > > Hi folks. > > I have a simple question : How many cores does OBSD support ? > > amd64 says > > #define MAXCPUS 64 /* bitmask */ > > but different arches have different limi

Re: time keeping fallback mechanics during reboot on octeon

2024-01-14 Thread Otto Moerbeek
On Sun, Jan 14, 2024 at 09:32:10AM +0100, Alexander Hall wrote: > I don't have mine (EdgeRouter lite) running anymore, but IIRC, I had a cron > job poking the root fs to"resolve" this. > > Sth like "mkdir /bump && rmdir /bump && sync". I have no idea how this would solve the "boot sets last mod

Re: time keeping fallback mechanics during reboot on octeon

2024-01-13 Thread Otto Moerbeek
On Sat, Jan 13, 2024 at 11:47:44AM +0100, Christian Gut wrote: > > > > On 13. Jan 2024, at 10:03, Christian Gut wrote: > > > > > > > >> On 13. Jan 2024, at 00:58, Theo de Raadt wrote: > >> > >> I suspect this is due to how powerpc64 and octeon boot. Their bootblocks > >> are > >> a speci

Re: time keeping fallback mechanics during reboot on octeon

2024-01-13 Thread Otto Moerbeek
On Sat, Jan 13, 2024 at 10:03:20AM +0100, Christian Gut wrote: > > > > On 13. Jan 2024, at 00:58, Theo de Raadt wrote: > > > > I suspect this is due to how powerpc64 and octeon boot. Their bootblocks > > are > > a special kernel called BOOT which mounts the ffs filesystem diretly. I > > su

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 07:15:43PM +0100, Christian Weisgerber wrote: > Otto Moerbeek: > > > http://man.openbsd.org/octrtc seems to suggest EdgeRouter does not have > > an RTC. A dmesg should give more certainty. > > I think the original poster is aware of this. >

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 04:47:06PM +0100, Christian Gut wrote: > Hi Otto, > > > > On 12. Jan 2024, at 15:52, Otto Moerbeek wrote: > > > > On Fri, Jan 12, 2024 at 02:35:47PM +0100, Christian Gut wrote: > > > >> Hi, > >> > >> Could

Re: time keeping fallback mechanics during reboot on octeon

2024-01-12 Thread Otto Moerbeek
On Fri, Jan 12, 2024 at 02:35:47PM +0100, Christian Gut wrote: > Hi, > > Could somebody point me to documentation or tell me where OpenBSD gets the > time from, when the system has no RTC and ntpd is not working? > > I am using an EdgeRouter / octeon and at every reboot, the date/time gets > r

Re: Partition completely wiped out, why?

2024-01-09 Thread Otto Moerbeek
On Wed, Jan 10, 2024 at 12:21:12AM +0100, Jonas Bechtel wrote: > > > Dear "misc" list attendees, > > maybe someone of you has an idea what happened. > > Ten years ago I installed OpenBSD 5.[?] which included setting up a > small partition of 2 GB, including the full OS with kernel, programs, >

Re: mountd

2024-01-09 Thread Otto Moerbeek
On Tue, Jan 09, 2024 at 10:13:56AM +0300, 4 wrote: > >> i'm quoting the man page for mountd: > >> The -n flag historically allowed clients to use non-reserved ports > >> when > >> communicating with mountd. In OpenBSD, a reserved port is always > >> used. > >> "reserved port". "always

Re: mountd

2024-01-08 Thread Otto Moerbeek
On Tue, Jan 09, 2024 at 04:16:43AM +0300, 4 wrote: > i'm quoting the man page for mountd: > The -n flag historically allowed clients to use non-reserved ports when > communicating with mountd. In OpenBSD, a reserved port is always used. > "reserved port". "always".. however the port is

Re: ignore dns dhcpleased

2024-01-03 Thread Otto Moerbeek
On Wed, Jan 03, 2024 at 12:15:04PM +0100, Peter Wens wrote: > Hi, > > I noticed that ignoring nameservers from leases only works > on IPv4 addresses. > > in /etc/dhcpleased.conf > > interface vio0 { > ignore dns > } > > resolvd still adds a IPv6 nameserver > > nameserver 2001:19f0:300:1

Re: as cannot do endbr64 instructions (too old)

2024-01-03 Thread Otto Moerbeek
On Wed, Jan 03, 2024 at 08:50:43AM +0100, Lorenz (xha) wrote: > On Tue, Jan 02, 2024 at 08:32:00PM -, Stuart Henderson wrote: > > I can't say. Though I doubt there would much objection if it's clean and > > not a copy of a GPLv3-licensed upstream commit. > > what about this? > > i am not sur

Re: as cannot do endbr64 instructions (too old)

2024-01-02 Thread Otto Moerbeek
On Tue, Jan 02, 2024 at 08:56:55PM +1100, Alexis wrote: > > "Lorenz (xha)" writes: > > > On Mon, Jan 01, 2024 at 08:47:07PM +1100, Alexis wrote: > > > > > > "Lorenz (xha)" writes: > > > > > > > just out of couriosity, why is "as" in the base system if it > is > > > > outdated and is updating

Re: as cannot do endbr64 instructions (too old)

2024-01-01 Thread Otto Moerbeek
On Mon, Jan 01, 2024 at 10:00:34AM +0100, Lorenz (xha) wrote: > On Sun, Dec 31, 2023 at 03:39:14PM +0100, Otto Moerbeek wrote: > > On Sun, Dec 31, 2023 at 04:51:14AM +0100, Lorenz (xha) wrote: > > > > > hi misc@, > > > > > > like the subject says,

Re: as cannot do endbr64 instructions (too old)

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 09:55:25AM -0700, Theo de Raadt wrote: > That's curious. > > We never invoke as directly these days. > > It feels like an upstream llvm bug, and I say that because noone else has > embraced BTI/IBT as much as we have, everyone else is still considering it > a thing for sp

Re: Recovery binary from lost+found

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 03:01:10PM +0100, Kirill A. Korinsky wrote: > > > On 31. Dec 2023, at 11:02, Otto Moerbeek wrote: > > > > Amongst other things, fsck_ffs(8) looks for inodes not mentioned in > > any directory, i.e. files that are orphans. fsck_ffs links th

Re: as cannot do endbr64 instructions (too old)

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 04:51:14AM +0100, Lorenz (xha) wrote: > hi misc@, > > like the subject says, `as` in the base system cannot do endbr64 > instructions. should it be updated? > > background: i am maintaining hare for openbsd and we always have > to install "gas" from the "binutils" package

Re: Recovery binary from lost+found

2023-12-31 Thread Otto Moerbeek
On Sun, Dec 31, 2023 at 01:59:28AM +0100, Kirill A. Korinsky wrote: > Greetings, > > How can I recovery binary files from lost+found? > > I have: > island$ doas ls -l /usr/lost+found > total 7904 > -r--r--r-- 1 root bin 3680832 Dec 31 00:30 #1866245 > -r--r--r-- 1 root bin 317600 Dec 31 0

Re: self-hosted man.openbsd.org script?

2023-12-24 Thread Otto Moerbeek
On Sun, Dec 24, 2023 at 05:25:55AM -0800, Paul Pace wrote: > I have this vague memory of reading someone who posted a script, IIRC, to > convert the system's man pages to HTML, or similar, into somewhere under > /var/www and the pages worked just like the highly useful man.openbsd.org, > and not l

Re: ntpd not adjusting clock in vm

2023-12-17 Thread Otto Moerbeek
On Mon, Dec 18, 2023 at 02:02:47AM +, Chris Narkiewicz wrote: > I'm running OpenBSD 7.4 in qemu VM on my laptop. After hibernation, > vm clock is delayed. > > ntpd works in background, but it fails to adjust the clock: > > reply from 162.159.200.1: offset 0.005599 delay 0.013842, next query

Re: ls in color

2023-12-08 Thread Otto Moerbeek
On Fri, Dec 08, 2023 at 07:45:06PM +0100, Karel Lucas wrote: > > > Op 08-12-2023 om 19:42 schreef Theo de Raadt: > > Karel Lucas wrote: > > > > > In openBSD V7.4 I would like to see the output of ls in color, and > > > therefore would like to know how to configure that. The output of "man > >

Re: Is Pip Available On OpenBSD?

2023-12-02 Thread Otto Moerbeek
On Sun, Dec 03, 2023 at 01:38:07AM -0600, Jay F. Shachter wrote: > > Esteemed Colleagues: > > I am trying to build some software which claims that it needs glad2. > Glad2 does not seem to exist as an OpenBSD package but it claims that > it can be installed with pip. There does not seem to be a

Re: openbsd.org DNS problems

2023-11-16 Thread Otto Moerbeek
On Fri, Nov 17, 2023 at 07:14:58AM +, tux2bsd wrote: > I understand you're choosing to be ornery about > the SOA record. Seems to matter more to you lot > than to me, given the defense being run around it. You claim the SOA serial being a timestamp would have helped in diagnosis. It would n

Re: openbsd.org DNS problems

2023-11-16 Thread Otto Moerbeek
On Fri, Nov 17, 2023 at 06:29:02AM +, tux2bsd wrote: > > > Stuart Henderson wrote: > > well, if you're nitpicking things which don't matter > > I would have rather not have needed to look at all. > > Useful: when was a change made, who to contact. > (strangely enough, easy to provide via SOA

Re: openbsd.org DNS problems

2023-11-15 Thread Otto Moerbeek
On Wed, Nov 15, 2023 at 11:49:05AM +, Craig Skinner wrote: > Hello, > > OpenBSD's root A record was deliberately removed about 5-10 years ago. > > The website is http://www.openbsd.org, not http://openbsd.org > > I can't find the thread of complaints from the time it changed. > > Cheers, >

Re: openbsd.org DNS problems

2023-11-15 Thread Otto Moerbeek
On Wed, Nov 15, 2023 at 08:43:06AM +, tux2bsd wrote: > > It'd be good to sort this, a bit of a meta remote hole... > > This = bad. Only people with necessary access can fix. > > $ host -t a openbsd.org 199.185.230.19 > Using domain server: > Name: 199.185.230.19 > Address: 199.185.230.19#5

Re: CVS checkout

2023-10-25 Thread Otto Moerbeek
o the source tree for someone just > starting out? diffs for the base tree are handled on the t...@openbsd.org mailing list. http://www.openbsd.org/mail.html -Otto > -- > Google doesn't need to > know every time I fart. > > > On Oct 25, 2023, at 12:44, Otto Moerbe

Re: CVS checkout

2023-10-24 Thread Otto Moerbeek
On Wed, Oct 25, 2023 at 11:13:44AM +0600, Maria Morisot wrote: > I've been trying now for a month to download source via CVS as per > instructions on openbsd.org; I get operation timed out every time. I get no > ping from anoncvs.ca.openbsd.org > > I want to help work on the project in any way

malloc leak detection

2023-10-19 Thread Otto Moerbeek
Hello, I made a small tutorial with some usage notes for the new malloc leak detection which is available in OpenBSD 7.4: https://www.drijf.net/malloc/ While I have you attention, I'd like to mention that I can use a reasonably modern laptop as well, more detais in the last entry of

Re: OpenBSD 7.3 latest snaphots

2023-10-10 Thread Otto Moerbeek
On Tue, Oct 10, 2023 at 07:00:36AM +, jonathon575 wrote: > Hello everyone, > > How to get the latest openbsd 7.3 snapshot?! On the website, the snapshots > are showing for 7.4 beta version. > > Also would the security patches and bugs be integrated in the openbsd 7.3 > latest snapshots. >

Re: pkg_add -vV slow progression

2023-09-18 Thread Otto Moerbeek
On Sun, Sep 17, 2023 at 09:17:58PM +0300, Mihai Popescu wrote: > Hello, > > Is there any recent major change in base packages or pkg_add? > I ask because the pkg_add -vV is slower than usual at each package, > most of the time spent in Extracting ... phase. > I use amd64 recent snapshot. I checke

Re: X host-based access control token

2023-09-10 Thread Otto Moerbeek
On Sun, Sep 10, 2023 at 06:51:58PM +0200, Daniele B. wrote: > Hello, > > Trying to securing my X server beyond my pf conf, and sorry if I do > again the compliments to the quality of the X engineering (well beyond > OpenBSD devs effort, at X origins). > > 'man X' says: > > ACCESS CONTROL >

Re: unbound and root.hints

2023-09-09 Thread Otto Moerbeek
On Sat, Sep 09, 2023 at 04:45:51PM +0200, Alessandro Baggi wrote: > Hi list, > when using unbound on OpenBSD 6.5 in the default configuration unbound comes > with root.hints file. > > Upgrading to OpenBSD 7.3 I noticed that root.hints is not more supplied but > unbound manual page says: > > "roo

Re: Both serial and pc consoles on Super Micro A1SRi-2758F machine

2023-08-28 Thread Otto Moerbeek
On Mon, Aug 28, 2023 at 10:33:23AM -0400, Christopher Sean Hilton wrote: > On Mon, Aug 28, 2023 at 07:41:19AM +0200, Otto Moerbeek wrote: > > On Sun, Aug 27, 2023 at 08:40:44PM -0400, Christopher Sean Hilton wrote: > > > > [ ...snip... ] > > > > I can solve my

Re: Both serial and pc consoles on Super Micro A1SRi-2758F machine

2023-08-27 Thread Otto Moerbeek
On Sun, Aug 27, 2023 at 08:40:44PM -0400, Christopher Sean Hilton wrote: > I run my firewall on a SuperMicro A1SRi-2758F. On this hardware, I've > noticed that I seem to have the choice of either a PC console or a > serial console. If I ask for a serial console *on this hardware* I get > a console

Re: PF rate limiting options valid for UDP?

2023-07-20 Thread Otto Moerbeek
On Thu, Jul 20, 2023 at 05:52:07PM +, mabi wrote: > --- Original Message --- > On Wednesday, July 19th, 2023 at 10:58 PM, Stuart Henderson > wrote: > > > For rules that pass traffic to your authoritative DNS servers, > > I don't think you need much longer than the time taken to answ

Re: dhcpleased[59824]: sendto: Permission denied

2023-07-04 Thread Otto Moerbeek
On Mon, Jul 03, 2023 at 10:34:24AM -0600, Zack Newman wrote: > On 7/3/23 11:25, Mark wrote: > > I'm getting (I think once per day) "dhcpleased[59824]: sendto: Permission > > denied" error message in my daemon and messages log files. > > > > I think that's happening due to my PF configuration. >

recent malloc changes

2023-06-04 Thread Otto Moerbeek
Hi, no idea how many people run snapshots or current here, but if you do, please note https://marc.info/?l=openbsd-tech&m=168587666517667&w=2 -Otto

Re: NFS mounted but shows nothing even df -h has it

2023-05-31 Thread Otto Moerbeek
ab lines (except for the root fs, which whould be 1), unless you have a very good reason to use 0. -Otto > > On Wed, May 31, 2023 at 10:41 PM Otto Moerbeek wrote: > > > > On Wed, May 31, 2023 at 10:25:06PM +0800, Jazzi Hong wrote: > > > > > Thanks for

Re: NFS mounted but shows nothing even df -h has it

2023-05-31 Thread Otto Moerbeek
fstab, sd0i is marked ar "do not run fsck on it" (last zero in its fstab line). That is bad. Try running fsck on sd0i. It might be that the filesystem is damaged so mount does not like it, but fsck still has a chance to repair it. -Otto > > On Wed, May 31, 2023 at 7:56 PM

Re: NFS mounted but shows nothing even df -h has it

2023-05-31 Thread Otto Moerbeek
On Wed, May 31, 2023 at 11:21:15AM +0100, Zé Loff wrote: > On Wed, May 31, 2023 at 05:25:07PM +0800, Jazzi Hong wrote: > > You made the point, thank you Maksim. > > I checked /mnt/hdd and nothing there. > > > # cat /etc/fstab > > 1593ab2ee369c420.b none swap sw > > 1593ab2ee369c420.a / ffs rw 1 1

Re: NFS mounted but shows nothing even df -h has it

2023-05-31 Thread Otto Moerbeek
On Wed, May 31, 2023 at 05:25:07PM +0800, Jazzi Hong wrote: > You made the point, thank you Maksim. > > I checked /mnt/hdd and nothing there. > > > # cat /etc/fstab > 1593ab2ee369c420.b none swap sw > 1593ab2ee369c420.a / ffs rw 1 1 > 1593ab2ee369c420.e /var ffs rw,nodev,nosuid 1 2 > 2b6c2b5b929

Re: Pkg_add Python version and LibreSSL seem to be incompatible in OpenBSD 7.3

2023-05-14 Thread Otto Moerbeek
On Sun, May 14, 2023 at 12:25:28PM -0400, Judah Kocher wrote: > After updating one of my routers to OpenBSD 7.3, my python scripts that > update various public DNS records when my public IP changes started failing > with generic segfaults. I did see the note in the OpenBSD Upgrade Guide > about 3.

Re: OpenBSD Hackathons

2023-05-12 Thread Otto Moerbeek
On Sat, May 13, 2023 at 09:18:45AM +1000, David wrote: > On Fri, 2023-05-12 at 22:07 +0200, Anders Andersson wrote: > > On Fri, May 12, 2023 at 9:39 PM Katherine Mcmillan > > wrote: > > > > > > Hi Stuart, > > > > > > Thank you for your response.  The upcoming OpenBSD Hackathons > > > aren't pub

Re: dhcpleased losing route

2023-05-10 Thread Otto Moerbeek
al. > > > > You could try running dhcpleased manually like this to see details about > > what is going on: > > # dhcpleased -vv -d > > > > (But you???d need to stop the processes started by rc(8) first. E.g.: `# > > rcctl stop dhcpleased`. Don???t forge

Re: dhcpleased losing route

2023-05-09 Thread Otto Moerbeek
On Wed, May 10, 2023 at 01:17:05PM +1000, David Diggles wrote: > > Just to update, I've added the following to dhclient.conf but > it's still renewing every 5 minutes (approximately) and the > default route is disappearing for a couple of seconds. :( > > send dhcp-lease-time 86400; dhcpleased d

malloc leak detection available in -current

2023-04-17 Thread Otto Moerbeek
If you're developing C or C++ code on OpenBSD, this might be of interest: https://marc.info/?l=openbsd-tech&m=168171382927798&w=2 -Otto

Re: Weird clang behavior

2023-03-02 Thread Otto Moerbeek
On Thu, Mar 02, 2023 at 12:00:18PM +, Ali Farzanrad wrote: > Hi, > > Is it normal to have such behavior? > > $ cat loop.c > int > main(void) > { > for (;;) > ; > } > $ clang -O1 -Wall -Wextra -S -o loop.c.s loop.c > $ clang++ -O1 -Wall -Wextra -S -o loop.cxx.s loop.c > cl

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Otto Moerbeek
On Tue, Feb 14, 2023 at 11:04:57PM +0100, Lars Bonnesen wrote: > What can be done to optimize obsd 7.2 running on top of ESXi 7 with > > 7 vmx "phys" ifs > 3 em "phys" ifs > 22 virtual ifs > > Very simply pf ruleset - the box is only running VPN solution between two > sites up against a similar

Re: Taring a "posix problemozauro"..

2023-02-10 Thread Otto Moerbeek
On Fri, Feb 10, 2023 at 11:24:55AM +0100, Peter N. M. Hansteen wrote: > On Fri, Feb 10, 2023 at 11:12:44AM +0100, Daniele Bonini wrote: > > > > But when it is matter to deliver things from OpenBSD eg. to other > > live destination taring the same stuff I get the following error: > > > > tar: Fil

Re: permission denied when writing to mounted directory exported by NFS server

2023-02-10 Thread Otto Moerbeek
On Fri, Feb 10, 2023 at 09:10:55AM +0100, carsten.re...@t-online.de wrote: > On Fri, Feb 10, 2023 at 12:58:21PM +0530, Sandeep Gupta wrote: > > On test setup I got this fixed. I will try to see if it works on actual > > system. > > > > I made following changes: > > - modified /etc/exports entry >

Re: permission denied when writing to mounted directory exported by NFS server

2023-02-08 Thread Otto Moerbeek
On Thu, Feb 09, 2023 at 11:41:12AM +0530, Sandeep Gupta wrote: > Following up on this. I looked into the /var/log/messages/ and > /var/log/daemon. Both are quite after starting the portmap, mountd, and > nfsd services. > > Here is verbose output from the client side when mounting the share: > ```

Re: hw.ncpuonline

2023-01-31 Thread Otto Moerbeek
On Wed, Feb 01, 2023 at 07:35:16AM +0100, Janne Johansson wrote: > Den ons 1 feb. 2023 kl 03:08 skrev Justin Muir : > > I've got an AMD A10 with 4 cores and only 2 are online. I'm not sure how to > > enable the other 2. > > > > hw.ncpufound=4 btw > > Any ideas out there? > > OpenBSD disables hype

Re: Unbound fails to resolve some domains

2023-01-26 Thread Otto Moerbeek
On Fri, Jan 27, 2023 at 01:26:10AM +, Rodrigo Readi wrote: > It still happens. But when I kill unbound and start it again, then > resolves domains that previously did not resolve. > > BTW, I am using Wifi with weak signal. Perhaps this plays a role? > > Rod. > > > 2023-01-11 20:06 GMT, Rod

Re: chmod change means dump(8) the file

2023-01-25 Thread Otto Moerbeek
On Thu, Jan 26, 2023 at 12:18:45AM +0100, Jan Stary wrote: > I have a large /media disk that I backup nightly using dump(8): > full level 0 on the Sun/Mon night, incrementals through the week. > The level 0 dump is huge, the incrementals are usualy trivial > unless I add something to /media. > >

Re: Is CRONTAB(5) random really random ?

2023-01-05 Thread Otto Moerbeek
On Fri, Jan 06, 2023 at 12:58:48AM +0100, Rachel Roch wrote: > > > > 5 Jan 2023, 18:24 by purushar...@gmx.com: > > > Namaste Rachel, Theo(s), > > > >> Sent: Thursday, January 05, 2023 at 5:50 PM > >> From: "Theo de Raadt" > >> To: "Theo Buehler" > >> Cc: "Rachel Roch" , "Misc" > >> Subject:

Re: fsck UNREF FILE

2023-01-02 Thread Otto Moerbeek
On Mon, Jan 02, 2023 at 05:53:25PM -0800, Randall wrote: > After my OpenBSD 7.2 box lost power, bootup halted when rc ran fsck which > reported problems with inodes. At the root prompt, I ran fsck and answered > 'y' to each prompt. Now, in normal mode, running fsck reports a few > unreferenced fil

Re: pf tcpdump rule def ?

2022-12-26 Thread Otto Moerbeek
On Tue, Dec 27, 2022 at 04:23:13AM +, Shadrock Uhuru wrote: > hi everyone > viewing my pf logs with > tcpdump -nettt -i pflog0 there are lines with no rule numbers > just rule def on the line instead, > i've tried googling without success, > need to know if they are wolf,sheep or misconfigurat

Re: How to set up a data disk of 4TB?

2022-12-09 Thread Otto Moerbeek
On Fri, Dec 09, 2022 at 04:19:49PM +, James Johnson wrote: > Hi all, > > I have installed an internal hard drive of 4TB. This drive will be used for > storing data only. It will not contain the OpenBSD system itself. > > Knowing the limitations of MBR, I have opted for a GPT partitioning sy

Re: Opensearch can't start if memory is ore than 4g

2022-11-22 Thread Otto Moerbeek
On Tue, Nov 22, 2022 at 09:31:19PM +, Mik J wrote: > i'm not sure I understand because I did write:datasize=8192M:\ > However > ...-Xms3g > -Xmx3g > Works > /etc/opensearch/jvm.options...-Xms4g > -Xmx4g > Doesn't work (mistake in my first message I mean't it doesn't work) > In login.conf I h

Re: ntp(d) on Boot Behavior

2022-11-06 Thread Otto Moerbeek
On Sun, Nov 06, 2022 at 05:06:57PM +, indivC wrote: > The ntpd man page says the following: > 'ntpd will stay for a maximum of 15 seconds in the foreground > and make efforts to verify and correct the time > if constraints are configured and satisfied or > if trusted servers or sensors return

Re: Slight Confusion with ntpd(8)

2022-11-06 Thread Otto Moerbeek
On Sun, Nov 06, 2022 at 07:00:19AM +, Jason McIntyre wrote: > On Sun, Nov 06, 2022 at 07:48:39AM +0100, Otto Moerbeek wrote: > > On Sun, Nov 06, 2022 at 05:12:12AM +, indivC wrote: > > > > > I'm a little confused with the man page for ntpd. > >

Re: Slight Confusion with ntpd(8)

2022-11-05 Thread Otto Moerbeek
On Sun, Nov 06, 2022 at 05:12:12AM +, indivC wrote: > I'm a little confused with the man page for ntpd. > > For the '-n' flag, it says: > 'Configtest mode. Only check the configuration file for validity.'. > I have no problem with this and understand it. > > However, the section below that

  1   2   3   4   5   6   7   8   9   10   >