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  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 17 Jan 2020 08:35:07 -0800
From:   Eric Dumazet <>
To:     Peter Zijlstra <>,
        Shaokun Zhang <>
Cc:     Eric Dumazet <>,
        David Miller <>,,,,,,,, Will Deacon <>
Subject: Re: [PATCH] net: optimize cmpxchg in ip_idents_reserve

On 1/17/20 4:32 AM, Peter Zijlstra wrote:

> That's crazy, just accept that UBSAN is taking bonghits and ignore it.
> Use atomic_add_return() unconditionally.

Yes, we might simply add a comment so that people do not bug us if
their compiler is too old.

/* If UBSAN reports an error there, please make sure your compiler
 * supports -fno-strict-overflow before reporting it.
return atomic_add_return(segs + delta, p_id) - segs;

Powered by blists - more mailing lists