[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071218.221456.49781139.davem@davemloft.net>
Date: Tue, 18 Dec 2007 22:14:56 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: miyazawa@...a.jp, usagi-core@...ux-ipv6.org, netdev@...r.kernel.org
Subject: Re: [IPSEC]: Do xfrm_state_check_space before encapsulation
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Wed, 19 Dec 2007 14:12:10 +0800
> [IPSEC]: Do xfrm_state_check_space before encapsulation
>
> While merging the IPsec output path I moved the encapsulation output
> operation to the top of the loop so that it sits outside of the locked
> section. Unfortunately in doing so it now sits in front of the space
> check as well which could be a fatal error.
>
> This patch rearranges the calls so that the space check happens as
> the thing on the output path.
>
> This patch also fixes an incorrect goto should the encapsulation output
> fail.
>
> Thanks to Kazunori MIYAZAWA for finding this bug.
>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Applied, thanks Herbert.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists