Thread (14 messages) 14 messages, 4 authors, 2016-09-22

Re: UBSAN reports issue in ip_idents_reserve

flat view

From: Eric Dumazet <hidden>
Date: 2016-09-20 13:45:20

On Tue, 2016-09-20 at 13:36 +0000, David Laight wrote:
From: Eric Dumazet
quoted
Sent: 20 September 2016 14:29
...
quoted
quoted
[   47.565420] -2117905507 + -695755206 cannot be represented in type 'int'
...
quoted
I do not think we have to worry here.

These is best effort, and unfortunately atomic_t are int.
Not until we compile on a cpu where int arithmetic doesn't wrap.
Then I guess the guy adding this kind of arches in the kernel will have
to add all the core kernel infra.

If you have an idea, I will happily review a patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help