Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258184

Re: [GIT] Networking

From Rasmus Villemoes <linux@rasmusvillemoes.dk>
Newsgroups linux.kernel
Subject Re: [GIT] Networking
Date 2015-10-28 15:40 +0100
Message-ID <qoA3o-3Pi-17@gated-at.bofh.it> (permalink)
References <qosfv-7mx-3@gated-at.bofh.it> <qovwK-Sj-25@gated-at.bofh.it> <qowMa-1Rt-27@gated-at.bofh.it>
Organization D03

Show all headers | View raw


On Wed, Oct 28 2015, Hannes Frederic Sowa <hannes@stressinduktion.org> wrote:

> Hi Linus,
>
> On Wed, Oct 28, 2015, at 10:39, Linus Torvalds wrote:
>> Get rid of it. And I don't *ever* want to see that shit again.
>
> I don't want to give up on that this easily:
>
> In future I would like to see an interface like this. It is often hard
> to do correct overflow/wrap-around tests and it would be great if there
> are helper functions which could easily and without a lot of thinking be
> used by people to remove those problems from the kernel.

I agree - proper overflow checking can be really hard. Quick, assuming a
and b have the same unsigned integer type, is 'a+b<a' sufficient to
check overflow? Of course not (hint: promotion rules). And as you say,
it gets even more complicated for signed types.

A few months ago I tried posting a complete set of fallbacks for older
compilers (https://lkml.org/lkml/2015/7/19/358), but nothing really
happened. Now I know where Linus stands, so I guess I can just delete
that branch.

Rasmus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT] Networking David Miller <davem@davemloft.net> - 2015-10-28 07:20 +0100
  Re: [GIT] Networking Linus Torvalds <torvalds@linux-foundation.org> - 2015-10-28 10:50 +0100
    Re: [GIT] Networking Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-10-28 12:10 +0100
      Re: [GIT] Networking Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-10-28 15:40 +0100
    Re: [GIT] Networking David Miller <davem@davemloft.net> - 2015-10-28 14:20 +0100

csiph-web