Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1002317rwb; Thu, 10 Nov 2022 09:56:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf49t3JfTmtrF4NhGbn4JpVzHuUk/V81fl/mAO87BsHQeWRFvflOtG4qbtQvCFnpv0DizGkh X-Received: by 2002:a17:90a:bb85:b0:218:728:2662 with SMTP id v5-20020a17090abb8500b0021807282662mr1205445pjr.190.1668102970432; Thu, 10 Nov 2022 09:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668102970; cv=none; d=google.com; s=arc-20160816; b=YseQcT4WOZ7v/pIH1mFoBdRwiiUYxhYqBAqh67MmRCGqS5jVD52yqP7iL5Mk0DqEsx sBRcK1PERBJYw3vqUtLJ1e26cW80dLaD3yM9kW3KBdFbipQZXVvf56FXOfD2VYO4Rjyg ts7gAhs44RGAm88xnmqqToh2Wbvl7zJeyh08JMljme7w+kOm2/q22VFMStxgMn8oIYG+ PGCNhXTFiY28HTmMrr5n8/jXEXjRnpVkOtZSvOLeoNiLOSfcnRObvqBRkwrej4dB0Ima WQJrIYY+lO+ENeiqfm34UmOLfSJS4/Sficz0sK3tt2Ymfv5YrN7XwNylINdzfmwqvN3v HrlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:date:from:dkim-signature; bh=ZVqd+PvgZXEgpR5oiDP8I3WYALDkF1kwCNnCVwq1mpo=; b=Rpd0zUat0bHras3HJRecRhx2Rx8mcoVGTUgjn/8Bsa6QcVl1ZhZ9C8otxVOgRwayLn mTF1HLMnwB9jh3yLXdqzjmXNnb068HMBm3AeyrIBtBw7R7W7HeWB3h5KFOE8lYn/21cw 14XOYJ6rBfjN2oKagd3bjCiE4soUiF0sl9Ch1Cw8cgRBUT2pUtoN+inH1aHJCTquroPU ZpjlRUZHmxwSToEgm5pZj1dpIo1f4TVtM1r/bJuihaTmn/jSHcYYU+EWt5VXH9hJfJd3 VJNORwG6dXOrRIHA9OeZy3grx4H83HlkiMqzAbmKpTiZyREgbrlGJNxJsX26iFQQAl+8 wo2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KOrM7nTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170903228600b00178431e09bdsi22894472plh.230.2022.11.10.09.55.57; Thu, 10 Nov 2022 09:56:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KOrM7nTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232685AbiKJQup (ORCPT + 92 others); Thu, 10 Nov 2022 11:50:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbiKJQuN (ORCPT ); Thu, 10 Nov 2022 11:50:13 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 587D51400C for ; Thu, 10 Nov 2022 08:50:06 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id b1-20020a17090a7ac100b00213fde52d49so2036876pjl.3 for ; Thu, 10 Nov 2022 08:50:06 -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=ZVqd+PvgZXEgpR5oiDP8I3WYALDkF1kwCNnCVwq1mpo=; b=KOrM7nTAXpp3ofHwJJRvDPycbrxwy/BUtfmO83XndSZ41PtDxOacBE0DrQFpxytI1Q JJCh2k1V7GgfY+6JXBzLBO19fnq0I4c2Jxvx68eO/LtakOsggQNrDZKf2M8qFcI91F9P 1JIEUsrASBrRow9EergEBIaIRb3VyJeJht5a0= 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=ZVqd+PvgZXEgpR5oiDP8I3WYALDkF1kwCNnCVwq1mpo=; b=bccL0XSihygV8JOvNVhulZZKlyRr7U7+Y3TH3RKPh2E9llofv/Had5M6236uFaUPQD AAc9RLYJzqcP5Y+fYvPJJy+F1zGZzMxz4iBRPEBeXCv4efOWc47ceSjr8WlY493/Jo+m O6cMGT6F9dFvsaU+7TskPXnYmnQLUVcYOchrI6nrwrFrUgPY0FrLKSbz6eBIw0Zsmnl5 0yxhV/AZ53OPfcVo7pT4qsQ3bRpTH9IjWcH/kt1YtESCyErzLTpnamDmMzOxsUFSANd/ ySF4aYaXSg9TP1xKwSRZ5VMmVd19wvA95tOfy0qUjHExdhDkexs/dRNi7AwbiFjlyT9E ixpA== X-Gm-Message-State: ACrzQf3NKcBGIulhxW7gY/G6wsWrRktGGtKGSgxInM3RT9JgaI6YzUiB NIMjWNPSUYYRO7/4i2RRoPrXJA== X-Received: by 2002:a17:90b:4d91:b0:213:f1b:dab5 with SMTP id oj17-20020a17090b4d9100b002130f1bdab5mr65253209pjb.95.1668099005884; Thu, 10 Nov 2022 08:50:05 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y23-20020a17090264d700b0017f92246e4dsm11375728pli.181.2022.11.10.08.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 08:50:05 -0800 (PST) From: coverity-bot X-Google-Original-From: coverity-bot Date: Thu, 10 Nov 2022 08:50:04 -0800 To: Lyude Paul Cc: Thomas Zimmermann , linux-kernel@vger.kernel.org, Ilia Mirkin , Daniel Vetter , Karol Herbst , Ben Skeggs , David Airlie , "Nathan E. Egge" , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, Jani Nikula , Dave Airlie , "Gustavo A. R. Silva" , linux-next@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Coverity: nouveau_dp_irq(): Null pointer dereferences Message-ID: <202211100850.7A8DD75@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Mon Aug 31 19:10:08 2020 -0400 a0922278f83e ("drm/nouveau/kms/nv50-: Refactor and cleanup DP HPD handling") Coverity reported the following: *** CID 1527266: Null pointer dereferences (REVERSE_INULL) drivers/gpu/drm/nouveau/nouveau_dp.c:237 in nouveau_dp_irq() 231 struct nouveau_encoder *outp = find_encoder(connector, DCB_OUTPUT_DP); 232 struct nouveau_drm *drm = nouveau_drm(outp->base.base.dev); 233 struct nv50_mstm *mstm; 234 u64 hpd = 0; 235 int ret; 236 vvv CID 1527266: Null pointer dereferences (REVERSE_INULL) vvv Null-checking "outp" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. 237 if (!outp) 238 return; 239 240 mstm = outp->dp.mstm; 241 NV_DEBUG(drm, "service %s\n", connector->name); 242 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: 1527266 ("Null pointer dereferences") Fixes: a0922278f83e ("drm/nouveau/kms/nv50-: Refactor and cleanup DP HPD handling") Thanks for your attention! -- Coverity-bot