Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318339
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Laura Abbott <labbott@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 1/3] mm/debug-pagealloc.c: Split out page poisoning from debug page_alloc |
| Date | Tue, 26 Jan 2016 21:30:02 +0100 |
| Message-ID | <qVips-Vs-17@gated-at.bofh.it> (permalink) |
| References | <qUSEG-6QD-11@gated-at.bofh.it> <qUSEI-6QD-51@gated-at.bofh.it> <qV5iy-7WO-15@gated-at.bofh.it> |
| X-Original-To | Jianyu Zhan <nasa4836@gmail.com>, Laura Abbott <labbott@fedoraproject.org> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.23 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrew Morton <akpm@linux-foundation.org>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>, "linux-mm@kvack.org" <linux-mm@kvack.org>, LKML <linux-kernel@vger.kernel.org>, kernel-hardening@lists.openwall.com, Kees Cook <keescook@chromium.org> |
| X-Original-Date | Tue, 26 Jan 2016 12:25:44 -0800 |
| X-Original-Message-ID | <56A7D648.8020806@redhat.com> |
| X-Original-References | <1453740953-18109-1-git-send-email-labbott@fedoraproject.org> <1453740953-18109-2-git-send-email-labbott@fedoraproject.org> <CAHz2CGXuUHYHX7KhxGjYtWrKOoxK=2Rz2N-Q0CBR9UWtrYi2Jw@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1318339 |
Show key headers only | View raw
On 01/25/2016 10:26 PM, Jianyu Zhan wrote: > On Tue, Jan 26, 2016 at 12:55 AM, Laura Abbott > <labbott@fedoraproject.org> wrote: >> +static bool __page_poisoning_enabled __read_mostly; >> +static bool want_page_poisoning __read_mostly = >> + !IS_ENABLED(CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC); >> + > > > I would say this patch is nice with regard to decoupling > CONFIG_DEBUG_PAGEALLOC and CONFIG_PAGE_POISONING. > > But since when we enable CONFIG_DEBUG_PAGEALLOC, > CONFIG_PAGE_POISONING will be selected. > > So it would be better to make page_poison.c totally > CONFIG_DEBUG_PAGEALLOC agnostic, in case we latter have > more PAGE_POISONING users(currently only DEBUG_PAGEALLOC ). How about like this: > > +static bool want_page_poisoning __read_mostly = > + !IS_ENABLED(CONFIG_PAGE_POISONING ); > > Or just let it default to 'true', since we only compile this > page_poison.c when we enable CONFIG_PAGE_POISONING. > This patch was just supposed to be the refactor and keep the existing behavior. There are no Kconfig changes here and the existing behavior is to poison if !ARCH_SUPPORTS_DEBUG_PAGEALLOC so I think keeping what I have is appropriate for this particular patch. This can be updated in another series if appropriate. Thanks, Laura > > Thanks, > Jianyu Zhan >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC][PATCH 1/3] mm/debug-pagealloc.c: Split out page poisoning from debug page_alloc Laura Abbott <labbott@fedoraproject.org> - 2016-01-25 18:00 +0100
Re: [RFC][PATCH 1/3] mm/debug-pagealloc.c: Split out page poisoning from debug page_alloc Jianyu Zhan <nasa4836@gmail.com> - 2016-01-26 07:30 +0100
Re: [RFC][PATCH 1/3] mm/debug-pagealloc.c: Split out page poisoning from debug page_alloc Laura Abbott <labbott@redhat.com> - 2016-01-26 21:30 +0100
csiph-web