From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25298C43334 for ; Fri, 1 Jul 2022 19:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbiGATsm (ORCPT ); Fri, 1 Jul 2022 15:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231557AbiGATsh (ORCPT ); Fri, 1 Jul 2022 15:48:37 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E342655C for ; Fri, 1 Jul 2022 12:48:36 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 56C6B222DE; Fri, 1 Jul 2022 19:48:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656704915; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7hzsDqB7U/VQlHCST9vjrRvUNjm2rEzvmKwxyMcxGYI=; b=sXjDu7l4Pda4mLrWEbMrWkzOOD+aMt8qdlxGWv3wYUBrP6mdbBVyUnIX50r5mj568YV5X4 sGy7jshoiGBaLbHY5prn2TAzrNncFHs7XWSlQ8RCrI9aFjq0bSPbk1NZFX+tqD2fUTVSZT NfLp9jOE0HoKmVehSjJrlWnNxYHV/Rs= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 772D113A20; Fri, 1 Jul 2022 19:48:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GoJLD5FPv2JTTgAAMHmgww (envelope-from ); Fri, 01 Jul 2022 19:48:33 +0000 From: Marcos Paulo de Souza To: live-patching@vger.kernel.org Cc: jpoimboe@redhat.com, mbenes@suse.cz, pmladek@suse.com, nstange@suse.de, Marcos Paulo de Souza Subject: [PATCH 0/4] livepatch: Add garbage collection for shadow variables Date: Fri, 1 Jul 2022 16:48:13 -0300 Message-Id: <20220701194817.24655-1-mpdesouza@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: live-patching@vger.kernel.org Hello reviewers, These patches were originally created by Petr. The patches 3 and 4 were originally one bigger patch but they are more easily reviewed split. The patches 1 and 2 are code improvements. Patch 3 adds a new struct called klp_shadow_type that combines the id, ctor and dtor of a shadow variable. This patch is needed by patch 4. Patch 4 adds the garbage collection. Thanks for reviewing! Marcos Paulo de Souza (2): livepatch/shadow: Introduce klp_shadow_type structure livepatch/shadow: Add garbage collection of shadow variables Petr Mladek (2): livepatch/shadow: Separate code to get or use pre-allocated shadow variable livepatch/shadow: Separate code removing all shadow variables for a given id include/linux/livepatch.h | 50 ++- kernel/livepatch/core.c | 39 +++ kernel/livepatch/core.h | 1 + kernel/livepatch/shadow.c | 296 +++++++++++++----- kernel/livepatch/transition.c | 4 +- lib/livepatch/test_klp_shadow_vars.c | 119 ++++--- samples/livepatch/livepatch-shadow-fix1.c | 24 +- samples/livepatch/livepatch-shadow-fix2.c | 34 +- .../selftests/livepatch/test-shadow-vars.sh | 2 +- 9 files changed, 415 insertions(+), 154 deletions(-) -- 2.35.3