Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3946414ima; Tue, 23 Oct 2018 14:02:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV63vuJhnqQZeXBNzXhEn+GVPlGY8TTcjqLoKEgo8vhgw5rHQDV9pQqqdKwIObTf6hDO1Krcp X-Received: by 2002:a63:e216:: with SMTP id q22-v6mr47779860pgh.206.1540328550348; Tue, 23 Oct 2018 14:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540328550; cv=none; d=google.com; s=arc-20160816; b=Oi9zlCscXiywJY4SnMGZjqzX3rz2DzCT8rJNWHdxWNq0ks19KTpirZPWKMXnKf4qT+ LfUVLMRUzYo/Gx4rr5J7pF55e5yeM+sDTdGRbd/pF0lYR4DZh6rvEn+oOGtuUQu+HAv8 R8kcXphApQztmjnPrugqTMiGfXyb/OxhaQPHBwz6PN5QRq7gMtEB8aFp1Oz+kXGeRzZP 14Q8c18ml62Jc+pvNV4RQZInCy7XH5nmBsEhMUcJwhVW4YJVM1XhBzr++f03MlvXcNNi LKxrAq0tgod1FDO3wd5FVfxFCEKdbEsUnVW9njbi8vbj9bpw56BSfbt5Enfvz4ES4oZV uaDw== 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:dkim-signature; bh=Ke1p4X3Jq4et1YZPg/4eLwVAeF2h6zjuDnHtKH2CZ6k=; b=hGl3Awu3P+UtDGcntHowuEkm8RvjxxqNUTVfomwGOY5fK0IrrRAU9MoCXyb+Otvp2x X0Duf6IiMQHb8nLjZ/Ju9/rEWHFc0vQWK5ccyNuolqKSvE8coZph+CvYJC37fFD+cdKW g8REuVLAM1CKBK2uWSgRQsEVwetpG8mdTxXTxP2HPSY/UDYD3DAwZbinbjN31pXpTLzh PRi0UARhvBUPE0R6E/V/GvPhhtBM6HVW+QcZL40GKBwx5X+qhdyRf9j5YG3a0XDOL6/v 3MwkMHP9rM9ySgPZW3LFQaBODg/WAxHHvh6VFiz6e2+2jpNvYs0ywfZaWKvKQzksGPKw 2xmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QBxEu7FP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65-v6si2250677pfa.92.2018.10.23.14.02.12; Tue, 23 Oct 2018 14:02:30 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=QBxEu7FP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728313AbeJXFP7 (ORCPT + 99 others); Wed, 24 Oct 2018 01:15:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:46546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725266AbeJXFP6 (ORCPT ); Wed, 24 Oct 2018 01:15:58 -0400 Received: from [192.168.1.87] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C6D2A2075D; Tue, 23 Oct 2018 20:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540327855; bh=KtPoq6UX031rFQqznA35SZlcDT6KzyNX0cH7NCI3SLI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=QBxEu7FPStbXcYXM+XqTmAP+0KT7OQ6ncNuafc4n44GZ+N82W8PFuyyzY5uXYoz8x mVxKNyjTnlUd8dKjOzGyzgyzG74CVW1qt5fse2lLE+bDWMarEnuduChR8I96L9G87J Ua75Z7ZmFnNWMlOzBkZYeHl58BK7EPHDeu8NX16w= Subject: Re: [RFC PATCH 0/2] improve vmalloc allocation To: Matthew Wilcox Cc: Joel Fernandes , Michal Hocko , Uladzislau Rezki , Kees Cook , Andrew Morton , linux-mm@kvack.org, LKML , Thomas Garnier , Oleksiy Avramchenko , Steven Rostedt , Joel Fernandes , Thomas Gleixner , Ingo Molnar , Tejun Heo , maco@android.com, Shuah Khan References: <20181019173538.590-1-urezki@gmail.com> <20181022125142.GD18839@dhcp22.suse.cz> <20181022165253.uphv3xzqivh44o3d@pc636> <20181023072306.GN18839@dhcp22.suse.cz> <20181023152640.GD20085@bombadil.infradead.org> <20181023170532.GW18839@dhcp22.suse.cz> <98842edb-d462-96b1-311f-27c6ebfc108a@kernel.org> <20181023193044.GA139403@joelaf.mtv.corp.google.com> <024af44a-77e1-1c61-c9b2-64ffbe4f7c49@kernel.org> <20181023200923.GB25444@bombadil.infradead.org> From: Shuah Khan Message-ID: Date: Tue, 23 Oct 2018 14:50:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181023200923.GB25444@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/23/2018 02:09 PM, Matthew Wilcox wrote: > On Tue, Oct 23, 2018 at 01:48:32PM -0600, Shuah Khan wrote: >> On 10/23/2018 01:30 PM, Joel Fernandes wrote: >>> On Tue, Oct 23, 2018 at 11:13:36AM -0600, Shuah Khan wrote: >>>> I like this proposal. I think we will open up lot of test opportunities with >>>> this approach. >>>> >>>> Maybe we can use this stress test as a pilot and see where it takes us. >>> >>> I am a bit worried that such an EXPORT_SYMBOL_KSELFTEST mechanism can be abused by >>> out-of-tree module writers to call internal functionality. >> >> That is valid concern to consider before we go forward with the proposal. >> >> We could wrap EXPORT_SYMBOL_KSELFTEST this in an existing debug option. This could >> be fine grained for each sub-system for its debug option. We do have a few of these >> now > > This all seems far more complicated than my proposed solution. > Not sure if it that complicated. But it is more involved. It dies have the advantage of fitting in with the rest of the debug/test type framework we already have. The option you proposed sounds simpler, however it sounds a bit adhoc to me. In any case I went looking for EXPORT_SYMBOL defines and found them in tools/include/asm/export.h tools/include/linux/export.h tools/virtio/linux/export.h selftests/powerpc/copyloops/asm/export.h selftests/powerpc/stringloops/asm/export.h thanks, -- Shuah