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


Groups > linux.kernel > #1299020

Re: [PATCH] unix: properly account for FDs passed over unix sockets

From Hannes Frederic Sowa <hannes@stressinduktion.org>
Newsgroups linux.kernel
Subject Re: [PATCH] unix: properly account for FDs passed over unix sockets
Date 2015-12-29 15:40 +0100
Message-ID <qL3Bo-1LE-13@gated-at.bofh.it> (permalink)
References <qKGOu-3bZ-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 28.12.2015 15:14, Willy Tarreau wrote:
> @@ -1528,10 +1546,8 @@ static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb)
>   	if (!UNIXCB(skb).fp)
>   		return -ENOMEM;
>
> -	if (unix_sock_count) {
> -		for (i = scm->fp->count - 1; i >= 0; i--)
> -			unix_inflight(scm->fp->fp[i]);
> -	}
> +	for (i = scm->fp->count - 1; i >= 0; i--)
> +		unix_inflight(scm->fp->fp[i]);
>   	return max_level;

You seem to be able to remove the unix_sock_count variable altogether now.

Bye,
Hannes

--
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

[PATCH] unix: properly account for FDs passed over unix sockets Willy Tarreau <w@1wt.eu> - 2015-12-28 15:20 +0100
  Re: [PATCH] unix: properly account for FDs passed over unix sockets Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-12-29 15:40 +0100
  Re: [PATCH] unix: properly account for FDs passed over unix sockets Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-12-29 15:50 +0100
    Re: [PATCH] unix: properly account for FDs passed over unix sockets Willy Tarreau <w@1wt.eu> - 2015-12-29 21:40 +0100
      Re: [PATCH] unix: properly account for FDs passed over unix sockets Hannes Frederic Sowa <hannes@stressinduktion.org> - 2015-12-30 10:00 +0100
        Re: [PATCH] unix: properly account for FDs passed over unix sockets Willy Tarreau <w@1wt.eu> - 2015-12-30 12:30 +0100
          Re: [PATCH] unix: properly account for FDs passed over unix sockets One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-30 14:20 +0100
          Re: [PATCH] unix: properly account for FDs passed over unix sockets Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> - 2015-12-31 07:10 +0100
            Re: [PATCH] unix: properly account for FDs passed over unix sockets Willy Tarreau <w@1wt.eu> - 2015-12-31 08:20 +0100
              Re: [PATCH] unix: properly account for FDs passed over unix sockets One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-31 11:40 +0100

csiph-web