Re: [PATCH v2 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Andrey Konovalov
On Fri, Jan 15, 2021 at 11:49 AM Catalin Marinas wrote: > > On Thu, Jan 14, 2021 at 08:33:57PM +0100, Andrey Konovalov wrote: > > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > > while KASAN

Re: [PATCH v2 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Catalin Marinas
On Thu, Jan 14, 2021 at 08:33:57PM +0100, Andrey Konovalov wrote: > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > while KASAN uses 0xFX format (note the difference in the top 4 bits). > > Fix

[PATCH v2 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-14 Thread Andrey Konovalov
As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address that is passed to report_tag_fault has pointer tags in the format of 0x0X, while KASAN uses 0xFX format (note the difference in the top 4 bits). Fix up the pointer tag before calling kasan_report. Link: