Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AF082BEFEF for ; Wed, 17 Jun 2026 01:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781661147; cv=none; b=GcUnBbcctn/B+Ql3rb1VDiun+NWrxjgVb6q5mhbayBnvNy2DOPSG2UQOqa8ax54inpJoCjOM7Owppvj7loQ82g/uPZXHkPJqRnrq8Kbo4KW4reXcL8PB0Yu9UR5OnK23iNiL8O/7OoVZjSVtCucjzZPjPGktUf5yzNAIcDPvUe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781661147; c=relaxed/simple; bh=fnzhwdz+6mEWCjVVzgfnsaUNeoNe4fK2n/8UUn5GDvY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K14F+YMVkxX3EKNZ/HVwpi1s/Kome6M25SzIyPzKwt9meHEYJqtRbIFy8sA4nxkfqcuBLV3it6f3IExkwiFF7VxYZ2AKRFmaj7f8E888EIa7Xfriv/G5SDiC6etY7W5IpHqZ/XsTlFnwc/R0+mTcJFmEk4GA+jkIG3OPNoTYMC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=FIRZwUou; arc=none smtp.client-ip=115.124.30.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="FIRZwUou" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1781661136; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=LuNc52HTvVdt4lAGCT/ExgGhpeFv1gnS6rqnFL1WzEg=; b=FIRZwUouulv7ZERZ1ubpDA64aEnMWiYHe11e7wU2HtxiZ7j5Zm5OsA+LZZBq1pyZMnDMvgLzvP+8UgKmjscX3DyjBmOnvOwl9bdsFeBHxu6lQR9CIF3L0zBYgmXGZgQJWIe6DK2URIn3wMBE6JDpllZFe5UIkqRWZHj7jvvJQ4c= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R331e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045133197;MF=tianruidong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0X514Ek0_1781661133; Received: from localhost(mailfrom:tianruidong@linux.alibaba.com fp:SMTPD_---0X514Ek0_1781661133 cluster:ay36) by smtp.aliyun-inc.com; Wed, 17 Jun 2026 09:52:15 +0800 From: Ruidong Tian To: tony.luck@intel.com Cc: linux-kernel@vger.kernel.org, zhuo.song@linux.alibaba.com, oliver.yang@linux.alibaba.com, Ruidong Tian Subject: [PATCH 0/4] ras-tools: hardware validation for arm64 MC-safe memory error recovery Date: Wed, 17 Jun 2026 09:52:07 +0800 Message-ID: <20260617015211.3962419-1-tianruidong@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 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: Ruidong Tian This series adds tooling to ras-tools for end-to-end validation of the arm64 "MC-safe" memory error recovery work on real hardware. Recent arm64 patches teach the kernel to survive an uncorrectable (poison) memory error consumed during a kernel copy, instead of taking the whole machine down. Two broad families of copy paths are covered: - kernel-side page copies (copy_mc_highpage / copy_mc_user_highpage / folio_mc_copy) used by COW, khugepaged, page migration and hugetlb; - user-access copies (copy_from_user / copyin) driven by syscalls. This series adds validation test cases and observability tooling for these recovery scenarios. Ruidong Tian (4): ras-tools: add bpftrace verification and opcode decode helpers ras-tools: verify MC-safe recovery for hwpoison copy-on-write patches einj_mem_uc_uaccess: exercise copy_from_user hwpoison recovery via syscalls einj_mem_uc: add copy_mc_to_kernel() case Makefile | 4 +- decode_opcode.py | 274 +++++++++++++++++ einj_mem_uc.c | 155 +++++++--- einj_mem_uc.h | 72 +++++ einj_mem_uc_mm.c | 682 ++++++++++++++++++++++++++++++++++++++++++ einj_mem_uc_uaccess.c | 369 +++++++++++++++++++++++ einj_mem_uc_verify.bt | 108 +++++++ 7 files changed, 1628 insertions(+), 36 deletions(-) create mode 100644 decode_opcode.py create mode 100644 einj_mem_uc.h create mode 100644 einj_mem_uc_mm.c create mode 100644 einj_mem_uc_uaccess.c create mode 100644 einj_mem_uc_verify.bt -- 2.39.3