* Coverity: nouveau_dp_irq(): Null pointer dereferences @ 2022-11-10 16:50 coverity-bot 2022-11-11 9:13 ` Jani Nikula 0 siblings, 1 reply; 7+ messages in thread From: coverity-bot @ 2022-11-10 16:50 UTC (permalink / raw) To: Lyude Paul Cc: Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Karol Herbst, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Jani Nikula, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening 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 <keescook+coverity-bot@chromium.org> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-10 16:50 Coverity: nouveau_dp_irq(): Null pointer dereferences coverity-bot @ 2022-11-11 9:13 ` Jani Nikula 2022-11-11 19:21 ` Kees Cook 0 siblings, 1 reply; 7+ messages in thread From: Jani Nikula @ 2022-11-11 9:13 UTC (permalink / raw) To: coverity-bot, Lyude Paul Cc: Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Karol Herbst, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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. Thanks, Jani. > > 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 <keescook+coverity-bot@chromium.org> > Addresses-Coverity-ID: 1527266 ("Null pointer dereferences") > Fixes: a0922278f83e ("drm/nouveau/kms/nv50-: Refactor and cleanup DP HPD handling") > > Thanks for your attention! -- Jani Nikula, Intel Open Source Graphics Center ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-11 9:13 ` Jani Nikula @ 2022-11-11 19:21 ` Kees Cook 2022-11-11 20:06 ` Karol Herbst 0 siblings, 1 reply; 7+ messages in thread From: Kees Cook @ 2022-11-11 19:21 UTC (permalink / raw) To: Jani Nikula Cc: Lyude Paul, Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Karol Herbst, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: > On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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 <bskeggs@redhat.com> (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 <kherbst@redhat.com> (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) Lyude Paul <lyude@redhat.com> (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 <airlied@gmail.com> (maintainer:DRM DRIVERS) Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS) Ilia Mirkin <imirkin@alum.mit.edu> (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) "Nathan E. Egge" <unlord@xiph.org> (commit_signer:1/1=100%) Jani Nikula <jani.nikula@intel.com> (commit_signer:6/16=38%) Dave Airlie <airlied@redhat.com> (commit_signer:5/16=31%) Thomas Zimmermann <tzimmermann@suse.de> (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) -- Kees Cook ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-11 19:21 ` Kees Cook @ 2022-11-11 20:06 ` Karol Herbst 2022-11-11 20:16 ` Kees Cook 0 siblings, 1 reply; 7+ messages in thread From: Karol Herbst @ 2022-11-11 20:06 UTC (permalink / raw) To: Kees Cook Cc: Jani Nikula, Lyude Paul, Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Fri, Nov 11, 2022 at 8:21 PM Kees Cook <keescook@chromium.org> wrote: > > On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: > > On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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 <bskeggs@redhat.com> (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 <kherbst@redhat.com> (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) > Lyude Paul <lyude@redhat.com> (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 <airlied@gmail.com> (maintainer:DRM DRIVERS) > Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS) > Ilia Mirkin <imirkin@alum.mit.edu> (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) > "Nathan E. Egge" <unlord@xiph.org> (commit_signer:1/1=100%) > Jani Nikula <jani.nikula@intel.com> (commit_signer:6/16=38%) > Dave Airlie <airlied@redhat.com> (commit_signer:5/16=31%) > Thomas Zimmermann <tzimmermann@suse.de> (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. Not sure what to do about actual maintainers, but I doubt Dave and Daniel want to be CCed on every Coverity report here either. Karol > > -- > Kees Cook > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-11 20:06 ` Karol Herbst @ 2022-11-11 20:16 ` Kees Cook 2022-11-11 20:38 ` Karol Herbst 0 siblings, 1 reply; 7+ messages in thread From: Kees Cook @ 2022-11-11 20:16 UTC (permalink / raw) To: Karol Herbst Cc: Jani Nikula, Lyude Paul, Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Fri, Nov 11, 2022 at 09:06:54PM +0100, Karol Herbst wrote: > On Fri, Nov 11, 2022 at 8:21 PM Kees Cook <keescook@chromium.org> wrote: > > > > On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: > > > On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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 <bskeggs@redhat.com> (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 <kherbst@redhat.com> (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) > > Lyude Paul <lyude@redhat.com> (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 <airlied@gmail.com> (maintainer:DRM DRIVERS) > > Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS) > > Ilia Mirkin <imirkin@alum.mit.edu> (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) > > "Nathan E. Egge" <unlord@xiph.org> (commit_signer:1/1=100%) > > Jani Nikula <jani.nikula@intel.com> (commit_signer:6/16=38%) > > Dave Airlie <airlied@redhat.com> (commit_signer:5/16=31%) > > Thomas Zimmermann <tzimmermann@suse.de> (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? > 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? -- Kees Cook ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-11 20:16 ` Kees Cook @ 2022-11-11 20:38 ` Karol Herbst 2022-11-14 10:07 ` Jani Nikula 0 siblings, 1 reply; 7+ messages in thread From: Karol Herbst @ 2022-11-11 20:38 UTC (permalink / raw) To: Kees Cook Cc: Jani Nikula, Lyude Paul, Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Fri, Nov 11, 2022 at 9:16 PM Kees Cook <keescook@chromium.org> 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 <keescook@chromium.org> wrote: > > > > > > On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: > > > > On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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 <bskeggs@redhat.com> (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 <kherbst@redhat.com> (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) > > > Lyude Paul <lyude@redhat.com> (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 <airlied@gmail.com> (maintainer:DRM DRIVERS) > > > Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS) > > > Ilia Mirkin <imirkin@alum.mit.edu> (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) > > > "Nathan E. Egge" <unlord@xiph.org> (commit_signer:1/1=100%) > > > Jani Nikula <jani.nikula@intel.com> (commit_signer:6/16=38%) > > > Dave Airlie <airlied@redhat.com> (commit_signer:5/16=31%) > > > Thomas Zimmermann <tzimmermann@suse.de> (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. > > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Coverity: nouveau_dp_irq(): Null pointer dereferences 2022-11-11 20:38 ` Karol Herbst @ 2022-11-14 10:07 ` Jani Nikula 0 siblings, 0 replies; 7+ messages in thread From: Jani Nikula @ 2022-11-14 10:07 UTC (permalink / raw) To: Karol Herbst, Kees Cook Cc: Lyude Paul, Thomas Zimmermann, linux-kernel, Ilia Mirkin, Daniel Vetter, Ben Skeggs, David Airlie, Nathan E. Egge, dri-devel, nouveau, Dave Airlie, Gustavo A. R. Silva, linux-next, linux-hardening On Fri, 11 Nov 2022, Karol Herbst <kherbst@redhat.com> wrote: > On Fri, Nov 11, 2022 at 9:16 PM Kees Cook <keescook@chromium.org> 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 <keescook@chromium.org> wrote: >> > > >> > > On Fri, Nov 11, 2022 at 11:13:17AM +0200, Jani Nikula wrote: >> > > > On Thu, 10 Nov 2022, coverity-bot <keescook@chromium.org> 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 <bskeggs@redhat.com> (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 <kherbst@redhat.com> (supporter:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS,commit_signer:2/1=100%) >> > > Lyude Paul <lyude@redhat.com> (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 <airlied@gmail.com> (maintainer:DRM DRIVERS) >> > > Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS) >> > > Ilia Mirkin <imirkin@alum.mit.edu> (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) >> > > "Nathan E. Egge" <unlord@xiph.org> (commit_signer:1/1=100%) >> > > Jani Nikula <jani.nikula@intel.com> (commit_signer:6/16=38%) >> > > Dave Airlie <airlied@redhat.com> (commit_signer:5/16=31%) >> > > Thomas Zimmermann <tzimmermann@suse.de> (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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-11-14 10:09 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-10 16:50 Coverity: nouveau_dp_irq(): Null pointer dereferences coverity-bot 2022-11-11 9:13 ` Jani Nikula 2022-11-11 19:21 ` Kees Cook 2022-11-11 20:06 ` Karol Herbst 2022-11-11 20:16 ` Kees Cook 2022-11-11 20:38 ` Karol Herbst 2022-11-14 10:07 ` Jani Nikula
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).