[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100630070121.GA26582@verge.net.au>
Date: Wed, 30 Jun 2010 16:01:21 +0900
From: Simon Horman <horms@...ge.net.au>
To: Andreas Steffen <andreas.steffen@....ch>
Cc: "Steffen Andreas (asteffen@....ch)" <asteffen@....ch>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
jamal <hadi@...erus.ca>
Subject: Re: static inline int xfrm_mark_get() broken
On Wed, Jun 30, 2010 at 07:03:05AM +0200, Andreas Steffen wrote:
> Hello Simon,
>
> actually I don't care how this bug is going to be fixed, but with
> sizeof(struct xfrm_mark) I'm dead certain that both the mark
> value and mask are being copied. Actually in the next inline
> function right below sizeof(struct xfrm_mark) is used, too:
>
> static inline int xfrm_mark_put(struct sk_buff *skb, struct xfrm_mark *m)
> {
> if (m->m | m->v)
> NLA_PUT(skb, XFRMA_MARK, sizeof(struct xfrm_mark), m);
> return 0;
In that case I withdraw my suggestion.
--
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