From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 6D2AD3A0B36 for ; Thu, 28 May 2026 17:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779990109; cv=none; b=slS3w26TY9wBZCsvN7e9jkzLQytnPxjuqDQR/gv6UWl4vrb0I/rAxfMm7hM6KHNlFsKiCNo3/Hhc2n72BXm9lEn+EncXYW5dOJBBDqaNsiqJFGW7hYH7lRlnJNMUWNNV38b7DTLPTXajH5Se0VuYMBx8syrH9DRykvme/88ADk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779990109; c=relaxed/simple; bh=IUQ7pcn/kwD5kmSsG7LBNLPxSTAvHPFBLQXfcGoHTDU=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=oA1cIM2YBcPDU9zayyStINfMRqbprrCJkDnAghUuI8CfO86QkixiKpH4HB3I4RRrnTbZ5TWDE3XgQtRaZwmiZpm9BlE6oXM6dDjdG4XudAnsLjJ/Px7Ue6Vqw2jl1lwLTdjzCyn72M8qM2npMd93bT4qclwOJQZ7DgSyVbsixsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=s7UQKZk7; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="s7UQKZk7" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-83cecc22d5fso6995583b3a.2 for ; Thu, 28 May 2026 10:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779990108; x=1780594908; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=2tns20Jc2qFQBaO3MIIRuCNGNOwNtzQn34pDKtjl1l8=; b=s7UQKZk7ayzrrhesbUgR2xwTXjRDI3kCmV+ksD+bmMndLDcTZuj+Pk2Cxmqsg1ZwR5 mF22D1DPjJ3xEbBntE8gh06C0Tdf0upMiH1g9cNcdpq7QgcjjSi6H1KbuAZr9gsrIgxI EZr8MnbpdwwcgUD6LjspXsrkyDPnVk2KlJmAnNXExDtwTwjVykRXfPkJXEw8AjM0al8g IPpJ15bZCSFKOA4L6rZnGHOX/5DVYw8MM252esWF+JlqyHFePHB4666WNE3vEaTeQQc2 wdcF1S5MU0xzphWPFR0M0r3R7BqVRuhBtmbyQS95PoihLAATUbI6o0MekipwGzcb0LGh 4gBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779990108; x=1780594908; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2tns20Jc2qFQBaO3MIIRuCNGNOwNtzQn34pDKtjl1l8=; b=HDWmWt3s7Lrfs6vu2kve7KVIfmYHkJa/uTF1o1Tes2v8AT7f93k+jcEKM5OmBM2rDx 3H3wuU+m5/NNFPQ1hpDx3z0B6UFIYmGKBEnwabbw9+qs7B4E03wbQt8GzZwBMyh+mGS/ jbKrbkxtd5GOQyrQKXNCyCkw4QpMGZh3rsTeQigY9DmKQEJ7Gd4mJEaaL2o+lKvI97hp PQdnB16aYUwD0wYtO0zw8RqdfVZq9e1OAtn5q69sIcgYgZsi/OAk4H1+1h58afEY3e6+ 9LoW6HEwKJTDl+ZxMP2Z2awM3a8xCz8vSoyYF642ccD5GBmPwgiE5pYC3y3IhpiA8Ruv 7zVQ== X-Forwarded-Encrypted: i=1; AFNElJ9NuIv4y0JsWNiwlfOY0l/1i8CUp00kXLotNTSkkyJJNNGAKVmmIdDsjN8UyzMiggkLIKHW6yGcuAPxPDs=@vger.kernel.org X-Gm-Message-State: AOJu0Ywf0hxoGp0KduwOY+KuLWzH0ToSS5PVFNFMrNOyXAT1Qplv/W24 9MRJ67SHQRedIekXt7hMd/L+TN/kXW8W6zcOofHP0Z6+KfRZKjnqEPam0hxp3DOBaFqqS36kpXy cEsS29nyvcAL01w== X-Received: from pfbmc49.prod.google.com ([2002:a05:6a00:76b1:b0:82f:a959:4a7f]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:1412:b0:81e:ef16:b288 with SMTP id d2e1a72fcca58-8415f37d836mr28903501b3a.22.1779990107456; Thu, 28 May 2026 10:41:47 -0700 (PDT) Date: Thu, 28 May 2026 17:41:38 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.823.g6e5bcc1fc9-goog Message-ID: <20260528174140.1921129-1-dmatlack@google.com> Subject: [PATCH 0/2] liveupdate: Small FLB fixes From: David Matlack To: kexec@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Mike Rapoport , Pasha Tatashin , Pratyush Yadav , David Matlack Content-Type: text/plain; charset="UTF-8" This series has 2 small fixes to how FLBs are managed. First is to increase the outgoing FLB refcount during liveupdate_flb_get_outgoing() so it cannot be freed while the caller is using it, and to align with the semantics of liveupdate_flb_get_incoming(). The second is to prevent FLB retrieve() from being called multiple times if the first attempt fails. Both of these changes are needed for the correctness of the PCI core support for Live Update: https://lore.kernel.org/linux-pci/20260522202410.3104264-1-dmatlack@google.com/ David Matlack (2): liveupdate: Reference count outgoing FLB data liveupdate: Remember FLB retrieve() status include/linux/liveupdate.h | 11 +++++++++-- kernel/liveupdate/luo_flb.c | 20 ++++++++++++++------ 2 files changed, 23 insertions(+), 8 deletions(-) base-commit: 5428435567cbe06c19914592fc22ca23c9ca1de5 -- 2.54.0.823.g6e5bcc1fc9-goog