lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 16 May 2019 20:42:36 +0800
From:   Herbert Xu <>
To:     David Laight <David.Laight@...LAB.COM>
Cc:     Jakub Kicinski <>,
        "" <>,
        "" <>,
        "" <>,
        "" <>,
        "" <>,
        Simon Horman <>
Subject: Re: [PATCH 2/2] rhashtable: Fix cmpxchg RCU warnings

On Thu, May 16, 2019 at 09:20:36AM +0000, David Laight wrote:
> I presume these casts remove an 'rcu' marker on the variable.
> Is there a way of marking such casts as 'for sparse only' so
> that the compiler does proper type checking.
> (Clearly this isn't that relevant here as the cast could be (void **).)
> Hmmm something should be checking that the type of the argument
> to cmpxchg is 'pointer to "something the size of a pointer"'
> Adding any kind of cast subverts that test.

If we were adding this as an RCU primitive then yes that what
it should do.  But it isn't relevant to this patch.

Email: Herbert Xu <>
Home Page:
PGP Key:

Powered by blists - more mailing lists