RE: [PATCH 2/2] arm64: print alloc free paths for address in registers

2021-03-24 Thread Maninder Singh
Hi, > >This path is used for a number of failures that might have nothing to do >with a use-after-free, and from the trimmed example below it looks like >this could significantly bloat the panic and potentially cause important >information to be lost from the log, especially given the large

Re: [PATCH 2/2] arm64: print alloc free paths for address in registers

2021-03-24 Thread Mark Rutland
Hi, On Wed, Mar 24, 2021 at 12:24:59PM +0530, Maninder Singh wrote: > In case of a use after free kernel OOPs, freed path of the object is > required to debug futher. In most of cases the object address is present > in one of the registers. > > Thus check the register's address and if it belongs

[PATCH 2/2] arm64: print alloc free paths for address in registers

2021-03-24 Thread Maninder Singh
In case of a use after free kernel OOPs, freed path of the object is required to debug futher. In most of cases the object address is present in one of the registers. Thus check the register's address and if it belongs to slab, print its alloc and free path. commit a02a25709155 ("mm/slub: add