From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762938AbdJQO5Z (ORCPT ); Tue, 17 Oct 2017 10:57:25 -0400 Received: from www62.your-server.de ([213.133.104.62]:35619 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933580AbdJQO4Y (ORCPT ); Tue, 17 Oct 2017 10:56:24 -0400 From: Daniel Borkmann To: davem@davemloft.net Cc: tj@kernel.org, ast@kernel.org, john.fastabend@gmail.com, mark.rutland@arm.com, richard@nod.at, sp3485@columbia.edu, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Borkmann Subject: [PATCH net 0/3] Fix for BPF devmap percpu allocation splat Date: Tue, 17 Oct 2017 16:55:51 +0200 Message-Id: X-Mailer: git-send-email 1.9.3 X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The set fixes a splat in devmap percpu allocation when we alloc the flush bitmap. Patch 1 is a prerequisite for the fix in patch 2, patch 1 is rather small, so if this could be routed via -net, for example, with Tejun's Ack that would be good. Patch 3 gets rid of remaining PCPU_MIN_UNIT_SIZE checks, which are percpu allocator internals and should not be used. Thanks! Daniel Borkmann (3): mm, percpu: add support for __GFP_NOWARN flag bpf: fix splat for illegal devmap percpu allocation bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocations kernel/bpf/arraymap.c | 2 +- kernel/bpf/devmap.c | 5 +++-- kernel/bpf/hashtab.c | 4 ---- mm/percpu.c | 15 ++++++++++----- 4 files changed, 14 insertions(+), 12 deletions(-) -- 1.9.3