From: Alex Badea <abadea@ixiacom.com>
To: Luca Tettamanti <kronos.it@gmail.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [xfrm_user] BUG: sleeping function called from invalid context
Date: Thu, 12 Aug 2010 16:13:12 +0300 [thread overview]
Message-ID: <4C63F368.9050806@ixiacom.com> (raw)
In-Reply-To: <20100812125027.GA12982@nb-core2.darkstar.lan>
Hi,
On 08/12/2010 03:50 PM, Luca Tettamanti wrote:
> [<ffffffff8124d175>] udp_setsockopt+0x24/0x26
> [<ffffffff811fd5c5>] sock_common_setsockopt+0xf/0x11
> [<ffffffff811fb0a8>] sys_setsockopt+0x81/0xa2
> [<ffffffff8100296b>] system_call_fastpath+0x16/0x1b
>
>
> xfrm_user_policy takes read_lock(&xfrm_km_lock) before calling
> xfrm_compile_policy (via km->compile_policy), which in turn calls
> xfrm_policy_alloc with GFP_KERNEL.
Since it's a setsockopt(), I suspect it was setting up per-socket bypass
policies.
Regards,
Alex
next prev parent reply other threads:[~2010-08-12 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 12:50 [xfrm_user] BUG: sleeping function called from invalid context Luca Tettamanti
2010-08-12 13:13 ` Alex Badea [this message]
2010-08-13 15:36 ` Herbert Xu
2010-08-15 5:38 ` 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=4C63F368.9050806@ixiacom.com \
--to=abadea@ixiacom.com \
--cc=kronos.it@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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