[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1474379118.23058.5.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Tue, 20 Sep 2016 06:45:18 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Laight <David.Laight@...LAB.COM>
Cc: Jiri Pirko <jiri@...nulli.us>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: UBSAN reports issue in ip_idents_reserve
On Tue, 2016-09-20 at 13:36 +0000, David Laight wrote:
> From: Eric Dumazet
> > Sent: 20 September 2016 14:29
> ...
> > > [ 47.565420] -2117905507 + -695755206 cannot be represented in type 'int'
> ...
> > 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.
Powered by blists - more mailing lists