From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (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 DE2C2329C57 for ; Tue, 16 Jun 2026 13:23:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781616237; cv=none; b=e9d5mk7fihQSp63jH1uPboMGl3edfae68TTDeDlUypuitcPVh6v/pAUm1j0xS687zr7vwOt2/7m3JFN2v/0zPnhXioyOaCDeEFdHkCWbmAkBzdHfiTOi1dOL6U3HX3/vk/yv5kKhNsk9V+h93H9IQNEQLqtoD5D2lVFMnjz93Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781616237; c=relaxed/simple; bh=2gf1rakxm+qVcdzbG6HO7kd2hTS7GwuLLZHgtuUwu14=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=aXwpapqM7/xRA6h0k6Z/retvJC0cgJ26tdsuNoCpQVJFQ6J48ZUAX85/E1+aNgjHjpD6qWUhhxSlleYM5FuCH7nr9+Nm7o5KvvGqN3Att7SxzTjuQZLE+sQ0m1UpLq6JahZlq5zeHdBg7G5kTqPuSPNNo7SLAlELWiDVOSm2B7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tarunsahu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Mq8IIe3f; arc=none smtp.client-ip=209.85.221.73 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--tarunsahu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Mq8IIe3f" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-45eec2badc4so2566101f8f.2 for ; Tue, 16 Jun 2026 06:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781616234; x=1782221034; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=bZH1+Yyqz6xQZNsOX4wfP6dQl35j3VE/PV0SUnY68BY=; b=Mq8IIe3f87lcM5JZynGZO5V7efsPu/UCBRcxlpjSLPn5KSsg9wR+ERsFRQ2Oh392re Xdl1/hM4mqFpgxHfLmilGA+xJZPP7O+xvJUEhu+Wgt5KKxGUWp0QeJ1lEjS2GjK+BTfe 3TKdRg9PtR6sAP9KFOU/RZuTDWCNe8GVQbcse2U78+FWFeCaTfYwbKP0ay5KRBtPvFeE uzWMyJtlFowPH03l7Txjr0eJkSzQsW/dZ4cmHYXUH0H+QECJ65scQBO/skBcObvzaNPp nZmSPMX5ePQiBKQ36qyMs/bLDt4QPm5/wzNqM7ARgY77a520wgD85J+NWMCdPF9wuRfE XWpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781616234; x=1782221034; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bZH1+Yyqz6xQZNsOX4wfP6dQl35j3VE/PV0SUnY68BY=; b=P2B3kBDzOBOWVFUYrtL+UXREv3AURhipwPHlFZLp5NKSTrcZOcluFxnoHGX7FAIKI1 TF8yS4YT/k2KTfu2sGErYevanYqA44YyKlioW6oDLDh6dD89UIYIuqgo5JH4LpZWG6tY 8ZunNN1HMn3j5UZdakIureN0GQ1ybPBX0ms/PJtHRxnJmK8Acfj+flRWBU4TprgcrWg7 bgCVPDF2hqi3cMBnY5BFBS+8toeReudkJwnT9qsgbQW89CK9r7f3C6yliXTfwsBum2nC POS5MndlJ0weKVSOjVekhhYABnx057PjkV3fk+OvXRk44uq+qxZjGcZHb2zeSyMa6ch6 MiyQ== X-Gm-Message-State: AOJu0YxYbdA+H4KaxrlhL3qM0iOWSeyRqqjaqeqEvYGJpakbLRPn/YQ6 4cW0qRAA4gOGClszgNhrTvoLIZU1scftWSfU/0EouRw/14ynAQ6K3OzrghnOq4tu3O8za/VYKaV a74swiF1C5SLxVSgh6g== X-Received: from wrcl8.prod.google.com ([2002:a5d:5268:0:b0:460:18c0:dfeb]) (user=tarunsahu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6000:2584:b0:460:1967:abed with SMTP id ffacd0b85a97d-4607eaf7cfemr19334284f8f.39.1781616233699; Tue, 16 Jun 2026 06:23:53 -0700 (PDT) Date: Tue, 16 Jun 2026 13:23:49 +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.1136.gdb2ca164c4-goog Message-ID: Subject: [PATCH v2 0/2] luo: migrate serialized_data to type-safe KHO pointers From: Tarun Sahu To: Alexander Graf , Pratyush Yadav , Mike Rapoport , Andrew Morton , Pasha Tatashin Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kexec@lists.infradead.org, Tarun Sahu Content-Type: text/plain; charset="UTF-8" Covvert raw serialized_data to KHO serializeable pointer (KHOSER_PTR). This series also takes care of resolving the bug with memfd of using phys_to_virt before checking the args->serialized_data value. Tarun Sahu (2): kho: add KHOSER_COPY_TYPE(UN)SAFE for phys copy luo: Update serialized data to serializeable pointer include/linux/kho/abi/kexec_handover.h | 12 ++++++++++++ include/linux/kho/abi/luo.h | 6 ++++-- include/linux/liveupdate.h | 4 ++-- kernel/liveupdate/luo_file.c | 24 ++++++++++++------------ mm/memfd_luo.c | 18 +++++++++--------- 5 files changed, 39 insertions(+), 25 deletions(-) base-commit: 0e0611827f3349d0a2ac121c023a6d3260dcecdb -- 2.54.0.1136.gdb2ca164c4-goog