From: David Miller <davem@davemloft.net>
To: herbert@gondor.apana.org.au
Cc: yjwei@cn.fujitsu.com, netdev@vger.kernel.org
Subject: Re: [PATCH v4] xfrm: Fix kernel panic when flush and dump SPD entries
Date: Mon, 01 Dec 2008 00:38:21 -0800 (PST) [thread overview]
Message-ID: <20081201.003821.42061993.davem@davemloft.net> (raw)
In-Reply-To: <20081201081111.GA19615@gondor.apana.org.au>
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Mon, 1 Dec 2008 16:11:11 +0800
> On Mon, Dec 01, 2008 at 03:50:54PM +0800, Wei Yongjun wrote:
> > After flush the SPD entries, dump the SPD entries will cause kernel painc.
> >
> > Used the following commands to reproduct:
> >
> > - echo 'spdflush;' | setkey -c
> > - echo 'spdadd 3ffe:501:ffff:ff01::/64 3ffe:501:ffff:ff04::/64 any -P out ipsec \
> > ah/tunnel/3ffe:501:ffff:ff00:200:ff:fe00:b0b0-3ffe:501:ffff:ff02:200:ff:fe00:a1a1/require;\
> > spddump;' | setkey -c
> > - echo 'spdflush; spddump;' | setkey -c
> > - echo 'spdadd 3ffe:501:ffff:ff01::/64 3ffe:501:ffff:ff04::/64 any -P out ipsec \
> > ah/tunnel/3ffe:501:ffff:ff00:200:ff:fe00:b0b0-3ffe:501:ffff:ff02:200:ff:fe00:a1a1/require;\
> > spddump;' | setkey -c
> >
> > This is because when flush the SPD entries, the SPD entry is not remove
> > from the list.
> >
> > This patch fix the problem by remove the SPD entry from the list. And
> > also do clean up of remove SPD entry.
>
> I like the clean-up but it's best if you separate the two changes
> into two patches. That way it's easy to see exactly what the bug
> fix patch is trying to fix and to verify that the clean-up patch
> really doesn't change behaviour.
Agreed. Wei, please do this.
next prev parent reply other threads:[~2008-12-01 8:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 2:00 [PATCH] xfrm: Fix kernel panic when flush and dump SPD entries Wei Yongjun
2008-12-01 2:10 ` [PATCHv2] " Wei Yongjun
2008-12-01 2:17 ` Yang Hongyang
2008-12-01 5:00 ` Herbert Xu
2008-12-01 6:25 ` Wei Yongjun
2008-12-01 6:27 ` [PATCHv3] " Wei Yongjun
2008-12-01 7:50 ` [PATCH v4] " Wei Yongjun
2008-12-01 8:11 ` Herbert Xu
2008-12-01 8:38 ` David Miller [this message]
2008-12-01 9:50 ` [PATCH 1/2] " Wei Yongjun
2008-12-03 8:28 ` David Miller
2008-12-01 9:55 ` [PATCH 1/2] xfrm: Cleanup for unlink SPD entry Wei Yongjun
2008-12-01 9:57 ` Wei Yongjun
2008-12-02 6:53 ` Herbert Xu
2008-12-03 8:33 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081201.003821.42061993.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=yjwei@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).