Support for Banana PI BPI-M5 confusion on ftp.openbsd.org vs www.openbsd.org

2023-03-02 Thread kod code
Hello, at https://ftp.openbsd.org/pub/OpenBSD/7.2/arm64/INSTALL.arm64 under "OpenBSD System Requirements and Supported Devices:" ... "Amlogic G12B/SM1" the Banana PI BPI-M5 isn't listed. Whereas at https://www.openbsd.org/arm64.html under "OpenBSD/arm64 runs on the following hardware:" ...

Re: Dell Wyse 3040 acpitz vs tipmic

2023-03-02 Thread Mark Kettenis
> Date: Mon, 27 Feb 2023 10:00:25 +1000 > From: David Gwynne > > On Sun, Feb 26, 2023 at 01:28:04PM +0100, Mark Kettenis wrote: > > > Date: Sun, 26 Feb 2023 18:13:18 +1000 > > > From: David Gwynne > > yeesh, i should have proofread my email before i sent it. sorry about > making it harder to

Re: possible segmentation violation in login_radius

2023-03-02 Thread Todd C . Miller
On Thu, 02 Mar 2023 17:28:01 +0100, "Peter J. Philipp" wrote: > I just looked up RADIUS in RFC 2865 and on page 15 it reads: > > -> >Length > > The Length field is two octets. It indicates the length of the > packet including the Code, Identifier, Length, Authenticator

Re: possible segmentation violation in login_radius

2023-03-02 Thread Peter J. Philipp
On Thu, Mar 02, 2023 at 09:31:57AM -0700, Theo de Raadt wrote: > Using a global variable like that is poor style. OK, I'm gonna give it one more attempt: In RFC 2865 there is no auth code for discarding a message but there is a 255 reserved value which we may be able to use as a hack. Refer to

Re: possible segmentation violation in login_radius

2023-03-02 Thread Theo de Raadt
Using a global variable like that is poor style.

Re: possible segmentation violation in login_radius

2023-03-02 Thread Peter J. Philipp
On Thu, Mar 02, 2023 at 09:09:31AM -0700, Todd C. Miller wrote: > On Thu, 02 Mar 2023 09:07:38 -0700, "Theo de Raadt" wrote: > > > + if (auth.length > total_length) > > > > Isn't auth.length a network byte order value? > > Ah yes, good catch; it needs an ntohs(). > > - todd Hi, I just

Re: possible segmentation violation in login_radius

2023-03-02 Thread Todd C . Miller
On Thu, 02 Mar 2023 09:07:38 -0700, "Theo de Raadt" wrote: > + if (auth.length > total_length) > > Isn't auth.length a network byte order value? Ah yes, good catch; it needs an ntohs(). - todd Index: libexec/login_radius/raddauth.c

Re: possible segmentation violation in login_radius

2023-03-02 Thread Peter J. Philipp
On Thu, Mar 02, 2023 at 08:56:10AM -0700, Todd C. Miller wrote: > The following patch should fix the problem, can you try it out? > > - todd Hi Todd, thanks for the quick patch that was really awesome! I modified it a little to use ntohs(auth.length) in the length check. Other than that it

Re: possible segmentation violation in login_radius

2023-03-02 Thread Theo de Raadt
+ if (auth.length > total_length) Isn't auth.length a network byte order value?

Re: possible segmentation violation in login_radius

2023-03-02 Thread Todd C . Miller
The following patch should fix the problem, can you try it out? - todd Index: libexec/login_radius/raddauth.c === RCS file: /cvs/src/libexec/login_radius/raddauth.c,v retrieving revision 1.30 diff -u -p -u -r1.30 raddauth.c ---

possible segmentation violation in login_radius

2023-03-02 Thread pjp
>Synopsis: possible segmentation violation in login radius >Category: system >Environment: System : OpenBSD 7.2 Details : OpenBSD 7.2 (GENERIC.MP) #2: Thu Nov 24 23:53:03 MST 2022

Re: Memory issue on desktop at home, probably Radeon related

2023-03-02 Thread Landry Breuil
Le Thu, Mar 02, 2023 at 10:26:55AM +0100, Marc Espie a écrit : > Every few days, my desktop at home suddenly slows down. Looking at top, > I can see that literally everything is being forced into swap (I have 16G > of memory, when the problem starts, I usually have roughly 5-7G of memory > used,

Memory issue on desktop at home, probably Radeon related

2023-03-02 Thread Marc Espie
Every few days, my desktop at home suddenly slows down. Looking at top, I can see that literally everything is being forced into swap (I have 16G of memory, when the problem starts, I usually have roughly 5-7G of memory used, so very far below the limit, and I can see it drain into swap, until