Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-22 Thread David Miller
From: David Miller Date: Sat, 22 Jun 2019 17:07:12 -0700 (PDT) > Applied and queued up for -stable, thanks. Actually, this needs a warning fix in bluetooth and netfilter. Please fix this up, do a proper allmodconfig build, and resubmit. net/bluetooth/6lowpan.c: In function ‘peer_lookup_dst’: n

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-22 Thread David Miller
From: Nicolas Dichtel Date: Thu, 20 Jun 2019 14:34:34 +0200 > The scenario is the following: the user uses a raw socket to send an ipv6 > packet, destinated to a not-connected network, and specify a connected nh. > Here is the corresponding python script to reproduce this scenario: ... > fd00:17

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-21 Thread kbuild test robot
Hi Nicolas, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net/master] url: https://github.com/0day-ci/linux/commits/Nicolas-Dichtel/ipv6-fix-neighbour-resolution-with-raw-socket/20190621-115455 reproduce: # apt-get install sparse # sparse

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-21 Thread Nicolas Dichtel
Le 20/06/2019 à 18:36, David Ahern a écrit : [snip] > You don't have a fixes tag, but this should go to stable releases. Yeah, I was not able to point a specific commit. The bug is reproducible with a 4.4 from ubuntu-16.04, with a 3.10 from redhat-7 but not with a vanilla 3.10.20.

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-20 Thread David Ahern
On 6/20/19 10:36 AM, David Ahern wrote: > > Also, this does not fix the forwarding case. For the forwarding case I > still see it trying to resolve fd00:200::fa from dut. nevermind. I used the wrong address for the forwarding case.

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-20 Thread David Ahern
On 6/20/19 9:42 AM, Nicolas Dichtel wrote: > Le 20/06/2019 à 17:12, David Ahern a écrit : >> On 6/20/19 6:34 AM, Nicolas Dichtel wrote: >>> The scenario is the following: the user uses a raw socket to send an ipv6 >>> packet, destinated to a not-connected network, and specify a connected nh. >>> He

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-20 Thread Nicolas Dichtel
Le 20/06/2019 à 17:12, David Ahern a écrit : > On 6/20/19 6:34 AM, Nicolas Dichtel wrote: >> The scenario is the following: the user uses a raw socket to send an ipv6 >> packet, destinated to a not-connected network, and specify a connected nh. >> Here is the corresponding python script to reproduc

Re: [PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-20 Thread David Ahern
On 6/20/19 6:34 AM, Nicolas Dichtel wrote: > The scenario is the following: the user uses a raw socket to send an ipv6 > packet, destinated to a not-connected network, and specify a connected nh. > Here is the corresponding python script to reproduce this scenario: > > import socket > IPPROTO_RA

[PATCH net] ipv6: fix neighbour resolution with raw socket

2019-06-20 Thread Nicolas Dichtel
The scenario is the following: the user uses a raw socket to send an ipv6 packet, destinated to a not-connected network, and specify a connected nh. Here is the corresponding python script to reproduce this scenario: import socket IPPROTO_RAW = 255 send_s = socket.socket(socket.AF_INET6, socket