Re: is this rge crash known? - fixed

2022-12-19 Thread Geoff Steckel
On 12/19/22 21:07, Kevin Lo wrote: On Mon, Dec 19, 2022 at 03:50:45PM -0500, Geoff Steckel wrote: Thanks for all the suggestions: sysctl kern.pool_debug=1 = no change known working board in same slot = no change hardware version is indeed 0609 em(4) in same slot = works test using old rge

Re: is this rge crash known? - another test result

2022-12-19 Thread Geoff Steckel
7.2 in an ASRock J4105M - same crash, much faster (8G vs 32G memory?) Geoff Steckel

Re: is this rge crash known? - test results

2022-12-19 Thread Geoff Steckel
with if_rge.c? Perhaps the AMD 5600G or the B550 chipset have quirks not seen before? I could possibly install FreeBSD if that would give any information. thanks again, Geoff Steckel

is this rge crash known?

2022-12-18 Thread Geoff Steckel
test 1) fd800b076880 + 16 0x64000403b8f3400 != 0x46b8689556980a7 (panic on test 2 - all previous data identical) fd800b118d40 + 16 0x64000409da03400 != 0x5be8fd0cf17429b thanks for any input, Geoff Steckel

Re: allow 240/4 in various network daemons

2022-05-28 Thread Geoff Steckel
On 5/28/22 5:22 PM, Crystal Kolipe wrote: There certainly are people using this behaviour of the loopback address(es) in creative ways on non-OpenBSD systems: https://timkay.com/solo/ Changing it on those systems will likely break various users' scripts in unexpected ways. The script linke

[PATCH] some NULL checks before free(3)

2020-04-07 Thread Geoff Hill
Ran a grep to find unneccessary NULL checks before free(3) and found some in dhclient(8) and makefs(8). Geoff Hill Index: sbin/dhclient/dhclient.c === RCS file: /cvs/src/sbin/dhclient/dhclient.c,v retrieving revision 1.659 diff -u

Unused defines in ed25519

