Re: [RFC PATCH -rc] gcov: Protect from uninitialized number of functions provided by GCC

2020-08-29 Thread Leon Romanovsky
On Sat, Aug 29, 2020 at 5:12 PM Colin Ian King wrote: > > On 27/08/2020 14:39, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > The kernel compiled with GCC 10.2.1 and KASAN together with GCOV enabled > > produces the following splats while reloading modules. > > > > First splat [1] is ge

Re: [RFC PATCH -rc] gcov: Protect from uninitialized number of functions provided by GCC

2020-08-29 Thread Colin Ian King
On 27/08/2020 14:39, Leon Romanovsky wrote: > From: Leon Romanovsky > > The kernel compiled with GCC 10.2.1 and KASAN together with GCOV enabled > produces the following splats while reloading modules. > > First splat [1] is generated due to the situation that gcov_info can be both > user and ke

Re: [RFC PATCH -rc] gcov: Protect from uninitialized number of functions provided by GCC

2020-08-27 Thread Leon Romanovsky
On Thu, Aug 27, 2020 at 04:39:32PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > The kernel compiled with GCC 10.2.1 and KASAN together with GCOV enabled > produces the following splats while reloading modules. > > First splat [1] is generated due to the situation that gcov_info can be

[RFC PATCH -rc] gcov: Protect from uninitialized number of functions provided by GCC

2020-08-27 Thread Leon Romanovsky
From: Leon Romanovsky The kernel compiled with GCC 10.2.1 and KASAN together with GCOV enabled produces the following splats while reloading modules. First splat [1] is generated due to the situation that gcov_info can be both user and kernel pointer, the memcpy() during kmemdup() causes to this