diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-11-10 10:50:21 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-11 20:15:03 (GMT) |
commit | 5748eb8f8e989a9da1ac7c96dc73d68cbdedf7df (patch) | |
tree | c2543dfacb1d0904ef6f81898dbf05834d4a79aa /fs/gfs2 | |
parent | f4a1edd56120249198073aa4a373b77e3700ac8f (diff) | |
download | linux-5748eb8f8e989a9da1ac7c96dc73d68cbdedf7df.tar.xz |
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 <stefan.seyfried@googlemail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions