Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3735986ima; Tue, 23 Oct 2018 10:23:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV602l7uKwtdvenFyRFl0we9+Ui+/u9btQXZfWLzjxUVsLTQ2KLch+CtUBZkihe1H3d15uxWN X-Received: by 2002:a63:d34f:: with SMTP id u15-v6mr47619805pgi.325.1540315438945; Tue, 23 Oct 2018 10:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540315438; cv=none; d=google.com; s=arc-20160816; b=b3gHlK9YcE8mFy8X1RWdG1sfBfWmn2CE4JVSUz5+H/m1ASXhMmDVL7EA4IlJd0d6vs lY4MP8sDcU7qVbO/bT4RCKQTZrX7hGwcOKVUBraaEkrCwUCFOmef2nJBheyAYcglP0Lf 2LA37y2/UuQl1a3cdqT0aKPBAy2HvO27F3k1GOmFGqUBhBTXmyNUspKQWUBPJlUUKYQP A+AfN+/9xZvDfP6xPTW7mRKewB3UoXj0FBtKEZkpLXdjgtLi3HQAToiHqP7MhKjkLaVL BfAhLQFCAk7p9I4aSHelIW2i3DhgiDCNVSpN0B/vGFv7No+xrEcCDOZt7lU0p0Up8++6 sxAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rMG7fxejKT397/pI1AFjxjYy7KHoEwh0oebSlAPiCvc=; b=E9zhVb+4geg70JaC2xYXL8qxG3HWunKPayS+hfuMC3sc8EPw4wKN5Y48FFyXD6zYS6 kDapnACVxvP3y9Ym8pneRiy+KLxcfV4kuFYUyvsTSuHlUA9+KpNRSt0v6Kc3tQck8oCi MfGq72ltU3yDyRJqSgHWbacvhMHeCw45LQKyEfUnONKt8kA+x07064VOMSo0I+pmIMxt uRstUja3G87QB2j082rW6d6ISjld78MQgN9N+gliynxmR4FAoeOiGxYIlKU7yTS1NM0/ MrOMRmjXYxKWkEIg8CwiVjF+p1gOU1FSevd6VgvPo5Nnmg63Z75SU9eAwx0h4zEgBLwY 8Wng== 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; dmarc=fail (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 35-v6si1697696pla.290.2018.10.23.10.23.40; Tue, 23 Oct 2018 10:23:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728518AbeJXB3t (ORCPT + 99 others); Tue, 23 Oct 2018 21:29:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:45286 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728034AbeJXB3s (ORCPT ); Tue, 23 Oct 2018 21:29:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8221AAF7D; Tue, 23 Oct 2018 17:05:33 +0000 (UTC) Date: Tue, 23 Oct 2018 19:05:32 +0200 From: Michal Hocko To: Matthew Wilcox Cc: Shuah Khan , 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 Subject: Re: [RFC PATCH 0/2] improve vmalloc allocation Message-ID: <20181023170532.GW18839@dhcp22.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181023152640.GD20085@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 23-10-18 08:26:40, Matthew Wilcox wrote: > On Tue, Oct 23, 2018 at 09:02:56AM -0600, Shuah Khan wrote: [...] > > The way it can be handled is by adding a test module under lib. test_kmod, > > test_sysctl, test_user_copy etc. > > The problem is that said module can only invoke functions which are > exported using EXPORT_SYMBOL. And there's a cost to exporting them, > which I don't think we're willing to pay, purely to get test coverage. Yes, I think we do not want to export internal functionality which might be still interesting for the testing coverage. Maybe we want something like EXPORT_SYMBOL_KSELFTEST which would allow to link within the kselftest machinery but it wouldn't allow the same for general modules and will not give any API promisses. I wouldn't be surprised if we found some cases of EXPORT_SYMBOL* just to make a symbol available for testing which would be unfortunate. -- Michal Hocko SUSE Labs