Re: [PATCH v6 08/18] khwasan: preassign tags to objects with ctors or SLAB_TYPESAFE_BY_RCU

From: Andrey Konovalov
Date: Tue Sep 18 2018 - 12:50:49 EST


On Wed, Sep 12, 2018 at 6:36 PM, Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
> On Wed, Aug 29, 2018 at 1:35 PM, Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote:

>> if (!shuffle) {
>> + start = khwasan_preset_slub_tag(s, start);
>> for_each_object_idx(p, idx, s, start, page->objects) {
>> setup_object(s, page, p);
>> + p = khwasan_preset_slub_tag(s, p);
>
>
> As I commented in the previous patch, can't we do this in
> kasan_init_slab_obj(), which should be called in all the right places
> already?
>

As per offline discussion, will do in v7.