v=2.4 cv=VcX6/Vp9 c=1 sm=1 tr=0 ts=69835fa8 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=ejxT3_R5mcMXAYFV490A:9 X-Proofpoint-GUID: XUhsb31e6hxxuoeX4YNyc9CX8AAFDhF_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfX5c4DsdKcp2Qg SuOTcFradE9Xg4vQUBPv3M59Hpz9s4xf3nFXtVT+JIf0myLfuxgj26aOiMsOe9BlWZSycljrMwu ct0vNUL2XfHHdKVlX1L7d2g4zCRFVMhnESsONwLPX/u3iP1oLK0Bn/iQa3jcrYb2XnSlFg1+JJe g+rDxxrrA45kt8nJQw0YcRW+J4XoKqJ6YXnpMzcJyRT3ATjgaopSQmYJcrnoJx6PtVOUDhG+Vue ZZ1g8srCJadPDo1XCfq8DIICnpKu8d1ycpRoPT6GZ6d3SP5eT0wD8eHEKEc3x3Cgy95M82GypIC r9yc9G9Nb6MaYxsUQ2nuUVDlNAe1RzR5plHWEHMzUDbzK5GP6tYQOIyixlHcG/X2Wh1ffqU2fNS oRUOUfUACaed/0gk4z/exvoCZbn3rO4wNPYB6MFxAyBwRg21A/Wpdu2T7k4MTy+l8vltkHjq+yv w8qkt2DoHFIOpGO0RQQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.105.105.114 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 Add P bit in hardware definition of region 3 and segment table entries. Move union vaddress from kvm/gaccess.c to asm/dat_bits.h Signed-off-by: Claudio Imbrenda Reviewed-by: Christian Borntraeger Reviewed-by: Steffen Eiden Reviewed-by: Christoph Schlameuss --- arch/s390/include/asm/dat-bits.h | 32 ++++++++++++++++++++++++++++++-- arch/s390/kvm/gaccess.c | 26 -------------------------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/arch/s390/include/asm/dat-bits.h b/arch/s390/include/asm/dat-bits.h index 8d65eec2f124..c40874e0e426 100644 --- a/arch/s390/include/asm/dat-bits.h +++ b/arch/s390/include/asm/dat-bits.h @@ -9,6 +9,32 @@ #ifndef _S390_DAT_BITS_H #define _S390_DAT_BITS_H +/* + * vaddress union in order to easily decode a virtual address into its + * region first index, region second index etc. parts. + */ +union vaddress { + unsigned long addr; + struct { + unsigned long rfx : 11; + unsigned long rsx : 11; + unsigned long rtx : 11; + unsigned long sx : 11; + unsigned long px : 8; + unsigned long bx : 12; + }; + struct { + unsigned long rfx01 : 2; + unsigned long : 9; + unsigned long rsx01 : 2; + unsigned long : 9; + unsigned long rtx01 : 2; + unsigned long : 9; + unsigned long sx01 : 2; + unsigned long : 29; + }; +}; + union asce { unsigned long val; struct { @@ -98,7 +124,8 @@ union region3_table_entry { struct { unsigned long : 53; unsigned long fc: 1; /* Format-Control */ - unsigned long : 4; + unsigned long p : 1; /* DAT-Protection Bit */ + unsigned long : 3; unsigned long i : 1; /* Region-Invalid Bit */ unsigned long cr: 1; /* Common-Region Bit */ unsigned long tt: 2; /* Table-Type Bits */ @@ -140,7 +167,8 @@ union segment_table_entry { struct { unsigned long : 53; unsigned long fc: 1; /* Format-Control */ - unsigned long : 4; + unsigned long p : 1; /* DAT-Protection Bit */ + unsigned long : 3; unsigned long i : 1; /* Segment-Invalid Bit */ unsigned long cs: 1; /* Common-Segment Bit */ unsigned long tt: 2; /* Table-Type Bits */ diff --git a/arch/s390/kvm/gaccess.c b/arch/s390/kvm/gaccess.c index 41ca6b0ee7a9..d8347f7cbe51 100644 --- a/arch/s390/kvm/gaccess.c +++ b/arch/s390/kvm/gaccess.c @@ -20,32 +20,6 @@ #define GMAP_SHADOW_FAKE_TABLE 1ULL -/* - * vaddress union in order to easily decode a virtual address into its - * region first index, region second index etc. parts. - */ -union vaddress { - unsigned long addr; - struct { - unsigned long rfx : 11; - unsigned long rsx : 11; - unsigned long rtx : 11; - unsigned long sx : 11; - unsigned long px : 8; - unsigned long bx : 12; - }; - struct { - unsigned long rfx01 : 2; - unsigned long : 9; - unsigned long rsx01 : 2; - unsigned long : 9; - unsigned long rtx01 : 2; - unsigned long : 9; - unsigned long sx01 : 2; - unsigned long : 29; - }; -}; - /* * raddress union which will contain the result (real or absolute address) * after a page table walk. The rfaa, sfaa and pfra members are used to -- 2.52.0 From - Wed Feb 04 15:07:31 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id yH75BbBgg2k0OhUAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:28 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:28 +0000 Received: from sto.lore.kernel.org ([172.232.135.74]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTX-00000006pAH-2YvQ for hi@josie.lol; Wed, 04 Feb 2026 15:07:28 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 276B93042AF1 for ; Wed, 4 Feb 2026 15:03:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D8C640FD81; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Vcs/mTCj" X-Original-To: linux-s390@vger.kernel.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 2C76B2D879A; Wed, 4 Feb 2026 15:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; cv=none; b=Nks0IXfciHc8LHWux07xFDRIcU2FXXDLAM0US1Z831o1YCFPe2Bc2ymEOcAtjbGYtJuRVENJToFBzrKcad6rokJKrlLP5511YGYXCMyL/i/GlNz2z2fjd4NbA09VMDstHZw4r36T/78zt8F6M7JF19XfN8HpWAXIROCPC8xUuww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; c=relaxed/simple; bh=wZIM7tTYqqSB7gE+7VmQ8HvdCuIZC1gLeC4DpqWpcvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mi4hQ7+FLhmlDR5pvJBj2Cr6GgYG4vLSES6WVbckWKcqX5Xss7wBH8mv3UmVT7Y2gAFgpPJci8sqOx5qpAuNpUiiP+Zaj2n4WHBdzfxgFxqY1ddDfFENUwhP9rctTE2mdB268tfwdhAc+BD/IkgKo4/4VcB51S7UmvUjNngFfUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=Vcs/mTCj; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 6140dl3D032157; Wed, 4 Feb 2026 15:03:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=CE4JpDSEghk1nwVFo 3HYe4mFC7f75/s97B715bNStdc=; b=Vcs/mTCjZ7TWLWJ5q7kBB9mUQ/k2WjJc3 aAU25/isqfzzlW4/HFrWEv3jpyjDKNqXp/H9k7RycvEftMLYddPqM2EprluCzC0L OAoufSqk96YKyHzHToPO0VSVBxCawwP8QcbbYMhpDGaqblGzqzRgoz480u+HCtHL sYuzZJzaIR5PL3UNQjry5b+qBYEuLzMaXRY7R5tYmy2YmuxlYQ80q+7B1sFcb1yH XNnhK3LqxAFWS4ImDgfJp7kL+kTEjXcpx2YA/pvGGJbhKwObR0qh4fuKfxp6/NKo eCLttleZFJC33jlzr1RBs+LiLK804fTlxQhxDeHEzlDDLUNQnXv0A== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c185gyw70-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:05 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 614CPBBR025706; Wed, 4 Feb 2026 15:03:05 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4c1w2mwnjd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:04 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 614F31cf16777716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Feb 2026 15:03:01 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 066C220040; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B85EC2004D; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) Received: from p-imbrenda.aag-de.ibm.com (unknown [9.52.223.175]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, nsg@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com, gra@linux.ibm.com, schlameuss@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com, david@kernel.org, gerald.schaefer@linux.ibm.com Subject: [PATCH v7 05/29] KVM: s390: Add gmap_helper_set_unused() Date: Wed, 4 Feb 2026 16:02:34 +0100 Message-ID: <20260204150259.60425-6-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260204150259.60425-1-imbrenda@linux.ibm.com> References: <20260204150259.60425-1-imbrenda@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Authority-Analysis: v=2.4 cv=UdxciaSN c=1 sm=1 tr=0 ts=69835fa9 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=F2Av9RbSm_i__n-hslAA:9 X-Proofpoint-GUID: BYKL69CtYqqMcBuFN3VxyOi7ON-pNe6_ X-Proofpoint-ORIG-GUID: BYKL69CtYqqMcBuFN3VxyOi7ON-pNe6_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfX4+eLnlxsS++8 Fx9MqKeLK0RI+QbizF6I5jLPBMskVzGSBp2xe7+dtdy0neoiDFW6MJsvnw7+naL53tfKtoX/urc a/pqEqvB1m2Kyg0YdWsEprx0kAln6h9g7lDNdibmOj9v1nWTn51SNymN9IzdC40qG5qqBZmlQQM kEpGWYtG0loEJc0A7VebDpEZBp0pBi5UYYVUZrZ+xy0oD11IPYVymZqUkpUTPaSXCW17QOnRrLM ApMqwo+kDe4LaRHv7Te56XtDut0N6kdc2mWKPNxRFyE2pNiOHy1ZsaqiSXQouQCM79ASXKR8pDP uld11Abszk/C+wT7JS4QDhLoKQYSgzvOVk7QZRpp8LglKE8Txj+kfAdKU7jMK6FttwmUm0iL25z V+2O6d+9jjo7keG+vqWM7ID/ep2Lc7sj04Z2gwoaXKC+d5PqdYGXdSETBgcPt5lT0G9+YgZWk0I +I27gmyjgQTnrhcK8Tg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.232.135.74 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 Add gmap_helper_set_unused() to mark userspace ptes as unused. Core mm code will use that information to discard unused pages instead of attempting to swap them. Signed-off-by: Claudio Imbrenda Reviewed-by: Nico Boehr Tested-by: Nico Boehr Acked-by: Christoph Schlameuss --- arch/s390/include/asm/gmap_helpers.h | 1 + arch/s390/mm/gmap_helpers.c | 79 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/arch/s390/include/asm/gmap_helpers.h b/arch/s390/include/asm/gmap_helpers.h index 5356446a61c4..2d3ae421077e 100644 --- a/arch/s390/include/asm/gmap_helpers.h +++ b/arch/s390/include/asm/gmap_helpers.h @@ -11,5 +11,6 @@ void gmap_helper_zap_one_page(struct mm_struct *mm, unsigned long vmaddr); void gmap_helper_discard(struct mm_struct *mm, unsigned long vmaddr, unsigned long end); int gmap_helper_disable_cow_sharing(void); +void gmap_helper_try_set_pte_unused(struct mm_struct *mm, unsigned long vmaddr); #endif /* _ASM_S390_GMAP_HELPERS_H */ diff --git a/arch/s390/mm/gmap_helpers.c b/arch/s390/mm/gmap_helpers.c index 4fba13675950..4864cb35fc25 100644 --- a/arch/s390/mm/gmap_helpers.c +++ b/arch/s390/mm/gmap_helpers.c @@ -129,6 +129,85 @@ void gmap_helper_discard(struct mm_struct *mm, unsigned long vmaddr, unsigned lo } EXPORT_SYMBOL_GPL(gmap_helper_discard); +/** + * gmap_helper_try_set_pte_unused() - mark a pte entry as unused + * @mm: the mm + * @vmaddr: the userspace address whose pte is to be marked + * + * Mark the pte corresponding the given address as unused. This will cause + * core mm code to just drop this page instead of swapping it. + * + * This function needs to be called with interrupts disabled (for example + * while holding a spinlock), or while holding the mmap lock. Normally this + * function is called as a result of an unmap operation, and thus KVM common + * code will already hold kvm->mmu_lock in write mode. + * + * Context: Needs to be called while holding the mmap lock or with interrupts + * disabled. + */ +void gmap_helper_try_set_pte_unused(struct mm_struct *mm, unsigned long vmaddr) +{ + pmd_t *pmdp, pmd, pmdval; + pud_t *pudp, pud; + p4d_t *p4dp, p4d; + pgd_t *pgdp, pgd; + spinlock_t *ptl; /* Lock for the host (userspace) page table */ + pte_t *ptep; + + pgdp = pgd_offset(mm, vmaddr); + pgd = pgdp_get(pgdp); + if (pgd_none(pgd) || !pgd_present(pgd)) + return; + + p4dp = p4d_offset(pgdp, vmaddr); + p4d = p4dp_get(p4dp); + if (p4d_none(p4d) || !p4d_present(p4d)) + return; + + pudp = pud_offset(p4dp, vmaddr); + pud = pudp_get(pudp); + if (pud_none(pud) || pud_leaf(pud) || !pud_present(pud)) + return; + + pmdp = pmd_offset(pudp, vmaddr); + pmd = pmdp_get_lockless(pmdp); + if (pmd_none(pmd) || pmd_leaf(pmd) || !pmd_present(pmd)) + return; + + ptep = pte_offset_map_rw_nolock(mm, pmdp, vmaddr, &pmdval, &ptl); + if (!ptep) + return; + + /* + * Several paths exists that takes the ptl lock and then call the + * mmu_notifier, which takes the mmu_lock. The unmap path, instead, + * takes the mmu_lock in write mode first, and then potentially + * calls this function, which takes the ptl lock. This can lead to a + * deadlock. + * The unused page mechanism is only an optimization, if the + * _PAGE_UNUSED bit is not set, the unused page is swapped as normal + * instead of being discarded. + * If the lock is contended the bit is not set and the deadlock is + * avoided. + */ + if (spin_trylock(ptl)) { + /* + * Make sure the pte we are touching is still the correct + * one. In theory this check should not be needed, but + * better safe than sorry. + * Disabling interrupts or holding the mmap lock is enough to + * guarantee that no concurrent updates to the page tables + * are possible. + */ + if (likely(pmd_same(pmdval, pmdp_get_lockless(pmdp)))) + __atomic64_or(_PAGE_UNUSED, (long *)ptep); + spin_unlock(ptl); + } + + pte_unmap(ptep); +} +EXPORT_SYMBOL_GPL(gmap_helper_try_set_pte_unused); + static int find_zeropage_pte_entry(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk) { -- 2.52.0 From - Wed Feb 04 15:07:41 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 2OivDLlgg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:37 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:37 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTg-00000006pNs-401R for hi@josie.lol; Wed, 04 Feb 2026 15:07:37 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id AF6FB318AB6A for ; Wed, 4 Feb 2026 14:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB2DD4219F3; Wed, 4 Feb 2026 14:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sL7onBaf" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C8F0241C2FC; Wed, 4 Feb 2026 14:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216960; cv=none; b=omiHdxyhu9jGEnOZRLtdLL/nxOkFQMwSzNZdS6IM+iC7govtvwHS5gMfmnkHx3yJOzQwFaO6cUnX95xACEsUHU7JyJnc1FNeKU7jDAvUKMUSZdinfDa3WhuvOw2N6haH8Mw62EeebFBCyPqGs1FS8gl7CyRTUF5+nF5JxoHOpRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216960; c=relaxed/simple; bh=BgurllEU5gmHw5fBb7DxPWcpFUAvC8iLVoRDowgmoH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GRS0dWrqs7K1MrABev41a9wcZDg01hQTg+D+XaBk4T736QSzqcpdUS8RsW2ddNnJlKBAUg8ba7OTFoFQriMGu+TnrZqpX7jxmaEPbhkMXusMYZTVGDq95DPAZoUnqke6y5f3uJYG2JXZFECs0NEUS5qkvhQysJ2DsKQozPCirX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sL7onBaf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FB60C4CEF7; Wed, 4 Feb 2026 14:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216960; bh=BgurllEU5gmHw5fBb7DxPWcpFUAvC8iLVoRDowgmoH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sL7onBafaIfd+56wFWoa3RB6K/eOPM8mtXYrbXUn7atQ35ZimJtHRS0udmTxrwnMc DfW9ojnvQ2ERY7iZ/8fUXTtYXNektoA9+d6y5Rvki9hZQiJdNdbFIEsiwdBqfP8rVI P6vIrnSA0sKzN/1nRiqL4T4QmuBt+9LLuj2+nTKw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Haoxiang Li , Krzysztof Kozlowski Subject: [PATCH 5.15 083/206] w1: fix redundant counter decrement in w1_attach_slave_device() Date: Wed, 4 Feb 2026 15:38:34 +0100 Message-ID: <20260204143901.201330163@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haoxiang Li commit cc8f92e41eb76f450f05234fef2054afc3633100 upstream. In w1_attach_slave_device(), if __w1_attach_slave_device() fails, put_device() -> w1_slave_release() is called to do the cleanup job. In w1_slave_release(), sl->family->refcnt and sl->master->slave_count have already been decremented. There is no need to decrement twice in w1_attach_slave_device(). Fixes: 2c927c0c73fd ("w1: Fix slave count on 1-Wire bus (resend)") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li Link: https://patch.msgid.link/20251218111414.564403-1-lihaoxiang@isrc.iscas.ac.cn Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- drivers/w1/w1.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -767,8 +767,6 @@ int w1_attach_slave_device(struct w1_mas if (err < 0) { dev_err(&dev->dev, "%s: Attaching %s failed.\n", __func__, sl->name); - dev->slave_count--; - w1_family_put(sl->family); atomic_dec(&sl->master->refcnt); kfree(sl); return err; From - Wed Feb 04 15:07:45 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id CBOPHrxgg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:40 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:40 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTk-00000006pPh-0FNw for hi@josie.lol; Wed, 04 Feb 2026 15:07:40 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id C95FF318D343 for ; Wed, 4 Feb 2026 14:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 898DE4218B3; Wed, 4 Feb 2026 14:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MSgTDIvs" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6736441B367; Wed, 4 Feb 2026 14:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216964; cv=none; b=mcPzA4Tf+jW37qR5Qkl5GfkoUltuQ5LmOmwub3Y9rkTfuwVBhdpswSaLbwcFbF9fHwaxArkgK0f+tyeaPIiBSBQddm3+FVMosE+qxwTNKZc5MUzi5SlD9edS0GOli5zW2VCwMA/FAAnNKkdxtQzbMOc4NskAhCkXSX2x9TCongI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216964; c=relaxed/simple; bh=mrkTL9L4u7GM48q0HoCshJgXLLUYotWkmhcpnhSJpFo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=py0bf5BYT2fbwHBGagxZvw7UN7l1xv6YDcuWxVbXWsC5Ms7mNvhDvVfGR8d4YRifB/NUbocjNmLuUzn4aXWcp2Wk7Gy0ZHWcwMQcc5OZiSs/heE5irPIzNFJVmRWLxUa5BIMK6OgYEpJAVXTgBs7wY3bbJP1NZIBfdX0sPykELY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MSgTDIvs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB55CC4CEF7; Wed, 4 Feb 2026 14:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216964; bh=mrkTL9L4u7GM48q0HoCshJgXLLUYotWkmhcpnhSJpFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSgTDIvsOqXdCMVcp0A2FUxn7DuFcbyuKKteszccLN4xxzJVOSLwyeb9K398GE4pR o5eA1Q3JQ0tTVLTIofBvFy1JMFbM6OMdQKBtgUhzvomOtTpw5JU31dUQuoXQTAkSgb yXrqArJmZvX2NAJUAGXgCIFKr7MvN8thqzXP6pBI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thadeu Lima de Souza Cascardo , Jakub Kicinski Subject: [PATCH 5.15 084/206] Revert "nfc/nci: Add the inconsistency check between the input data length and count" Date: Wed, 4 Feb 2026 15:38:35 +0100 Message-ID: <20260204143901.236962166@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: msgid.link] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thadeu Lima de Souza Cascardo commit f40ddcc0c0ca1a0122a7f4440b429f97d5832bdf upstream. This reverts commit 068648aab72c9ba7b0597354ef4d81ffaac7b979. NFC packets may have NUL-bytes. Checking for string length is not a correct assumption here. As long as there is a check for the length copied from copy_from_user, all should be fine. The fix only prevented the syzbot reproducer from triggering the bug because the packet is not enqueued anymore and the code that triggers the bug is not exercised. The fix even broke testing/selftests/nci/nci_dev, making all tests there fail. After the revert, 6 out of 8 tests pass. Fixes: 068648aab72c ("nfc/nci: Add the inconsistency check between the input data length and count") Cc: stable@vger.kernel.org Signed-off-by: Thadeu Lima de Souza Cascardo Link: https://patch.msgid.link/20260113202458.449455-1-cascardo@igalia.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/nfc/virtual_ncidev.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/nfc/virtual_ncidev.c +++ b/drivers/nfc/virtual_ncidev.c @@ -121,10 +121,6 @@ static ssize_t virtual_ncidev_write(stru kfree_skb(skb); return -EFAULT; } - if (strnlen(skb->data, count) != count) { - kfree_skb(skb); - return -EINVAL; - } nci_recv_frame(ndev, skb); return count; From - Wed Feb 04 15:07:52 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 8GqYL71gg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:41 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:42 +0000 Received: from tor.lore.kernel.org ([172.105.105.114]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTl-00000006pUH-2L3V for hi@josie.lol; Wed, 04 Feb 2026 15:07:41 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id E82D1306A2B4 for ; Wed, 4 Feb 2026 15:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B2262BE03C; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="eIOeS1+F" X-Original-To: linux-s390@vger.kernel.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 306462D879E; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; cv=none; b=L1GnqV5IRQGHwwoyRJsEJ3PxynTRcI9F8JMaWeMPFJ+Vk2d88a4xNgh1YguY2MaI4f5rqcKhonbbmBeQu+eFwCsLOY536wDHQNDm+i1t1rLj2NZGAlrJCLJzOSH4woSyA+e3qiT/teHFK0/t2sLAc094opVt508+8CpbrYZbGY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; c=relaxed/simple; bh=9YJhYzyxGQsOEJpcFJeaFUho+YsLDtwkF+hgJBjHvhc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ro0d/HJs5X3tcuKnp8X1PD43FMeRi7YIxQFvSIBb+NVc698ts1nHuKBB++aGjE2OsOkQ7dzWCcNnQafPMhDYK4vDpIyNmC6vvSLD+2bzHIztw1ik/8NdjZi12j9GrrkkV6z0SPyztraFsogI3UieJVD1VHIyPPe1xN5kdOzrjzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=eIOeS1+F; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 613N6c9d008818; Wed, 4 Feb 2026 15:03:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=z1DOOgHqufta6Fg5x p6jSQBL+c+NsNMwlN8dukx9jZs=; b=eIOeS1+FLTop6GduoF09S1/By8/p25Sjt BkdI9b4rdt5OLmt/H52XSOy98MERl/tEQEnVrPwsC1ZWN6TQVTWtGFt+1SXyq4UR xs+IjAF4eoKmKmsSAkHHXmB4F8pNpsxp9U3ajlM38gsD2Pfq3mHK3zv4Nf1XpTs5 TEDbAMPHMnkS2OebDVThmnFle6rdSbK0TcIoofCYQcBgCYntsQoCDJr/uX/WmFct ToTJvM4iLf8Eej6nZjdCAyWqZkGgoru/6KsGnA6K0aCNJ8JScLoszoFYkXQgx2Oz Hwqxt6GZZTWtV5/Faki2NbgyrMx5Vk+6AK/HjBFSYtOct2PP1A/ug== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c1986jf5h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:06 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 614E05tK027391; Wed, 4 Feb 2026 15:03:05 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4c1xs1dcr2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:05 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 614F31P329688504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Feb 2026 15:03:01 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A712520040; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 65B8020043; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) Received: from p-imbrenda.aag-de.ibm.com (unknown [9.52.223.175]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, nsg@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com, gra@linux.ibm.com, schlameuss@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com, david@kernel.org, gerald.schaefer@linux.ibm.com Subject: [PATCH v7 07/29] KVM: s390: Export two functions Date: Wed, 4 Feb 2026 16:02:36 +0100 Message-ID: <20260204150259.60425-8-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260204150259.60425-1-imbrenda@linux.ibm.com> References: <20260204150259.60425-1-imbrenda@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfXxdW1XJSujOqE qwzOdB10sM7k/x5abNDPVwcpU13/0zvdxpBMNFIszLRBx3S4I9nRlorA8urNLenmZMjKnL8A0sj DKfwf+obhpKvknyPWyE1xkpBNblVWHLO/wTDMk14R4ApWuHWo8UhJhNzzYHVUN4Ua2cNv+iTpPz xlNR8ZbeYkALW0dVeCWqlAEDE3YeJUdnFLdsmsCnbfQ5CKdgubmP4g8lKb6JCVuKnnCbvfiKBL7 CJueYZS1IeetLKUFmXLObLI31ECqBiX0HDApdLyBSmKGP9sDR9d3bJaxM2G1JoUQhdduOZECT71 q+XzkzWyj54YW/zbsRX8dCob//+fcIQHeHSO3GtkOpJ5sSH2w01cJnmKVPPOA2Kq9vRtfgz56V5 8eBV1yLlGu7Zgj2ULjpB0B+UPGLZmunuHNv8oDwmhNvM0ObUIlzM8ZUb0l4MpN1S3T+hktiZxNQ ks5ZWN4GMLq0LpFZC9Q== X-Proofpoint-GUID: QgSV8MtVXN3eTPPKjROnjRnpbjebCWBe X-Authority-Analysis: v=2.4 cv=DbAaa/tW c=1 sm=1 tr=0 ts=69835faa cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=kE4rddDq9Ks6am3DDGoA:9 X-Proofpoint-ORIG-GUID: QgSV8MtVXN3eTPPKjROnjRnpbjebCWBe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 adultscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.105.105.114 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 Export __make_folio_secure() and s390_wiggle_split_folio(), as they will be needed to be used by KVM. Signed-off-by: Claudio Imbrenda --- arch/s390/include/asm/uv.h | 2 ++ arch/s390/kernel/uv.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h index 8018549a1ad2..0744874ca6df 100644 --- a/arch/s390/include/asm/uv.h +++ b/arch/s390/include/asm/uv.h @@ -632,6 +632,8 @@ int uv_destroy_folio(struct folio *folio); int uv_destroy_pte(pte_t pte); int uv_convert_from_secure_pte(pte_t pte); int make_hva_secure(struct mm_struct *mm, unsigned long hva, struct uv_cb_header *uvcb); +int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio); +int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb); int uv_convert_from_secure(unsigned long paddr); int uv_convert_from_secure_folio(struct folio *folio); diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c index ca0849008c0d..cb4e8089fbca 100644 --- a/arch/s390/kernel/uv.c +++ b/arch/s390/kernel/uv.c @@ -281,7 +281,7 @@ static int expected_folio_refs(struct folio *folio) * (it's the same logic as split_folio()), and the folio must be * locked. */ -static int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb) +int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb) { int expected, cc = 0; @@ -311,6 +311,7 @@ static int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb) return -EAGAIN; return uvcb->rc == 0x10a ? -ENXIO : -EINVAL; } +EXPORT_SYMBOL(__make_folio_secure); static int make_folio_secure(struct mm_struct *mm, struct folio *folio, struct uv_cb_header *uvcb) { @@ -339,7 +340,7 @@ static int make_folio_secure(struct mm_struct *mm, struct folio *folio, struct u * but another attempt can be made; * -EINVAL in case of other folio splitting errors. See split_folio(). */ -static int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio) +int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio) { int rc, tried_splits; @@ -411,6 +412,7 @@ static int s390_wiggle_split_folio(struct mm_struct *mm, struct folio *folio) } return -EAGAIN; } +EXPORT_SYMBOL_GPL(s390_wiggle_split_folio); int make_hva_secure(struct mm_struct *mm, unsigned long hva, struct uv_cb_header *uvcb) { -- 2.52.0 From - Wed Feb 04 15:07:52 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id iOSRJL5gg2k0OhUAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:42 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:42 +0000 Received: from sin.lore.kernel.org ([104.64.211.4]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTl-00000006pSs-3aGw for hi@josie.lol; Wed, 04 Feb 2026 15:07:42 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 41B563015BAA for ; Wed, 4 Feb 2026 14:58:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1C05423161; Wed, 4 Feb 2026 14:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PqbvGqZb" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7EEE941C2EE; Wed, 4 Feb 2026 14:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217007; cv=none; b=BDqW7GxPikXmAgKopwkhDEPyUb56GwBvB9hdUC7P6Rf54TfLot++Ne2D06tIUjySja9VItutL+wqNZoWtdYT60ZZSLY+VmNRyl6mJq6NplfJb9V40iGwDkd6c9mBTlVzfDmqgpg1k4wFhrYgR0n44Pg31eIrKuZnAiXe9e6KCTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217007; c=relaxed/simple; bh=pSDe8wu1rsS5smhWxIRX3UjfCWXih2DNXGm9PHUbwd0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NTLCMp+7XC79TjCYgeJWesbyJPCdG9URQ1UWtJ8E8G5rPUDRyS6w0Stlr+rCfdByTPsL1YZqWeiZOzyudimrxnwsrW2lcK2fT7kdTwBxbJFRO70O/b4n4QxDzg1gcVSEAWtbpKrBw3WxbW6jdSAn0gmwoQFOnAHzK2pHM6bTsiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PqbvGqZb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3841C4CEF7; Wed, 4 Feb 2026 14:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217007; bh=pSDe8wu1rsS5smhWxIRX3UjfCWXih2DNXGm9PHUbwd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PqbvGqZb3dq8XYl/usjnk03pVOtimCwj3HJMzIh+xoYzaqEhHq/gy/sYflUg8I7Ii lelC7/tUTYJ8hmEM4KKs2EqP9qe4gxeGO7gFVWkENSYrC2r0jd2w+A5zM8HLhsJsZX OsTBTgiQiHkQhTMl+jnQ8XWHqqnxxh5fzNMU2ziU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Maftei , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 062/206] selftests/ptp: Add -X option for testing PTP_SYS_OFFSET_PRECISE Date: Wed, 4 Feb 2026 15:38:13 +0100 Message-ID: <20260204143900.449989684@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Maftei [ Upstream commit 3cf119ad5dc2b5c11385106d6d0ba86fbb47324c ] The -X option was chosen because X looks like a cross, and the underlying callback is 'get cross timestamp'. Signed-off-by: Alex Maftei Signed-off-by: David S. Miller Stable-dep-of: 76868642e427 ("testptp: Add option to open PHC in readonly mode") Signed-off-by: Sasha Levin --- tools/testing/selftests/ptp/testptp.c | 31 ++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ptp/testptp.c b/tools/testing/selftests/ptp/testptp.c index d3cbd254a196d..faec606707de6 100644 --- a/tools/testing/selftests/ptp/testptp.c +++ b/tools/testing/selftests/ptp/testptp.c @@ -144,6 +144,7 @@ static void usage(char *progname) " -t val shift the ptp clock time by 'val' seconds\n" " -T val set the ptp clock time to 'val' seconds\n" " -x val get an extended ptp clock time with the desired number of samples (up to %d)\n" + " -X get a ptp clock cross timestamp\n" " -z test combinations of rising/falling external time stamp flags\n", progname, PTP_MAX_SAMPLES); } @@ -160,6 +161,7 @@ int main(int argc, char *argv[]) struct ptp_clock_time *pct; struct ptp_sys_offset *sysoff; struct ptp_sys_offset_extended *soe; + struct ptp_sys_offset_precise *xts; char *progname; unsigned int i; @@ -179,6 +181,7 @@ int main(int argc, char *argv[]) int list_pins = 0; int pct_offset = 0; int getextended = 0; + int getcross = 0; int n_samples = 0; int pin_index = -1, pin_func; int pps = -1; @@ -193,7 +196,7 @@ int main(int argc, char *argv[]) progname = strrchr(argv[0], '/'); progname = progname ? 1+progname : argv[0]; - while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:sSt:T:w:x:z"))) { + while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:sSt:T:w:x:Xz"))) { switch (c) { case 'c': capabilities = 1; @@ -267,6 +270,9 @@ int main(int argc, char *argv[]) return -1; } break; + case 'X': + getcross = 1; + break; case 'z': flagtest = 1; break; @@ -573,6 +579,29 @@ int main(int argc, char *argv[]) free(soe); } + if (getcross) { + xts = calloc(1, sizeof(*xts)); + if (!xts) { + perror("calloc"); + return -1; + } + + if (ioctl(fd, PTP_SYS_OFFSET_PRECISE, xts)) { + perror("PTP_SYS_OFFSET_PRECISE"); + } else { + puts("system and phc crosstimestamping request okay"); + + printf("device time: %lld.%09u\n", + xts->device.sec, xts->device.nsec); + printf("system time: %lld.%09u\n", + xts->sys_realtime.sec, xts->sys_realtime.nsec); + printf("monoraw time: %lld.%09u\n", + xts->sys_monoraw.sec, xts->sys_monoraw.nsec); + } + + free(xts); + } + close(fd); return 0; } -- 2.51.0 From - Wed Feb 04 15:07:52 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id +M5lN75gg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:42 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:43 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTl-00000006pU6-2DJq for hi@josie.lol; Wed, 04 Feb 2026 15:07:42 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id D977D318D361 for ; Wed, 4 Feb 2026 14:57:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 215604219F6; Wed, 4 Feb 2026 14:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zDe1+G06" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F2A0741B37E; Wed, 4 Feb 2026 14:56:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216968; cv=none; b=nG1AA4gqEFUJfLeNmB6PwPaBF1+t0ZD7jpiTZrpCDAucY/P2bP2mf4/uqDGCeJ27F5aZ+wASt6fIOZiUhNgJFQSr+9Z2Yy0E6NAY+c7FfwTAaQvDfQImbDXe3b6FQx7xiYaltf/RjpCKSlaFFgeblp/FmRWTGyS+mB/MWvCAJNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216968; c=relaxed/simple; bh=QrBd5knwn6EoCWXlnPZFv3n4QJXZKG2YMuocrwFXwBc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XU9YPfcQfcTthBdcvP8sW+LoTgXa9XwkYKtdShIgT6j5I2z20laoUgPwmOgcvBbYMvBscT+iGfYVF8EY3fxHrkSXfJOeXtjFzjgpMHEjVLjiXbNqh7b8NDlyn8J+DzoMbZ+dA4T6LUE9AYozf4YIZJ97ibeioUfyfwIHVHoiO7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zDe1+G06; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61E31C4CEF7; Wed, 4 Feb 2026 14:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216967; bh=QrBd5knwn6EoCWXlnPZFv3n4QJXZKG2YMuocrwFXwBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zDe1+G06TzKEY/EXGNVpfA8IjLSYh94nKipW44WW+NYcpirIwUXj0ZHp3UruzgNBX CZGOnYSDIpyXImMyinyTvbgQxVYdGXT8Mabjf55W/nUWaeCyiexQ3QVdrBfiohr7Yp uvZBwT7o3AkvxI3QhPfpSactsAzhj05m45BTW1v4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Richard Cochran , Vadim Fedorenko , Wojtek Wasko , Thomas Gleixner , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 058/206] ptp: Add PHC file mode checks. Allow RO adjtime() without FMODE_WRITE. Date: Wed, 4 Feb 2026 15:38:09 +0100 Message-ID: <20260204143900.306986741@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wojtek Wasko [ Upstream commit b4e53b15c04e3852949003752f48f7a14ae39e86 ] Many devices implement highly accurate clocks, which the kernel manages as PTP Hardware Clocks (PHCs). Userspace applications rely on these clocks to timestamp events, trace workload execution, correlate timescales across devices, and keep various clocks in sync. The kernel’s current implementation of PTP clocks does not enforce file permissions checks for most device operations except for POSIX clock operations, where file mode is verified in the POSIX layer before forwarding the call to the PTP subsystem. Consequently, it is common practice to not give unprivileged userspace applications any access to PTP clocks whatsoever by giving the PTP chardevs 600 permissions. An example of users running into this limitation is documented in [1]. Additionally, POSIX layer requires WRITE permission even for readonly adjtime() calls which are used in PTP layer to return current frequency offset applied to the PHC. Add permission checks for functions that modify the state of a PTP device. Continue enforcing permission checks for POSIX clock operations (settime, adjtime) in the POSIX layer. Only require WRITE access for dynamic clocks adjtime() if any flags are set in the modes field. [1] https://lists.nwtime.org/sympa/arc/linuxptp-users/2024-01/msg00036.html Changes in v4: - Require FMODE_WRITE in ajtime() only for calls modifying the clock in any way. Acked-by: Richard Cochran Reviewed-by: Vadim Fedorenko Signed-off-by: Wojtek Wasko Reviewed-by: Thomas Gleixner Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/ptp/ptp_chardev.c | 16 ++++++++++++++++ kernel/time/posix-clock.c | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index fcee202f4484c..aa38a518e3d7b 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -150,6 +150,10 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd, case PTP_EXTTS_REQUEST: case PTP_EXTTS_REQUEST2: + if ((pccontext->fp->f_mode & FMODE_WRITE) == 0) { + err = -EACCES; + break; + } memset(&req, 0, sizeof(req)); if (copy_from_user(&req.extts, (void __user *)arg, @@ -191,6 +195,10 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd, case PTP_PEROUT_REQUEST: case PTP_PEROUT_REQUEST2: + if ((pccontext->fp->f_mode & FMODE_WRITE) == 0) { + err = -EACCES; + break; + } memset(&req, 0, sizeof(req)); if (copy_from_user(&req.perout, (void __user *)arg, @@ -259,6 +267,10 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd, case PTP_ENABLE_PPS: case PTP_ENABLE_PPS2: + if ((pccontext->fp->f_mode & FMODE_WRITE) == 0) { + err = -EACCES; + break; + } memset(&req, 0, sizeof(req)); if (!capable(CAP_SYS_TIME)) @@ -397,6 +409,10 @@ long ptp_ioctl(struct posix_clock_context *pccontext, unsigned int cmd, case PTP_PIN_SETFUNC: case PTP_PIN_SETFUNC2: + if ((pccontext->fp->f_mode & FMODE_WRITE) == 0) { + err = -EACCES; + break; + } if (copy_from_user(&pd, (void __user *)arg, sizeof(pd))) { err = -EFAULT; break; diff --git a/kernel/time/posix-clock.c b/kernel/time/posix-clock.c index b130bb56cc4e0..827abede72745 100644 --- a/kernel/time/posix-clock.c +++ b/kernel/time/posix-clock.c @@ -253,7 +253,7 @@ static int pc_clock_adjtime(clockid_t id, struct __kernel_timex *tx) if (err) return err; - if ((cd.fp->f_mode & FMODE_WRITE) == 0) { + if (tx->modes && (cd.fp->f_mode & FMODE_WRITE) == 0) { err = -EACCES; goto out; } -- 2.51.0 From - Wed Feb 04 15:07:52 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id yOMJBMRgg2nghhgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:07:48 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:07:48 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneTr-00000006pbI-2SGC for hi@josie.lol; Wed, 04 Feb 2026 15:07:48 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 3811B3191925 for ; Wed, 4 Feb 2026 14:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4582421A05; Wed, 4 Feb 2026 14:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PDPlYYev" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B0551421A02; Wed, 4 Feb 2026 14:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216977; cv=none; b=IxNvz8Ctlw0Ma44DaxwLbdFIWIrajVabQSU6bYeo9X6dbYYxJhdBPQMxiBtIDWXNRnaycP9uz3lh9AXW/SACr+6m9Wat8Ass8hANw0pe72NfxaILziVusz0CRvC/fL9PYZQJsOcmCltTCPW5ljbt3UBLPCIGjZbS05uRPA4VjwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216977; c=relaxed/simple; bh=jBcjopp3ngF2qef8WFKt+F7lgIJk3GBmmwmGAyfmIFQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FVEySHIwwguJVG5ESSfgF+nw3f7K8E7yR9ZjEKC7gKO/011zD9+8OBlmHGdf+5wM2YoGOFsRVjoW3iY5YGVf3bIbXzlethVxo63WDM8qgSNao9KeK3HGpkAv05tvQO0jE19v5ZyLfDCojyUaLiqMT6FR7FIrWRTiHrKUDkjbIw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PDPlYYev; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 394C1C4CEF7; Wed, 4 Feb 2026 14:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216977; bh=jBcjopp3ngF2qef8WFKt+F7lgIJk3GBmmwmGAyfmIFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PDPlYYevBSCVKE5pnftgxqOMRLwexeId1a+dRxM63kjQaWDSNLN8/hYcHAUtZ5u+e mztf/LrV3EBKxDJZ7prs+xP/QLLp1X2SSIv/fDAYSAio31TD7pHCeT3NBSKIQzRZrE 78KNlMGB76H3kdc/6XI0B7xHE/+4ARZD9C1IJuuQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable@kernel.org, Long Li , Michael Kelley , "Martin K. Petersen" Subject: [PATCH 5.15 087/206] scsi: storvsc: Process unsupported MODE_SENSE_10 Date: Wed, 4 Feb 2026 15:38:38 +0100 Message-ID: <20260204143901.344121619@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Long Li commit 9eacec5d18f98f89be520eeeef4b377acee3e4b8 upstream. The Hyper-V host does not support MODE_SENSE_10 and MODE_SENSE. The driver handles MODE_SENSE as unsupported command, but not for MODE_SENSE_10. Add MODE_SENSE_10 to the same handling logic and return correct code to SCSI layer. Fixes: 89ae7d709357 ("Staging: hv: storvsc: Move the storage driver out of the staging area") Cc: stable@kernel.org Signed-off-by: Long Li Reviewed-by: Michael Kelley Link: https://patch.msgid.link/20260117010302.294068-1-longli@linux.microsoft.com Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/storvsc_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1199,7 +1199,7 @@ static void storvsc_on_io_completion(str * The current SCSI handling on the host side does * not correctly handle: * INQUIRY command with page code parameter set to 0x80 - * MODE_SENSE command with cmd[2] == 0x1c + * MODE_SENSE and MODE_SENSE_10 command with cmd[2] == 0x1c * MAINTENANCE_IN is not supported by HyperV FC passthrough * * Setup srb and scsi status so this won't be fatal. @@ -1209,6 +1209,7 @@ static void storvsc_on_io_completion(str if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) || (stor_pkt->vm_srb.cdb[0] == MODE_SENSE) || + (stor_pkt->vm_srb.cdb[0] == MODE_SENSE_10) || (stor_pkt->vm_srb.cdb[0] == MAINTENANCE_IN && hv_dev_is_fc(device))) { vstor_packet->vm_srb.scsi_status = 0; From - Wed Feb 04 15:08:06 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id UGYkB9Jgg2lM9xYAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:02 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:02 +0000 Received: from sin.lore.kernel.org ([104.64.211.4]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneU5-00000006pqN-1lCp for hi@josie.lol; Wed, 04 Feb 2026 15:08:02 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id E12423075903 for ; Wed, 4 Feb 2026 14:58:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EAAA41C2E1; Wed, 4 Feb 2026 14:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Y/dPyXRH" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7C21641B37D; Wed, 4 Feb 2026 14:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217036; cv=none; b=t68YnHYK1+YdTMeVQCyN6cGkGBSx6UNBgvsQwwJBV50el8pYweN+V4PV2dxCV2XxrEaM1CnkizVlDkkWYeDmmTQezND2eJVTnH0h/LMaQ68zAp0WInWkPka0zIGfT91KneQjrexrti5TzmYtFvti6qEeC3hnF7pffaNPkNe4AdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217036; c=relaxed/simple; bh=FF4XH8oKnXLIuKl06TcE8M5xMdAXgX2CFNjSRsNAOWg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VCno6HjfmlYiCeSzGGgbHr2EQBELvxdim4QsYnAStIvrYq3/n4CMCY5JmLAAUY1wpBDDhCuH6r3phx9wb2RygM1q0nCbso/FM6QvTVsZpRgGYJLUve4K08GYAibzu9NWn9AMp0kaZ+6SkxUVmdtnQwJLdVZKtba96GkzAJuGbpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y/dPyXRH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E182BC116C6; Wed, 4 Feb 2026 14:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217036; bh=FF4XH8oKnXLIuKl06TcE8M5xMdAXgX2CFNjSRsNAOWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y/dPyXRHtKjShTo/tpgmEbABCX3n4aLszVSaa9szG8XF6ItaQQ7Yt0UKAN54JSigl LsCSW3BsgKOkNmkJQWobikgxtilolUHLc+Wgu8y0mwHlMZSqQn9Pr0vfhVVGHw7rNG jaC7HEOs0oimzAdjID6vAxxzkMvhWWCPQiTV09ws= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Cedric Xing , Dave Hansen , Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Sasha Levin Subject: [PATCH 5.15 105/206] x86: make page fault handling disable interrupts properly Date: Wed, 4 Feb 2026 15:38:56 +0100 Message-ID: <20260204143901.990998366@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [104.64.211.4 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cedric Xing [ Upstream commit 614da1d3d4cdbd6e41aea06bc97ec15aacff6daf ] There's a big comment in the x86 do_page_fault() about our interrupt disabling code: * User address page fault handling might have reenabled * interrupts. Fixing up all potential exit points of * do_user_addr_fault() and its leaf functions is just not * doable w/o creating an unholy mess or turning the code * upside down. but it turns out that comment is subtly wrong, and the code as a result is also wrong. Because it's certainly true that we may have re-enabled interrupts when handling user page faults. And it's most certainly true that we don't want to bother fixing up all the cases. But what isn't true is that it's limited to user address page faults. The confusion stems from the fact that we have logic here that depends on the address range of the access, but other code then depends on the _context_ the access was done in. The two are not related, even though both of them are about user-vs-kernel. In other words, both user and kernel addresses can cause interrupts to have been enabled (eg when __bad_area_nosemaphore() gets called for user accesses to kernel addresses). As a result we should make sure to disable interrupts again regardless of the address range before returning to the low-level fault handling code. The __bad_area_nosemaphore() code actually did disable interrupts again after enabling them, just not consistently. Ironically, as noted in the original comment, fixing up all the cases is just not worth it, when the simple solution is to just do it unconditionally in one single place. So remove the incomplete case that unsuccessfully tried to do what the comment said was "not doable" in commit ca4c6a9858c2 ("x86/traps: Make interrupt enable/disable symmetric in C code"), and just make it do the simple and straightforward thing. Signed-off-by: Cedric Xing Reviewed-by: Dave Hansen Fixes: ca4c6a9858c2 ("x86/traps: Make interrupt enable/disable symmetric in C code") Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/x86/mm/fault.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 31afd82b95245..7215e74076ec9 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -804,8 +804,6 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, force_sig_pkuerr((void __user *)address, pkey); else force_sig_fault(SIGSEGV, si_code, (void __user *)address); - - local_irq_disable(); } static noinline void @@ -1443,15 +1441,12 @@ handle_page_fault(struct pt_regs *regs, unsigned long error_code, do_kern_addr_fault(regs, error_code, address); } else { do_user_addr_fault(regs, error_code, address); - /* - * User address page fault handling might have reenabled - * interrupts. Fixing up all potential exit points of - * do_user_addr_fault() and its leaf functions is just not - * doable w/o creating an unholy mess or turning the code - * upside down. - */ - local_irq_disable(); } + /* + * page fault handling might have reenabled interrupts, + * make sure to disable them again. + */ + local_irq_disable(); } DEFINE_IDTENTRY_RAW_ERRORCODE(exc_page_fault) -- 2.51.0 From - Wed Feb 04 15:08:21 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id wCK9MuFgg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:17 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:18 +0000 Received: from tor.lore.kernel.org ([172.105.105.114]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUL-00000006qOL-2s31 for hi@josie.lol; Wed, 04 Feb 2026 15:08:17 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id DD08430772B2 for ; Wed, 4 Feb 2026 15:03:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB2341C2E7; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="oZjWKczv" X-Original-To: linux-s390@vger.kernel.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 A3EAC41B359; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; cv=none; b=B+YT6AxHNqxc+KNEeOzL7KPRvSmfmq3P8gbyDW3BfxwNAz0q8nRBXehVAlKsAv4XUb+Yx89dTStrdopoPpqvpZviv1ZOjxWJO2Zp1Q8lCPgbw8wVnBQCX4g64cCXpdS5P4K5UIUNewDooAhIk00dd3l52sxgQow6MaAT6DdSWnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; c=relaxed/simple; bh=2G/RNx8tFc20K9NAY2KiZ4CkWJ7nDB/pbKmFm1hV4Rk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r2VMe+eVW/u2eyjpdh4ZYi2r/TCvNXHQ8RqLTPoK0/Z+qkDCvoD4Pqraj2aAcgwfIXmEWvjZ7Tyu8kcFPLJRuwx968G3bjoT+4wG3T88bY5faxW9iJ0Vz+jmBKjcbRee7sWy9h7yGpslmSCwnaBX7+0fo62lPjh5XxtTkbF2PKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=oZjWKczv; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 61408RTb021631; Wed, 4 Feb 2026 15:03:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=9qirMlnR08lnLuOsu ocG1SXixr7jpbIgJF3CIcBfEdM=; b=oZjWKczvi3uD9IqkGeAffKvKQv1o44VVn KF4pypeX/bGAEp0F0uEetd8ZYPi4g3Bdh2Mq4sqvV1+sK/aZXleAOgeNjr9yT1dX G8NTXrmh3t1aK1e5p2gxfnl+RJnICO5BLdtxYCspJjw8Aydhn8SvUxwUT3SmODlg wt7w7eqkPOslANkidufOz7J5wqSFARP6ZpK0kyFp2XUrkb1knOe659tLDhz6f1xe W2NDSPAdLZwnLNvGQbbuHeHwabEcb1IvdrB1KVwsJlNe9SVrilQyfArry7Ver4MK f2a8u8zhwSMs6c8QwPDdCYFQwW7rLCYZAyjVghzNhgExamBI9UCeQ== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c1986jf5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:07 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 614C9Q07009115; Wed, 4 Feb 2026 15:03:05 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4c1vey5s29-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:05 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 614F31aC16777720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Feb 2026 15:03:01 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E0792004B; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 11F882004F; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) Received: from p-imbrenda.aag-de.ibm.com (unknown [9.52.223.175]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Feb 2026 15:03:01 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, nsg@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com, gra@linux.ibm.com, schlameuss@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com, david@kernel.org, gerald.schaefer@linux.ibm.com Subject: [PATCH v7 06/29] KVM: s390: Introduce import_lock Date: Wed, 4 Feb 2026 16:02:35 +0100 Message-ID: <20260204150259.60425-7-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260204150259.60425-1-imbrenda@linux.ibm.com> References: <20260204150259.60425-1-imbrenda@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfX8xAwTD2nPO+5 RXunBXovkNX9LpSoBeQB8iiS/yxM7SC1RoeNKodBBE1QjbYe5HoDDgE9XXVdnGiEcf+8ogEUiDs YvasaGBF3CMzNEmNLQSuMKm+j+Vy/vx4wpfS+9vorguSZNPUWhysnUR/I6/DwWOkEG50gbyLZgh /CVx5xvLjTD/Vio4zPTAP87UEIwBg4FTMj+Q9335rjf3syXq4BatWQOElC65AKBOxmqZWXfdQOH zidKL8qa6fjmHY1TR92HA+SBVTBlKUK9SoYaJ/1WDvLjioFqlDHXGMpeganaaEKsZdMxwa49QnO NF4jMOv9gkW5DGMd/Nc12uYtzoZgtL+UiQwMzlWtrsS7k2w1VX7AmVmoefZr13ycCCZnjCEhBvX iDySWUzK7wpxAz4u14F7omOTZ75JenQrGq9iMYGWTz3lhEUW2SwM0pm+M//eCPqQQqIY+NgNFu3 X2c+gjlWTu/fM7mhjUg== X-Proofpoint-GUID: CkTnNpl9gYGbYk7wOXVeDTjwIFd9nvoo X-Authority-Analysis: v=2.4 cv=DbAaa/tW c=1 sm=1 tr=0 ts=69835fab cx=c_pps a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=ukBcN2NOhkw1kEjOR7IA:9 X-Proofpoint-ORIG-GUID: CkTnNpl9gYGbYk7wOXVeDTjwIFd9nvoo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 adultscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.105.105.114 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 Introduce import_lock to avoid future races when converting pages to secure. Signed-off-by: Claudio Imbrenda --- arch/s390/include/asm/kvm_host.h | 2 ++ arch/s390/kvm/kvm-s390.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index ae1223264d3c..3dbddb7c60a9 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h @@ -630,6 +630,8 @@ struct kvm_s390_pv { void *set_aside; struct list_head need_cleanup; struct mmu_notifier mmu_notifier; + /* Protects against concurrent import-like operations */ + struct mutex import_lock; }; struct kvm_arch { diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 56a50524b3ee..cd39b2f099ca 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -3330,6 +3330,8 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) char debug_name[16]; int i, rc; + mutex_init(&kvm->arch.pv.import_lock); + rc = -EINVAL; #ifdef CONFIG_KVM_S390_UCONTROL if (type & ~KVM_VM_S390_UCONTROL) -- 2.52.0 From - Wed Feb 04 15:08:28 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id wNhLOedgg2kbHBgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:23 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:24 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUR-00000006qhM-2jsI for hi@josie.lol; Wed, 04 Feb 2026 15:08:23 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 373BC31A8CCE for ; Wed, 4 Feb 2026 14:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D04B421F04; Wed, 4 Feb 2026 14:56:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BH2ld16m" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7A48141C2EB; Wed, 4 Feb 2026 14:56:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216998; cv=none; b=M5MgJv6M92cHkrU7VEOfxjg9tafY9AGfu8dLh3CXtgiFvAhNL2J2KDXb6rckFsH1MVAv7mlR629XBDsyAi3ORciu7l0+pPC608/66afcBkDD74ZDfUZwLWfc8c3yFxvEzRh27kEQjHc+cWgZQUUo4jWzcy+pILhKwR5NuRwv7M0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216998; c=relaxed/simple; bh=PljIYR1X3FB6++nxGXXP9g/9+B3LaIK5ZBjt9lKzlB8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OHb4mgoNKTRs/L5eH351jnaQiONnYbwfGEv50umzy0ixpnnATI9bKZvbfEtV9GWYNs34Fpk3hRAMCcNbBVufY0a5hY8/ngUErNGbE4l7T/UdAKabpcxqoDnNXrm9/A7p0Ke81JxbY7Foln8eyOlnwojOCLYTB/iFC3j9S/tBgG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BH2ld16m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0126C4CEF7; Wed, 4 Feb 2026 14:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216998; bh=PljIYR1X3FB6++nxGXXP9g/9+B3LaIK5ZBjt9lKzlB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BH2ld16mG/1FNNtpju4DyTgYaBr+yGbsT3mhN/R6XurZA8zYLh99Fh49uKtAphhA3 +27jb7ssvZ6gJzcX+2Z4JwOXM0AMHAK4KzMYWZCT4Ka4oUE3pAjDCoP7Q3sdChgMjl lLfRFialj+JJ5TcgHNGc8u8IcjcwXq9zsKUARKMs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jakub Kicinski , Shuah Khan , Richard Cochran , Maciek Machnikowski , Rahul Rameshbabu , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 060/206] testptp: Add support for testing ptp_clock_info .adjphase callback Date: Wed, 4 Feb 2026 15:38:11 +0100 Message-ID: <20260204143900.378030415@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rahul Rameshbabu [ Upstream commit 3a9a9a6139286584d1199f555fa4f96f592a3217 ] Invoke clock_adjtime syscall with tx.modes set with ADJ_OFFSET when testptp is invoked with a phase adjustment offset value. Support seconds and nanoseconds for the offset value. Cc: Jakub Kicinski Cc: Shuah Khan Cc: Richard Cochran Cc: Maciek Machnikowski Signed-off-by: Rahul Rameshbabu Acked-by: Richard Cochran Signed-off-by: David S. Miller Stable-dep-of: 76868642e427 ("testptp: Add option to open PHC in readonly mode") Signed-off-by: Sasha Levin --- tools/testing/selftests/ptp/testptp.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ptp/testptp.c b/tools/testing/selftests/ptp/testptp.c index b943a594ea733..eec05f659950a 100644 --- a/tools/testing/selftests/ptp/testptp.c +++ b/tools/testing/selftests/ptp/testptp.c @@ -134,6 +134,7 @@ static void usage(char *progname) " 1 - external time stamp\n" " 2 - periodic output\n" " -n val shift the ptp clock time by 'val' nanoseconds\n" + " -o val phase offset (in nanoseconds) to be provided to the PHC servo\n" " -p val enable output with a period of 'val' nanoseconds\n" " -H val set output phase to 'val' nanoseconds (requires -p)\n" " -w val set output pulse width to 'val' nanoseconds (requires -p)\n" @@ -167,6 +168,7 @@ int main(int argc, char *argv[]) int adjfreq = 0x7fffffff; int adjtime = 0; int adjns = 0; + int adjphase = 0; int capabilities = 0; int extts = 0; int flagtest = 0; @@ -188,7 +190,7 @@ int main(int argc, char *argv[]) progname = strrchr(argv[0], '/'); progname = progname ? 1+progname : argv[0]; - while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:p:P:sSt:T:w:z"))) { + while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:sSt:T:w:z"))) { switch (c) { case 'c': capabilities = 1; @@ -228,6 +230,9 @@ int main(int argc, char *argv[]) case 'n': adjns = atoi(optarg); break; + case 'o': + adjphase = atoi(optarg); + break; case 'p': perout = atoll(optarg); break; @@ -327,6 +332,18 @@ int main(int argc, char *argv[]) } } + if (adjphase) { + memset(&tx, 0, sizeof(tx)); + tx.modes = ADJ_OFFSET | ADJ_NANO; + tx.offset = adjphase; + + if (clock_adjtime(clkid, &tx) < 0) { + perror("clock_adjtime"); + } else { + puts("phase adjustment okay"); + } + } + if (gettime) { if (clock_gettime(clkid, &ts)) { perror("clock_gettime"); -- 2.51.0 From - Wed Feb 04 15:08:31 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id iCjfOOlgg2lM9xYAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:25 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:26 +0000 Received: from sea.lore.kernel.org ([172.234.253.10]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUT-00000006qlz-2aag for hi@josie.lol; Wed, 04 Feb 2026 15:08:25 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 4D04C31A9730 for ; Wed, 4 Feb 2026 14:58:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9350421F06; Wed, 4 Feb 2026 14:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jFOZUSNy" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 963A73D3CF2; Wed, 4 Feb 2026 14:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217002; cv=none; b=X/q5VdOjeyrwM+sMieC63Erk9Mk3pRMv4qaI5KWrjwOdlxNFq66lQ0RH3nghrVv6x7WHjXUFdVn+m+PltxfnLz+uSBUHL+hjeN8I4duNARRd2QrlyAvGp8xOQ9zulFmrMuZxMTSL+kl5smChu3HnhnZGrKnu4Fiuw8NTKFbiYxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217002; c=relaxed/simple; bh=TSIMWbg+YwbE9WYd711TOOhKdFHfKOG1JmR75JkXuak=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b0Vp91tSxLreWWRBxUW3PRxLDGhwo/FsH1a5B5ZE7ThA8ASY7pMOAG+44yUyr4MnKg9xhotHdtUKOtmf6q87sYQORNcvwWcNrJ8vfAgH/FpYp/RfZt2FmURtG1QfxtMKLgUesO+r3JS/D6yFq3vkcjEMfEjgIL0xxXv1xqssm/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jFOZUSNy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3094C4CEF7; Wed, 4 Feb 2026 14:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217002; bh=TSIMWbg+YwbE9WYd711TOOhKdFHfKOG1JmR75JkXuak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jFOZUSNyT/dnOt3jmMpj4QMJDiAYM5x/jq9EX5xYwookUuIQiSRKQ7CaCryZmAlRq ov0OYOrLuzGWUnoAvxD4u10yR8Q0eOhlU2DwqvmXXbHNjSwgg8sLmq9bDL47DQIQka 85eC7814HM7fgg9Iq3iyV7VJnTipFh7QEirshb/A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Maftei , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 061/206] selftests/ptp: Add -x option for testing PTP_SYS_OFFSET_EXTENDED Date: Wed, 4 Feb 2026 15:38:12 +0100 Message-ID: <20260204143900.414061705@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.234.253.10 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Maftei [ Upstream commit c8ba75c4eb846888f8f2730690b99cb5bf7b337c ] The -x option (where 'x' stands for eXtended) takes an argument which represents the number of samples to request from the PTP device. The help message will display the maximum number of samples allowed. Providing an invalid argument will also display the maximum number of samples allowed. Signed-off-by: Alex Maftei Signed-off-by: David S. Miller Stable-dep-of: 76868642e427 ("testptp: Add option to open PHC in readonly mode") Signed-off-by: Sasha Levin --- tools/testing/selftests/ptp/testptp.c | 44 +++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ptp/testptp.c b/tools/testing/selftests/ptp/testptp.c index eec05f659950a..d3cbd254a196d 100644 --- a/tools/testing/selftests/ptp/testptp.c +++ b/tools/testing/selftests/ptp/testptp.c @@ -143,8 +143,9 @@ static void usage(char *progname) " -S set the system time from the ptp clock time\n" " -t val shift the ptp clock time by 'val' seconds\n" " -T val set the ptp clock time to 'val' seconds\n" + " -x val get an extended ptp clock time with the desired number of samples (up to %d)\n" " -z test combinations of rising/falling external time stamp flags\n", - progname); + progname, PTP_MAX_SAMPLES); } int main(int argc, char *argv[]) @@ -158,6 +159,7 @@ int main(int argc, char *argv[]) struct timex tx; struct ptp_clock_time *pct; struct ptp_sys_offset *sysoff; + struct ptp_sys_offset_extended *soe; char *progname; unsigned int i; @@ -176,6 +178,7 @@ int main(int argc, char *argv[]) int index = 0; int list_pins = 0; int pct_offset = 0; + int getextended = 0; int n_samples = 0; int pin_index = -1, pin_func; int pps = -1; @@ -190,7 +193,7 @@ int main(int argc, char *argv[]) progname = strrchr(argv[0], '/'); progname = progname ? 1+progname : argv[0]; - while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:sSt:T:w:z"))) { + while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:sSt:T:w:x:z"))) { switch (c) { case 'c': capabilities = 1; @@ -255,6 +258,15 @@ int main(int argc, char *argv[]) case 'w': pulsewidth = atoi(optarg); break; + case 'x': + getextended = atoi(optarg); + if (getextended < 1 || getextended > PTP_MAX_SAMPLES) { + fprintf(stderr, + "number of extended timestamp samples must be between 1 and %d; was asked for %d\n", + PTP_MAX_SAMPLES, getextended); + return -1; + } + break; case 'z': flagtest = 1; break; @@ -533,6 +545,34 @@ int main(int argc, char *argv[]) free(sysoff); } + if (getextended) { + soe = calloc(1, sizeof(*soe)); + if (!soe) { + perror("calloc"); + return -1; + } + + soe->n_samples = getextended; + + if (ioctl(fd, PTP_SYS_OFFSET_EXTENDED, soe)) { + perror("PTP_SYS_OFFSET_EXTENDED"); + } else { + printf("extended timestamp request returned %d samples\n", + getextended); + + for (i = 0; i < getextended; i++) { + printf("sample #%2d: system time before: %lld.%09u\n", + i, soe->ts[i][0].sec, soe->ts[i][0].nsec); + printf(" phc time: %lld.%09u\n", + soe->ts[i][1].sec, soe->ts[i][1].nsec); + printf(" system time after: %lld.%09u\n", + soe->ts[i][2].sec, soe->ts[i][2].nsec); + } + } + + free(soe); + } + close(fd); return 0; } -- 2.51.0 From - Wed Feb 04 15:08:31 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id gPhLGOpgg2kbHBgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:26 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:26 +0000 Received: from sin.lore.kernel.org ([104.64.211.4]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUT-00000006qkW-314r for hi@josie.lol; Wed, 04 Feb 2026 15:08:26 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 9D4CC301D9B0 for ; Wed, 4 Feb 2026 14:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA36041C31C; Wed, 4 Feb 2026 14:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="skD5HUCl" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A386241C318; Wed, 4 Feb 2026 14:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217053; cv=none; b=ZqlXJRsHghsgQ4bW3VvU0duHBHpk7zniB008TCEVRihY6aPltrrfDXLSzMuT8zmp2H60u+5v4bOHvAaqnmwKNbFpShW4VJcvI6jUw8YRy5llCcMp8Zr2KJuhvim++WU2anzwVJ1w+XkSp7UNaozn9+9X+bqboqP7W0O+/q4y0pU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217053; c=relaxed/simple; bh=6Z0pD8S3/nvxzJ9aHl3nKrHsxU1YGm6VPIRNGTwFhXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KRzuCg8ea5bauVJ/jc9PCb+CfsN38vsIzCoGOVTujUiR8vrKN+Z7qBZJYE6Yhske9MSWvVQV7R+q+U40urLy7sv24IsM+lqfNEiD+0r253T3O1zmLBld3d7qmCvqnFpeZDXdbVdOMEmPojG+vKpWVYj2m7PW7PGXp7CCiSv+BY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=skD5HUCl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4317C4CEF7; Wed, 4 Feb 2026 14:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217053; bh=6Z0pD8S3/nvxzJ9aHl3nKrHsxU1YGm6VPIRNGTwFhXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=skD5HUCluII2Pp+m7fdInxiVmHwSm7RWdE6FM4KB+fR8qQihGXel6t1CVjjaMwa7O vfHIEEYDKJjhHtWXH9T8qgMvd2lSt3h6h5mLjNyCgqytoZ8uQ4HDWInHxoAeA7Gp0/ QUbBwEFiYAkyR1Lmra/KcW6fqi/i7VaRLdjuAKog= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Andreas=20K=C3=BCbrich?= , Jonathan Cameron Subject: [PATCH 5.15 110/206] iio: dac: ad5686: add AD5695R to ad5686_chip_info_tbl Date: Wed, 4 Feb 2026 15:39:01 +0100 Message-ID: <20260204143902.168640239@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [104.64.211.4 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kübrich, Andreas commit 441ac29923c9172bc5e4b2c4f52ae756192f5715 upstream. The chip info for this variant (I2C, four channels, 14 bit, internal reference) seems to have been left out due to oversight, so ad5686_chip_info_tbl[ID_AD5695R] is all zeroes. Initialisation of an AD5695R still succeeds, but the resulting IIO device has no channels and no /dev/iio:device* node. Add the missing chip info to the table. Fixes: 4177381b4401 ("iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support") Signed-off-by: Andreas Kübrich Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/dac/ad5686.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -427,6 +427,12 @@ static const struct ad5686_chip_info ad5 .num_channels = 4, .regmap_type = AD5686_REGMAP, }, + [ID_AD5695R] = { + .channels = ad5685r_channels, + .int_vref_mv = 2500, + .num_channels = 4, + .regmap_type = AD5686_REGMAP, + }, [ID_AD5696] = { .channels = ad5686_channels, .num_channels = 4, From - Wed Feb 04 15:08:31 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id MIUVA+tgg2lM9xYAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:27 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:27 +0000 Received: from tor.lore.kernel.org ([172.105.105.114]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUU-00000006qnX-3dcY for hi@josie.lol; Wed, 04 Feb 2026 15:08:27 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id B683B307B815 for ; Wed, 4 Feb 2026 15:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 079F241C2F2; Wed, 4 Feb 2026 15:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="ZDy7EhYw" X-Original-To: linux-s390@vger.kernel.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 B0F5841B36D; Wed, 4 Feb 2026 15:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; cv=none; b=n3XYU8lUOpehw4gJ0MeChqxoHBtshO2ix0g1ML79QqNBCVOOMTSm4l6EtDhj95HmgDDYoHuCKET/JzO7GLPaXHbx5j9f1sGy4Kz+PVTnjsFcMEX0U4K2IXgKveHUh2nmUDtXek/ewSde57wCcpxqKI+edW7xzlYOivpr2ICu890= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217389; c=relaxed/simple; bh=ppddRHBjjzuGKYC56DMR9Y/6uMZxA+vA361WbAMUQjk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CLxgUagsIGl7F8bnh9MZRELWa/47ZaE+I7G67mTU9pR1YRw9S8dOGTVm3lpZkQy5Qkdyhb4u8Q1UN04bdv02FLvgyW0Iq9gYWRC1Q3g1zh05QeuCwrbqYSq0xxNaaMx6XiJ/EM5rv6i5bYo7J6FMyqJUSpr07njs8MSNOvWVlA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=ZDy7EhYw; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 6149VkGO016593; Wed, 4 Feb 2026 15:03:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=53+6YA0gHtcxVllIt onUc6YdfZpmIkiOnoO0JHtuaEQ=; b=ZDy7EhYwCShykWabk+oCcN4TGVZmr3T78 Vf4AYsrSxfaXg2/rEW07O7mFUgXOzfbhmdAkufqnb5Y9OHmKenf+hvs+E5wm/he5 YL9DVNytGygDC/YxURIBcZVDdCUWrWQBTJt+X8ji6taZ+WYBL9ZLcTIAm4DtGgB3 2z+1xD7e7EvVz2Dm8tmxhLAvbF3r++KQ1ibfjosnGk5yyehvKVLZdJDnfyUKvcPG iSSSP7bMgA1fRHDIXA/yDmpJ2pIwpVzqBEUGzPeQk4VmBV00S6uZNMLp7+aV4Aph A30bO+qhFs+texMkUlBqQaGeVMTJMA5VpPZqKwkxnROP4a1y32baw== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c185gyw6v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:05 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 614EP2Y4027348; Wed, 4 Feb 2026 15:03:04 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4c1xs1dcqy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:04 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 614F30XR57606578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Feb 2026 15:03:00 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B117C2004B; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 70AA720043; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) Received: from p-imbrenda.aag-de.ibm.com (unknown [9.52.223.175]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, nsg@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com, gra@linux.ibm.com, schlameuss@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com, david@kernel.org, gerald.schaefer@linux.ibm.com Subject: [PATCH v7 04/29] s390: Move sske_frame() to a header Date: Wed, 4 Feb 2026 16:02:33 +0100 Message-ID: <20260204150259.60425-5-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260204150259.60425-1-imbrenda@linux.ibm.com> References: <20260204150259.60425-1-imbrenda@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Authority-Analysis: v=2.4 cv=UdxciaSN c=1 sm=1 tr=0 ts=69835fa9 cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=cwyL-bC_1qH1TysSW8cA:9 X-Proofpoint-GUID: d8fLPXytuwIq-LUUZV29sDKVdqYH2iAQ X-Proofpoint-ORIG-GUID: d8fLPXytuwIq-LUUZV29sDKVdqYH2iAQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfX7fsom2Y+PQVk GV207boAikW8WXnpETheRyM9RS10xR5jBvezkkp4TLJ2OAxuUXLYaPPJQVRnOZqJqfIoOR3/Www S9iMPjcOcgcgywSN5OauUjPirx1r8fyLf/11nP+6SbnN1v6GUMBvSk6pzf9dHAFos8DygIAzCTC lE/7JYpFZjoaQ4j/NKnbIx1tjAzt4435++++srSamOEwKylFHjnwGea8VfUsX30Jj9EzZhlIRZG KS73cmoi6tddvf/gylaCoXAvBztgy2i4bOUQP129Emu1NcVsNUbBC88lBhsx32QX1Ehr9onsCR2 xdFGfDfdrP1Q39J6L98sU+voiFtmpJaSC0Vr6VEdyDJ64xRt/2+Am8uG0F/HRgt4wEV3twgrpJ2 lKx0GkdLjI5Y5SF02Zce6Fcu5WM55ZHjk2BRnOLUmt+63Th34U3s53IJqh76dsAElr23vSJeofF 8fnQo/osEY78OZdBQBA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.105.105.114 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 Move the sske_frame() function to asm/pgtable.h, so it can be used in other modules too. Opportunistically convert the .insn opcode specification to the appropriate mnemonic. Signed-off-by: Claudio Imbrenda Reviewed-by: Christian Borntraeger Reviewed-by: Steffen Eiden Reviewed-by: Christoph Schlameuss Reviewed-by: Nina Schoetterl-Glausch --- arch/s390/include/asm/pgtable.h | 7 +++++++ arch/s390/mm/pageattr.c | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 8194a2b12ecf..73c30b811b98 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1136,6 +1136,13 @@ static inline pte_t pte_mkhuge(pte_t pte) } #endif +static inline unsigned long sske_frame(unsigned long addr, unsigned char skey) +{ + asm volatile("sske %[skey],%[addr],1" + : [addr] "+a" (addr) : [skey] "d" (skey)); + return addr; +} + #define IPTE_GLOBAL 0 #define IPTE_LOCAL 1 diff --git a/arch/s390/mm/pageattr.c b/arch/s390/mm/pageattr.c index d3ce04a4b248..bb29c38ae624 100644 --- a/arch/s390/mm/pageattr.c +++ b/arch/s390/mm/pageattr.c @@ -16,13 +16,6 @@ #include #include -static inline unsigned long sske_frame(unsigned long addr, unsigned char skey) -{ - asm volatile(".insn rrf,0xb22b0000,%[skey],%[addr],1,0" - : [addr] "+a" (addr) : [skey] "d" (skey)); - return addr; -} - void __storage_key_init_range(unsigned long start, unsigned long end) { unsigned long boundary, size; -- 2.52.0 From - Wed Feb 04 15:08:37 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id eEB0FO1gg2mvhxgAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:29 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:29 +0000 Received: from sto.lore.kernel.org ([172.232.135.74]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUW-00000006qs9-41uL for hi@josie.lol; Wed, 04 Feb 2026 15:08:29 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 5D5D83014A1A for ; Wed, 4 Feb 2026 15:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 885B44219FF; Wed, 4 Feb 2026 15:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MH/Y6uOW" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 645BE4219F1; Wed, 4 Feb 2026 15:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217391; cv=none; b=jvp4F0n4BOdje8yw2lweTSEoSRvuuaJHRsohyZ0xqTTHS3TGdRcpZ96D8T5QS3kjYBPbvwyS7PFrqzSWESxo31FYybKpfcpUvNvlRQPZJuW/5Pz1kiOWJ8ZbwUZ83XreBFT7zfvm0GurIxlrT3l4vNYpho27QW96l4bOwvUpJlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217391; c=relaxed/simple; bh=WAOF+j0vKhJwZWj1qPpKdfvrqD8G2qBkkpEQlB/8StU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SWC/nCzfbKpI+k50wfZwznRqjbBunXXW8j9xE6k7EWEn3zeDaYR/IrKBeYsFRwl7ObKulPV+dS9H3EBct0EHG8rZa0PL9nQtTjBNXQdyVcmDhcNp1yFSlmYgyhcqgCTw53bhfj5w14RBS6XUR94bhHxRE473RHnaiVKWvOU6RTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MH/Y6uOW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82B87C4AF0D; Wed, 4 Feb 2026 15:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217391; bh=WAOF+j0vKhJwZWj1qPpKdfvrqD8G2qBkkpEQlB/8StU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MH/Y6uOWSQSNhHC4KdBz77nv0acE52Jbi6HCf6hSdKSvPpIvU5j/CkhBSjh5NrO+N eFejiRnjasFuBSgG/j2+iFP+fIlFj3RtNVRL5gfGHnd5w+sewv1rOz4Koheww1n3S5 ukxam8RvkzI9N6SU+h14jbCVakipfJpCt4cyx+9w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johannes Berg , Kalle Valo Subject: [PATCH 5.15 202/206] wifi: cfg80211: use system_unbound_wq for wiphy work Date: Wed, 4 Feb 2026 15:40:33 +0100 Message-ID: <20260204143905.505759051@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DKIM: signer='linuxfoundation.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linuxfoundation.org] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.232.135.74 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johannes Berg commit 91d20ab9d9ca035527af503d00e1e30d6c375f2a upstream. Since wiphy work items can run pretty much arbitrary code in the stack/driver, it can take longer to run all of this, so we shouldn't be using system_wq via schedule_work(). Also, we lock the wiphy (which is the reason this exists), so use system_unbound_wq. Reported-and-tested-by: Kalle Valo Fixes: a3ee4dc84c4e ("wifi: cfg80211: add a work abstraction with special semantics") Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -1593,7 +1593,7 @@ void wiphy_work_queue(struct wiphy *wiph list_add_tail(&work->entry, &rdev->wiphy_work_list); spin_unlock_irqrestore(&rdev->wiphy_work_lock, flags); - schedule_work(&rdev->wiphy_work); + queue_work(system_unbound_wq, &rdev->wiphy_work); } EXPORT_SYMBOL_GPL(wiphy_work_queue); From - Wed Feb 04 15:08:37 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 4N3SKPBgg2nj7hUAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:32 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:32 +0000 Received: from sto.lore.kernel.org ([172.232.135.74]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUa-00000006qxp-030k for hi@josie.lol; Wed, 04 Feb 2026 15:08:32 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 28D40300DCDE for ; Wed, 4 Feb 2026 15:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95350421A04; Wed, 4 Feb 2026 15:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="K058GrJE" X-Original-To: linux-s390@vger.kernel.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 4A1B42BF002; Wed, 4 Feb 2026 15:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217391; cv=none; b=n5Z9ZvjI+nBcXLgviSqq7LDDil4ywMsr3xUl6HaXL/3gDsM2ot9irEunTAdS0lwcB6zgXJRFr7D+RGm99mlZp7BiLewICUGIzeZNh5J0IAhWZY28XIxsOqWSafz3OJpd9/Mkh7rIDamYbR0TwQnuLUoSp8rSjZchyz94lcUSlRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217391; c=relaxed/simple; bh=KKJC+YnSQfRueC8R5pCG5k1inUq4VYQQ3SDb0JxrwfI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eR8yYvZBjLN2UkQrHfA8qepSw2J2ozijgDgG/96dRxeCInmvY5NHdoWBUq+l44UzJsIE1vGoyxMu5YGetyxhDm/ct9R6LDYcjhkPWrDLmwMaSnoexEO/aYFMEZQTz4E9ptBAX4IykjXO180bkuMHBg+s3xx3+zSpX/8z6Kv4EG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=K058GrJE; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 61417gWB014178; Wed, 4 Feb 2026 15:03:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=HX2NRnK5H2nIdD2i/ 6mgkh0Vo4qi+8ItWn9NM+weks8=; b=K058GrJElbujo6c1PORl0ccCD0UnqyZ8I 4A6FWg9IcsckjhujQQOI6ld1H4lxveDnEpytDtzUaW18cp9bDYLS7iccsL1lY6fL Pe/ft9JKZl72wPt6Hv5XAmSIF8xZz6kYRrkqd7cgxL23TwxKEZkZCwwJfPOnG3W7 N9bTFGkNIjBfmmfH5LQVFB9WCY3uxVqeX7cLy5zuQjftJTB2uNHVcHBmLWuiJeQv lY5JmaNJ591GYJ+qRmmLfwuH22JCNIWL+vNJqILTnt8UWZ+lFwNrq90r+FKXi1U0 9KFLNSPVDXfKZlk/ZtkadCmLuC2CH4KEZmfMgK3LZV7LOzi7BdDAg== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c19cw7rna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:04 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 614Dc3pn005996; Wed, 4 Feb 2026 15:03:04 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4c1x9jde54-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Feb 2026 15:03:03 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 614F30Jq57606576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Feb 2026 15:03:00 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 692E92004D; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 282E72004B; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) Received: from p-imbrenda.aag-de.ibm.com (unknown [9.52.223.175]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 4 Feb 2026 15:03:00 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, nsg@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com, gra@linux.ibm.com, schlameuss@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com, david@kernel.org, gerald.schaefer@linux.ibm.com Subject: [PATCH v7 03/29] s390: Make UV folio operations work on whole folio Date: Wed, 4 Feb 2026 16:02:32 +0100 Message-ID: <20260204150259.60425-4-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260204150259.60425-1-imbrenda@linux.ibm.com> References: <20260204150259.60425-1-imbrenda@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA0MDExMyBTYWx0ZWRfX3eqmY//46mwP 31NCYE6TFPFHJelR2+VyS35z+Zkdi/AKvdxUWKoKFiW3U4bRQrq+csB9ZEhmuaO14t1yMyPKVu3 l/ao6l+yHAkbtmnODbngmJrKun9H+nkdB8AJtPLxWH0bHdM9vn/BQ/u4+xu+O8v/i7vPPN8wR/b 3i1g36XFcmw63C0Pa9FMdgD+b6CbuiCcG6Di4cyzbdgWJJeIb+o9GkNmg6B2KKnK9Bhnv6XZkMi jherSXv4YguOCWXqvoo3Rjq5coGVQ1IiFeiv2XZSiAMsQy0hiJFLRMmco1ot3NhcAfDUWLBbY+9 vur1q1jtRVG9iXjEQ8cj9XMpkMMjTCukN/4vrtPy6IT4AQtROCS5rKqZ3jP9DSDt545dssHpT8a axtnnWURtwuIyhdawQSoa2eBxfiTTGhj3pOgKW/Ewar0OxJsGf3GM1CERkaxHME9/fl+x1s/b6V HQcsD1APNpjmdqpiW3g== X-Authority-Analysis: v=2.4 cv=UuRu9uwB c=1 sm=1 tr=0 ts=69835fa8 cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=56eYp6RrapUnXBmR778A:9 X-Proofpoint-ORIG-GUID: y3_J4by3HLekC6oxvoHdPSQFtfUe7E5x X-Proofpoint-GUID: y3_J4by3HLekC6oxvoHdPSQFtfUe7E5x X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-04_04,2026-02-04_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 adultscore=0 clxscore=1015 phishscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2601150000 definitions=main-2602040113 X-DKIM: signer='ibm.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [172.232.135.74 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: 5 uv_destroy_folio() and uv_convert_from_secure_folio() should work on all pages in the folio, not just the first one. This was fine until now, but it will become a problem with upcoming patches. Signed-off-by: Claudio Imbrenda --- arch/s390/kernel/uv.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c index ed46950be86f..ca0849008c0d 100644 --- a/arch/s390/kernel/uv.c +++ b/arch/s390/kernel/uv.c @@ -134,14 +134,15 @@ static int uv_destroy(unsigned long paddr) */ int uv_destroy_folio(struct folio *folio) { + unsigned long i; int rc; - /* Large folios cannot be secure */ - if (unlikely(folio_test_large(folio))) - return 0; - folio_get(folio); - rc = uv_destroy(folio_to_phys(folio)); + for (i = 0; i < (1 << folio_order(folio)); i++) { + rc = uv_destroy(folio_to_phys(folio) + i * PAGE_SIZE); + if (rc) + break; + } if (!rc) clear_bit(PG_arch_1, &folio->flags.f); folio_put(folio); @@ -183,14 +184,15 @@ EXPORT_SYMBOL_GPL(uv_convert_from_secure); */ int uv_convert_from_secure_folio(struct folio *folio) { + unsigned long i; int rc; - /* Large folios cannot be secure */ - if (unlikely(folio_test_large(folio))) - return 0; - folio_get(folio); - rc = uv_convert_from_secure(folio_to_phys(folio)); + for (i = 0; i < (1 << folio_order(folio)); i++) { + rc = uv_convert_from_secure(folio_to_phys(folio) + i * PAGE_SIZE); + if (rc) + break; + } if (!rc) clear_bit(PG_arch_1, &folio->flags.f); folio_put(folio); -- 2.52.0 From - Wed Feb 04 15:08:40 2026 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id oAwZMPRgg2ngOBcAYBR5ng (envelope-from ) for ; Wed, 04 Feb 2026 15:08:36 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Wed, 04 Feb 2026 15:08:37 +0000 Received: from sin.lore.kernel.org ([104.64.211.4]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vneUe-00000006r39-0j5z for hi@josie.lol; Wed, 04 Feb 2026 15:08:36 +0000 Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 05C723009E0E for ; Wed, 4 Feb 2026 14:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46C1141C2E2; Wed, 4 Feb 2026 14:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KpeyWGD6" X-Original-To: stable@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 244FD41B37C; Wed, 4 Feb 2026 14:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217067; cv=none; b=uBGimB/ZuHeLVbTdYht1NxOHvuUMnx3JWcswK90kuSKVx3nVSjlCWEUBd8C4xq9lWZ7dB85RiZfO/jd7EwAfKPC4725uN0yTgVF9qQDaP+xBIPSWfUPrwlNQS8q3DSyXA/sgRWKSz5Am0qjDEYpdzwYH5/Z4eVZi7ejqnj1Ug4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217067; c=relaxed/simple; bh=WhxY5hF5Ny0D1hP6ImfIDzTVkMKYFrP59AquQ3fS+0o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nz6J0z0MbwZRqv+518xGquqKqEBvStOfZJ6rXQ8imeoMFwpcXQjhg3D6U5s5pp1H/LqOhDZHfEa8eT9BZiv8QisTAbeZfpIeFBhLNN+hOodsd6Pi/gzU/1e/OiRSensLur52QQv3dMuim2No9xzLFMh19pxrDiZkiv3cIv4e2hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KpeyWGD6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B87DC19423; Wed, 4 Feb 2026 14:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217066; bh=WhxY5hF5Ny0D1hP6ImfIDzTVkMKYFrP59AquQ3fS+0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KpeyWGD6kMpri+PFmEoo10IOW0xgqGQNcmWlffSlVb6hAh9pwitV7uSst9QtmJvZ6 BxbY27735GSInHWtblku/5GpG8/Lv0bf3wJ9rY2bqRlkmx9RRKQ/R3SlnZz4Xtysqj Al14lINB4AJNVLh/AeNEakT4vEowA7bKrj/5wTIY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matthew Schwartz , Ricky WU reation":{"ephemeral_1h_input_tokens":304,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"}},"requestId":"req_011CYowbaqTkq1jw9VvLvBtH","type":"assistant","uuid":"5a09712b-6e07-4fac-b45c-f1af5a3f0cfd","timestamp":"2026-03-07T15:17:33.784Z"} {"parentUuid":"5a09712b-6e07-4fac-b45c-f1af5a3f0cfd","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PreToolUse","hookName":"PreToolUse:Skill","command":"python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py"},"toolUseID":"toolu_012mtvfFNeJzwgo37x4EP7fL","parentToolUseID":"toolu_012mtvfFNeJzwgo37x4EP7fL","uuid":"69a34cad-42c8-4135-97b4-3fe5a4416564","timestamp":"2026-03-07T15:17:33.787Z"} {"parentUuid":"69a34cad-42c8-4135-97b4-3fe5a4416564","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PostToolUse","hookName":"PostToolUse:Skill","command":"python3 ${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.py"},"parentToolUseID":"toolu_012mtvfFNeJzwgo37x4EP7fL","toolUseID":"toolu_012mtvfFNeJzwgo37x4EP7fL","timestamp":"2026-03-07T15:17:33.870Z","uuid":"4e794602-b0e7-4edd-aa1b-462e37861cc7"} {"parentUuid":"5a09712b-6e07-4fac-b45c-f1af5a3f0cfd","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"user","message":{"role":"user","content":[{"type":"tool_result","tool_use_id":"toolu_012mtvfFNeJzwgo37x4EP7fL","content":"Launching skill: writing-plans"}]},"uuid":"404b2cd1-cddc-4d3d-91cf-53b0178cbd19","timestamp":"2026-03-07T15:17:33.869Z","toolUseResult":{"success":true,"commandName":"writing-plans"},"sourceToolAssistantUUID":"5a09712b-6e07-4fac-b45c-f1af5a3f0cfd"} {"parentUuid":"404b2cd1-cddc-4d3d-91cf-53b0178cbd19","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"user","message":{"role":"user","content":[{"type":"text","text":"Base directory for this skill: /home/josie/.claude/plugins/cache/superpowers-marketplace/superpowers/4.3.0/skills/writing-plans\n\n# Writing Plans\n\n## Overview\n\nWrite comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.\n\nAssume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.\n\n**Announce at start:** \"I'm using the writing-plans skill to create the implementation plan.\"\n\n**Context:** This should be run in a dedicated worktree (created by brainstorming skill).\n\n**Save plans to:** `docs/plans/YYYY-MM-DD-.md`\n\n## Bite-Sized Task Granularity\n\n**Each step is one action (2-5 minutes):**\n- \"Write the failing test\" - step\n- \"Run it to make sure it fails\" - step\n- \"Implement the minimal code to make the test pass\" - step\n- \"Run the tests and make sure they pass\" - step\n- \"Commit\" - step\n\n## Plan Document Header\n\n**Every plan MUST start with this header:**\n\n```markdown\n# [Feature Name] Implementation Plan\n\n> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.\n\n**Goal:** [One sentence describing what this builds]\n\n**Architecture:** [2-3 sentences about approach]\n\n**Tech Stack:** [Key technologies/libraries]\n\n---\n```\n\n## Task Structure\n\n````markdown\n### Task N: [Component Name]\n\n**Files:**\n- Create: `exact/path/to/file.py`\n- Modify: `exact/path/to/existing.py:123-145`\n- Test: `tests/exact/path/to/test.py`\n\n**Step 1: Write the failing test**\n\n```python\ndef test_specific_behavior():\n result = function(input)\n assert result == expected\n```\n\n**Step 2: Run test to verify it fails**\n\nRun: `pytest tests/path/test.py::test_name -v`\nExpected: FAIL with \"function not defined\"\n\n**Step 3: Write minimal implementation**\n\n```python\ndef function(input):\n return expected\n```\n\n**Step 4: Run test to verify it passes**\n\nRun: `pytest tests/path/test.py::test_name -v`\nExpected: PASS\n\n**Step 5: Commit**\n\n```bash\ngit add tests/path/test.py src/path/file.py\ngit commit -m \"feat: add specific feature\"\n```\n````\n\n## Remember\n- Exact file paths always\n- Complete code in plan (not \"add validation\")\n- Exact commands with expected output\n- Reference relevant skills with @ syntax\n- DRY, YAGNI, TDD, frequent commits\n\n## Execution Handoff\n\nAfter saving the plan, offer execution choice:\n\n**\"Plan complete and saved to `docs/plans/.md`. Two execution options:**\n\n**1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration\n\n**2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints\n\n**Which approach?\"**\n\n**If Subagent-Driven chosen:**\n- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development\n- Stay in this session\n- Fresh subagent per task + code review\n\n**If Parallel Session chosen:**\n- Guide them to open new session in worktree\n- **REQUIRED SUB-SKILL:** New session uses superpowers:executing-plans\n\n\nARGUMENTS: Create implementation plan from docs/plans/2026-03-07-shared-bouncer-design.md"}]},"isMeta":true,"uuid":"197ba89d-e671-48ac-90ff-bad61673dd44","timestamp":"2026-03-07T15:17:33.869Z","sourceToolUseID":"toolu_012mtvfFNeJzwgo37x4EP7fL"} {"parentUuid":"197ba89d-e671-48ac-90ff-bad61673dd44","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","message":{"model":"claude-opus-4-6","id":"msg_01VzBpAqqGJLsLSijByFMhea","type":"message","role":"assistant","content":[{"type":"text","text":"\n\nI'm using the writing-plans skill to create the implementation plan.\n\nLet me first gather the specific file details and code patterns I need to reference."}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":1068,"cache_read_input_tokens":71704,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":1068},"output_tokens":2,"service_tier":"standard","inference_geo":"not_available"}},"requestId":"req_011CYowbwBpu819ygpVXJfSH","type":"assistant","uuid":"6ddce231-bee0-497e-9704-82fb536e3879","timestamp":"2026-03-07T15:17:38.676Z"} {"parentUuid":"6ddce231-bee0-497e-9704-82fb536e3879","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","message":{"model":"claude-opus-4-6","id":"msg_01VzBpAqqGJLsLSijByFMhea","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_01939tXNFRbqhKjsL8xpEhVE","name":"Read","input":{"file_path":"/home/josie/development/irc-now/docs/plans/2026-03-07-shared-bouncer-design.md"},"caller":{"type":"direct"}}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":1068,"cache_read_input_tokens":71704,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":1068},"output_tokens":2,"service_tier":"standard","inference_geo":"not_available"}},"requestId":"req_011CYowbwBpu819ygpVXJfSH","type":"assistant","uuid":"89057370-ec1d-489f-ae27-54c160602aa6","timestamp":"2026-03-07T15:17:39.191Z"} {"parentUuid":"89057370-ec1d-489f-ae27-54c160602aa6","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PreToolUse","hookName":"PreToolUse:Read","command":"python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py"},"toolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","parentToolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","uuid":"27702edf-79b6-48c2-b2b8-8510e952e5c2","timestamp":"2026-03-07T15:17:39.193Z"} {"parentUuid":"27702edf-79b6-48c2-b2b8-8510e952e5c2","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","message":{"model":"claude-opus-4-6","id":"msg_01VzBpAqqGJLsLSijByFMhea","type":"message","role":"assistant","content":[{"type":"tool_use","id":"toolu_01GXE5NZ1peNeAa5jYsT4BfR","name":"Read","input":{"file_path":"/home/josie/development/irc-now/deploy/instances/soju-shared.yaml"},"caller":{"type":"direct"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":1068,"cache_read_input_tokens":71704,"output_tokens":175,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":1068,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"}},"requestId":"req_011CYowbwBpu819ygpVXJfSH","type":"assistant","uuid":"d53bfb9d-8d10-436c-bd71-2e7da5f89818","timestamp":"2026-03-07T15:17:39.294Z"} {"parentUuid":"d53bfb9d-8d10-436c-bd71-2e7da5f89818","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PreToolUse","hookName":"PreToolUse:Read","command":"python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py"},"toolUseID":"toolu_01GXE5NZ1peNeAa5jYsT4BfR","parentToolUseID":"toolu_01GXE5NZ1peNeAa5jYsT4BfR","uuid":"1349cdcc-767b-4d42-bbd9-16b89d134843","timestamp":"2026-03-07T15:17:39.295Z"} {"parentUuid":"1349cdcc-767b-4d42-bbd9-16b89d134843","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PostToolUse","hookName":"PostToolUse:Read","command":"python3 ${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.py"},"parentToolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","toolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","timestamp":"2026-03-07T15:19:27.164Z","uuid":"081d0aa4-6380-4663-9c9a-d8e8210c658a"} {"parentUuid":"081d0aa4-6380-4663-9c9a-d8e8210c658a","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"progress","data":{"type":"hook_progress","hookEvent":"PostToolUse","hookName":"PostToolUse:Read","command":"callback"},"parentToolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","toolUseID":"toolu_01939tXNFRbqhKjsL8xpEhVE","timestamp":"2026-03-07T15:19:27.164Z","uuid":"2d0d4bca-6009-46f5-bae3-938bc840cbdb"} {"parentUuid":"89057370-ec1d-489f-ae27-54c160602aa6","isSidechain":false,"userType":"external","cwd":"/home/josie/development/irc-now/notes","sessionId":"68961eda-ee75-4467-9276-905f887f8f6c","version":"2.1.70","gitBranch":"master","slug":"declarative-doodling-mist","type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_01939tXNFRbqhKjsL8xpEhVE","type":"tool_result","content":" 1→# Shared Bouncer Architecture Design\n 2→\n 3→Date: 2026-03-07\n 4→\n 5→## Overview\n 6→\n 7→Free-tier users sharto enable 2026-03-08T12:29:50.886Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.000Z [DEBUG] LSP Diagnostics: getLSPDiagnosticAttachments called 2026-03-08T12:29:51.000Z [DEBUG] LSP Diagnostics: Checking registry - 0 pending 2026-03-08T12:29:51.000Z [DEBUG] Hooks: Found 0 total hooks in registry 2026-03-08T12:29:51.001Z [DEBUG] Hooks: checkForNewResponses returning 0 responses 2026-03-08T12:29:51.001Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:51.001Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:51.002Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:51.002Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:51.002Z [DEBUG] Getting matching hook commands for UserPromptSubmit with query: undefined 2026-03-08T12:29:51.002Z [DEBUG] Found 2 hook matchers in settings 2026-03-08T12:29:51.002Z [DEBUG] Matched 2 unique hooks for query "no match query" (2 before deduplication) 2026-03-08T12:29:51.008Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.008Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.013Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.029Z [DEBUG] Hooks: Checking initial response for async: {"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": "PROMPT EVALUATION\n\nOriginal user request: \"no ther eis more\"\n\nEVALUATE: Is this prompt clear enough to execute, or does it need enrichment?\n\nPROCEED IMMEDIATELY if:\n- Detailed/specific OR you have sufficient context OR can infer intent\n\nONLY USE SKILL if genuinely vague (e.g., \"fix the bug\" with no context):\n- If vague:\n 1. First, preface with brief note: \"Hey! The Prompt Improver Hook flagged your prompt as a bit vague because [specific reason: ambiguous scope/missing context/unclear target/etc].\"\n 2. Then use the prompt-improver skill to research and generate clarifying questions\n- The skill will guide you through research, question generation, and execution\n- Trust user intent by default. Check conversation history before using the skill.\n\nIf clear, proceed with the original request. If vague, invoke the skill."}} 2026-03-08T12:29:51.029Z [DEBUG] Hooks: Parsed initial response: {"hookSpecificOutput":{"hookEventName":"UserPromptSubmit","additionalContext":"PROMPT EVALUATION\n\nOriginal user request: \"no ther eis more\"\n\nEVALUATE: Is this prompt clear enough to execute, or does it need enrichment?\n\nPROCEED IMMEDIATELY if:\n- Detailed/specific OR you have sufficient context OR can infer intent\n\nONLY USE SKILL if genuinely vague (e.g., \"fix the bug\" with no context):\n- If vague:\n 1. First, preface with brief note: \"Hey! The Prompt Improver Hook flagged your prompt as a bit vague because [specific reason: ambiguous scope/missing context/unclear target/etc].\"\n 2. Then use the prompt-improver skill to research and generate clarifying questions\n- The skill will guide you through research, question generation, and execution\n- Trust user intent by default. Check conversation history before using the skill.\n\nIf clear, proceed with the original request. If vague, invoke the skill."}} 2026-03-08T12:29:51.029Z [DEBUG] Hooks: Initial response is not async, continuing normal processing 2026-03-08T12:29:51.035Z [DEBUG] Successfully parsed and validated hook JSON output 2026-03-08T12:29:51.035Z [DEBUG] Hook UserPromptSubmit (UserPromptSubmit) success: {"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": "PROMPT EVALUATION\n\nOriginal user request: \"no ther eis more\"\n\nEVALUATE: Is this prompt clear enough to execute, or does it need enrichment?\n\nPROCEED IMMEDIATELY if:\n- Detailed/specific OR you have sufficient context OR can infer intent\n\nONLY USE SKILL if genuinely vague (e.g., \"fix the bug\" with no context):\n- If vague:\n 1. First, preface with brief note: \"Hey! The Prompt Improver Hook flagged your prompt as a bit vague because [specific reason: ambiguous scope/missing context/unclear target/etc].\"\n 2. Then use the prompt-improver skill to research and generate clarifying questions\n- The skill will guide you through research, question generation, and execution\n- Trust user intent by default. Check conversation history before using the skill.\n\nIf clear, proceed with the original request. If vague, invoke the skill."}} 2026-03-08T12:29:51.035Z [DEBUG] Hook UserPromptSubmit (python3 ${CLAUDE_PLUGIN_ROOT}/scripts/improve-prompt.py || python ${CLAUDE_PLUGIN_ROOT}/scripts/improve-prompt.py) provided additionalContext (827 chars) 2026-03-08T12:29:51.042Z [DEBUG] Hooks: Checking initial response for async: {} 2026-03-08T12:29:51.042Z [DEBUG] Hooks: Parsed initial response: {} 2026-03-08T12:29:51.042Z [DEBUG] Hooks: Initial response is not async, continuing normal processing 2026-03-08T12:29:51.048Z [DEBUG] Successfully parsed and validated hook JSON output 2026-03-08T12:29:51.048Z [DEBUG] Hook UserPromptSubmit (UserPromptSubmit) success: {} 2026-03-08T12:29:51.048Z [DEBUG] FileHistory: Making snapshot for message d17ed648-57d7-4306-bafc-00ba29c433f1 2026-03-08T12:29:51.063Z [DEBUG] FileHistory: Added snapshot for d17ed648-57d7-4306-bafc-00ba29c433f1, tracking 2 files 2026-03-08T12:29:51.066Z [DEBUG] Dynamic tool loading: found 4 discovered tools in message history 2026-03-08T12:29:51.066Z [DEBUG] Dynamic tool loading: 4/216 deferred tools included 2026-03-08T12:29:51.068Z [DEBUG] attribution header x-anthropic-billing-header: cc_version=2.1.70.0a4; cc_entrypoint=cli; cch=00000; 2026-03-08T12:29:51.068Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.068Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false 2026-03-08T12:29:51.068Z [DEBUG] [API:auth] OAuth token check starting 2026-03-08T12:29:51.068Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.069Z [DEBUG] [API:auth] OAuth token check complete 2026-03-08T12:29:51.069Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.075Z [DEBUG] [useDeferredValue] Messages deferred by 4 (442→446) 2026-03-08T12:29:51.081Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:51.088Z [DEBUG] High write ratio: blit=0, write=33784 (100.0% writes), screen=482x207 2026-03-08T12:29:53.738Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:54.699Z [DEBUG] Stream started - received first chunk 2026-03-08T12:29:56.413Z [DEBUG] [useDeferredValue] Messages deferred by 1 (446→447) 2026-03-08T12:29:56.422Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:56.430Z [DEBUG] High write ratio: blit=0, write=33961 (100.0% writes), screen=486x207 2026-03-08T12:29:56.431Z [DEBUG] executePreToolHooks called for tool: mcp__plugin_playwright_playwright__browser_snapshot 2026-03-08T12:29:56.431Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:56.431Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:56.431Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:56.431Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:56.432Z [DEBUG] Getting matching hook commands for PreToolUse with query: mcp__plugin_playwright_playwright__browser_snapshot 2026-03-08T12:29:56.432Z [DEBUG] Found 1 hook matchers in settings 2026-03-08T12:29:56.432Z [DEBUG] Matched 1 unique hooks for query "mcp__plugin_playwright_playwright__browser_snapshot" (1 before deduplication) 2026-03-08T12:29:56.434Z [DEBUG] [useDeferredValue] Messages deferred by 3 (446→449) 2026-03-08T12:29:56.440Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:29:56.448Z [DEBUG] High write ratio: blit=0, write=33974 (100.0% writes), screen=487x207 2026-03-08T12:29:56.465Z [DEBUG] Hooks: Checking initial response for async: {} 2026-03-08T12:29:56.465Z [DEBUG] Hooks: Parsed initial response: {} 2026-03-08T12:29:56.465Z [DEBUG] Hooks: Initial response is not async, continuing normal processing 2026-03-08T12:29:56.471Z [DEBUG] Successfully parsed and validated hook JSON output 2026-03-08T12:29:56.471Z [DEBUG] Hook PreToolUse:mcp__plugin_playwright_playwright__browser_snapshot (PreToolUse) success: {} 2026-03-08T12:29:56.472Z [DEBUG] Permission suggestions for mcp__plugin_playwright_playwright__browser_snapshot: [ { "type": "addRules", "rules": [ { "toolName": "mcp__plugin_playwright_playwright__browser_snapshot" } ], "behavior": "allow", "destination": "localSettings" } ] 2026-03-08T12:29:56.472Z [DEBUG] executePermissionRequestHooks called for tool: mcp__plugin_playwright_playwright__browser_snapshot 2026-03-08T12:29:56.472Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:56.472Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:56.472Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:56.472Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:29:56.472Z [DEBUG] Getting matching hook commands for PermissionRequest with query: mcp__plugin_playwright_playwright__browser_snapshot 2026-03-08T12:29:56.472Z [DEBUG] Found 0 hook matchers in settings 2026-03-08T12:29:56.472Z [DEBUG] Matched 0 unique hooks for query "mcp__plugin_playwright_playwright__browser_snapshot" (0 before deduplication) 2026-03-08T12:29:56.474Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:29:56.474Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:30:02.481Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:30:02.481Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:30:02.481Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:30:02.481Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json 2026-03-08T12:30:02.481Z [DEBUG] Getting matching hook commands for Notification with query: permission_prompt 2026-03-08T12:30:02.481Z [DEBUG] Found 0 hook matchers in settings 2026-03-08T12:30:02.481Z [DEBUG] Matched 0 unique hooks for query "permission_prompt" (0 before deduplication) 2026-03-08T12:30:39.440Z [DEBUG] MCP server "plugin:playwright:playwright": Calling MCP tool: browser_snapshot 2026-03-08T12:30:39.442Z [DEBUG] [useDeferredValue] Messages deferred by 1 (449→450) 2026-03-08T12:30:39.462Z [DEBUG] High write ratio: blit=0, write=33981 (100.0% writes), screen=487x207 2026-03-08T12:30:39.466Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:30:39.467Z [DEBUG] AutoUpdaterWrapper: Installation type: package-manager 2026-03-08T12:30:39.468Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable 2026-03-08T12:30:39.488Z [DEBUG] MCP server "plugin:playwright:playwright": Tool 'browser_snapshot' completed successfully in 48ms 2026-03-08T12:30:39.489Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT 2026-03-08T12:30:39.489Z [DEBUG] Broken symlink or missing file encountered for setting