lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 27 Feb 2007 09:56:57 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	kaber@...sh.net
Cc:	netdev@...r.kernel.org
Subject: Re: [NET]: Handle disabled preemption in gfp_any()

From: Patrick McHardy <kaber@...sh.net>
Date: Tue, 27 Feb 2007 18:48:19 +0100

> [NET]: Handle disabled preemption in gfp_any()
> 
> ctnetlink uses netlink_unicast from an atomic_notifier_chain
> (which is called within a RCU read side critical section)
> without holding further locks. netlink_unicast calls netlink_trim
> with the result of gfp_any() for the gfp flags, which are passed
> down to pskb_expand_header. gfp_any() only checks for softirq
> context and returns GFP_KERNEL, resulting in this warning:
> 
> BUG: sleeping function called from invalid context at mm/slab.c:3032
> in_atomic():1, irqs_disabled():0
> no locks held by rmmod/7010.

Applied, good catch Patrick.
-
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