CVS commit: src/sys/netinet6

2019-09-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 23 23:12:47 UTC 2019 Modified Files: src/sys/netinet6: scope6.c Log Message: Remove __noubsan from in6_clearscope() The alignment issues for x86 should be handled by - src/sys/arch/amd64/include/types.h r. 1.62 and -

CVS commit: src/sys/netinet6

2019-09-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 23 23:12:47 UTC 2019 Modified Files: src/sys/netinet6: scope6.c Log Message: Remove __noubsan from in6_clearscope() The alignment issues for x86 should be handled by - src/sys/arch/amd64/include/types.h r. 1.62 and -

CVS commit: src/sys/arch

2019-09-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 23 23:06:26 UTC 2019 Modified Files: src/sys/arch/amd64/include: types.h src/sys/arch/i386/include: types.h Log Message: Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds This change allows to pick code

CVS commit: src/sys/arch

2019-09-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 23 23:06:26 UTC 2019 Modified Files: src/sys/arch/amd64/include: types.h src/sys/arch/i386/include: types.h Log Message: Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds This change allows to pick code

CVS commit: src/distrib/sets/lists/debug

2019-09-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 23 16:07:07 UTC 2019 Modified Files: src/distrib/sets/lists/debug: shl.mi Log Message: Fix MKDEBUG distrib sets Add libpthread, libnvpair and ZFS libs to dynamicroot. To generate a diff of this commit: cvs rdiff -u

Re: CVS commit: src

2019-09-23 Thread Kamil Rytarowski
On 23.09.2019 14:10, Christos Zoulas wrote: > In article <39faa27a-2f79-3296-b316-513a6a3fa...@gmx.com>, > Kamil Rytarowski wrote: >> -=-=-=-=-=- >> -=-=-=-=-=- >> >> On 23.09.2019 00:59, Christos Zoulas wrote: >>> Module Name:

Re: CVS commit: src

2019-09-23 Thread Kamil Rytarowski
On 23.09.2019 11:59, Martin Husemann wrote: > On Mon, Sep 23, 2019 at 11:54:46AM +0200, Kamil Rytarowski wrote: >> I propose to add a fallback inside libc to the older syscalls. In case >> of ENOSYS pick older syscall and zero the new struct field. > > This is not how we

Re: CVS commit: src

2019-09-23 Thread Kamil Rytarowski
On 23.09.2019 00:59, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sun Sep 22 22:59:40 UTC 2019 > > Modified Files: > src/bin/df: df.c > src/distrib/sets/lists/base: shl.mi > src/distrib/sets/lists/debug: shl.mi >

Re: CVS commit: src/sys/net

2019-09-23 Thread Kamil Rytarowski
On 23.09.2019 06:53, Rin Okuyama wrote: > Hi, > > On 2019/09/22 18:30, Kamil Rytarowski wrote: >> On 12.04.2018 06:38, Ryota Ozaki wrote: >>> Module Name:    src >>> Committed By:    ozaki-r >>> Date:    Thu Apr 12 04:38:13 UTC 2018 >>> &g

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:34:13 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: cppbuiltin.c Log Message: Add LSan and UBSan specific preprocessor macros __SANITIZE_LEAK__ patch:

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:34:13 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: cppbuiltin.c Log Message: Add LSan and UBSan specific preprocessor macros __SANITIZE_LEAK__ patch:

CVS commit: src/sys/sys

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:23:12 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Handle LSan/LLVM and LSan/GCC in __NO_LEAKS __has_feature(leak_sanitizer) was merged with Clang/LLVM today: https://reviews.llvm.org/D67719 GCC

CVS commit: src/sys/sys

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:23:12 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Handle LSan/LLVM and LSan/GCC in __NO_LEAKS __has_feature(leak_sanitizer) was merged with Clang/LLVM today: https://reviews.llvm.org/D67719 GCC

CVS commit: src/sys/sys

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:13:10 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Make __CTASSERT static assert again Today GCC/Clang allow to specify typedef char[] with the dynamic VLA property (as introduced in C99). This means

