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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 DBA8EC4332F for ; Thu, 10 Nov 2022 16:48:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13CBF10E153; Thu, 10 Nov 2022 16:48:54 +0000 (UTC) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5150F10E158 for ; Thu, 10 Nov 2022 16:48:50 +0000 (UTC) Received: by mail-pj1-x1033.google.com with SMTP id m14-20020a17090a3f8e00b00212dab39bcdso5221025pjc.0 for ; Thu, 10 Nov 2022 08:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:date:from :from:to:cc:subject:date:message-id:reply-to; bh=g9kSxsO17Q+SGuhgv7bQJn3B89MxfwFUgXJQwdBXWxc=; b=np5+c7/D+/Pe+ETkZmBCcBkcIkF9rWztcNUNpZ8fjJM55FzJgNq4nkQ3nqPKjpN1y4 +Vz42qN8iUh+CDPgfd4HJ+e7+YwQlV2RCywPsaAB8YsN7K22LSZWTzUSOkIgU8aIF4vU Sg6WhOoBQQUUrmLT0u0VujZkRgeFf/Mp4HGoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g9kSxsO17Q+SGuhgv7bQJn3B89MxfwFUgXJQwdBXWxc=; b=cRgo1Q0Q6zgyVaOMpGEpzuc9W1aUXK5fq0vT0yR9m0p/ac4CQ8Ia1lqoPmU1RRC2hx h4zku8TYzlP/PQOEW72ZCqmhxU8lD50PHT0SnMXQTNJM1lz1It3aH6sljeSL9p5NqV1y UzdUWKytHVClta3s7Hb5igySbCSqXba/gB1/J1hFUjbeEbqPPdKmYuy7jlk/NY1hQlnA f/H1pn8uHcw5DmP5KMewk+lssKYdTlHzpazsP9as17akvYoyu6KwCw3IYaf+VtxtkNRy 274lWP2Q1SR5bTbv00U+Uodqz9yhCqXm2VQf35W2dYzGRkhzkQJYBbYAqTzvSfvoRcFz Oh0w== X-Gm-Message-State: ACrzQf0yPi3toTYOldy+IG4a4A3R7Q06YQK1gBx6AFzR/vt2hz0c9OQR BA6U+iaYgoExgXxzN2nYoer5iQ== X-Google-Smtp-Source: AMsMyM46trOzdUYGkS4TOBz+lvhrf5w6Z58imMinDBIdbLY+Ryt5gQlR73fs5ggqqfV6HJyw6Yc/cw== X-Received: by 2002:a17:902:8d8d:b0:17d:b9c:cd64 with SMTP id v13-20020a1709028d8d00b0017d0b9ccd64mr1509659plo.40.1668098929893; Thu, 10 Nov 2022 08:48:49 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id s9-20020a63e809000000b00473c36ea150sm3597920pgh.92.2022.11.10.08.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 08:48:49 -0800 (PST) From: coverity-bot X-Google-Original-From: coverity-bot Date: Thu, 10 Nov 2022 08:48:48 -0800 To: Ben Skeggs Subject: Coverity: nv50_pior_atomic_enable(): Memory - corruptions Message-ID: <202211100848.F4C2819BB@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Zimmermann , Karol Herbst , "Gustavo A. R. Silva" , Jani Nikula , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-next@vger.kernel.org, linux-hardening@vger.kernel.org, Dave Airlie Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello! This is an experimental semi-automated report about issues detected by Coverity from a scan of next-20221110 as part of the linux-next scan project: https://scan.coverity.com/projects/linux-next-weekly-scan You're getting this email because you were associated with the identified lines of code (noted below) that were touched by commits: Wed Nov 9 08:22:02 2022 +1000 813443721331 ("drm/nouveau/disp: move DP link config into acquire") Coverity reported the following: *** CID 1527268: Memory - corruptions (OVERRUN) drivers/gpu/drm/nouveau/dispnv50/disp.c:1817 in nv50_pior_atomic_enable() 1811 case DCB_OUTPUT_TMDS: 1812 ctrl |= NVDEF(NV507D, PIOR_SET_CONTROL, PROTOCOL, EXT_TMDS_ENC); 1813 nvif_outp_acquire_tmds(&nv_encoder->outp, false, false, 0, 0, 0, false); 1814 break; 1815 case DCB_OUTPUT_DP: 1816 ctrl |= NVDEF(NV507D, PIOR_SET_CONTROL, PROTOCOL, EXT_TMDS_ENC); vvv CID 1527268: Memory - corruptions (OVERRUN) vvv Overrunning array "(*nv_encoder).dp.dpcd" of 15 bytes by passing it to a function which accesses it at byte offset 15. 1817 nvif_outp_acquire_dp(&nv_encoder->outp, nv_encoder->dp.dpcd, 0, 0, false, false); 1818 break; 1819 default: 1820 BUG(); 1821 break; 1822 } If this is a false positive, please let us know so we can mark it as such, or teach the Coverity rules to be smarter. If not, please make sure fixes get into linux-next. :) For patches fixing this, please include these lines (but double-check the "Fixes" first): Reported-by: coverity-bot Addresses-Coverity-ID: 1527268 ("Memory - corruptions") Fixes: 813443721331 ("drm/nouveau/disp: move DP link config into acquire") Thanks for your attention! -- Coverity-bot