From nobody Mon Feb 9 16:18:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581637370284872.3712814972789; Thu, 13 Feb 2020 15:42:50 -0800 (PST) Received: from localhost ([::1]:32790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2O89-0000zc-0o for importer@patchew.org; Thu, 13 Feb 2020 18:42:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57397) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2O7K-00089H-6J for qemu-devel@nongnu.org; Thu, 13 Feb 2020 18:41:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2O7J-0002wS-AY for qemu-devel@nongnu.org; Thu, 13 Feb 2020 18:41:58 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:46355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2O7J-0002vb-4V for qemu-devel@nongnu.org; Thu, 13 Feb 2020 18:41:57 -0500 Received: by mail-wr1-x441.google.com with SMTP id z7so8832116wrl.13 for ; Thu, 13 Feb 2020 15:41:57 -0800 (PST) Received: from x1w.redhat.com (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id d4sm1521065wra.14.2020.02.13.15.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2020 15:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K3jU1DlzIeT5aazRZD5c7uQ9ch7IHGbrpGTEyi2PlAw=; b=N7uK8Kyy6lM1lge8Vdsb5ibzr/N1UUN597O98Eeo8HitITIj+31VR1ivhhEgkyrAjN wGuCqD4u4ukEtTCr3bWsLebgMQfM2SiWmibLyuEZUgOqjRrWjJk5EtgdqLXCbF1g8WPM cMh1VxbQoB50ctAsmbq2OmSIJ3Z4rsy7kF27pnJ/MDkwMyLFn59V1AicuHMeA9us04jn mUEvBrriwYM4OC9KrQIF1JFTREq9snCXZqYzB40mIuQOtG8aolsDtieQ8OXqTo2dlRsc Y1W6+UAmO3yt6ZJJmoVOYIlBx9HRTVw6u1JYfMIJAUyMXjXpfr1O88YhCSHk26GTnysa 0jdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K3jU1DlzIeT5aazRZD5c7uQ9ch7IHGbrpGTEyi2PlAw=; b=cuuH0T89ugihJNFAg87RBR9Id+xwELMbl0ZP5HXJ4twNSFZhsPrgziTkDFCacD1x3W qoKs9R9CvhsHBysyIqy63Gtz3hIxGhUnKN2rzn1uMWLKWIc/Q69lT+2Us/08LYAKgNA6 /oZULKl5J+LlsUTF0BHqC7qYDDAVWO5tAc5PySx49XmWYn7ni0XThJrzvRNsbSqUUqj8 Nk0MQP/Vp99QkRsjwDbu6BFFtDJs9ZPjbs+668fCNP6KIZcgkkGRmmffdSaxFi0X/MzH aJ7BcgDTHD6NIiZFtXM0AL1AyYeB5YKYQr8b/hcCFC/Jk5JXJ0133yJA+GGecsmS+XKI /TaA== X-Gm-Message-State: APjAAAVxLk+lqNEgkscV7mRLhH5DQTptXoVOTQ80gaOczG99zHnB/Kv2 dAqs/tNhIdl9HIJRNVMDUjM= X-Google-Smtp-Source: APXvYqy4/ysfFEayBzEZO9SA6LVO8yVI3yyLcMsgJz7rYe+t02Z3BzjQbbWy7DRRWzLqwSdFOyiiOw== X-Received: by 2002:adf:b254:: with SMTP id y20mr23698402wra.362.1581637316147; Thu, 13 Feb 2020 15:41:56 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Sven Schnelle , qemu-devel@nongnu.org, Helge Deller Subject: [RFC PATCH 4/4] hw/hppa/dino: Do not accept accesses to registers 0x818 and 0x82c Date: Fri, 14 Feb 2020 00:41:48 +0100 Message-Id: <20200213234148.8434-5-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200213234148.8434-1-f4bug@amsat.org> References: <20200213234148.8434-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Register 0x818 is documented as 'undefined', and register 0x82c is not documented. Refuse their access. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Helge Deller --- hw/hppa/dino.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index be799aad43..2b1b38c58a 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -181,7 +181,9 @@ static bool dino_chip_mem_valid(void *opaque, hwaddr ad= dr, case DINO_IO_ADDR_EN: case DINO_PCI_IO_DATA: case DINO_TOC_ADDR: - case DINO_GMASK ... DINO_TLTIM: + case DINO_GMASK ... DINO_PCISTS: + case DINO_MLTIM ... DINO_PCIWOR: + case DINO_TLTIM: ret =3D true; break; case DINO_PCI_IO_DATA + 2: --=20 2.21.1