CVS commit: src/sys/sys

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 23:13:10 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Make __CTASSERT static assert again Today GCC/Clang allow to specify typedef char[] with the dynamic VLA property (as introduced in C99). This means

Re: CVS commit: src/sys/net

2019-09-22 Thread Kamil Rytarowski
On 12.04.2018 06:38, Ryota Ozaki wrote: > Module Name: src > Committed By: ozaki-r > Date: Thu Apr 12 04:38:13 UTC 2018 > > Modified Files: > src/sys/net: if.h route.c route.h rtsock.c > > Log Message: > Resolve tangled lock dependencies in route.c > > This change sweeps

CVS commit: src/sys/dev/ic

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 09:03:07 UTC 2019 Modified Files: src/sys/dev/ic: malo.c Log Message: Reduce always true comparison in malo_cmd_set_txpower() powerlevel is already checked for >=30 in the previous condition. Found by the lgtm bot.

CVS commit: src/sys/dev/ic

2019-09-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 22 09:03:07 UTC 2019 Modified Files: src/sys/dev/ic: malo.c Log Message: Reduce always true comparison in malo_cmd_set_txpower() powerlevel is already checked for >=30 in the previous condition. Found by the lgtm bot.

CVS commit: src/sys/compat

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:25:19 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_unistd.c Log Message: Avoid signed integer overflow when convering linux timeval to timespec

CVS commit: src/sys/compat

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:25:19 UTC 2019 Modified Files: src/sys/compat/linux/common: linux_misc.c src/sys/compat/linux32/common: linux32_unistd.c Log Message: Avoid signed integer overflow when convering linux timeval to timespec

CVS commit: src/sys/compat/netbsd32

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:16:41 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_select.c Log Message: Validate usec ranges in netbsd32___select50() Later in the code selcommon() checks for proper timespec, check only correct usec

CVS commit: src/sys/compat/netbsd32

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:16:41 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_select.c Log Message: Validate usec ranges in netbsd32___select50() Later in the code selcommon() checks for proper timespec, check only correct usec

CVS commit: src/sys/compat/netbsd32

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:09:07 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_compat_50.c Log Message: Validate usec ranges in compat_50_netbsd32_select() Later in the code selcommon() checks for proper timespec, check only

CVS commit: src/sys/compat/netbsd32

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:09:07 UTC 2019 Modified Files: src/sys/compat/netbsd32: netbsd32_compat_50.c Log Message: Validate usec ranges in compat_50_netbsd32_select() Later in the code selcommon() checks for proper timespec, check only

CVS commit: src/sys/compat/common

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:05:22 UTC 2019 Modified Files: src/sys/compat/common: kern_select_50.c Log Message: Validate usec ranges in compat_50_sys_select() Later in the code selcommon() checks for proper timespec, check only correct usec of

CVS commit: src/sys/compat/common

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:05:22 UTC 2019 Modified Files: src/sys/compat/common: kern_select_50.c Log Message: Validate usec ranges in compat_50_sys_select() Later in the code selcommon() checks for proper timespec, check only correct usec of

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:00:48 UTC 2019 Modified Files: src/sys/kern: sys_select.c Log Message: Validate usec ranges in sys___select50() Later in the code selcommon() checks for proper timespec, check only correct usec of timeval before

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 15:00:48 UTC 2019 Modified Files: src/sys/kern: sys_select.c Log Message: Validate usec ranges in sys___select50() Later in the code selcommon() checks for proper timespec, check only correct usec of timeval before

CVS commit: src/sys/netinet6

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 14:53:24 UTC 2019 Modified Files: src/sys/netinet6: scope6.c Log Message: Decorate in6_clearscope() with __noubsan sys/netinet6/scope6.c:480:6, member access within misaligned address 0x9457bc441286 for type

CVS commit: src/sys/netinet6

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 14:53:24 UTC 2019 Modified Files: src/sys/netinet6: scope6.c Log Message: Decorate in6_clearscope() with __noubsan sys/netinet6/scope6.c:480:6, member access within misaligned address 0x9457bc441286 for type

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 14:12:57 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: Validate usec ranges in settimeofday1() To generate a diff of this commit: cvs rdiff -u -r1.199 -r1.200 src/sys/kern/kern_time.c Please note

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 14:12:57 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: Validate usec ranges in settimeofday1() To generate a diff of this commit: cvs rdiff -u -r1.199 -r1.200 src/sys/kern/kern_time.c Please note

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 13:29:31 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Validate usec ranges in do_sys_utimes() sys/kern/vfs_syscalls.c:3939:4, signed integer overflow: 503923632 * 1000 cannot be represented in

