{"id":2219724,"url":"http://patchwork.ozlabs.org/api/covers/2219724/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/cover/20260404012002.111873-1-carlos.bilbao@kernel.org/","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260404012002.111873-1-carlos.bilbao@kernel.org>","list_archive_url":null,"date":"2026-04-04T01:20:00","name":"[0/2] misc: pci_endpoint_test: doorbell fixes","submitter":{"id":93050,"url":"http://patchwork.ozlabs.org/api/people/93050/?format=json","name":null,"email":"carlos.bilbao@kernel.org"},"mbox":"http://patchwork.ozlabs.org/project/linux-pci/cover/20260404012002.111873-1-carlos.bilbao@kernel.org/mbox/","series":[{"id":498691,"url":"http://patchwork.ozlabs.org/api/series/498691/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/list/?series=498691","date":"2026-04-04T01:20:00","name":"misc: pci_endpoint_test: doorbell fixes","version":1,"mbox":"http://patchwork.ozlabs.org/series/498691/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2219724/comments/","headers":{"Return-Path":"\n <linux-pci+bounces-51856-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=YGt0CQ1R;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-51856-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"YGt0CQ1R\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnd7S1dZ8z1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 12:20:20 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 161E8300D4CF\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  4 Apr 2026 01:20:07 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A348122D792;\n\tSat,  4 Apr 2026 01:20:06 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 8179586341;\n\tSat,  4 Apr 2026 01:20:06 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id ABFC8C4CEF7;\n\tSat,  4 Apr 2026 01:20:05 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775265606; cv=none;\n b=VMkjHeomsKxtAye4nJg2dMaYb8h2zYF31ixgv6+vLkptosRARPWtljWcKYLIPUX5XmwGqmPPzF8ZFW3gWyeO+x5WCqaqSv2BrwHzt00kKn5i3MA/DbBichjMdFNGXvE8Yr34tnLeOytcsgoaecNu/nFT98JL59T0IQeDG5mQe6g=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775265606; c=relaxed/simple;\n\tbh=vNata3QFOqKQe1j0D8ga66OZ9TCYAfaeLK+oNigpX7g=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=ZQImHcOZvEQtM1JRN8R8e0VTqr8tAY2msrOWRx1oELv5am7ul+9Q35JlLUgzalopgVi3u0rJBskTAQND3FHIVy5FQmy3unWkKsrw8HeJycxdzRP2D/8vsVpCV8vj63d+kCxV3xDHRiJ71Nr22ToGuGZIwcbq1+l9aQnaaJDmwTI=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=YGt0CQ1R; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775265606;\n\tbh=vNata3QFOqKQe1j0D8ga66OZ9TCYAfaeLK+oNigpX7g=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=YGt0CQ1RGpCSDsKMjOUvTBn9mmWMV1yR1FPBZCBm6n4NI25hY30Qah4IT4kf2+NVF\n\t 89UpIk9ac/k0UQGfLEfQv7CRpGJpKlwRPYpPxdgzp/n9mvo2Pr4rxDGwFzo8Sr4XlW\n\t cLPo5zhdI+6BKSpjCktwGzLduXzUmNlzCQH4texYj0Bdd6bIiR6kg3KZUO/9PnaIPR\n\t SNFY5EQUPqVMIOwxjaLZmJve8X3iUMqnWcgZRJ88naQfYPpY7B3Cy7xK8TBgpDrY2K\n\t p0EoCHszCtotO56FSaFnUX65dKhIlpbnE/cesGNhIPaqZ0TRoYyjveiYu/o0H51m5G\n\t GrfhFESlBVhoQ==","From":"carlos.bilbao@kernel.org","To":"mani@kernel.org,\n\tkwilczynski@kernel.org,\n\tkishon@kernel.org","Cc":"arnd@arndb.de,\n\tgregkh@linuxfoundation.org,\n\tlinux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tbilbao@vt.edu,\n\tCarlos Bilbao <carlos.bilbao@kernel.org>","Subject":"[PATCH 0/2] misc: pci_endpoint_test: doorbell fixes","Date":"Fri,  3 Apr 2026 18:20:00 -0700","Message-ID":"<20260404012002.111873-1-carlos.bilbao@kernel.org>","X-Mailer":"git-send-email 2.43.0","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},"content":"From: Carlos Bilbao <carlos.bilbao@kernel.org>\n\npci_endpoint_test_doorbell() reads the BAR number from the endpoint's test\nregister space and uses it directly as an index into test->bar[] without\nbounds checking.  Since the value is a raw u32 written by the endpoint\nfirmware, any value is possible; values >= PCI_STD_NUM_BARS result in an\nout-of-bounds array access.\n\nPatch 1 adds the missing bounds check.\n\nPatch 2 removes a dead read of the same register that precedes the writel\nsequence; the DB_BAR register carries no read side effect and the assigned\nvalue is unconditionally overwritten before use.\n\n Carlos Bilbao (2):\n   misc: pci_endpoint_test: validate BAR index in doorbell test\n   misc: pci_endpoint_test: remove dead BAR read before doorbell trigger\n\n---\n drivers/misc/pci_endpoint_test.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)"}