Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5309504rwb; Mon, 14 Nov 2022 02:36:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6C1drOAWuIDuw0G7MkYKdhFvb3BA3h49Woh3p7exriw5R7jmfYOiCzmAl28PACLm1pXvNW X-Received: by 2002:a63:b51:0:b0:42b:9219:d14e with SMTP id a17-20020a630b51000000b0042b9219d14emr11217013pgl.176.1668422190982; Mon, 14 Nov 2022 02:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668422190; cv=none; d=google.com; s=arc-20160816; b=ohVdO+G2EI0vdUv7Kny9k7667j10q/R84SeURC7H6xlIUjyAGcUzyRbVY3T8ioLy0f iwE/yFnWiXOxcVdOwu02u+OI9ltnWtuB+5kI8o4hricr6sWqfKQps2kJwEGQQsEystQx C0oFu0r0+XOEDtiYQjJoG42zlNTIj3csc5DjgZHRIqdUeT48pWqP7szqBChfqkRh4CVm +dr5u+3aUaBgc+bkxHPm4kwPxxpBBXmpbm3IkLNwKzt29Z94Qwlod6rqXVlNClc8Joad F1csqmB1ggWyAoK9IhWnIyufnJe3HqAdCHmE/9uDKfGB9NxWrTVDqZdmhFmPWF37lL2B vqCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=6QS4t4QqHk6+LC5gabbl6YDPde468JCVl8sXJU0Td5E=; b=ILcoCyA1Z9LyFmA4GWQkyRaVkpfbIivf8T/4k4uGYxvKSJZNHPgZ1vgNCjSzJ5feAI 2yOYEqY+yhYR+I9wNTv7iujrbbhyDPlMD+Eow5Mr9/FiO7yUaHkyRYd8pdYvm4MlqGZg f08CrxDJON8r/WTeYPHUXnIKH8yn1xNo29yA57CkVbYFx5PDUVtOinmEYdSXiJE4oPbR eQ5bfXlxVnqlWPJ7YkgGIHxiKSbpW1VjAfNfhNt9yA9Zv2DW9Pd0DmLFWW3BrzAE4miV jEOOxP87Ev4yneBSfr4XlBQ3zTs0vYwWWBNpw9lWYemFuTtfqYMhnIIEyQuypUHt8yNP 5D9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hvYCy6RU; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a63d048000000b0046b1dabcb34si8958216pgi.765.2022.11.14.02.36.20; Mon, 14 Nov 2022 02:36:30 -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=@intel.com header.s=Intel header.b=hvYCy6RU; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236254AbiKNKJE (ORCPT + 89 others); Mon, 14 Nov 2022 05:09:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236448AbiKNKIV (ORCPT ); Mon, 14 Nov 2022 05:08:21 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 973B31F616; Mon, 14 Nov 2022 02:08:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668420482; x=1699956482; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=yOVQIHkuUCyb9yuVJwgc7s85bbeRz6iUd3ajHxZ7HeA=; b=hvYCy6RUS2mAVENf+xJqPHk9zxmTRdJdCGWfeZT4p/b8Fzu02n4hdHW2 L7AnOh/0uLlf/YDA7xvBa1+VNljIb1EMKFCSkFoTQPOeXLAEtkMepqwPM fAaZS/4DxD8PIgk8quiRIhsmtNLEqMranvgYJsZkF70cr+0N9VrYesQfa BQGAG223wTeE+1XVSvDmahwcSudTum/wXF4wnFbHBhifjllY/KOhuhHk2 YrRqD5IEnioZWV6seBmtohkAHx8s5h1zIGUGdengiiechqgbGCGwKI5t9 mS9RWxfj+E3gHwYPlg73Miui2+jZkXWux/QNAPEIPwgJdcudugSNMfanm g==; X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="376198076" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="376198076" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2022 02:08:02 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="727466802" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="727466802" Received: from dsmahang-mobl.ger.corp.intel.com (HELO localhost) ([10.252.59.240]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2022 02:07:57 -0800 From: Jani Nikula To: Karol Herbst , Kees Cook Cc: Lyude Paul , Thomas Zimmermann , linux-kernel@vger.kernel.org, Ilia Mirkin , Daniel Vetter , Ben Skeggs , David Airlie , "Nathan E. Egge" , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, Dave Airlie , "Gustavo A. R. Silva" , linux-next@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: Coverity: nouveau_dp_irq(): Null pointer dereferences In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <202211100850.7A8DD75@keescook> <87iljl6ehe.fsf@intel.com> <202211111110.11B554B@keescook> <202211111215.1F421B7E@keescook> Date: Mon, 14 Nov 2022 12:07:55 +0200 Message-ID: <87fsel4zno.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On Fri, 11 Nov 2022, Karol Herbst wrote: > On Fri, Nov 11, 2022 at 9:16 PM Kees Cook wrote: >> >> On Fri, Nov 11, 2022 at 09:06:54PM +0100, Karol Herbst wrote: >> > On Fri, Nov 11, 2022 at 8:21 PM Kees Cook wrote: >> > > >> > > On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: >> > > > On Thu, 10 Nov 2022, coverity-bot wrote: >> > > > > 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") >> > > > >> > > > Hi Kees, this looks like a good idea, but maybe double check the Cc list >> > > > generation? I was Cc'd on four mails today that I thought were >> > > > irrelevant to me. >> > > >> > > Hi! >> > > >> > > Heh, I was recently asked to _expand_ the CC list. :) >> > > >> > > For these last pass of reports, I added a get_maintainers.pl run to the >> > > identified commit. In this instance, the commit touched: >> > > >> > > drivers/gpu/drm/nouveau/dispnv04/disp.c | 6 + >> > > drivers/gpu/drm/nouveau/dispnv50/disp.c | 192 ++++++++++++++++++++++-------------------------- >> > > drivers/gpu/drm/nouveau/nouveau_connector.c | 14 --- >> > > drivers/gpu/drm/nouveau/nouveau_display.c | 2 >> > > drivers/gpu/drm/nouveau/nouveau_display.h | 2 >> > > drivers/gpu/drm/nouveau/nouveau_dp.c | 132 ++++++++++++++++++++++++++++----- >> > > drivers/gpu/drm/nouveau/nouveau_encoder.h | 33 +++++++- >> > > 7 files changed, 244 insertions(+), 137 deletions(-) >> > > >> > > And the get_maintainers.pl rationale was: >> > > >> > > Ben Skeggs (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:1/1=100%,commit_signer:6/16=38%,authored:4/16=25%,added_lines:23/124=19%,removed_lines:36/152=24%) >> > > Karol Herbst (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) >> > > Lyude Paul (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:9/16=56%,authored:6/16=38%,added_lines:92/124=74%,removed_lines:107/152=70%) >> > > David Airlie (maintainer:DRM DRIVERS) >> > > Daniel Vetter (maintainer:DRM DRIVERS) >> > > Ilia Mirkin (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) >> > > "Nathan E. Egge" (commit_signer:1/1=100%) >> > > Jani Nikula (commit_signer:6/16=38%) >> > > Dave Airlie (commit_signer:5/16=31%) >> > > Thomas Zimmermann (commit_signer:4/16=25%,authored:4/16=25%) >> > > dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS) >> > > nouveau@lists.freedesktop.org (open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS) >> > > >> > >> > I'd say it's good enough to message supporters and the mailing lists >> > for at least Nouveau code, maybe even all drm drivers. >> >> i.e. leave out the commit_signer hits? >> > > yes. Agreed. I understand the point of commit_signer, but I don't think get_maintainers.pl does a very good job with the heuristics, or filtering out "insignificant" contributions to the files being changed. BR, Jani. > >> > Not sure what to do about actual maintainers, but I doubt Dave and >> > Daniel want to be CCed on every Coverity report here either. >> >> I updated the CC logic based on this feedback: >> https://lore.kernel.org/linux-hardening/87h6zgfub4.fsf@kernel.org/ >> >> So maybe just mailing lists? >> > > That should be good enough, but maybe the DRM subsystem is big enough > so it's reasonable to add special rules. For Nouveau either way is > fine. > >> -- >> Kees Cook >> > -- Jani Nikula, Intel Open Source Graphics Center