From mboxrd@z Thu Jan 1 00:00:00 1970 From: YOSHIFUJI Hideaki Subject: Re: [PATCH net v2 2/2] ipv6/udp: use sticky pktinfo egress ifindex on connect() Date: Mon, 1 Feb 2016 11:23:03 +0900 Message-ID: <56AEC187.1060308@miraclelinux.com> References: <56AB5C37.7020604@stressinduktion.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: hideaki.yoshifuji@miraclelinux.com, "David S. Miller" , David Ahern , Hajime Tazaki , lucien.xin@gmail.com, Marcelo Ricardo Leitner , YOSHIFUJI Hideaki To: Hannes Frederic Sowa , Paolo Abeni , netdev@vger.kernel.org Return-path: Received: from mail-pf0-f172.google.com ([209.85.192.172]:34167 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933509AbcBACXH (ORCPT ); Sun, 31 Jan 2016 21:23:07 -0500 Received: by mail-pf0-f172.google.com with SMTP id o185so69859772pfb.1 for ; Sun, 31 Jan 2016 18:23:06 -0800 (PST) In-Reply-To: <56AB5C37.7020604@stressinduktion.org> Sender: netdev-owner@vger.kernel.org List-ID: Hannes Frederic Sowa wrote: > On 29.01.2016 12:30, Paolo Abeni wrote: >> Currently, the egress interface index specified via IPV6_PKTINFO >> is ignored by __ip6_datagram_connect(), so that RFC 3542 section 6.7 >> can be subverted when the user space application calls connect() >> before sendmsg(). >> Fix it by initializing properly flowi6_oif in connect() before >> performing the route lookup. >> >> Signed-off-by: Paolo Abeni > > Acked-by: Hannes Frederic Sowa > > Acked-by: YOSHIFUJI Hideaki -- Hideaki Yoshifuji Technical Division, MIRACLE LINUX CORPORATION