Received: by 10.223.185.116 with SMTP id b49csp452854wrg; Wed, 14 Feb 2018 01:29:44 -0800 (PST) X-Google-Smtp-Source: AH8x227Y8auGyUITqo1GAP/YFYSjHXpgVjH99XZB/8YmnDb46VvOL+ZQv6PYPzDTntIM7VT/La/p X-Received: by 2002:a17:902:ab8a:: with SMTP id f10-v6mr513084plr.318.1518600584793; Wed, 14 Feb 2018 01:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518600584; cv=none; d=google.com; s=arc-20160816; b=ZiGB6MuIf0ngX0WIQ9jzqJ8Oh0j0k6zc3zRKAcz7x/A8+dG4yi01KA1EoDGQIpI2K1 0nLk+7n/k8cBBKaIejp1gHrDov7/g/v0RG8YHhfblMaUy7GT3DXM1tLFFlckr5Z0gBPv a5NZrqLEZZf9bQtsRaYpQQHDfGh1kZhSCTVxtT5GYROZsIQCoYUkO8Hzo641behDeJGb cuwDWzhnotbzl9xMhJPdZpwO5XitrPfRpJBZCLlYnW0lMLFaePKA+rWc+m0NoXR9ruaa 1T78fFyLa85hq2XpKwgcFgHwESd30IpJGNCJjCxzlgH9/8pPp7kiC2jauTeVnI9r2O2/ VLcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=xxJTdVb1Kg/I3k65QxhkrblP9rgqEapYSeX2wI2zgOw=; b=No5WrXh7XSPO0Xi9Vu31FnyDYx1R0QQq0kcsvgmxe5HlnDC6dGxa/0xPQeaN0cNjBr OPEiDw7uJoYL2iqVTwv7ZwDHD6qAKVeDym5yhOVO7GKnPfJZwqumyYwQRBc8VMtRHVDS buiRS9fMukQu2vaGiMdIyfPsUxTLDvGVr35u9Vj2K2NkbWAXNAyUGbDy1nQuXkhWUhew xBM9TULWVnlka6BdPK8OhV47ht34IgktAczCt7F71nyAjSL5FcTyaSFKnB6itr8dORcI 8gK5WWdcvkpMRZ528LHS0qcfT0OsqOkhdMLlZU2x8ZhkfoN6I9YhK+kRURfTMW23Edll 8r7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si2838367pld.37.2018.02.14.01.29.29; Wed, 14 Feb 2018 01:29:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966847AbeBNJ2p (ORCPT + 99 others); Wed, 14 Feb 2018 04:28:45 -0500 Received: from www62.your-server.de ([213.133.104.62]:56849 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966446AbeBNJ2n (ORCPT ); Wed, 14 Feb 2018 04:28:43 -0500 Received: from [62.202.221.8] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1eltMZ-000784-Po; Wed, 14 Feb 2018 10:28:27 +0100 Subject: Re: WARNING in kvmalloc_node To: Michal Hocko , Matthew Wilcox Cc: syzbot , akpm@linux-foundation.org, dhowells@redhat.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mingo@kernel.org, rppt@linux.vnet.ibm.com, syzkaller-bugs@googlegroups.com, vbabka@suse.cz, viro@zeniv.linux.org.uk, Alexei Starovoitov , netdev@vger.kernel.org, brouer@redhat.com, jasowang@redhat.com References: <001a1144c4ca5dc9d6056520c7b7@google.com> <20180214025533.GA28811@bombadil.infradead.org> <20180214084308.GX3443@dhcp22.suse.cz> From: Daniel Borkmann Message-ID: Date: Wed, 14 Feb 2018 10:28:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180214084308.GX3443@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24313/Wed Feb 14 02:22:50 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ +Jason, +Jesper ] On 02/14/2018 09:43 AM, Michal Hocko wrote: > On Tue 13-02-18 18:55:33, Matthew Wilcox wrote: >> On Tue, Feb 13, 2018 at 03:59:01PM -0800, syzbot wrote: > [...] >>> kvmalloc include/linux/mm.h:541 [inline] >>> kvmalloc_array include/linux/mm.h:557 [inline] >>> __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:474 [inline] >>> ptr_ring_init include/linux/ptr_ring.h:492 [inline] >>> __cpu_map_entry_alloc kernel/bpf/cpumap.c:359 [inline] >>> cpu_map_update_elem+0x3c3/0x8e0 kernel/bpf/cpumap.c:490 >>> map_update_elem kernel/bpf/syscall.c:698 [inline] >> >> Blame the BPF people, not the MM people ;-) Heh, not really. ;-) > Yes. kvmalloc (the vmalloc part) doesn't support GFP_ATOMIC semantic. Agree, that doesn't work. Bug was added in commit 0bf7800f1799 ("ptr_ring: try vmalloc() when kmalloc() fails"). Jason, please take a look at fixing this, thanks!