From: Takashi Iwai Date: Mon, 10 Nov 2014 10:50:21 +0000 (+0100) Subject: net: ppp: Don't call bpf_prog_create() in ppp_lock X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~119^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5748eb8f8e989a9da1ac7c96dc73d68cbdedf7df;p=pandora-kernel.git net: ppp: Don't call bpf_prog_create() in ppp_lock In ppp_ioctl(), bpf_prog_create() is called inside ppp_lock, which eventually calls vmalloc() and hits BUG_ON() in vmalloc.c. This patch works around the problem by moving the allocation outside the lock. The bug was revealed by the recent change in net/core/filter.c, as it allocates via vmalloc() instead of kmalloc() now. Reported-and-tested-by: Stefan Seyfried Signed-off-by: Takashi Iwai Signed-off-by: David S. Miller --- Reading git-diff-tree failed