From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 E6F7628CF77 for ; Thu, 23 Apr 2026 23:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776988138; cv=none; b=LVWz7T7nEYWQON/wIdBv3Vl54EVNBQafQ+HKM4NIQHcb20glZELa8wvdq4KrK+goEwrYz4HzHlT3ONIAP8rCdB3BUGHFa+pqcbs6ggux1QdxIga/JomZgc/llFW15h+CkdIVIxETWk2U0/SW0C7/nDMwX/c5GH4q3d1A+V46ttc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776988138; c=relaxed/simple; bh=tyw9cuqhjt8ha5UKGmNAUUyLN93l7GBSe2UBxOaHqEc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hl5VL8RRZBwcOVyD5FBfQLnkKB9Xa+ZPta9BzrT4zvZcvGsqAmljC+fH/OAezhTUw4errGLDET2NSMn1lYNy22+MxKhRXD1ZICDNnpdbIluZxY8QiGUcVkfjZwk1R9sAKL1rzV3oMQt3ezmT/ERoLl6A0Cwj3Jf5su57KEin4j4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=rflUfTTt; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rflUfTTt" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso78681665e9.2 for ; Thu, 23 Apr 2026 16:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776988135; x=1777592935; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Lki0JX5m/qaGqm5DoBE8zLiop+9ooQpoPeZ7HcosWXk=; b=rflUfTTtlhBbilqVyC1z8j7zKELP1kdpvGMQROhNFB6IjHcVtMHfJMcfVfSiQOPP++ zpGe4HXi2GlT1thhA+HMXq8P4reI3INVUM968sHPy3lXFxe51qG5uNMiMGI3hFPQ3RFX kZa3L+dvdtrTJXDdajdq8CtTzaKJH8CLIaUNZs8qJyQX6WoTLY3VGlevD+1z1ApsdoO5 E+UC9T45Rlr2s7UHH6P3PGF9PrWAb85xb49f400qQEb6qJTRBYQXphR9cIdHUqqWFhjn 0cQqMuPSzBZZYd1kNCo34n9+Ea+o1gJK7keaTrnKKSaSAtHEwmJn1EzUcf1PHM6qIOb3 Um2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776988135; x=1777592935; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Lki0JX5m/qaGqm5DoBE8zLiop+9ooQpoPeZ7HcosWXk=; b=TTw1VfD061BroS1drOg8flHkAvaSdTRtIutFn41Rx8Gy1K3zY5uYep7boDumPebr9V DjrrQJTRLcKUPocbJNgVScZRtXHMxRVoTCgszo34ZJuBiKySjkd8WvxEa3lAcEa2Q1As 7Qjwh1XsJYmjl74RaFJWUe6Iyf7UaaNo14ZQUXcgoyRZTEQAFXzo1OT08cJJQ5XRiUYV eswIa4H/f5T+KL7zA73/MS14FWdB1kBfhtAXALskbLTUIsF5SU/esHV3kufpzIlAqXbH HLRBAFfn71zdzDF7x1PGm+0QQH6dXoDOtrhgA6YYPG7AO+WzPtMdE1Yva2BsZ63DwVg0 yZfw== X-Forwarded-Encrypted: i=1; AFNElJ8ysNyh40bptEw5wJjmtSkcGhxhm8I4kIs8ry78y1jQQSZsK0Xs37Ww4fQYgV9mnogn3Xe+vlV0kWw23eA=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8yykOb+GX8PycNFJt03F0vCKQASD1UQkELtrTYo/PJLMIMd1K u4Qg/wbfk3KAYNFClY3nElHtJ/pfTzhaJSu2iiHmvBIE4ONc06m8PIO58p7Rbw== X-Gm-Gg: AeBDiesjx4Ta/FcvKiLXRHQDQBKzR2pJVxtjTLisgTTXGfWCCo/lLZJgRcQ8YBO6mDq l3oM+iXyN3mlQ6x5G7NE7fIubz7Xq33a6LeBTI0fDec7dO/VrTBEYJcP/QkvsFRNBYpZKxlmpbM wGzsFhvQPxHVeTNOtsWK+PK5QpA2bRN81pKl3qTj8fA6+Ib4l00ANqJptJJpSAPcpL2rqqVvzuY gZB/1ADNFetgFchUxcPs0XQ3mL1a9V1LA5TjppbntDxjggY3BQPlUbjmA/rwyIYs7/4DLUDY26t mEYBQHGuCTudtsHKZ0M9C9fXPdFGp+1pUoRfjAZ0VV/BeU6YdnutWSxnHLT3NA9qpSiQmldEfyq nVxVZ7eP80RJEH9MY87i/p/ECxiaFl1QkfAZzIo8CbEgd1PvwoP+9G21cu642QPHRYWR7ibFpcs 9rAqqFdBz4XSDnR83Qm/ugExPzrx3sy1T+F7kDusw= X-Received: by 2002:a05:600c:4e4c:b0:48a:58ae:9938 with SMTP id 5b1f17b1804b1-48a58ae9f69mr190862345e9.19.1776988135082; Thu, 23 Apr 2026 16:48:55 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:e8d7:434e:1f34:2cb6]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48a5c4b9e8dsm40476485e9.7.2026.04.23.16.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 16:48:53 -0700 (PDT) From: luca.boccassi@gmail.com To: kexec@lists.infradead.org Cc: linux-mm@kvack.org, rppt@kernel.org, pasha.tatashin@soleen.com, pratyush@kernel.org, linux-kernel@vger.kernel.org, Luca Boccassi Subject: [PATCH v10 0/4] liveupdate: bug fix for session name and new ioctl to read it Date: Fri, 24 Apr 2026 00:44:19 +0100 Message-ID: <20260423234753.3873095-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Luca Boccassi A series of patches matured while implementing LUO support in userspace in systemd. - reject session names that are either empty strings or too long - add new ioctl to retrieve session name from FD, so that userspace can query it without string parsing in procfs Both changes come with a follow-up patch add test coverage via the existing selftest. v2: apply one fix from bot review about cleanup on error path: https://sashiko.dev/#/patchset/20260415184536.1155220-1-luca.boccassi%40gmail.com the other comments are invalid: luo is not a kmod, and the write hooks are not set up v3: add test case to liveupdate selftest v4: split test case in separate follow-up patch v5: add r-b tag, merge series with LIVEUPDATE_SESSION_GET_NAME ioctl as they both change the same unit test source file, to avoid merge conflicts add '__u32 reserved' to the UAPI struct v6: add more test cases as suggested more verbose commit message fix docstring v7: apply suggestion from review bot to stub out setattr ops, like it was done in 22bdf3d6581a v8: add new patches to reject session names that are empty or too long v9: fixes following review comments on LUO_SESSION_MAGIC v10: split out LUO_SESSION_MAGIC patch as it is undergoing more discussions, and the other two patches are independent aside from adding test cases to the same unit test source file Luca Boccassi (4): liveupdate: reject LIVEUPDATE_IOCTL_CREATE_SESSION with invalid name length selftests/liveupdate: add test cases for LIVEUPDATE_IOCTL_CREATE_SESSION calls with invalid length liveupdate: add LIVEUPDATE_SESSION_GET_NAME ioctl selftests/liveupdate: add test cases for LIVEUPDATE_SESSION_GET_NAME include/uapi/linux/liveupdate.h | 21 ++++ kernel/liveupdate/luo_session.c | 17 +++ .../testing/selftests/liveupdate/liveupdate.c | 113 ++++++++++++++++++ 3 files changed, 151 insertions(+) -- 2.47.3