From: Andrey Ryabinin <aryabinin@virtuozzo.com> To: Matthew Wilcox <willy@infradead.org>, Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Dave Hansen <dave.hansen@intel.com>, linux-kernel@vger.kernel.org, Christoph Hellwig <hch@infradead.org>, linux-mm@kvack.org, Andy Lutomirski <luto@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, kasan-dev@googlegroups.com Subject: Re: [PATCH 1/4] vmalloc: add vm_flags argument to internal __vmalloc_node() Date: Wed, 21 Feb 2018 15:39:26 +0300 [thread overview] Message-ID: <6e4ab6e1-7ba5-4b18-9399-75eb593050ac@virtuozzo.com> (raw) In-Reply-To: <20180221122444.GA11791@bombadil.infradead.org> On 02/21/2018 03:24 PM, Matthew Wilcox wrote: > On Tue, Jan 23, 2018 at 01:55:22PM +0300, Konstantin Khlebnikov wrote: >> This allows to set VM_USERMAP in vmalloc_user() and vmalloc_32_user() >> directly at allocation and avoid find_vm_area() call. > > While reviewing this patch, I came across this infelicity ... > > have I understood correctly? > > diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c > index e13d911251e7..9060f80b4a41 100644 > --- a/mm/kasan/kasan.c > +++ b/mm/kasan/kasan.c > @@ -631,11 +631,10 @@ int kasan_module_alloc(void *addr, size_t size) > ret = __vmalloc_node_range(shadow_size, 1, shadow_start, > shadow_start + shadow_size, > GFP_KERNEL | __GFP_ZERO, > - PAGE_KERNEL, VM_NO_GUARD, NUMA_NO_NODE, > + PAGE_KERNEL, VM_NO_GUARD | VM_KASAN, NUMA_NO_NODE, > __builtin_return_address(0)); > > if (ret) { > - find_vm_area(addr)->flags |= VM_KASAN; addr != ret That's different vm areas. > kmemleak_ignore(ret); > return 0; > } >
WARNING: multiple messages have this Message-ID (diff)
From: Andrey Ryabinin <aryabinin@virtuozzo.com> To: Matthew Wilcox <willy@infradead.org>, Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Dave Hansen <dave.hansen@intel.com>, linux-kernel@vger.kernel.org, Christoph Hellwig <hch@infradead.org>, linux-mm@kvack.org, Andy Lutomirski <luto@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, kasan-dev@googlegroups.com Subject: Re: [PATCH 1/4] vmalloc: add vm_flags argument to internal __vmalloc_node() Date: Wed, 21 Feb 2018 15:39:26 +0300 [thread overview] Message-ID: <6e4ab6e1-7ba5-4b18-9399-75eb593050ac@virtuozzo.com> (raw) In-Reply-To: <20180221122444.GA11791@bombadil.infradead.org> On 02/21/2018 03:24 PM, Matthew Wilcox wrote: > On Tue, Jan 23, 2018 at 01:55:22PM +0300, Konstantin Khlebnikov wrote: >> This allows to set VM_USERMAP in vmalloc_user() and vmalloc_32_user() >> directly at allocation and avoid find_vm_area() call. > > While reviewing this patch, I came across this infelicity ... > > have I understood correctly? > > diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c > index e13d911251e7..9060f80b4a41 100644 > --- a/mm/kasan/kasan.c > +++ b/mm/kasan/kasan.c > @@ -631,11 +631,10 @@ int kasan_module_alloc(void *addr, size_t size) > ret = __vmalloc_node_range(shadow_size, 1, shadow_start, > shadow_start + shadow_size, > GFP_KERNEL | __GFP_ZERO, > - PAGE_KERNEL, VM_NO_GUARD, NUMA_NO_NODE, > + PAGE_KERNEL, VM_NO_GUARD | VM_KASAN, NUMA_NO_NODE, > __builtin_return_address(0)); > > if (ret) { > - find_vm_area(addr)->flags |= VM_KASAN; addr != ret That's different vm areas. > kmemleak_ignore(ret); > return 0; > } > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2018-02-21 12:39 UTC|newest] Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-01-23 10:55 [PATCH 1/4] vmalloc: add vm_flags argument to internal __vmalloc_node() Konstantin Khlebnikov 2018-01-23 10:55 ` Konstantin Khlebnikov 2018-01-23 10:55 ` [PATCH 2/4] vmalloc: add __vmalloc_area() Konstantin Khlebnikov 2018-01-23 10:55 ` Konstantin Khlebnikov 2018-01-23 10:55 ` [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area() Konstantin Khlebnikov 2018-01-23 10:55 ` Konstantin Khlebnikov 2018-01-23 13:57 ` Konstantin Khlebnikov 2018-01-23 13:57 ` Konstantin Khlebnikov 2018-02-21 0:16 ` Andrew Morton 2018-02-21 0:16 ` Andrew Morton 2018-02-21 7:23 ` Konstantin Khlebnikov 2018-02-21 7:23 ` Konstantin Khlebnikov 2018-02-21 16:35 ` Andy Lutomirski 2018-02-21 16:35 ` Andy Lutomirski 2018-01-23 10:55 ` [PATCH 4/4] kernel/fork: add option to use virtually mapped stacks as fallback Konstantin Khlebnikov 2018-01-23 10:55 ` Konstantin Khlebnikov 2018-02-21 15:42 ` Use higher-order pages in vmalloc Matthew Wilcox 2018-02-21 15:42 ` Matthew Wilcox 2018-02-21 16:11 ` Andy Lutomirski 2018-02-21 16:11 ` Andy Lutomirski 2018-02-21 16:50 ` Matthew Wilcox 2018-02-21 16:50 ` Matthew Wilcox 2018-02-21 16:16 ` Dave Hansen 2018-02-21 16:16 ` Dave Hansen 2018-02-21 17:01 ` Matthew Wilcox 2018-02-21 17:01 ` Matthew Wilcox 2018-02-22 6:59 ` Michal Hocko 2018-02-22 6:59 ` Michal Hocko 2018-02-22 12:22 ` Matthew Wilcox 2018-02-22 12:22 ` Matthew Wilcox 2018-02-22 13:36 ` Michal Hocko 2018-02-22 13:36 ` Michal Hocko 2018-02-22 19:01 ` Andy Lutomirski 2018-02-22 19:01 ` Andy Lutomirski 2018-02-22 19:19 ` Dave Hansen 2018-02-22 19:19 ` Dave Hansen 2018-02-22 19:27 ` Andy Lutomirski 2018-02-22 19:27 ` Andy Lutomirski 2018-02-22 19:36 ` Dave Hansen 2018-02-22 19:36 ` Dave Hansen 2018-02-23 12:13 ` Michal Hocko 2018-02-23 12:13 ` Michal Hocko 2018-03-01 18:16 ` Eric Dumazet 2018-03-01 18:16 ` Eric Dumazet 2018-02-21 12:24 ` [PATCH 1/4] vmalloc: add vm_flags argument to internal __vmalloc_node() Matthew Wilcox 2018-02-21 12:24 ` Matthew Wilcox 2018-02-21 12:39 ` Andrey Ryabinin [this message] 2018-02-21 12:39 ` Andrey Ryabinin
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=6e4ab6e1-7ba5-4b18-9399-75eb593050ac@virtuozzo.com \ --to=aryabinin@virtuozzo.com \ --cc=akpm@linux-foundation.org \ --cc=dave.hansen@intel.com \ --cc=hch@infradead.org \ --cc=kasan-dev@googlegroups.com \ --cc=khlebnikov@yandex-team.ru \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=luto@kernel.org \ --cc=willy@infradead.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.