CVS commit: src/sys/kern

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 13:29:31 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Validate usec ranges in do_sys_utimes() sys/kern/vfs_syscalls.c:3939:4, signed integer overflow: 503923632 * 1000 cannot be represented in

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 12:41:34 UTC 2019 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: intel_display.c intel_runtime_pm.c Log Message: Switch CTASSERT() to DRMCTASSERT() in two i915 functions Fixes build with disabled

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 12:41:34 UTC 2019 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: intel_display.c intel_runtime_pm.c Log Message: Switch CTASSERT() to DRMCTASSERT() in two i915 functions Fixes build with disabled

CVS commit: src/sys/external/bsd/drm2/include/asm

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 12:40:23 UTC 2019 Modified Files: src/sys/external/bsd/drm2/include/asm: bug.h Log Message: Define DRMCTASSERT() for Compile-Time DRMKMS asserts Switch CTASSERT() to DRMCTASSERT() in BUILD_BUG_ON(). This fixes build

CVS commit: src/sys/external/bsd/drm2/include/asm

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 12:40:23 UTC 2019 Modified Files: src/sys/external/bsd/drm2/include/asm: bug.h Log Message: Define DRMCTASSERT() for Compile-Time DRMKMS asserts Switch CTASSERT() to DRMCTASSERT() in BUILD_BUG_ON(). This fixes build

CVS commit: src/sys/external/bsd/drm2/include/asm

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 10:54:07 UTC 2019 Modified Files: src/sys/external/bsd/drm2/include/asm: bug.h Log Message: Adapt DRMKMS BUILD_BUG_ON_MSG() to static_assert semantics static_assert is violated with runtime-only compiler semantics in a

CVS commit: src/sys/external/bsd/drm2/include/asm

2019-09-20 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 20 10:54:07 UTC 2019 Modified Files: src/sys/external/bsd/drm2/include/asm: bug.h Log Message: Adapt DRMKMS BUILD_BUG_ON_MSG() to static_assert semantics static_assert is violated with runtime-only compiler semantics in a

Re: CVS commit: src/sys/crypto/nist_hash_drbg

2019-09-19 Thread Kamil Rytarowski
On 19.09.2019 16:35, Taylor R Campbell wrote: > Module Name: src > Committed By: riastradh > Date: Thu Sep 19 14:35:00 UTC 2019 > > Modified Files: > src/sys/crypto/nist_hash_drbg: nist_hash_drbg.c > > Log Message: > Use CTASSERT where possible, run-time assertion where not. > >

Re: CVS commit: src/sys

2019-09-18 Thread Kamil Rytarowski
On 18.09.2019 21:02, Kamil Rytarowski wrote: > On 02.09.2019 22:09, Taylor R Campbell wrote: >> Module Name: src >> Committed By:riastradh >> Date:Mon Sep 2 20:09:30 UTC 2019 >> >> Modified Files: >> src/sys/conf: files >>

CVS commit: src/sys/arch/amd64/amd64

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 20:18:27 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Avoid VLA to appease stack-protector This has been reproduced with -O0 and -fsanitize=undefined. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/amd64/amd64

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 20:18:27 UTC 2019 Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: Avoid VLA to appease stack-protector This has been reproduced with -O0 and -fsanitize=undefined. To generate a diff of this commit: cvs

Re: CVS commit: src/sys

2019-09-18 Thread Kamil Rytarowski
On 02.09.2019 22:09, Taylor R Campbell wrote: > Module Name: src > Committed By: riastradh > Date: Mon Sep 2 20:09:30 UTC 2019 > > Modified Files: > src/sys/conf: files > src/sys/dev: rndpseudo.c > src/sys/kern: subr_cprng.c > src/sys/rump/kern/lib/libcrypto:

