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 6B98DCD4F3D for ; Thu, 21 May 2026 18:43:44 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1315793.1585480 (Exim 4.92) (envelope-from ) id 1wQ8Mk-00033I-As; Thu, 21 May 2026 18:43:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1315793.1585480; Thu, 21 May 2026 18:43:30 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQ8Mk-00033B-8F; Thu, 21 May 2026 18:43:30 +0000 Received: by outflank-mailman (input) for mailman id 1315793; Thu, 21 May 2026 18:43:28 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQ8Mi-00032s-8a for xen-devel@lists.xenproject.org; Thu, 21 May 2026 18:43:28 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wQ8Mh-00CAW4-Dp for xen-devel@lists.xenproject.org; Thu, 21 May 2026 20:43:27 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a0f5238-bab6-0a2a0a5309dd-0a2a4507b2dc-20 for ; Thu, 21 May 2026 20:43:27 +0200 Received: from [209.85.128.47] (helo=mail-wm1-f47.google.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a0f524f-229c-0a2a45070019-d155802fe110-3 for ; Thu, 21 May 2026 20:43:27 +0200 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-488a8ca4aadso63483655e9.3 for ; Thu, 21 May 2026 11:43:27 -0700 (PDT) Received: from EPUAKYIW02F7.. ([45.12.24.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49035c6766fsm42558855e9.2.2026.05.21.11.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 11:43:26 -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:MIME-Version:Message-ID:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779389007; x=1779993807; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CbY493eMuX/mj74qMbU9C0aqtJWPKXDVVYRF7iw68Hc=; b=ZlMCUH+7A811Vs4j54SkrULrCjhw0zs1YzthLaLg78v00B0XdSA7NKuI2sY7g3HC9/ anXt3BXmPv1tATKXUFPeukeJsm5Soc4LctmZaIB1d3WQPYfBOc+Yip5iD69Zczcy6pV6 UxPFfKZg29WgndnQWLI3ev0eEGPn2GgFwUaU+mKsfzdT0j8xU8CS3B6vLssyshXUxbfx OiQCtdVJtYO9sY4UNDwB0Rqt0dkmW6IeXscgVOo4+S/GBXrH0YyJehRBgTXd7Ujp7HyF i5uBP+SsSDzpj6VeEG0iM2Tzg658XqscKo3bSEIvkc8Obr9W0UhYGi8GDrm4E32e/hzR 7oVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779389007; x=1779993807; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CbY493eMuX/mj74qMbU9C0aqtJWPKXDVVYRF7iw68Hc=; b=Fy68SVJ9FDP+X37UDz+y8wTrINmP7gBxSxv/Rp2BbxVvpOTSMp85iWo0w5YrWq6uFB Udb+1vsD7TVmq/P2vBY+nP6r5/1LnMLcRERz7xaYPQ/Eyc3n4/MmDaYqCcM7Bu+soIsA cw+NINCX1zH0rRgyt4xfnc2CXCd5feYk8oLWHB3wQ/LP3XOBoLJ9yE6WvRH/865//yIZ 0rXPyOzWUWf7fjic0Jcwn18raDspBsf/HsmiEbfah8a9w08dBWxhgWMsNUKsFn2E6Hva VA618kUAyoX+FjXxGHkt8qzucwO3+GQEDvJXnIBgbxdwnjI9wNUOzo0Kus5VjwQXEs23 4uYQ== X-Gm-Message-State: AOJu0Yx+suZjybVXmNnMAi4o2Zfx6dO7HBdU36NlVYAPslVrgTyKPAN3 6MQdgrbo6FRynSGjtYIQB93v8Bjd4G5xZRKV29T8v/RhY6MbSCiQ0JraXl4C9p7r X-Gm-Gg: Acq92OE6/d31n6MCaxXiW7qBMbnC+yKh5kSejvHSo3KpIMJG5zFqlop622wRDKQooME VYb8OFOI4NGeWmz8ocZQLON5KbEhzXgteDyFd0P7o6UZ5LhGnEdmemvPtwdPdf1U4Abhr8IZYYr WZeeMm5Jl328CywdC/7ff/2gP6DpHoumKVRZrZBMA7ZZNEb7yzTFFaFpIJiCYOYjvsZIjEOAt7C gFIxoad1wYbuAvB1nRDRXxP6nJqCpKie/UUH7BIByH3RnyYDCUDpXvu3RtTaFDCirMrg+S1DMfP Rzt8sd+2qIuqcWRKOPBCVml27FT7I+2W1jzCq2aVnyZ9v7k1bPUz7YV1vl4k5flusOh8VBN3h8P q8uH65DZXJqatJs+xJ5fTPbKDIapdKoE8y2V1Ys71NFt0cybKdlqHQIAuO6ezsAkW/nnqjYqB2R 08enuvNAuJY1aqrFCN9y5s47Xh/Q== X-Received: by 2002:a05:600c:a15:b0:490:3cef:bd90 with SMTP id 5b1f17b1804b1-4903cefbe6emr44243195e9.26.1779389006562; Thu, 21 May 2026 11:43:26 -0700 (PDT) From: Mykola Kvach To: xen-devel@lists.xenproject.org Cc: Carlo Nonato , Marco Solieri , Luca Miccio , Mykola Kvach , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v2 0/2] xen/common: llc-coloring parser fixes Date: Thu, 21 May 2026 21:41:20 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-ef75cf/1779389007-28C7DC48-EDA8C3E4/0/0 X-purgate-type: clean X-purgate-size: 1145 From: Mykola Kvach Hi all, This small series fixes two issues in parse_color_config(). The first patch makes parse failures leave the caller-visible color count at zero. This prevents a rejected command-line value from leaving a partially parsed configuration behind for later init paths to consume. The second patch rejects empty color tokens. Previously, delimiters in places where a color value was expected could be interpreted as color 0, because simple_strtoul() returns zero without advancing the input pointer. The patch checks that each parsed color value consumed input. It also fixes the DT color parsing error message by adding the missing newline and including the domain ID. Changes in v2: - Clarify the first commit message. - Include the domain ID in the DT color parsing error message. - Add Reviewed-by tags. Mykola Kvach (2): xen/common: llc-coloring: clear color count on parse failure xen/common: llc-coloring: reject empty color tokens xen/common/llc-coloring.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) -- 2.43.0