Re: Compile KASAN kernel
Re: Compile KASAN kernel
- Subject: Re: Compile KASAN kernel
- From: Aaron Carroll <email@hidden>
- Date: Wed, 14 Feb 2018 14:08:21 -0800
> On Feb 14, 2018, at 12:33, Andrew Zui <email@hidden> wrote:
>
> Hi,
>
> I'm trying to pin down a memory corruption in my kext, and I found out that
> the latest kernel supports KASAN. However, when trying to compile it I get
> the following error:
>
> make[7]: *** No rule to make target
> `xnu-4570.41.2/san/kasan-blacklist-dynamic', needed by
> `xnu-4570.41.2/BUILD/obj/KASAN_X86_64/san/KASAN/kasan_blacklist_dynamic.h'.
> Stop.
>
> I see that 'kasan_blacklist_dynamic.h' is generated via
> 'san/tools/generate_dynamic_blacklist.py', but for it to work the script has
> to be pointed to 'kasan-blacklist-dynamic' file, which is missing.
>
> Is there any workaround available? Or is this functionality only for internal
> use?
This should do the trick:
$ echo '__kernel__:_ZN6OSKext8copyInfoEP7OSArray:memld' >
san/kasan-blacklist-dynamic
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden