Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67E3ACD98F9 for ; Thu, 18 Jun 2026 13:34:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1341185.1601693 (Exim 4.92) (envelope-from ) id 1waCsx-0001vk-HT; Thu, 18 Jun 2026 13:34:23 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1341185.1601693; Thu, 18 Jun 2026 13:34:23 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1waCsx-0001vd-Dx; Thu, 18 Jun 2026 13:34:23 +0000 Received: by outflank-mailman (input) for mailman id 1341185; Thu, 18 Jun 2026 13:34:22 +0000 Received: from mx.expurgate.net ([195.190.135.20]) by lists.xenproject.org with esmtp (Exim 4.92) id 1waCsv-0001vU-UT for xen-devel@lists.xenproject.org; Thu, 18 Jun 2026 13:34:22 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1waCsu-004Cga-OR for xen-devel@lists.xenproject.org; Thu, 18 Jun 2026 15:34:20 +0200 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a33f3d4-bab6-0a2a0a5309dd-0a2a450ac944-34 for ; Thu, 18 Jun 2026 15:34:20 +0200 Received: from [209.85.221.48] (helo=mail-wr1-f48.google.com) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.0) (envelope-from ) id 6a33f3dc-93a5-0a2a450a0019-d155dd30ddbd-3 for ; Thu, 18 Jun 2026 15:34:20 +0200 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-45ef779c1c2so761357f8f.1 for ; Thu, 18 Jun 2026 06:34:20 -0700 (PDT) Received: from [192.168.1.6] (user-109-243-148-111.play-internet.pl. [109.243.148.111]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f26f1cdsm65866714f8f.11.2026.06.18.06.34.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2026 06:34:19 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:In-Reply-To:From:Content-Language:References:Cc:To:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781789660; x=1782394460; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zd2wI4707PnIvtBCYLcVEyiMf/ibHw6tggtbvJmeoxQ=; b=YLnXOa4cjw4fb0WFqK5z1GugtjhnjRNWUZzCEBqV7yGw8+gWc0PfEeL4+wTNtODRC4 gWvKfygKLjmQD+xDqgAeFpvSnK46nq0cNsBhvsY0eSBqUuRFq6K5lZ5YpiIws8FHdq6L LqhqJxdhMG7ViODcDJTRIJ0MJfsuibnmznsbGYscn35AFQ3Y9AsZuD7HiMb7RvzYgmw6 j0avDBFQOVIv+giHJDiomc6glmfrPluAz4NJvkC4wGhR9wgmQa3E6ace2Hkb5h/L/xCc VTbX62M6F2UYSnigncAeCtGW6lZ/R/cCAbUtZuuftkLfGP6mTum4eE/weYUbplqH7APY jHPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781789660; x=1782394460; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zd2wI4707PnIvtBCYLcVEyiMf/ibHw6tggtbvJmeoxQ=; b=Y/KbUmfTZLbjKEmxQthVhDkF8pP9XxCPxaRZxNqLVUt7sOuw7TeG6jIiYpupdTA+yQ prEO8ManjjIfndQn6KzjF+Q3aiyhJhRuqAJ5uOmYQsIexVGnZoZ5CCVlwcvAI5/Tk9eB cZzNhBcJVe9k3C6q1FlKGDXViLV8PpACvVDbCg7Zu7uY0hA3J2WP6LrMli4TJhMjp7IX gsxo5IaszrXrNV+Xj7RNBNJmvsu6953Cvi5L+GGfgveYIte/RIIR2W36g8h51iVwdLYB FUxDxCa6hrr/4Hn+YyvgqUS0rRCJeICEfh5g4Rv6a4qyZJFg3Sa/yrBYBEgCtco53OmU tLrg== X-Forwarded-Encrypted: i=1; AFNElJ8z824ripkniHWFY9zgwh8XXdLwPR/A2AHVjYW6My6t3/XeMCOIqTY4DfHsqCw9fJZtwlOq/Xpx29I=@lists.xenproject.org X-Gm-Message-State: AOJu0YyfZA+JwLJgwGv2tBci5U0PN/09nY+OC5oytM7pYzdYtK9ifA1z +lskYWrw9MxeGUicUv6BvxO6do0dzvjUfUjZDpjtOnSsfe65tY1ikNGV2pJDpw== X-Gm-Gg: AfdE7ck5uITMdwHNhwwnhPVE2aelTa0TQ13OKBSfW2H400MY1QCAZK0pGj+DGm3mxlN vBJofAKSUKNL3asloo5WWLGHHl5MJKUDqnKo30V4a/r+PHYXAb//AzMOOQp0FlewNlOdvbqyAW9 dXP4QQrFM0lynzDIljIXlg/gDC2wYU2iD79UWZs3Itmj7O7X5V8du/SVCvpUp1HsJLpPZzDQSn0 Co5iK8abgfIgJnhnNmE7hIUcbovcpdAtyuA5dLcoaVXWMAjMhxSfacZqdVQ80tpFnac7OfUa8YE wCnUm5fTnGO6vH/JMuqRXa5b6F61r2KcCyGczGw0uWO0uhAqssL9CFtJ7RHcpmOor2QAPZ5lZlp 9WUAxAUEfAqxBO4AVwLz++buSIRlXbNle2WsydxFRaHVVeH5R+omLRgfklH5D3QaCEl56Ale+La xrzzBMUgkFjZ8n63op9pZ5SDO3EouVBd3IUrBUAPag7AWbf1Z9u+YeV44j23acs7v+U9M= X-Received: by 2002:a05:6000:4e3:b0:461:a169:f965 with SMTP id ffacd0b85a97d-462389d4b5cmr10310013f8f.34.1781789659872; Thu, 18 Jun 2026 06:34:19 -0700 (PDT) Message-ID: Date: Thu, 18 Jun 2026 15:34:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH for-4.22] XSM: guard .sysctl() and .readconsole() hooks To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Daniel Smith References: Content-Language: en-US From: Oleksii Kurochko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-ID: tlsNG-4011c0/1781789660-2D5F0DB8-957773EC/10/73395122804 X-purgate-type: spam X-purgate-size: 674 On 6/18/26 1:32 PM, Jan Beulich wrote: > Leaving the hook pointers in struct xsm_ops when !SYSCTL would lead to > the BUG_ON() in xsm_fixup_ops() triggering for respectively configured > hypervisors. > > While moving the #ifdef for the corresponding xsm_*() wrappers, also move > those for xsm_page_offline() (where the hook pointer field already is > suitably guarded). > > Fixes: c9eabaa03a68 ("xen/xsm: wrap around xsm_sysctl with CONFIG_SYSCTL") > Fixes: bddd9af6049f ("xen/sysctl: wrap around XEN_SYSCTL_readconsole") > Signed-off-by: Jan Beulich > Release-Acked-by: Oleskii Kurochko ~ Oleksii