Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1975055imm; Thu, 7 Jun 2018 03:27:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIE5SmiRV//nMIe7Fw3WeFReen8F+D/bpHIoazSxwZrnetOLjT9qDR7/Xlh4s1/ZLls0pdy X-Received: by 2002:a63:6b84:: with SMTP id g126-v6mr1074646pgc.272.1528367279757; Thu, 07 Jun 2018 03:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528367279; cv=none; d=google.com; s=arc-20160816; b=tBIqp9kXcpsL4RjdGSjOK5KzXOFCTxi3osNoRj6B9fHqF6f/33bjoXQV4uvemNTGTw AO0OvJcesRzyLtEereDcktPinvfBu0/bZYeHxENZOu0j76VTFteGZIbpM3Y4dECdNmJb CCoGJIWRUZRd8F37SdU9JF37fG2lHjzRZHkN/wzMYgMg+6Qhuc3QZnBqfopOp4PcqkIh uXA/LxHHgAVt+3jTYbYhSgOPqpeINwYg6mjk+m3xlXheXYNhIZldxsjCMSuecuE6ZYys ZtBS68gDdEVqStjhGD9KnlqXIihc4YscVcRFHgN/dO/vnXFxF5HsfnM6/hGJ8SdE3lTQ AiuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Ui3yR4DDfHHljK4h99WU1jOtHTgFCzAmeJrwpszRflo=; b=DylJa90x93G1VtgSDp8OElgCExXgmaFJjXTYPbCPnH9DHwpR+JghIx6eaDXZywQ8jB etuDhJLSt/UXeATJf82D1BhIv0KZW69Hypj0VQAnW5KVgNg8D99MKtr5SXcWmQytl1xD g7snBEu5bbhSwdxAqkiNOA4ROX7GM6lD6gVnj9/H/XQoEXk/HhAV4Aj802VERJU9a2Gv xOQd67yVgXLQZ5zX+meczgqjerr7xSAzriyTmSMjIjyj2JG4N8Tj2xh0w7p+gsuYQNX0 SoKbTSGYsfQjl+sW6hOq/wxHzrSfSQNSF1Rb67bHJqSjD7K+CtCEp9aDecmMZLZOYEqB H20w== 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 x70-v6si15429838pfj.347.2018.06.07.03.27.45; Thu, 07 Jun 2018 03:27:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753468AbeFGJaR (ORCPT + 99 others); Thu, 7 Jun 2018 05:30:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:54621 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753004AbeFGJ3y (ORCPT ); Thu, 7 Jun 2018 05:29:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id AFCCBAF03; Thu, 7 Jun 2018 09:29:52 +0000 (UTC) From: Miroslav Benes To: jikos@kernel.org, jpoimboe@redhat.com, jeyu@kernel.org Cc: pmladek@suse.com, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes Subject: [PATCH 3/3] module: Remove superfluous call to klp_module_going() Date: Thu, 7 Jun 2018 11:29:49 +0200 Message-Id: <20180607092949.1706-4-mbenes@suse.cz> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180607092949.1706-1-mbenes@suse.cz> References: <20180607092949.1706-1-mbenes@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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