Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-06 Thread Kamil Rytarowski
On 06.06.2018 10:50, Valery Ushakov wrote: > On Wed, Jun 06, 2018 at 09:09:17 +0200, Kamil Rytarowski wrote: > > So the issue is that libc is compiled without sanitizer and > allocations done inside libc are not known to a sanitizer? For libc > functions that return allocated memory I

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-06 Thread Valery Ushakov
On Wed, Jun 06, 2018 at 09:09:17 +0200, Kamil Rytarowski wrote: > >>> So the issue is that libc is compiled without sanitizer and > >>> allocations done inside libc are not known to a sanitizer? For libc > >>> functions that return allocated memory I guess you mark it in the > >>> sanitizer's int

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-06 Thread Kamil Rytarowski
On 06.06.2018 00:56, Valery Ushakov wrote: > On Tue, Jun 05, 2018 at 22:04:37 +0200, Kamil Rytarowski wrote: > >> On 05.06.2018 20:47, Valery Ushakov wrote: >>> Kamil Rytarowski wrote: >>> On 05.06.2018 18:14, Valery Ushakov wrote: > Kamil Rytarowski wrote: > >> We've faced a pr

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Valery Ushakov
On Tue, Jun 05, 2018 at 22:04:37 +0200, Kamil Rytarowski wrote: > On 05.06.2018 20:47, Valery Ushakov wrote: > > Kamil Rytarowski wrote: > > > >> On 05.06.2018 18:14, Valery Ushakov wrote: > >>> Kamil Rytarowski wrote: > >>> > We've faced a problem with sanitizing part of the NetBSD userla

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Kamil Rytarowski
On 05.06.2018 20:47, Valery Ushakov wrote: > Kamil Rytarowski wrote: > >> On 05.06.2018 18:14, Valery Ushakov wrote: >>> Kamil Rytarowski wrote: >>> We've faced a problem with sanitizing part of the NetBSD userland, as we need to use helper functions to make sanitization possible in so

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Valery Ushakov
Kamil Rytarowski wrote: > On 05.06.2018 18:14, Valery Ushakov wrote: >> Kamil Rytarowski wrote: >> >>> We've faced a problem with sanitizing part of the NetBSD userland, as we >>> need to use helper functions to make sanitization possible in some >>> narrow cases that aren't clear for sanitizer

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Kamil Rytarowski
On 05.06.2018 20:15, Kamil Rytarowski wrote: > The shortcoming of a new header is that mtree(8) is a tool program and > this new header will be pulled into compat. Sanitizing tools has no > point and there might be need in future to track changes in this header. > Apparently the proper way to sto

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Kamil Rytarowski
On 05.06.2018 18:14, Valery Ushakov wrote: > Kamil Rytarowski wrote: > >> We've faced a problem with sanitizing part of the NetBSD userland, as we >> need to use helper functions to make sanitization possible in some >> narrow cases that aren't clear for sanitizers. >> >> The current problem is t

Re: Auxiliary header and macros for sanitizers in userland programs

2018-06-05 Thread Valery Ushakov
Kamil Rytarowski wrote: > We've faced a problem with sanitizing part of the NetBSD userland, as we > need to use helper functions to make sanitization possible in some > narrow cases that aren't clear for sanitizers. > > The current problem is the usage of callback functions defined in > program