Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8245008ybn; Tue, 1 Oct 2019 05:32:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0ZBQP25D3xpHJelAV0J/nzT/gGzLpu40ZjCqZxeGBKvA1OQK+12qwsku6RyztlOtf9Ncl X-Received: by 2002:a17:906:5847:: with SMTP id h7mr24003911ejs.218.1569933139822; Tue, 01 Oct 2019 05:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569933139; cv=none; d=google.com; s=arc-20160816; b=iQZgDJwKjO3AFs0q5wPMe5GAVJlSKBLMAaswaaJq5uG+JJ2Q40sgFISL2juA4Vd1q9 yqSmc3JpYxS0A1SGZVUcYbjeyXkA5tLfIrk5WIJCkoBX9E/eWsWebLrhU06T/AIxpnir eCiHl21g3o7gm3zRIqIIEO8GhbxtO7ONRWXJN2T9naRV8wHdgJB7jscMDV8l5H8PbqQy 7LqlIgKwbCqoINtdT/b5eoH20gIVZCVzqZtOgEvrroffoJ3PwWWirfhNYhjfNJCg2S2i PsQCo7kPKXlw4athMTISP1cC1R5Xe62w22rSCIVHO17zxZCe287UYFGBQQ+e7LVtph3+ HGVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=7zY2E4NrEZKPoEFZpjh5DM+TJHMbKrErhfUKxXbasUg=; b=hiKC9rmfWALfeiSFPMCSxHd30iwBz5uncw9v5hbbhFSXEtwZIvXZ5+5f82KkI1QJ5L gxt3f7oT2wR1fFAbTgiRhzhkpjOM13y9ekGRXvXoQvTm6oYciT1wcM96Rr0fWJn3uThs G0UcP58IgbODyxjpjI5Nfg3T1jXICQ4kzovZ/6fB8DckSgAiqXDyMXBRUA0igTi0R6TT yV28mHc1Z9r7HfpJNcAjoX9m5aG+WXuS87hBMarheVyuaf6h3d+p8QDiR5zDOMNlnUS4 8utNyoZXlupLjEYYkvgM+k+hpUtLUBN7bZcqnxDwVtjOds2P25ttmOeWSgpIPfVSX/Bm uSCw== 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 e1si8608513ejf.28.2019.10.01.05.31.54; Tue, 01 Oct 2019 05:32:19 -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 S1726550AbfJAMbK (ORCPT + 99 others); Tue, 1 Oct 2019 08:31:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:52346 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726137AbfJAMbK (ORCPT ); Tue, 1 Oct 2019 08:31:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 96CE5AD95; Tue, 1 Oct 2019 12:31:08 +0000 (UTC) Date: Tue, 1 Oct 2019 14:30:44 +0200 (CEST) From: Miroslav Benes To: jikos@kernel.org, jpoimboe@redhat.com, pmladek@suse.com cc: joe.lawrence@redhat.com, nstange@suse.de, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 0/3] livepatch: Clear relocation targets on a module removal In-Reply-To: <20190905124514.8944-1-mbenes@suse.cz> Message-ID: References: <20190905124514.8944-1-mbenes@suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Sep 2019, Miroslav Benes wrote: > Updated version with Petr's feedback. It looks a bit different and > better now (I would say). Not that it should be considered before we > decide what to do with late module patching, but I finished it before > the discussion started and someone could be interested. > > v1: http://lore.kernel.org/r/20190719122840.15353-1-mbenes@suse.cz > > Tested on x86_64, ppc64le and s390x. Cross-compiled on arm64 to verify > that nothing is broken. > > [1] 20180602161151.apuhs2dygsexmcg2@treble > [2] 1561019068-132672-1-git-send-email-cj.chengjian@huawei.com > [3] 20180607092949.1706-1-mbenes@suse.cz > > Miroslav Benes (3): > livepatch: Clear relocation targets on a module removal > livepatch: Unify functions for writing and clearing object relocations > livepatch: Clean up klp_update_object_relocations() return paths > > arch/powerpc/kernel/module_64.c | 45 +++++++++++++++++++++++++ > arch/s390/kernel/module.c | 8 +++++ > arch/x86/kernel/module.c | 43 ++++++++++++++++++++++++ > include/linux/moduleloader.h | 7 ++++ > kernel/livepatch/core.c | 58 ++++++++++++++++++++++++--------- > 5 files changed, 146 insertions(+), 15 deletions(-) Ping. If I remember correctly, we decided to have this as a temporary solution before better late module patching is implemented. Feedback is welcome. I'll then resend with arch maintainters CCed. Thanks Miroslav