Re: [PATCH] PR target/96260 - KASAN should work even back-end not porting anything.

2020-07-23 Thread Kito Cheng via Gcc-patches
GCC 10.2 released, committed to GCC 10 branch :) On Thu, Jul 23, 2020 at 3:21 PM Kito Cheng wrote: > > Hi Jakub: > > Thanks for your review, committed with formatting fixes. > > Hi Richard: > > Thanks, I'll commit that after gcc 10.2 release :) > > On Wed, Jul 22, 2020 at 6:14 PM Jakub Jelinek vi

Re: [PATCH] PR target/96260 - KASAN should work even back-end not porting anything.

2020-07-23 Thread Kito Cheng via Gcc-patches
Hi Jakub: Thanks for your review, committed with formatting fixes. Hi Richard: Thanks, I'll commit that after gcc 10.2 release :) On Wed, Jul 22, 2020 at 6:14 PM Jakub Jelinek via Gcc-patches wrote: > > On Wed, Jul 22, 2020 at 04:53:00PM +0800, Kito Cheng wrote: > > --- a/gcc/asan.c > > +++ b/

Re: [PATCH] PR target/96260 - KASAN should work even back-end not porting anything.

2020-07-22 Thread Jakub Jelinek via Gcc-patches
On Wed, Jul 22, 2020 at 04:53:00PM +0800, Kito Cheng wrote: > --- a/gcc/asan.c > +++ b/gcc/asan.c > @@ -344,6 +344,12 @@ asan_shadow_offset () >return asan_shadow_offset_value; > } > > +/* Returns Asan shadow offset has been set. */ > +bool asan_shadow_offset_set_p () Formatting. Should b

Re: [PATCH] PR target/96260 - KASAN should work even back-end not porting anything.

2020-07-22 Thread Richard Biener
On Wed, 22 Jul 2020, Kito Cheng wrote: > - Most KASAN function don't need any porting anything in back-end >except asan stack protection. > > - However kernel will given shadow offset when enable asan stack >protection, so eveything in KASAN can work if shadow offset is given. > > - V

[PATCH] PR target/96260 - KASAN should work even back-end not porting anything.

2020-07-22 Thread Kito Cheng
- Most KASAN function don't need any porting anything in back-end except asan stack protection. - However kernel will given shadow offset when enable asan stack protection, so eveything in KASAN can work if shadow offset is given. - Verified with x86 and risc-v. - Verified with RISC-V