Re: NetBSD-9.4 and SSP

2024-10-21 Thread Sad Clouds
On Mon, 21 Oct 2024 23:07:27 + (UTC) RVP wrote: > On Mon, 21 Oct 2024, Sad Clouds wrote: > > > Yes, once I applied this patch > > http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/ksh93/patches/patch-src_lib_libast_features_syscall?rev=1.4 > > > > The test succeeds, but gcc returns error "re

Re: NetBSD-9.4 and SSP

2024-10-21 Thread RVP
On Mon, 21 Oct 2024, Sad Clouds wrote: Yes, once I applied this patch http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/ksh93/patches/patch-src_lib_libast_features_syscall?rev=1.4 The test succeeds, but gcc returns error "redefinition of 'getcwd'" which is more of a NetBSD + SSP issue. OK, r

Re: NetBSD-9.4 and SSP

2024-10-21 Thread Sad Clouds
On Mon, 21 Oct 2024 07:36:58 + (UTC) RVP wrote: > On Mon, 21 Oct 2024, Sad Clouds wrote: > > > Hi, thanks for the pointers. Looks like wm/cde includes a copy of ksh, > > so I applied the first patch you linked. It is still failing in the > > same place, even after cleaning up all object file

Re: NetBSD-9.4 and SSP

2024-10-21 Thread RVP
On Mon, 21 Oct 2024, Sad Clouds wrote: Hi, thanks for the pointers. Looks like wm/cde includes a copy of ksh, so I applied the first patch you linked. It is still failing in the same place, even after cleaning up all object files. Did that iffe test succeed in detecting SYS___getcwd after the

Re: NetBSD-9.4 and SSP

2024-10-20 Thread Sad Clouds
On Sun, 20 Oct 2024 07:43:49 -0400 Greg Troxel wrote: > I really doubt getcwd has changed. man says its it libc via unistd.h > and appeared in 4.0BSD. That was my fist thought, but I think there is more going on behind the scene...

Re: NetBSD-9.4 and SSP

2024-10-20 Thread Sad Clouds
On Sun, 20 Oct 2024 12:14:45 + (UTC) RVP wrote: > On Sun, 20 Oct 2024, Sad Clouds wrote: > > > Configure script checks if getcwd() is implemented, doesn't find it and > > provides its own implementation, which then conflicts with symbols in > > /usr/include/ssp/unistd.h > > > > iffe: test: s

Re: NetBSD-9.4 and SSP

2024-10-20 Thread RVP
On Sun, 20 Oct 2024, Sad Clouds wrote: Configure script checks if getcwd() is implemented, doesn't find it and provides its own implementation, which then conflicts with symbols in /usr/include/ssp/unistd.h iffe: test: syscall(SYS_getcwd,buf,len) implemented ... no iffe: test: is ( _lib_sysgetc

Re: NetBSD-9.4 and SSP

2024-10-20 Thread Greg Troxel
> Hi, I'm getting build failures with pkgsrc wm/cde on recent NetBSD-9.4. > This seems to be related to SSP hardening, so not sure if this change > is recent with this version of NetBSD. > > This package used to build OK on NetBSD-9.3. Has anything changed with > regard to getcwd() on NetBSD-9.4? >