From: Peter Zijlstra <peterz@infradead.org>
To: Yury Polyanskiy <ypolyans@Princeton.EDU>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, mingo@elte.hu,
"Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: [PATCH] xfrm: SAD entries do not expire after suspend-resume
Date: Mon, 11 May 2009 20:30:17 +0200 [thread overview]
Message-ID: <1242066617.6656.1311.camel@laptop> (raw)
In-Reply-To: <20090511142101.639cb5d6@penta.localdomain>
On Mon, 2009-05-11 at 14:21 -0400, Yury Polyanskiy wrote:
> This fixes the following bug in the current implementation of
> net/xfrm: if SAD entry expires in 8 hr and the kernel is put into
> suspend for 10hr then upon wakeup SAD will not expire until 8 more
> hours pass. This, of course, leads to connectivity problems because
> the corresponding entry has already expired on the remote end.
>
> The patch is against 2.6.26.8 (applies to 2.6.26 cleanly) for two
> reasons:
>
> (1) that is what I am testing it on;
>
> (2) it can not be ported to anything post 2.6.28-rc7 because hrtimer's
> callbacks are run in hardirq context ever since. This would require a
> major rewrite of xfrm_state's locking (i.e. replacing spin_lock_bh()
> with spin_lock_irqsave() at least) which is (a) outside of my competence
> and (b) will introduce excessive irq-disabled codepaths.
>
> Due to (2) I am copying the authors of the hrtimer's patch. Unless
> there is an alternative (to hrtimer_start) way of requesting a
> CLOCK_REALTIME softirq callback the only solution I could think of is
> to hook into PM_POST_HIBERNATION+PM_POST_SUSPEND and force all of the
> timers on xfrm_state_all list to go off after resume.
Given that the whole problem is suspend related, this last option sounds
like the best thing.
next prev parent reply other threads:[~2009-05-11 18:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 18:21 [PATCH] xfrm: SAD entries do not expire after suspend-resume Yury Polyanskiy
2009-05-11 18:30 ` Peter Zijlstra [this message]
2009-05-11 20:07 ` Yury Polyanskiy
2009-05-11 20:25 ` Peter Zijlstra
2009-05-11 20:50 ` Yury Polyanskiy
2009-05-11 21:12 ` Peter Zijlstra
2009-05-11 21:31 ` john stultz
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=1242066617.6656.1311.camel@laptop \
--to=peterz@infradead.org \
--cc=davem@davemloft.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=mingo@elte.hu \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=yoshfuji@linux-ipv6.org \
--cc=ypolyans@Princeton.EDU \
/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).