Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2648898ybh; Fri, 24 Jul 2020 19:50:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKWmi9K7r0Bavnf9kmY7DzRe5rx7GTvlJ/WbI4VMD/AEPcLqqG7N/T2cigNp5Oa/oifXpb X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr1779235ejj.103.1595645415547; Fri, 24 Jul 2020 19:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595645415; cv=none; d=google.com; s=arc-20160816; b=sLu+3mz5FzHEXampcQ7CjluOzjoarQgxuOhP9s8uxAEz5gV0o+7Y8k4+MG+u8V9aLW hUq1kLFvqRpb9gsuGhbA6HLJPUTBPp2tLOpMIxNSRoBnHHhN9kNkhL5z1zwun7MD1iXP wad6euF+cj+IPInopBvOwnCXK3YxHjy1uDEjvm7q2fro2/YBVPf8uZIUxnlA6YuVQJd5 Nzvcn/hGjWs1kcnWlcxV3pH/A3YeGFLCzwKCu9uhIZh+qhWYpAjxScuCzA6+Z8K/v+dq ouzdt1hkXD+VkSgrmMciYWBQnrjWHlwt4mbgodoT+b9IkWJWu6MC0c7siI2bcHzQyDYM 1flg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=LCCHHV3QsG/UhnbKYrLRjsooTbPggGk8rllNP0y0gxg=; b=Ph8iBepqK0zuaoctEmhWulN/iJMepeG+4AOpTRgn+y7T6AJZQY+Y2uaXQLneqoumTj 0nlvgjLWq6a0CGOq19GyBehPnNsvNtT3MeiQEKPcp8Ejrv1CF+3UgMDgoUO+/gz6yKxR LSaY3Sa07YZ42h/oRaimx+G4wZaNJEauc2be8IssnirfBve2uaiQlUXZwAq8Pz2Xnsq4 6oGRx5lu4JxWZFfcp+pEIoI2yT94EP6iz8HEaA5SoLyQoBpsGm0wTJENVtNy/RWh7CL1 o/NMZt8D1DuSaiT0B2cyBmBmiS+Dif4HwDbMJBiVAvzUT6DdWkWrcsgQulQeRGq4H/ML Osww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si1842610eji.327.2020.07.24.19.49.52; Fri, 24 Jul 2020 19:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726726AbgGYCsl (ORCPT + 99 others); Fri, 24 Jul 2020 22:48:41 -0400 Received: from mga17.intel.com ([192.55.52.151]:47558 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbgGYCsl (ORCPT ); Fri, 24 Jul 2020 22:48:41 -0400 IronPort-SDR: LnndAmwUL2clo5PDm++AsNGuOzliVquDR/YAwgWqN9dKP9Im5E31lxSurzVvTgnbQyrlsR11xo 6I0Ln1zXTawQ== X-IronPort-AV: E=McAfee;i="6000,8403,9692"; a="130885133" X-IronPort-AV: E=Sophos;i="5.75,392,1589266800"; d="scan'208";a="130885133" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2020 19:48:41 -0700 IronPort-SDR: fzqS3eLZLAAO3Tug8va7oJq1zLXSeJ8KCeB1kRH1CBPIHN4j/QCtgtzobUGR5h7sifonFMs3XN sgIH0Tmhnl5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,392,1589266800"; d="scan'208";a="329100321" Received: from jcrametz-mobl.ger.corp.intel.com (HELO localhost) ([10.252.58.73]) by orsmga007.jf.intel.com with ESMTP; 24 Jul 2020 19:48:36 -0700 Date: Sat, 25 Jul 2020 05:48:34 +0300 From: Jarkko Sakkinen To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andi Kleen , Peter Zijlstra , Jessica Yu , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Steven Rostedt , Ingo Molnar Subject: Re: [PATCH v5 1/6] kprobes: Remove dependency to the module_mutex Message-ID: <20200725024834.GE17052@linux.intel.com> References: <20200724050553.1724168-1-jarkko.sakkinen@linux.intel.com> <20200724050553.1724168-2-jarkko.sakkinen@linux.intel.com> <20200724234631.40f4ffec6adae57ac3df8ea3@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724234631.40f4ffec6adae57ac3df8ea3@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 11:46:31PM +0900, Masami Hiramatsu wrote: > On Fri, 24 Jul 2020 08:05:48 +0300 > Jarkko Sakkinen wrote: > > > Add lock_modules() and unlock_modules() wrappers for acquiring module_mutex > > in order to remove the compile time dependency to it. > > This subject is a bit confusing. This is just wrapping modules_mutex in > kpprobes. We still have compile time dependency, e.g. module_state, right? Yes. This more like a preliminary change to make that happen. The actual flagging is in 6/6 ("Remove CONFIG_MODULE dependency"). Maybe a better angle would be to make this update all sites that deal with module_mutex [*] and base the whole rationale on that? [*] https://lore.kernel.org/lkml/20200725024227.GD17052@linux.intel.com/ /Jarkko