Re: [PATCH v2] arm: print alloc free paths for address in registers

2021-03-12 Thread Vlastimil Babka
On 3/11/21 11:51 AM, Maninder Singh wrote: > Hi, > >   > >> Instead of your changes to SL*B, could you check mem_dump_obj() and others >> added >> by Paul in 5.12-rc1? > >> (+CC Paul, thus not trimming) > >   > > checked mem_dump_obj(), but it only provides path of allocation and not of  >

Re: [PATCH v2] arm: print alloc free paths for address in registers

2021-03-10 Thread Vlastimil Babka
On 2/25/21 8:56 AM, Maninder Singh wrote: > In case of "Use After Free" kernel OOPs, free path of object > is required to debug futher. > And in most of cases object address is present in one of registers. > > Thus check for register address and if it belongs to slab, > print its alloc and free

RE: [PATCH v2] arm: print alloc free paths for address in registers

2021-03-09 Thread Maninder Singh
Hi, Any comments or updates? >Sender : Maninder Singh Engineer/Platform S/W Group >/SRI-Delhi/Samsung Electronics >Date : 2021-02-25 13:57 (GMT+5:30) >Title : [PATCH v2] arm: print alloc free paths for address in registers > >In case of "Use After Free" kern

[PATCH v2] arm: print alloc free paths for address in registers

2021-02-25 Thread Maninder Singh
In case of "Use After Free" kernel OOPs, free path of object is required to debug futher. And in most of cases object address is present in one of registers. Thus check for register address and if it belongs to slab, print its alloc and free path. e.g. in below issue register r6 belongs to