03:40:54 pkubaj: https://bsd.network/@lattera/111316217550807247 <- this might be of interest to you 03:40:58 Title: Shawn Webb: "Made a lot of progress on supporting Cross-DSO CF…" - BSD Network 03:42:19 I'm hoping to enable Cross-DSO CFI in HardenedBSD 15-CURRENT in January 2024. this will cause us to also enable LTO in ports. ample opportunity for you to punish us guinea pigs with experimental patches ;-) 03:42:28 (I mean "punish" in a good way here) 03:43:29 pkubaj: I'll also report issues we come across, and potential fixes/workarounds, if you'd like 05:49:00 Is anyone running 14.0-RC3? 06:01:12 this is not going to max depth 5. Can mistake I am making? du -h -depth=5 /path/home-backups/ | sort -rh 06:01:13 Not I 06:01:40 Not I? 06:02:03 Beladona, That was to BraveheartBSD query of "Is anyone running 14.0-RC3?" 06:04:12 ok 06:06:33 Beladona: did you try simply '-d 5' ? 06:06:39 Beladona, Option name spelling is "-d" not "-depth"; from "du(1)" manual page: "-d _depth_ Display an entry for all files and directories _depth_ directories deep." As in: du -h -d 5 06:24:29 there any cli spellchecker? so i can like spchk myfile.txt and have it spit out possible misspellings 06:26:21 "aspell" may do that (use it only via "vim") 06:38:11 oh aspell might work. know how i can make it output misspelled words? -c puts me into interactive checker mode 06:40:39 ah -a 06:40:43 ty!!! 06:46:11 If I get no return from dmesg | grep pcm after loading snd_driver am I screwed? 07:07:31 bradd: ok trying -d 07:07:39 bradd: ok trying -d=5 07:07:59 no equal sign 07:08:09 ok 07:16:42 hi, i just setup a host-to-host vpn with strongswan, it said IKE_SA conn is established, but now how do i reach services internal to the remote host? 07:18:35 there doesn't seem to be any tunnel interfaces on either site 07:19:36 oh, i do see failed to establish CHILD_SA, keeping IKE_SA 07:23:55 traffic selectors unacceptable 07:34:38 dang I got disconnected, did anyone answer my question 07:36:59 no 08:56:31 do i need to enable gateway if i just want to do a port redirect? 09:00:00 i'm trying to port mirror a remote host's port locally 09:00:20 rdr pass on ena0 proto tcp from any to any port 2222 -> 192.168.1.23 port 22 09:00:32 what's the best tcp proxy? 09:00:45 i put it in /etc/pf.conf, and did pfctl -f /etc/pf.conf, is that all i need? 09:00:59 pf, i would think.. 09:01:25 polyex: haproxy seems to be the standard bearer in enterprise software 09:01:41 ty! 09:01:59 :) 09:02:15 are you echelon on hn? 09:02:30 no 09:03:05 remember when echelon was a conspiracy theory? now it's just like, accepted by everyone that the US federal gov illegally spies 09:07:51 yeah, like when it was revealed that at&t had pipes that directly funneled traffic to the nsa 09:08:14 ya, room what again? don't remember the number 09:08:16 was a big scandal during bush admin 09:08:44 641A 09:09:48 they probably do far worse things now 09:10:42 now they arrest you for whistleblowing 09:10:52 ya 10:44:29 lattera: interesting, thanks for letting me know 10:44:52 i would be happy to keep updated if possible 10:45:00 do you use LLVM_BINUTILS? 13:41:49 pkubaj: for base? yeah, we use a full(er?) llvm toolchain, including using WITH_LLVM_BINUTILS 13:57:11 Running a R59 Radeon (and a integrated intel gpu), amdgpu from drm-kmod gets loaded but startx returns no screens found 13:57:54 neofetch only reports the integrated intel gpu 13:59:01 polaris12_sdma1.bin gets loaded 14:11:16 loading i915kms with amdgpu crashes the system btw 14:19:54 i have a question on fifos... when i open a fifo with O_NONBLOCK, i can remove the O_NONBLOCK with fcntl, and then a plain read will block until something opens the pipe for writing and writes something 14:20:05 but this seems to violate https://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html 14:20:06 Title: read 16:56:07 ascreen, What about it seems to be the violation? Do you have a small test program you could post that shows this? 16:56:17 "If some process has the pipe open for writing and O_NONBLOCK is clear, read() shall block the calling thread until some data is written or the pipe is closed by all processes that had the pipe open for writing." 17:03:38 pkubaj: https://sourceforge.net/p/elftoolchain is also used 17:03:39 Title: ELF Tool Chain download | SourceForge.net 17:03:58 it's a collection of software that started in the base system, then got spun off into its own project; not unlike libarchive 17:06:43 rwp: isnt a fifo with no writer and one reader an empty fifo? 17:08:01 rwp: mkfifo myfifo, then run http://ix.io/4KgF 17:08:19 curiously on darwin it gets eof on both reads 17:32:47 ascreen, Thank you for the small test program. You have convinced me. I agree. It's not operating as per the standard. 17:33:52 The FreeBSD and Linux kernels are disagreeing on this behavior too. 17:33:53 i think it's due to https://github.com/freebsd/freebsd-src/blob/main/sys/fs/fifofs/fifo_vnops.c#L167 but I don't know the code well 17:33:54 Title: freebsd-src/sys/fs/fifofs/fifo_vnops.c at main · freebsd/freebsd-src · GitHub 17:34:07 but arguably the freebsd behavior is nicer in practice... 17:38:15 also on Linux/MacOS there's an inconsistency with select: A descriptor shall be considered ready for reading when a call to an input function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. 17:38:41 but select waits for actual data (or a reader opening), while read immediately returns 0 17:41:14 ascreen, Hmm... The standard says "If some process has the pipe open for writing and..." That's the critical part. 17:41:33 no, i mean the first clause 17:41:34 Running that very nice small test program just by itself does not have any process with the pipe open for writing. 17:41:57 The first clause... Looking... "If no process has the pipe open for writing, read() shall return 0 to indicate end-of-file." 17:42:04 that is the case here imo 17:42:17 the fifo is empty and has no writer 17:42:52 Right. Sorry. I was focusing on the wrong part. Okay. I am in sync now. If no process has the fifo open for writing. 17:43:22 Then the read non-blocking should return 0 (as it does on Linux) but on FreeBSD it blocks. Gotcha. 17:43:42 same on openbsd fwiw, dont have anything else around to check 17:44:46 but tbh it requires an unusual dance to trigger, if you open blocking it wont happen of course 17:45:44 Subtle differences between systems like this cause problems while porting software so it is better if they don't exist. 17:47:26 just another autoconf check /s 17:48:40 IMNHO if code tickles these types of issues then probably it indicates that the code is doing something off the normal path and would benefit from getting back on the path. 17:53:24 Some years ago I was porting expect to HP-UX which is based upon the BSD4.2 kernel rather than the more modern BSD4.3 kernel. There is a similar subtle difference in select() handling of non-blocking I/O there too. 17:53:28 On modern kernels select() returns an indication if data is present to be read. On HP-UX based upon 4.2 it returns an indication of if it would block. Which are different things in the case of non-blocking I/O. 17:54:14 On HP-UX select() with non-blocking I/O it always indicated that it would not block. But everywhere else it would indicate if there was data to be read. 17:55:27 I think this is a FreeBSD non-conformance issue and at the least deserves a PR for it. And it is subtle. Not very often to be hit. Which is good. But when it is hit that's not good. 17:56:28 * rwp is relocating bbiab 17:59:46 i think select should not depend on state of O_NONBLOCK 18:06:23 posix says "ready for reading when a call to an input function with O_NONBLOCK clear would not block" 18:07:40 it leaves the O_NONBLOCK-set case undefined 18:07:43 yes, but you can toggle that after 18:07:46 no, read again :) 18:09:21 me? I did. 18:09:44 https://pubs.opengroup.org/onlinepubs/009695399/functions/select.html 18:09:45 Title: pselect 18:09:53 3 mentions of O_NONBLOCK 18:10:25 but if a blocking read doesnt block, why would a O_NONBLOCK read not read? 18:11:25 I'm not suggesting it would not 18:11:49 so it does the same for nonblock and block, which is what i argued 18:12:22 you're speaking to the read behaviour; I'm talking about select itself 18:13:10 I fine point, but since we're language-lawyering 18:14:47 let's move on and use poll instead of select, where it clearly says: The poll() function shall not be affected by the O_NONBLOCK flag. 18:16:15 finding systems where select and poll does different stuff is also fun... 18:17:47 select's worst issue is the FD_SET size limit. Ran into that, on FreeBSD as it happens. Converted to poll purely because of it 18:18:11 yep 18:18:16 poll api is nicer in general 18:18:37 (I had an fd leak, oops) 18:18:57 hm, is ppoll in posix-next? 20:10:13 3.35x compression ratio on a NetBSD VM's zvol with zstd-1. Nice. 20:16:48 neat 21:56:55 Hi freebsd community, does anyone here work with freebsd on a raspberry pi? I am having performance issues, as in dev.cpu.0.freq is only registering 600 out of a possible 1500 and looking for any tips/tricks someone may have. Thank you in advance. 22:41:04 ugh i need znc 22:54:24 xscreensaver keeps crashing my computer x___x 23:10:22 does it trigger a suspend power state 23:13:48 yeah i had power settings on, i turned them off after the last time, i’ll see if that fixes it or not. might also be the video card driver. i need to learn how to debug crashes 23:13:52 hey 23:14:14 is there some other way to set ports flavours, or is there only dialog4ports? 23:14:33 but normally the xscreensaver power settings are only for the display, not the system itself, so, meh 23:14:51 because somehow my dialog4ports does not show properly, has to do with own termcap whatever 23:28:54 ...haha, oh no, it also crashes everything without power savings enabled. 23:58:58 Question: When I open neovim, try to copy something with shift+ ctrl+ c or Shift+"+ `+`, it does not gets copy. However when I cat something on terminal. I can copy with Shift+ctrl+c. How can I fix this?