Re: [PATCH v8 13/19] locking/rwsem: Make rwsem->owner an atomic_long_t

From: Linus Torvalds
Date: Fri Jul 19 2019 - 15:52:06 EST


On Fri, Jul 19, 2019 at 12:32 PM Waiman Long <longman@xxxxxxxxxx> wrote:
>
> This patch shouldn't change the behavior of the rwsem code. The code
> only access data within the rw_semaphore structures. I don't know why it
> will cause a KASAN error. I will have to reproduce it and figure out
> exactly which statement is doing the invalid access.

The stack traces should show line numbers if you run them through
scripts/decode_stacktrace.sh.

You need to have debug info enabled for that, though.

Luis?

Linus