Re: [PATCH net] net: get rid of an signed integer overflow in ip_idents_reserve()

2016-09-21 Thread David Miller
From: Eric Dumazet Date: Tue, 20 Sep 2016 18:06:17 -0700 > From: Eric Dumazet > > Jiri Pirko reported an UBSAN warning happening in ip_idents_reserve() > > [] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:11 > [] signed integer overflow: > [] -2117905507 + -695755206 cannot

[PATCH net] net: get rid of an signed integer overflow in ip_idents_reserve()

2016-09-20 Thread Eric Dumazet
From: Eric Dumazet Jiri Pirko reported an UBSAN warning happening in ip_idents_reserve() [] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:11 [] signed integer overflow: [] -2117905507 + -695755206 cannot be represented in type 'int' Since we do not have uatomic_add_return()