CVS commit: src/sys/kern

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:33:32 UTC 2019 Modified Files: src/sys/kern: subr_percpu.c Log Message: Decorate percpu_cpu_swap() with __noubsan To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/kern/subr_percpu.c Please

CVS commit: src/sys/kern

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:33:32 UTC 2019 Modified Files: src/sys/kern: subr_percpu.c Log Message: Decorate percpu_cpu_swap() with __noubsan To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/kern/subr_percpu.c Please

CVS commit: src/sys/arch/x86/x86

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:07:08 UTC 2019 Modified Files: src/sys/arch/x86/x86: patch.c Log Message: Switch to __noubsan in x86_hotpatch() To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/arch/x86/x86/patch.c Please

CVS commit: src/sys/arch/x86/x86

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:07:08 UTC 2019 Modified Files: src/sys/arch/x86/x86: patch.c Log Message: Switch to __noubsan in x86_hotpatch() To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/arch/x86/x86/patch.c Please

CVS commit: src/sys/sys

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:06:03 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Define __noubsan in sys/cdefs.h for KERNEL sanitization To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/sys/cdefs.h Please

CVS commit: src/sys/sys

2019-09-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 18 15:06:03 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Define __noubsan in sys/cdefs.h for KERNEL sanitization To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/sys/cdefs.h Please

CVS commit: src/lib/libc/gen

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 16 01:25:16 UTC 2019 Modified Files: src/lib/libc/gen: utimens.c Log Message: Remove _INCOMPLETE_XOPEN_C063, no longer needed To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/utimens.c Please

Re: Leak Sanitizer - how to suppress leaks

2019-09-15 Thread Kamil Rytarowski
On 16.09.2019 02:47, Robert Elz wrote: > Expecting any unix program (even the simplest) to simply compile and run > in a non-kernel environment is pointless, they simply won't work. As a non-trivial no-kernel example, nethack on rump unikernel: https://github.com/anttikantee/rumprun-nethack On

CVS commit: src/lib/librumphijack

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 16 00:00:57 UTC 2019 Modified Files: src/lib/librumphijack: Makefile Log Message: Stop passing -D_INCOMPLETE_XOPEN_C063 (obsolete define) To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22

CVS commit: src/lib/librumphijack

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 16 00:00:57 UTC 2019 Modified Files: src/lib/librumphijack: Makefile Log Message: Stop passing -D_INCOMPLETE_XOPEN_C063 (obsolete define) To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22

CVS commit: src/bin/dd

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 23:58:31 UTC 2019 Modified Files: src/bin/dd: Makefile Log Message: Drop -D_INCOMPLETE_XOPEN_C063 from dd(1) To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/bin/dd/Makefile Please note that diffs

CVS commit: src/bin/dd

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 23:58:31 UTC 2019 Modified Files: src/bin/dd: Makefile Log Message: Drop -D_INCOMPLETE_XOPEN_C063 from dd(1) To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/bin/dd/Makefile Please note that diffs

Re: CVS commit: src/include

2019-09-15 Thread Kamil Rytarowski
Thanks! Here is more cleanup of _INCOMPLETE_XOPEN_C063: http://netbsd.org/~kamil/patch-00149-_INCOMPLETE_XOPEN_C063.txt (not build tested) On 16.09.2019 01:41, Christos Zoulas wrote: > Fixed. > > christos > >> On Sep 15, 2019, at 6:40 PM, Kamil Rytarowski wrote: >

Re: CVS commit: src/include

