From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BACD4483A1 for ; Fri, 28 Aug 2026 12:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787921588; cv=none; b=lp9BPMiv+QHIINxA0U7V6mcjXHCYMIDV03rztpvxV8e+80JB2f3AyilxvhaQY9H/vHNFZ5LpXTwZFUQciNz0yVkAkcVTxGBhVX9xky8VdFJEd3dI4ywG7XBUZmsG4AmkYLOXcMyJfFH040PMWPdeFvOgEVmQ5y4Y9XZIuhpaXUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787921588; c=relaxed/simple; bh=sX8+PgNmVuz6gz4zkSBUo3MDj/DrFGBj4JWJHqs22sk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Qhxm1tvr4Vp0eJ8D5ud5mUaTHxOizIQjcAOM50yCcK65R17K1zvzXvTPr1DFicWbHcJtcPRTPqX0yppduB4IquORRjd8VOFx0DA0HHM+yJITC6nKwMWThWCbRlJOKwv6ddzq84xAPrtqbsarjCbDAOTpPeGG5JVkcX7tb6VtBag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Jp48fLkV; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Jp48fLkV" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-47fde295992so734606f8f.0 for ; Fri, 28 Aug 2026 05:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1787921583; x=1788526383; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=To9XkYtlLGviSaSKQOufK24S4NixdMY1ShlY2DU3Z2A=; b=Jp48fLkV8PkUGPBQfApahTjNnelmusf/znK88NSQkWrWQ66Abem/T/0GGL1b+bmfmG N3XzZ+ysqlQxMVNOCXbUngkTtVYOdiMYV4kl7PrAUJttl/fMYE3rik5kma6KzfLkxHvX bszuk88be/gKurXpfr7ybDHTSP5ftdCVVi3rCsp76f7rhIyNkV4B5LPCaASBj46ALYf0 h/DD9b6FJORyXWjOhX9+CbqIhohGlD36ZrCAl629q9RV7eeI1neIsvJfq2K6NXFqRQpV B4phikIJR8hpM+fNq42oWHC1e2+v6c+z2sBeooShjtYENQg3ItYCXz93M+hVpEcyjZy1 Kecg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787921583; x=1788526383; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=To9XkYtlLGviSaSKQOufK24S4NixdMY1ShlY2DU3Z2A=; b=eLRuSPlraCDjBK3vjrIOHZXSmICbhgBOJhjYEJD+p/lCKm8m6GtT/ZWgi7vkPrHOfS 6cVm57D+RPzuw+pI1/q0CVObLxtR6VhUpgIk5N01iwOxnJbk3FrCIwNdOA1b0yTS7RXH jRe8rwxPLJMRrnbjpmXJv7IfPlylCvrIFWhzF5QwcbUI9TzsUApu007wCbhhW7HOFjpQ 3dnGIJq1aYwWO4pHHEv96p8PXXKyaogWtXYl5O7CriwBEQ7dbgcksCrsuVgPLPWlY48j S/QPaocH8dBj7AWMloTeMYrM50HHeNR2ymrHdsrJlsRCPJ9ishBd+o/j0iDuMvPiR9OG I4sg== X-Forwarded-Encrypted: i=1; AHgh+RqKoH5PgkUlHNC12YIlkf/64bCOv6glGhK0mTdvEUUBkCZvXq0U86TKRnx21G7ZQ/szA7lpyc0ZO9+V1AI=@vger.kernel.org X-Gm-Message-State: AFuF++k8KXMGO1Zn8yWtyaXzRGmmHkY39pIxLr4dNJFmHqO8F+8UiLb+ cJPZztnB8C6SQMPWLZM/gtlBqwwv8HC54u6v7b/ccLS9g3Pvpo/YGADoIWRBHqWn82VZGetrb4Q qeOZQ4PA= X-Gm-Gg: AR+sD11leWIBVQkHASX2/kcrxOUz/1LoZPkxvy/A1XHYSTD5BfNIOtebt6FTVCM3Ysj L7kncN8MVq0k2p14cHrumcT0P30XANIJ9Sw4eb/FcTgdD5/3Sxv5lfnt1jQeHmVLxNxQWN2hkvp qEsKLa93i/UsQwvOG7aWcrewsLacIMEPjnw/5UZeB+6VA2dueJDIYJRMmPRbfFpCxZlgLiAwiNi ei3shibKEj+iJiXdTFbw2sUvQlnS7yVzP00SRIHr+Gl/ozJKQrowxwG5Y3gdx7rh9+IrQMzQhvL zlqhvjlARm/IdfboTUh1qkJgVQcBjzLSMvCsX3PbL/WHH40fD6KX0aSbKvn0GZUfe7ZvGkDap/N loM/nElnDnr2HUuK9oOiHNeGmqPpmTIVGPJ0E2vSy1pL9iiVjq6BiSgoszvxiQQ5e8mqm+3x6ae DB3wH44CyD0GtCfT6LVLTL8TWObIaTjeFNmewqdomxMlgmgCjPbmyVtWu/I+c0pw== X-Received: by 2002:a05:6000:268a:b0:475:da0e:744d with SMTP id ffacd0b85a97d-482f75bb6b8mr10103544f8f.8.1787921582923; Fri, 28 Aug 2026 05:53:02 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482fbb278f7sm4469487f8f.26.2026.08.28.05.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2026 05:53:02 -0700 (PDT) From: Petr Mladek To: Harry Hsu , jpoimboe@kernel.org, mbenes@suse.cz, joe.lawrence@redhat.com Cc: jikos@kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 0/2] livepatch: Clear relocations when klp_init_object_loaded() fails Date: Fri, 28 Aug 2026 14:52:42 +0200 Message-ID: <20260828125244.509977-1-pmladek@suse.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, this patchset fixes an older problem found by Sashiko AI, see https://lore.kernel.org/r/20260823062313.1321B1F000E9@smtp.kernel.org The first patch just shuffles the existing code. The second patch is the real fix. The patchset is made on top of the patch where Sashiko found this older problem, see https://lore.kernel.org/all/20260823060734.58443-1-x90613@gmail.com/ It might make sense to handle them together in a single patchset because they touch the same code and conflict. It seems that we will need v3 for the original patch. Harry, could you please send it together with these additional fixes? [*] [*] I am not sure if you did this before. It is easy. You create the patchset as usual and send it. git will do the trick and keep me as the author of the two additional patches. Alternatively, I could send this separately and solve the conflicts when merging. They are simple after all. I just must not forget to replace the new "return err" with "goto err" ;-) Petr Mladek (2): livepatch: Move code for updating livepatch object relocations livepatch: Clean up klp_init_object_loaded() when fails kernel/livepatch/core.c | 102 ++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 46 deletions(-) -- 2.55.0