[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wgbr9_W-_eDD=zBbKt-nf8TQ48YkPXz6CCHafENwOjpGQ@mail.gmail.com>
Date: Fri, 11 Jul 2025 17:14:11 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Boqun Feng <boqun.feng@...il.com>
Cc: Waiman Long <longman@...hat.com>, Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>, linux-kernel@...r.kernel.org,
Jann Horn <jannh@...gle.com>
Subject: Re: [PATCH] locking/mutex: Add debug code to help catching violation
of mutex lifetime rule
On Fri, 11 Jul 2025 at 16:28, Boqun Feng <boqun.feng@...il.com> wrote:
>
> [..] I think another thing we can
> do is adding a kasan_check_byte(lock) at the end of
> __mutex_unlock_slowpath(), because conceptually the mutex should be
> valid throughout the whole __mutex_unlock_slowpath() function, i.e.
Agreed, that makes a ton of sense too.
Linus
Powered by blists - more mailing lists