2019-09-15 Thread Kamil Rytarowski
On 16.09.2019 00:32, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sun Sep 15 22:32:48 UTC 2019 > > Modified Files: > src/include: unistd.h > > Log Message: > Declare fexecve > Thanks! Now we have got two.. declarations. #if

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
) ^~~ execve cc1: all warnings being treated as errors On 15.09.2019 22:37, Kamil Rytarowski wrote: > I have got no opinion, but merging them is good. Personally I prefer > src/libc/* path as fexecve(2) is a libc public symbol. > > On 15.09.2019 20:06, Christos Zoulas wrote:

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
better. It is also the case that perhaps > we need to get rid of the kernel tests directory and move them to the > respective bin and lib directories to avoid confusion? > > christos > >> On Sep 15, 2019, at 1:02 PM, Kamil Rytarowski wrote: >> >> Signed PGP part >&g

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
On 15.09.2019 18:53, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sun Sep 15 16:53:58 UTC 2019 > > Modified Files: > src/tests/kernel: Makefile > Added Files: > src/tests/kernel: h_fexecve.c t_fexecve.sh > > Log Message: > Add tests for

CVS commit: src/bin/ps

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:27:50 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: ps(1): Guard freeing the memory of pinfo with __NO_LEAKS. No more leaks are detected by LSan/NetBSD as of the LLVM snapshot (clang10svn) from 2019-09-15.

CVS commit: src/bin/ps

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:27:50 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: ps(1): Guard freeing the memory of pinfo with __NO_LEAKS. No more leaks are detected by LSan/NetBSD as of the LLVM snapshot (clang10svn) from 2019-09-15.

CVS commit: src/sys/sys

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:18:45 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Define __NO_LEAKS in sys/cdefs.h This preprocessor symbol is intended to be used with leak detecting software, documenting leaks that are not

CVS commit: src/sys/sys

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:18:45 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Define __NO_LEAKS in sys/cdefs.h This preprocessor symbol is intended to be used with leak detecting software, documenting leaks that are not

CVS commit: src/sys/sys

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 14:30:26 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Add Clang/LLVM specific feature/extension detection macros in sys/cdefs.h These macros are not supported (as of now) with GCC and there is need to

CVS commit: src/sys/sys

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 14:30:26 UTC 2019 Modified Files: src/sys/sys: cdefs.h Log Message: Add Clang/LLVM specific feature/extension detection macros in sys/cdefs.h These macros are not supported (as of now) with GCC and there is need to

CVS commit: src/libexec/ld.elf_so

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 13:40:46 UTC 2019 Modified Files: src/libexec/ld.elf_so: rtld.c Log Message: Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3) Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.

CVS commit: src/libexec/ld.elf_so

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 13:40:46 UTC 2019 Modified Files: src/libexec/ld.elf_so: rtld.c Log Message: Return the ELF loader dl_phdr_info information for dl_iterate_phdr(3) Sync the behavior of dl_iterate_phdr(3) with Linux/FreeBSD/OpenBSD.

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Kamil Rytarowski
On 14.09.2019 13:54, Martin Husemann wrote: > On Sat, Sep 14, 2019 at 01:45:08PM +0200, Kamil Rytarowski wrote: >> OK, thank you. So to sum it up. Plugging resource leaks costs time and >> human effort and this is what is not wanted by some people. For those >> who find it u

Re: Leak Sanitizer - how to suppress leaks

2019-09-14 Thread Kamil Rytarowski
On 13.09.2019 14:03, Robert Elz wrote: > | I think we need to specify the definition. Leak is a memory object > | without a pointer referencing it. > > I can accept that as a definition. But we also need to recognise that > there are no leaks after the program has finished. And the

Re: CVS commit: src/bin/ps

2019-09-12 Thread Kamil Rytarowski
On 13.09.2019 03:51, Roy Marples wrote: > On 12/09/2019 20:55, Joerg Sonnenberger wrote: >> On Thu, Sep 12, 2019 at 01:52:19AM +0100, Roy Marples wrote: >>> On 11/09/2019 20:03, Robert Elz wrote: >>>>   Date:    Wed, 11 Sep 2019 17:02:53 + >>>

Re: Leak Sanitizer - how to suppress leaks

2019-09-12 Thread Kamil Rytarowski
On 13.09.2019 03:24, Simon Burge wrote: > Kamil Rytarowski wrote: > >> I will revert it, but I am looking for a more generic approach. >> >> How about adding ifdef __NO_LEAKS like: >> >> #ifdef __NO_LEAKS >> free(3)? >> #endif >> &g

Re: Leak Sanitizer - how to suppress leaks

2019-09-12 Thread Kamil Rytarowski
On 12.09.2019 21:24, Robert Elz wrote: > Date:Thu, 12 Sep 2019 15:12:25 +0200 > From: Kamil Rytarowski > Message-ID: <2a6e1fb2-cedc-4a57-750b-45f101be9...@gmx.com> > > > | This proposal is practically equivalent of disabling leak detection

Re: Leak Sanitizer - how to suppress leaks

2019-09-12 Thread Kamil Rytarowski
On 12.09.2019 10:09, Robert Elz wrote: > The right change to make however is to teach the santitsers (all of them) > that exiting (via exit() or a return from main()) frees everything, This proposal is practically equivalent of disabling leak detection at all and removes the whole purpose. Leak

Re: CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
On 12.09.2019 02:52, Roy Marples wrote: > On 11/09/2019 20:03, Robert Elz wrote: >> Date:    Wed, 11 Sep 2019 17:02:53 + >> From:    "Kamil Rytarowski" >> Message-ID:  <20190911170253.d097ff...@cvs.netbsd.org> >> >&

Leak Sanitizer - how to suppress leaks

2019-09-11 Thread Kamil Rytarowski
On 11.09.2019 23:33, Robert Elz wrote: > Date:Wed, 11 Sep 2019 21:13:24 +0200 > From: Kamil Rytarowski > Message-ID: <6c853bc7-6510-459e-d451-51f988617...@gmx.com> > > | We have got even fixups in libc for such "nonsense" cases. >

Re: CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
On 11.09.2019 21:03, Robert Elz wrote: > Date:Wed, 11 Sep 2019 17:02:53 + > From: "Kamil Rytarowski" > Message-ID: <20190911170253.d097ff...@cvs.netbsd.org> > > | Free it when no longer used, just before the program termin

CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 11 17:02:53 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: Plug memory leak in ps(1) pinfo is allocated in setpinfo() with calloc(3). Free it when no longer used, just before the program termination. Detected

CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 11 17:02:53 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: Plug memory leak in ps(1) pinfo is allocated in setpinfo() with calloc(3). Free it when no longer used, just before the program termination. Detected

Re: CVS import: src/external/bsd/openresolv/dist

2019-09-11 Thread Kamil Rytarowski
On 08.09.2019 22:46, Roy Marples wrote: > Module Name: src > Committed By: roy > Date: Sun Sep 8 20:46:17 UTC 2019 > > Update of /cvsroot/src/external/bsd/openresolv/dist > In directory ivanova.netbsd.org:/tmp/cvs-serv12058 > > Log Message: > Import openresolv-3.9.2 with the following

CVS commit: src/lib/libpthread

2019-09-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Sep 10 22:34:19 UTC 2019 Modified Files: src/lib/libpthread: thrd.c threads.h Log Message: Switch back _Noreturn to __dead in C11 threads There is an ongoing discussion to unify unreturn attribute between C and C++, making a

CVS commit: src/lib/libpthread

2019-09-10 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Sep 10 22:34:19 UTC 2019 Modified Files: src/lib/libpthread: thrd.c threads.h Log Message: Switch back _Noreturn to __dead in C11 threads There is an ongoing discussion to unify unreturn attribute between C and C++, making a

CVS commit: src/external/gpl3/gdb/dist/gdb

2019-09-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 6 14:37:00 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: ChangeLog event-top.c inflow.c inflow.h ser-unix.c top.c Log Message: Cherry-pick upstream GDB patch to fix SIGTTOU handling Fixes

CVS commit: src/external/gpl3/gdb/dist/gdb

2019-09-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Sep 6 14:37:00 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/gdb: ChangeLog event-top.c inflow.c inflow.h ser-unix.c top.c Log Message: Cherry-pick upstream GDB patch to fix SIGTTOU handling Fixes

CVS commit: src/sys/sys

2019-09-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Sep 5 22:29:59 UTC 2019 Modified Files: src/sys/sys: param.h Log Message: Welcome to 9.99.11 struct in6_addr ABI revert to the previous layout. To generate a diff of this commit: cvs rdiff -u -r1.610 -r1.611

CVS commit: src/sys/sys

2019-09-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Sep 5 22:29:59 UTC 2019 Modified Files: src/sys/sys: param.h Log Message: Welcome to 9.99.11 struct in6_addr ABI revert to the previous layout. To generate a diff of this commit: cvs rdiff -u -r1.610 -r1.611

CVS commit: src/sys/netinet6

2019-09-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Sep 5 20:17:27 UTC 2019 Modified Files: src/sys/netinet6: in6.h Log Message: Revert regression introduced in in6.h r. 1.95 revision 1.95 date: 2019-05-28 05:56:46 +0200; author: kamil; state:

CVS commit: src/sys/netinet6

2019-09-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Sep 5 20:17:27 UTC 2019 Modified Files: src/sys/netinet6: in6.h Log Message: Revert regression introduced in in6.h r. 1.95 revision 1.95 date: 2019-05-28 05:56:46 +0200; author: kamil; state:

Re: CVS commit: src/sys/arch/amd64/amd64

2019-09-05 Thread Kamil Rytarowski
On 05.09.2019 14:57, Maxime Villard wrote: > Module Name: src > Committed By: maxv > Date: Thu Sep 5 12:57:30 UTC 2019 > > Modified Files: > src/sys/arch/amd64/amd64: lock_stubs.S > > Log Message: > Remove unused, and style. > > > To generate a diff of this commit: > cvs rdiff

Re: CVS commit: src/lib/libcurses

2019-09-03 Thread Kamil Rytarowski
On 03.09.2019 12:36, Roy Marples wrote: > Module Name: src > Committed By: roy > Date: Tue Sep 3 10:36:17 UTC 2019 > > Modified Files: > src/lib/libcurses: Makefile curses.h version.c > Added Files: > src/lib/libcurses: cursesrelease.sh > > Log Message: > curses: Add

CVS commit: src/external/bsd/compiler_rt/lib/clang/lib/netbsd

2019-09-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Sep 3 03:04:31 UTC 2019 Modified Files: src/external/bsd/compiler_rt/lib/clang/lib/netbsd: common.mk Log Message: Set NOLIBCSANITIZER for LLVM sanitizer runtimes Do not sanitize sanitizer runtimes. To generate a diff of

CVS commit: src/external/bsd/compiler_rt/lib/clang/lib/netbsd

2019-09-02 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Sep 3 03:04:31 UTC 2019 Modified Files: src/external/bsd/compiler_rt/lib/clang/lib/netbsd: common.mk Log Message: Set NOLIBCSANITIZER for LLVM sanitizer runtimes Do not sanitize sanitizer runtimes. To generate a diff of

CVS commit: src/external/bsd/compiler_rt/lib/clang/lib/netbsd

2019-08-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 30 23:36:41 UTC 2019 Modified Files: src/external/bsd/compiler_rt/lib/clang/lib/netbsd: syms.mk src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64: Makefile

CVS commit: src/external/bsd/compiler_rt/lib/clang/lib/netbsd

2019-08-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Aug 30 23:36:41 UTC 2019 Modified Files: src/external/bsd/compiler_rt/lib/clang/lib/netbsd: syms.mk src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64: Makefile

CVS commit: src

2019-08-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 27 22:48:55 UTC 2019 Modified Files: src: Makefile src/common/lib/libc/gmon: mcount.c src/distrib/sets/lists/base: mi src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64: Makefile

CVS commit: src

2019-08-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 27 22:48:55 UTC 2019 Modified Files: src: Makefile src/common/lib/libc/gmon: mcount.c src/distrib/sets/lists/base: mi src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64: Makefile

CVS commit: src

2019-08-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 26 04:49:47 UTC 2019 Modified Files: src: Makefile src/distrib/sets/lists/base: md.amd64 md.i386 src/distrib/sets/lists/comp: md.amd64 md.i386 src/external/bsd/compiler_rt/lib/clang/lib/netbsd:

CVS commit: src

2019-08-25 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Aug 26 04:49:47 UTC 2019 Modified Files: src: Makefile src/distrib/sets/lists/base: md.amd64 md.i386 src/distrib/sets/lists/comp: md.amd64 md.i386 src/external/bsd/compiler_rt/lib/clang/lib/netbsd:

<    1   2   3   4   5   6   7   8   9   >