2018-11-08 Thread Geoff Hill
Looking at the ed25519 code, these defines are unused. They appear to be unused upstream as well (in djt's supercop ed25519/ref implementation), so maybe this should be suggested there instead of deviating. Up to you. Index: usr.bin/signify/fe25519.c ==

Re: Add bufferevent_setwatermark(3) to manual

2018-09-22 Thread Geoff Hill
> you need a space between the arg and punctuation Fixed. > you can find trivial errors like that if you run your changes through > mandoc: > > $ mandoc -Tlint event.3 Thanks, that is good to know. Should have kept mdoc(7

Add bufferevent_setwatermark(3) to manual

2018-09-21 Thread Geoff Hill
o add some documentation but it stalled. Here's a patch that adds the function synopsis and a brief description of how watermarks work separately for read and write. Mostly copied from the function declaration comments in event.h. ok? Geoff Hill

imsg over network

2018-09-14 Thread Geoff Hill
The imsg_init(3) man page currently doesn't make it clear whether this library can be used for remote communication. The current text reads: The imsg functions provide a simple mechanism for communication between processes using sockets. Each transmitted message is guaranteed to be pr

Mention errno in printf(3) man

2018-09-05 Thread geoff
Right now the printf(3) family of manpages make no reference to errno. Glancing at __vfprintf, it appears that most of the erroneous paths do set errno. Should the manual be amended to reflect this behavior, so that users have a documented way to determine the cause of failure in such cases? Note

xhci: Remove useless semicolon

2017-06-21 Thread geoff
One semicolon should do just fine here. Index: dev/usb/xhci.c === RCS file: /cvs/src/sys/dev/usb/xhci.c,v retrieving revision 1.72 diff -u -p -r1.72 xhci.c --- dev/usb/xhci.c 10 Mar 2017 11:18:48 - 1.72 +++ dev/usb/xhci.

Re: midiplay: Fix out-of-bounds memory access

2016-04-29 Thread Geoff Hill
> Any reason to not replace the somewhat arbitary earlier test > for this? I chose to keep the condition simpler and the existing constraints intact for minimal impact, but I would agree it's better to consolidate with the existing check. Your diff looks good to me, +1.

midiplay: Fix out-of-bounds memory access

2016-04-27 Thread Geoff Hill
Fix possible reads past the end of the buffer. Found by random fuzz testing (zzuf). Without the fix the fuzzer crashes in several seconds; with the patch, the fuzzer runs clean for hours. Index: midiplay.c === RCS file: /cvs/src/usr.

patch to smtpd/filter_api.c

2015-08-15 Thread Geoff Steckel
The included patch allows smtpd/filter_api.c to compile. I know it's not hooked in yet. I am working on adding dnsbl. I have a patch under test which is integrated into the body of smtpd. It would be cleaner if it could be an external filter. Is anybody working on the filter code? Would it be poss

ether_output broadcast question

2015-04-25 Thread Geoff Steckel
eed-back an unencrypted IPsec packet ? */ if (mcopy) (void) looutput(ifp, mcopy, dst, rt); Does the loopback for a simplex interface for IPv6 happen somewhere else? thanks! Geoff Steckel

httpd: multiple addresses for one server

2015-01-01 Thread Geoff Steckel
o maintain. Is someone planning to work in this area soon? thanks Geoff Steckel

traceroute6 crossing rdomains

2014-12-02 Thread Geoff Steckel
ming state matching. It looks like TIME_EXCEEDED packets can't match because of the different rdomains and therefore get dropped invisibly. Comments? Flames? RTFMs? thanks Geoff Steckel

Re: Unnecessary mmap flags?

2014-06-26 Thread Geoff Steckel
n since adding sufficient memory barriers was painful. I don't remember how to make that request. Geoff Steckel

Re: em(4): Don't count RX overruns and missed packets as input errros

2014-02-12 Thread Geoff Steckel
packet reception where packets were dropped with no record. I inserted counters to get at least a global count. It's conceptually very ugly to silently fail in a vital part of the network stack. It's definitely a frustrating inconvenience. Geoff Steckel

Re: help needed from someone with an sk(4)

2014-01-26 Thread Geoff Steckel
On 01/24/2014 02:09 PM, Henning Brauer wrote: * Ted Unangst [2014-01-24 17:48]: Are people still using sk, gem, or hme (!) in pps performance critical situations? doesn't make sense to do so, and hasn't in a long time... Performance critical? Well, given the pathetic speeds available in the

Re: Security and ignorance from the major ISPs

2013-02-14 Thread Geoff Steckel
y packet formats are inherently security failures. The internet is an extremely hostile place. "need to know" and "need to access" must be your rules. block everything else. geoff steckel

Re: Small change to let mg handle localized characters

2012-08-24 Thread Geoff Steckel
On 08/24/2012 08:32 AM, Stefan Sperling wrote: On Thu, Aug 23, 2012 at 07:19:29PM -0400, Geoff Steckel wrote: Well, yes, using a character set conversion API in stupid ways can munge data. How does that relate to anything I was saying? As long as iconv is only used to display data, not to

Re: Small change to let mg handle localized characters

2012-08-23 Thread Geoff Steckel
On 08/23/2012 06:55 PM, Stefan Sperling wrote: On Thu, Aug 23, 2012 at 05:32:51PM -0400, Geoff Steckel wrote: Using iconv in an editor is EXTREMELY dangerous without complex precautions. Given a file containing characters not valid in the current locale, it will at minimum prevent viewing the

Re: Small change to let mg handle localized characters

2012-08-23 Thread Geoff Steckel
e, it will at minimum prevent viewing the file. If the file is written out, the file is destroyed. IMnsHO, that is fatally flawed. Returning an error for an "impossible" character translation is specified in the archaic version of the Unicode standard I read. That is not useful in an editor. Geoff Steckel

Re: sndio cleanups

2012-08-22 Thread Geoff Steckel
s is not wise at all. Granted, the trend seems to be that everything excepts BSDs and Linux is dead anyways, so if it builds there, you should be fine. ;( C is still alive in the embedded world. Many of these considerations are still valid in C++ which has wider use, unfortunately. Geoff Steckel

Re: CoDel

2012-08-15 Thread Geoff Steckel
ll calls to xxxuptime(). On slowish (under 1GHz) Pentium boards, the idle interrupt time was 1-2%. That was deemed acceptable. Slow interrupt processing for Ethernet interfaces was far more painful and important to fix. Geoff Steckel

Re: rm -P

2012-07-25 Thread Geoff Steckel
ittle bit harder. Blocks of Facebook postings, fragments of badly written web pages, etc. might also serve. More seriously, scrambling indirect blocks when deleting a file removes one more clue. I've used indirect blocks to find deleted file\ fragments. That's something better left to the kernel. Geoff Steckel

sysv_msg queue id error

2012-02-03 Thread Geoff Steckel
Index: sys/kern/sysv_msg.c === RCS file: /cvs/src/sys/kern/sysv_msg.c,v retrieving revision 1.24 diff -u -r1.24 sysv_msg.c --- sys/kern/sysv_msg.c20 May 2011 16:06:25 -1.24 +++ sys/kern/sysv_msg.c3 Feb 2012 23:58:45 -0

Re: amd64 big dma patches

2012-01-03 Thread Geoff Steckel
On 01/03/2012 01:28 PM, Gregor Best wrote: On my system, the patch causes wpi to timeout during firmware upload, resulting in a non-working WiFi card. The dmesg doesn't say anything more besides that. Is there anything I can do to provide more useful data? -- Gregor Best [demime 1.01d rem

amd64 big dma patches

2011-12-31 Thread Geoff
r DMA?) makes physio() likely not to use copyin/copyout There may be definition disfunctions with OHCI similar to those with EHCI. There's a suspicious malloc(). I'll look at them later. Happy new year! Geoff Steckel Diffs and dmesg: Index: arch/amd64/

Re: raise max value for tcp autosizing buffer [WAS: misc@ network tuning for high bandwidth and high latency]

2011-12-05 Thread Geoff Steckel
x27;ve made are to increasse performance by tweaking net.inet.tcp.footshooter.sbmax? footshooter.net.sbmax perhaps? Such a hierarchy could be populated with all the parameters it's, umm, unwise to tweak without a lot of knowledge. A 90% frivolous suggestion. Geoff Steckel

Re: raise max value for tcp autosizing buffer [WAS: misc@ network tuning for high bandwidth and high latency]

2011-12-04 Thread Geoff Steckel
y to the kernel at run time, perhaps limited to (arbitrarily) 50% of physical memory? Geoff Steckel

Re: ifconfig ieee80211 scan error to stderr

2011-12-01 Thread Geoff Steckel
ot; is important. It will save the maintainer's sanity when the kernel or library changes or adds functionality. 99.9% of the reporting code will never be executed. Trade that cost against weeks of frustration. I'd be glad to share gory descriptions of weeks spent chasing unreported errors off line. Geoff Steckel

scratch increasing MAXPHYS

2011-11-11 Thread Geoff Steckel
+ 8) Grep-ing shows at least dev/ic/osiopvar.h doesn't compute DMA resources from MAXPHYS. There are probably other "17"s buried in ugly places. It doesn't seem to help disk I/O speed at all. It *does* decrease interrupt rate to about 400/sec. Now to try some other tests. Grumble. Geoff Steckel

increase MAXPHYS?

2011-11-11 Thread Geoff Steckel
d consequences would be harder, and I'd like any available wisdom first. I have a reason to push disks as fast as hardware allows and want to reduce software-induced bottlenecks as much as possible. thanks! Geoff Steckel

async i/o (aio and lio) desirable?

2011-10-16 Thread Geoff Steckel
look at freebsd aio code which might not map to openbsd low level routines & the swapper code which might (though single threaded) be a good place to start for low level code. All opinions welcome! thanks Geoff Steckel

Re: ksh history corruption

2011-08-31 Thread Geoff Steckel
y for ones read once and/or written once per program invocation. geoff steckel gwes at oat mumble com

Re: pf vs. bridge vs. spamd

2010-03-25 Thread Geoff
On Wed, Mar 24, 2010 at 09:08:48PM -0400, Geoff wrote: > I'm trying to set up spamd on my firewall system. > > The configuration is tricky because my upstream provider > (Verizon) only gives me 5 IPs, all on the same subnet. > > The firewall system is acting as a bridge

Re: OpenBSD 4.6 crashing on kernel boot due to ahci0 seemingly

2009-10-08 Thread Geoff
make the proper changes to ahci.c but ran out of time and energy. If anyone would like, I can try to reconstruct the situation more exactly but it would take a little time. geoff steckel