]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix ip_local_out_sk by passing the sk into __ip_local_out_sk
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 7 Oct 2015 21:48:32 +0000 (16:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Oct 2015 11:26:52 +0000 (04:26 -0700)
commit4a255b05c495df15238331c891a2a4a97a7ba6b3
tree33640db1c1474a00defca1b810fc2208de415309
parentd40660a9186293c9adaedd866f5afac3ecc4ba3c
ipv4: Fix ip_local_out_sk by passing the sk into __ip_local_out_sk

In the rare case where sk != skb->sk ip_local_out_sk arranges
to call dst->output differently if the skb is queued or not.
This is a bug.

Fix this bug by passing the sk parameter of ip_local_out_sk through
from ip_local_out_sk to __ip_local_out_sk (skipping __ip_local_out).

Fixes: a6afdbba58f9 ("netfilter: Pass socket pointer down through okfn().")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c