Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3838641imm; Mon, 11 Jun 2018 02:39:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLi+4qhVbVPKA17dc16XA3+RABymLiph//5FidOY9QjTNXpkqhrxzQYNstj/dNF11WeeUhY X-Received: by 2002:a62:d6d2:: with SMTP id a79-v6mr16902458pfl.87.1528709946522; Mon, 11 Jun 2018 02:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528709946; cv=none; d=google.com; s=arc-20160816; b=Si8QZznDvbR1aJunmSAeBW3FTSA4YERTzMU/XtiYvNur8P544mJk79Um8UnhV3yJld 4CTZ1trthEY3d5T/oQgesjcMyhUdnwH9CgDhZ5y7LVgC2emY0XX2ECBdE73pzdiKyFWI MJyC/zbEXrKHGsuLlfpmqHTzVzZDmjsszWykke4z4zY72Fqpx2r45KZVKWxJZ9TYcZ7t FVPyr2w4iV4Y0RHtdqzfb/Z5tpoE0NbCBDJ8A33Rj/xqY2361a0mmEEGuTldD3XYgLsr IN5nL1h47exvYf4DLCu5kI4EsvCXe/vje41F40q9Dpf2T/J1VMqlcfsGMckwp0fPjgrU g95A== 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:dkim-signature:arc-authentication-results; bh=cCcvOQxjeDzQ2RbO9FqX01i21MoMMSrmUnitCWzsXuk=; b=l8T3MLK0Y16PpouBhyYYpJkUcMBkVkjAFkNJ2kkUjZeQpcn+IqfbwVPMJratNAUwHy XUcTqn81B8yX4QjlzhQ8gaR7Tl7yL/FGXyuPpza2JI/UAb70DoSHT26HrPwEq64NWbut Rd2BMp/N8Un0oCCxu3sm7+63aBLgVPPoog7mL3GLlrRMthbZQ1R6jtquoRTVYj5R+d5g tWp7+zqDENLFuZR9yE3Pd7rljmwSIlmfZ4ga8D6/nKxQez+qTDot9n34hxqNpif/WpIh aBH+sPto/huiu7OXY4eSISz3AaXow1VGRkE4V2htusz0OQAe4PNsEfzbrPtKA5i5YXF8 oL5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IOm4FCAu; 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 ba5-v6si25613832plb.184.2018.06.11.02.38.51; Mon, 11 Jun 2018 02:39:06 -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=IOm4FCAu; 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 S932712AbeFKJi1 (ORCPT + 99 others); Mon, 11 Jun 2018 05:38:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:42890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932109AbeFKJiZ (ORCPT ); Mon, 11 Jun 2018 05:38:25 -0400 Received: from d217.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 57A9D20869; Mon, 11 Jun 2018 09:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528709903; bh=cSB54k+MC0zORITfszz7vi26YdHoyioCwd2+HOtf+aQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IOm4FCAuLwgfmQ8x78AKWKoqbNXXEq9QKfRP+PkpZlBfmJbL1tmwgCuq6p8p8eQ34 vDjOR+AxC7+4IezAt9eTS0wnwHP40nvIxbm+mAAL98MOKhhqvH9kNJGe6A/pdVXU0N gBQv83y4eehPqAtUbnEKgW1NfaHSd+rbNrmUbIpw= Date: Mon, 11 Jun 2018 11:38:20 +0200 From: Jessica Yu To: Miroslav Benes Cc: jikos@kernel.org, jpoimboe@redhat.com, pmladek@suse.com, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] module: Remove superfluous call to klp_module_going() Message-ID: <20180611093820.aatem2zkqg7yu67g@d217.suse.de> References: <20180607092949.1706-1-mbenes@suse.cz> <20180607092949.1706-4-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180607092949.1706-4-mbenes@suse.cz> X-OS: Linux d217 4.12.14-lp150.10-default x86_64 User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Miroslav Benes [07/06/18 11:29 +0200]: >Now that patched modules cannot suddenly disappear we could >theoretically remove klp_module_going() altogether. Unfortunately we >cannot do that in practice. Loading of a patched module may fail and we >need to execute right the actions implemented in klp_module_going(). > >Remove the call from delete_module syscall though, because that one is >really superfluous. > >Signed-off-by: Miroslav Benes Acked-by: Jessica Yu >--- > kernel/module.c | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/kernel/module.c b/kernel/module.c >index a6e43a5806a1..af29a0d3708f 100644 >--- a/kernel/module.c >+++ b/kernel/module.c >@@ -1019,7 +1019,6 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user, > mod->exit(); > blocking_notifier_call_chain(&module_notify_list, > MODULE_STATE_GOING, mod); >- klp_module_going(mod); > ftrace_release_mod(mod); > > async_synchronize_full(); >-- >2.17.0 >