From: David Miller <davem@davemloft.net>
To: edumazet@google.com
Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com,
zhangyu31@baidu.com, lirongqing@baidu.com
Subject: Re: [PATCH net] Revert "packet: switch kvzalloc to allocate memory"
Date: Fri, 31 Aug 2018 23:01:08 -0700 (PDT) [thread overview]
Message-ID: <20180831.230108.1476859470416077993.davem@davemloft.net> (raw)
In-Reply-To: <20180829185012.143366-1-edumazet@google.com>
From: Eric Dumazet <edumazet@google.com>
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 <edumazet@google.com>
> Reported-by: John Sperbeck <jsperbeck@google.com>
> Bisected-by: John Sperbeck <jsperbeck@google.com>
Oops, applied, thanks Eric.
prev parent reply other threads:[~2018-09-01 10:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 18:50 [PATCH net] Revert "packet: switch kvzalloc to allocate memory" Eric Dumazet
2018-09-01 6:01 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180831.230108.1476859470416077993.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=lirongqing@baidu.com \
--cc=netdev@vger.kernel.org \
--cc=zhangyu31@baidu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox