From: David Miller Subject: Re: [PATCH net] Revert "packet: switch kvzalloc to allocate memory" Date: Fri, 31 Aug 2018 23:01:08 -0700 (PDT) Message-ID: <20180831.230108.1476859470416077993.davem@davemloft.net> References: <20180829185012.143366-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, zhangyu31@baidu.com, lirongqing@baidu.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:43938 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbeIAKL5 (ORCPT ); Sat, 1 Sep 2018 06:11:57 -0400 In-Reply-To: <20180829185012.143366-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Wed, 29 Aug 2018 11:50:12 -0700 > This reverts commit 71e41286203c017d24f041a7cd71abea7ca7b1e0. > > mmap()/munmap() can not be backed by kmalloced pages : > > We fault in : > > VM_BUG_ON_PAGE(PageSlab(page), page); > > unmap_single_vma+0x8a/0x110 > unmap_vmas+0x4b/0x90 > unmap_region+0xc9/0x140 > do_munmap+0x274/0x360 > vm_munmap+0x81/0xc0 > SyS_munmap+0x2b/0x40 > do_syscall_64+0x13e/0x1c0 > entry_SYSCALL_64_after_hwframe+0x42/0xb7 > > Fixes: 71e41286203c ("packet: switch kvzalloc to allocate memory") > Signed-off-by: Eric Dumazet > Reported-by: John Sperbeck > Bisected-by: John Sperbeck Oops, applied, thanks Eric.