All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array
@ 2022-03-28 10:21 Tejas Upadhyay
  2022-03-28 16:39 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tejas Upadhyay @ 2022-03-28 10:21 UTC (permalink / raw)
  To: intel-gfx; +Cc: Tejas Upadhyay, Christian König

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
---
 drivers/dma-buf/dma-fence-array.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/dma-buf/dma-fence-array.c b/drivers/dma-buf/dma-fence-array.c
index 52b85d292383..5c8a7084577b 100644
--- a/drivers/dma-buf/dma-fence-array.c
+++ b/drivers/dma-buf/dma-fence-array.c
@@ -159,6 +159,8 @@ struct dma_fence_array *dma_fence_array_create(int num_fences,
 	struct dma_fence_array *array;
 	size_t size = sizeof(*array);
 
+	WARN_ON(!num_fences || !fences);
+
 	/* Allocate the callback structures behind the array. */
 	size += num_fences * sizeof(struct dma_fence_array_cb);
 	array = kzalloc(size, GFP_KERNEL);
@@ -231,6 +233,9 @@ struct dma_fence *dma_fence_array_first(struct dma_fence *head)
 	if (!array)
 		return head;
 
+	if (!array->num_fences)
+		return NULL;
+
 	return array->fences[0];
 }
 EXPORT_SYMBOL(dma_fence_array_first);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for dma-buf: Check for empty dma_fence_array
  2022-03-28 10:21 [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array Tejas Upadhyay
@ 2022-03-28 16:39 ` Patchwork
  2022-03-28 16:44 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork
  2022-03-28 17:15 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-03-28 16:39 UTC (permalink / raw)
  To: Tejas Upadhyay; +Cc: intel-gfx

== Series Details ==

Series: dma-buf: Check for empty dma_fence_array
URL   : https://patchwork.freedesktop.org/series/101867/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
a933bca7bc97 dma-buf: Check for empty dma_fence_array
-:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one

total: 0 errors, 1 warnings, 0 checks, 17 lines checked



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Intel-gfx] ✗ Fi.CI.DOCS: warning for dma-buf: Check for empty dma_fence_array
  2022-03-28 10:21 [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array Tejas Upadhyay
  2022-03-28 16:39 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
@ 2022-03-28 16:44 ` Patchwork
  2022-03-28 17:15 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-03-28 16:44 UTC (permalink / raw)
  To: Tejas Upadhyay; +Cc: intel-gfx

== Series Details ==

Series: dma-buf: Check for empty dma_fence_array
URL   : https://patchwork.freedesktop.org/series/101867/
State : warning

== Summary ==

$ make htmldocs 2>&1 > /dev/null | grep i915
./drivers/gpu/drm/i915/display/intel_drrs.c:1: warning: 'intel_drrs_enable' not found
./drivers/gpu/drm/i915/display/intel_drrs.c:1: warning: 'intel_drrs_disable' not found



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Intel-gfx] ✗ Fi.CI.BAT: failure for dma-buf: Check for empty dma_fence_array
  2022-03-28 10:21 [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array Tejas Upadhyay
  2022-03-28 16:39 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
  2022-03-28 16:44 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork
@ 2022-03-28 17:15 ` Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-03-28 17:15 UTC (permalink / raw)
  To: Tejas Upadhyay; +Cc: intel-gfx

[-- Attachment #1: Type: text/plain, Size: 23856 bytes --]

== Series Details ==

Series: dma-buf: Check for empty dma_fence_array
URL   : https://patchwork.freedesktop.org/series/101867/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11412 -> Patchwork_22696
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with Patchwork_22696 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_22696, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/index.html

Participating hosts (45 -> 41)
------------------------------

  Missing    (4): fi-bsw-cyan fi-bdw-samus shard-tglu bat-jsl-1 

Possible new issues
-------------------

  Here are the unknown changes that may have been introduced in Patchwork_22696:

### IGT changes ###

#### Possible regressions ####

  * igt@core_hotunplug@unbind-rebind:
    - fi-bsw-n3050:       NOTRUN -> [DMESG-WARN][1]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-n3050/igt@core_hotunplug@unbind-rebind.html
    - fi-tgl-1115g4:      NOTRUN -> [DMESG-WARN][2]
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@core_hotunplug@unbind-rebind.html
    - fi-kbl-8809g:       NOTRUN -> [DMESG-WARN][3]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@core_hotunplug@unbind-rebind.html
    - fi-bsw-nick:        NOTRUN -> [DMESG-WARN][4]
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-nick/igt@core_hotunplug@unbind-rebind.html
    - fi-kbl-7567u:       NOTRUN -> [DMESG-WARN][5]
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@core_hotunplug@unbind-rebind.html
    - bat-dg1-6:          [PASS][6] -> [DMESG-WARN][7]
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-dg1-6/igt@core_hotunplug@unbind-rebind.html
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-dg1-6/igt@core_hotunplug@unbind-rebind.html

  * igt@gem_render_linear_blits@basic:
    - fi-blb-e6850:       [PASS][8] -> [DMESG-WARN][9]
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-blb-e6850/igt@gem_render_linear_blits@basic.html
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-blb-e6850/igt@gem_render_linear_blits@basic.html
    - fi-ilk-650:         [PASS][10] -> [DMESG-WARN][11]
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-ilk-650/igt@gem_render_linear_blits@basic.html
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-ilk-650/igt@gem_render_linear_blits@basic.html

  * igt@gem_tiled_blits@basic:
    - fi-cfl-8109u:       [PASS][12] -> [DMESG-WARN][13]
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-cfl-8109u/igt@gem_tiled_blits@basic.html
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-cfl-8109u/igt@gem_tiled_blits@basic.html
    - fi-bwr-2160:        [PASS][14] -> [DMESG-WARN][15]
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bwr-2160/igt@gem_tiled_blits@basic.html
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bwr-2160/igt@gem_tiled_blits@basic.html
    - fi-kbl-7500u:       [PASS][16] -> [DMESG-WARN][17]
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-7500u/igt@gem_tiled_blits@basic.html
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7500u/igt@gem_tiled_blits@basic.html

  
#### Warnings ####

  * igt@core_hotunplug@unbind-rebind:
    - fi-bxt-dsi:         [INCOMPLETE][18] ([i915#5441]) -> [DMESG-WARN][19]
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bxt-dsi/igt@core_hotunplug@unbind-rebind.html
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bxt-dsi/igt@core_hotunplug@unbind-rebind.html
    - fi-glk-j4005:       [INCOMPLETE][20] ([i915#5441]) -> [DMESG-WARN][21]
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-glk-j4005/igt@core_hotunplug@unbind-rebind.html
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-glk-j4005/igt@core_hotunplug@unbind-rebind.html
    - fi-glk-dsi:         [INCOMPLETE][22] ([i915#5441]) -> [DMESG-WARN][23]
   [22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-glk-dsi/igt@core_hotunplug@unbind-rebind.html
   [23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-glk-dsi/igt@core_hotunplug@unbind-rebind.html
    - fi-bsw-kefka:       [INCOMPLETE][24] ([i915#5441]) -> [DMESG-WARN][25]
   [24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bsw-kefka/igt@core_hotunplug@unbind-rebind.html
   [25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-kefka/igt@core_hotunplug@unbind-rebind.html

  * igt@gem_render_linear_blits@basic:
    - fi-pnv-d510:        [INCOMPLETE][26] ([i915#5441]) -> [DMESG-WARN][27]
   [26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-pnv-d510/igt@gem_render_linear_blits@basic.html
   [27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-pnv-d510/igt@gem_render_linear_blits@basic.html

  * igt@gem_render_tiled_blits@basic:
    - fi-kbl-soraka:      [INCOMPLETE][28] ([i915#5441]) -> [DMESG-WARN][29]
   [28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-soraka/igt@gem_render_tiled_blits@basic.html
   [29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-soraka/igt@gem_render_tiled_blits@basic.html

  * igt@gem_tiled_blits@basic:
    - fi-snb-2600:        [INCOMPLETE][30] ([i915#5441]) -> [DMESG-WARN][31]
   [30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-snb-2600/igt@gem_tiled_blits@basic.html
   [31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-snb-2600/igt@gem_tiled_blits@basic.html
    - fi-elk-e7500:       [INCOMPLETE][32] ([i915#5441]) -> [DMESG-WARN][33]
   [32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-elk-e7500/igt@gem_tiled_blits@basic.html
   [33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-elk-e7500/igt@gem_tiled_blits@basic.html
    - fi-skl-6700k2:      [INCOMPLETE][34] ([i915#5441]) -> [DMESG-WARN][35]
   [34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-skl-6700k2/igt@gem_tiled_blits@basic.html
   [35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-skl-6700k2/igt@gem_tiled_blits@basic.html
    - fi-cfl-guc:         [INCOMPLETE][36] ([i915#5441]) -> [DMESG-WARN][37]
   [36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-cfl-guc/igt@gem_tiled_blits@basic.html
   [37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-cfl-guc/igt@gem_tiled_blits@basic.html
    - fi-snb-2520m:       [INCOMPLETE][38] ([i915#5441]) -> [DMESG-WARN][39]
   [38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-snb-2520m/igt@gem_tiled_blits@basic.html
   [39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-snb-2520m/igt@gem_tiled_blits@basic.html

  
#### Suppressed ####

  The following results come from untrusted machines, tests, or statuses.
  They do not affect the overall result.

  * igt@core_hotunplug@unbind-rebind:
    - {bat-jsl-2}:        [INCOMPLETE][40] ([i915#1373] / [i915#5441]) -> [DMESG-WARN][41]
   [40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-jsl-2/igt@core_hotunplug@unbind-rebind.html
   [41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-jsl-2/igt@core_hotunplug@unbind-rebind.html
    - {fi-ehl-2}:         [INCOMPLETE][42] ([i915#5441]) -> [DMESG-WARN][43]
   [42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-ehl-2/igt@core_hotunplug@unbind-rebind.html
   [43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-ehl-2/igt@core_hotunplug@unbind-rebind.html
    - {fi-rkl-11600}:     [INCOMPLETE][44] ([i915#1373] / [i915#5441]) -> [DMESG-WARN][45]
   [44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-rkl-11600/igt@core_hotunplug@unbind-rebind.html
   [45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-rkl-11600/igt@core_hotunplug@unbind-rebind.html
    - {fi-jsl-1}:         [PASS][46] -> [DMESG-WARN][47]
   [46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-jsl-1/igt@core_hotunplug@unbind-rebind.html
   [47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-jsl-1/igt@core_hotunplug@unbind-rebind.html

  * igt@gem_render_linear_blits@basic:
    - {fi-tgl-dsi}:       [PASS][48] -> [DMESG-WARN][49]
   [48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-tgl-dsi/igt@gem_render_linear_blits@basic.html
   [49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-dsi/igt@gem_render_linear_blits@basic.html

  * igt@gem_render_tiled_blits@basic:
    - {fi-hsw-g3258}:     [PASS][50] -> [DMESG-WARN][51]
   [50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-hsw-g3258/igt@gem_render_tiled_blits@basic.html
   [51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-hsw-g3258/igt@gem_render_tiled_blits@basic.html

  * igt@gem_tiled_blits@basic:
    - {bat-adlm-1}:       [INCOMPLETE][52] ([i915#5441]) -> [DMESG-WARN][53]
   [52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-adlm-1/igt@gem_tiled_blits@basic.html
   [53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-adlm-1/igt@gem_tiled_blits@basic.html
    - {bat-rpls-2}:       [INCOMPLETE][54] ([i915#5441]) -> [DMESG-WARN][55]
   [54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-rpls-2/igt@gem_tiled_blits@basic.html
   [55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-rpls-2/igt@gem_tiled_blits@basic.html

  
Known issues
------------

  Here are the changes found in Patchwork_22696 that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@i915_pm_backlight@basic-brightness:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][56] ([i915#1155])
   [56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@i915_pm_backlight@basic-brightness.html

  * igt@kms_chamelium@common-hpd-after-suspend:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][57] ([fdo#111827]) +8 similar issues
   [57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@kms_chamelium@common-hpd-after-suspend.html

  * igt@kms_chamelium@dp-crc-fast:
    - fi-kbl-7567u:       NOTRUN -> [SKIP][58] ([fdo#109271] / [fdo#111827]) +8 similar issues
   [58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@kms_chamelium@dp-crc-fast.html
    - fi-bsw-nick:        NOTRUN -> [SKIP][59] ([fdo#109271] / [fdo#111827]) +8 similar issues
   [59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-nick/igt@kms_chamelium@dp-crc-fast.html

  * igt@kms_chamelium@hdmi-crc-fast:
    - fi-bsw-n3050:       NOTRUN -> [SKIP][60] ([fdo#109271] / [fdo#111827]) +8 similar issues
   [60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-n3050/igt@kms_chamelium@hdmi-crc-fast.html

  * igt@kms_chamelium@hdmi-edid-read:
    - fi-kbl-8809g:       NOTRUN -> [SKIP][61] ([fdo#109271] / [fdo#111827]) +8 similar issues
   [61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@kms_chamelium@hdmi-edid-read.html

  * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][62] ([i915#4103]) +1 similar issue
   [62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html

  * igt@kms_force_connector_basic@force-load-detect:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][63] ([fdo#109285])
   [63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@kms_force_connector_basic@force-load-detect.html

  * igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
    - fi-kbl-7567u:       NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#5341])
   [64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c.html
    - fi-kbl-8809g:       NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#5341])
   [65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c.html
    - fi-bsw-nick:        NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#5341])
   [66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-nick/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c.html

  * igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
    - fi-kbl-8809g:       NOTRUN -> [SKIP][67] ([fdo#109271] / [i915#533])
   [67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d.html
    - fi-kbl-7567u:       NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#533])
   [68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d.html

  * igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
    - fi-bsw-n3050:       NOTRUN -> [SKIP][69] ([fdo#109271]) +22 similar issues
   [69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-n3050/igt@kms_pipe_crc_basic@hang-read-crc-pipe-a.html

  * igt@kms_pipe_crc_basic@read-crc-pipe-c:
    - fi-kbl-7567u:       NOTRUN -> [SKIP][70] ([fdo#109271]) +34 similar issues
   [70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@kms_pipe_crc_basic@read-crc-pipe-c.html

  * igt@kms_psr@cursor_plane_move:
    - fi-kbl-8809g:       NOTRUN -> [SKIP][71] ([fdo#109271]) +34 similar issues
   [71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@kms_psr@cursor_plane_move.html

  * igt@kms_psr@primary_mmap_gtt:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][72] ([fdo#110189]) +3 similar issues
   [72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@kms_psr@primary_mmap_gtt.html

  * igt@kms_setmode@basic-clone-single-crtc:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][73] ([i915#3555])
   [73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@kms_setmode@basic-clone-single-crtc.html

  * igt@prime_vgem@basic-fence-flip:
    - fi-bsw-nick:        NOTRUN -> [SKIP][74] ([fdo#109271]) +37 similar issues
   [74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-nick/igt@prime_vgem@basic-fence-flip.html

  * igt@prime_vgem@basic-userptr:
    - fi-tgl-1115g4:      NOTRUN -> [SKIP][75] ([i915#3301])
   [75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@prime_vgem@basic-userptr.html

  * igt@runner@aborted:
    - fi-bwr-2160:        NOTRUN -> [FAIL][76] ([i915#4312])
   [76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bwr-2160/igt@runner@aborted.html

  
#### Possible fixes ####

  * igt@core_hotunplug@unbind-rebind:
    - {bat-dg2-8}:        [INCOMPLETE][77] ([i915#5441]) -> [PASS][78]
   [77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-dg2-8/igt@core_hotunplug@unbind-rebind.html
   [78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-dg2-8/igt@core_hotunplug@unbind-rebind.html

  * igt@gem_render_linear_blits@basic:
    - fi-bsw-nick:        [INCOMPLETE][79] ([i915#5441]) -> [PASS][80]
   [79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bsw-nick/igt@gem_render_linear_blits@basic.html
   [80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-nick/igt@gem_render_linear_blits@basic.html

  * igt@gem_render_tiled_blits@basic:
    - fi-bsw-n3050:       [INCOMPLETE][81] ([i915#5441]) -> [PASS][82]
   [81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bsw-n3050/igt@gem_render_tiled_blits@basic.html
   [82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-n3050/igt@gem_render_tiled_blits@basic.html
    - fi-tgl-1115g4:      [INCOMPLETE][83] ([i915#5441]) -> [PASS][84]
   [83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-tgl-1115g4/igt@gem_render_tiled_blits@basic.html
   [84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@gem_render_tiled_blits@basic.html

  * igt@gem_tiled_blits@basic:
    - {bat-adlp-6}:       [INCOMPLETE][85] ([i915#5441]) -> [PASS][86]
   [85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/bat-adlp-6/igt@gem_tiled_blits@basic.html
   [86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/bat-adlp-6/igt@gem_tiled_blits@basic.html
    - fi-kbl-7567u:       [INCOMPLETE][87] ([i915#5441]) -> [PASS][88]
   [87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-7567u/igt@gem_tiled_blits@basic.html
   [88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@gem_tiled_blits@basic.html
    - fi-kbl-8809g:       [INCOMPLETE][89] ([i915#5441]) -> [PASS][90]
   [89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-8809g/igt@gem_tiled_blits@basic.html
   [90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@gem_tiled_blits@basic.html

  
#### Warnings ####

  * igt@runner@aborted:
    - fi-cfl-8109u:       [FAIL][91] ([i915#4312]) -> [FAIL][92] ([i915#4312] / [i915#5257])
   [91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-cfl-8109u/igt@runner@aborted.html
   [92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-cfl-8109u/igt@runner@aborted.html
    - fi-glk-dsi:         [FAIL][93] ([i915#4312] / [k.org#202321]) -> [FAIL][94] ([i915#4312] / [i915#5257] / [k.org#202321])
   [93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-glk-dsi/igt@runner@aborted.html
   [94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-glk-dsi/igt@runner@aborted.html
    - fi-kbl-8809g:       [FAIL][95] ([i915#4312]) -> [FAIL][96] ([i915#4312] / [i915#5257])
   [95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-8809g/igt@runner@aborted.html
   [96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-8809g/igt@runner@aborted.html
    - fi-kbl-soraka:      [FAIL][97] ([i915#4312]) -> [FAIL][98] ([i915#4312] / [i915#5257])
   [97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-soraka/igt@runner@aborted.html
   [98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-soraka/igt@runner@aborted.html
    - fi-kbl-7500u:       [FAIL][99] ([i915#4312]) -> [FAIL][100] ([i915#4312] / [i915#5257])
   [99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-7500u/igt@runner@aborted.html
   [100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7500u/igt@runner@aborted.html
    - fi-bxt-dsi:         [FAIL][101] ([i915#4312]) -> [FAIL][102] ([i915#4312] / [i915#5257])
   [101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bxt-dsi/igt@runner@aborted.html
   [102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bxt-dsi/igt@runner@aborted.html
    - fi-tgl-1115g4:      [FAIL][103] ([i915#4312]) -> [FAIL][104] ([i915#4312] / [i915#5257])
   [103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-tgl-1115g4/igt@runner@aborted.html
   [104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-tgl-1115g4/igt@runner@aborted.html
    - fi-cfl-guc:         [FAIL][105] ([i915#4312]) -> [FAIL][106] ([i915#4312] / [i915#5257])
   [105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-cfl-guc/igt@runner@aborted.html
   [106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-cfl-guc/igt@runner@aborted.html
    - fi-glk-j4005:       [FAIL][107] ([i915#4312] / [k.org#202321]) -> [FAIL][108] ([i915#4312] / [i915#5257] / [k.org#202321])
   [107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-glk-j4005/igt@runner@aborted.html
   [108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-glk-j4005/igt@runner@aborted.html
    - fi-kbl-7567u:       [FAIL][109] ([i915#4312]) -> [FAIL][110] ([i915#4312] / [i915#5257])
   [109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-kbl-7567u/igt@runner@aborted.html
   [110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-kbl-7567u/igt@runner@aborted.html
    - fi-skl-6700k2:      [FAIL][111] ([i915#4312]) -> [FAIL][112] ([i915#4312] / [i915#5257])
   [111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-skl-6700k2/igt@runner@aborted.html
   [112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-skl-6700k2/igt@runner@aborted.html
    - fi-bsw-n3050:       [FAIL][113] ([i915#3428] / [i915#4312]) -> [FAIL][114] ([i915#4312])
   [113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11412/fi-bsw-n3050/igt@runner@aborted.html
   [114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/fi-bsw-n3050/igt@runner@aborted.html

  
  {name}: This element is suppressed. This means it is ignored when computing
          the status of the difference (SUCCESS, WARNING, or FAILURE).

  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
  [fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
  [fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
  [fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
  [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
  [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
  [i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
  [i915#1373]: https://gitlab.freedesktop.org/drm/intel/issues/1373
  [i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
  [i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
  [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
  [i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
  [i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
  [i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
  [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
  [i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
  [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
  [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
  [i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
  [i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
  [i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
  [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
  [i915#5195]: https://gitlab.freedesktop.org/drm/intel/issues/5195
  [i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
  [i915#5270]: https://gitlab.freedesktop.org/drm/intel/issues/5270
  [i915#5275]: https://gitlab.freedesktop.org/drm/intel/issues/5275
  [i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
  [i915#5341]: https://gitlab.freedesktop.org/drm/intel/issues/5341
  [i915#5356]: https://gitlab.freedesktop.org/drm/intel/issues/5356
  [i915#5414]: https://gitlab.freedesktop.org/drm/intel/issues/5414
  [i915#5441]: https://gitlab.freedesktop.org/drm/intel/issues/5441
  [k.org#202321]: https://bugzilla.kernel.org/show_bug.cgi?id=202321


Build changes
-------------

  * Linux: CI_DRM_11412 -> Patchwork_22696

  CI-20190529: 20190529
  CI_DRM_11412: 7509f334229f855174248a4f7cdcffde928fda7e @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_6397: 37ec3b8ffd2c36e5a4c9d2c0d22577920212dc42 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  Patchwork_22696: a933bca7bc97bd44381e5cf86c25a07b53f0e499 @ git://anongit.freedesktop.org/gfx-ci/linux


== Linux commits ==

a933bca7bc97 dma-buf: Check for empty dma_fence_array

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22696/index.html

[-- Attachment #2: Type: text/html, Size: 29930 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array
@ 2022-03-29  0:03 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2022-03-29  0:03 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 27842 bytes --]

CC: llvm(a)lists.linux.dev
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
In-Reply-To: <20220328102144.1374607-1-tejaskumarx.surendrakumar.upadhyay(a)intel.com>
References: <20220328102144.1374607-1-tejaskumarx.surendrakumar.upadhyay@intel.com>
TO: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
TO: intel-gfx(a)lists.freedesktop.org
CC: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
CC: "Christian König" <christian.koenig@amd.com>

Hi Tejas,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20220328]
[cannot apply to linus/master v5.17 v5.17-rc8 v5.17-rc7 v5.17]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Tejas-Upadhyay/dma-buf-Check-for-empty-dma_fence_array/20220328-183641
base:    8515d05bf6bcdc8873c576ae6a721985389a3bd1
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: arm-randconfig-c002-20220327 (https://download.01.org/0day-ci/archive/20220329/202203290823.r8fGtVdF-lkp(a)intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/intel-lab-lkp/linux/commit/2a2ee3b19ec028a06827f5175120b326a466a822
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Tejas-Upadhyay/dma-buf-Check-for-empty-dma_fence_array/20220328-183641
        git checkout 2a2ee3b19ec028a06827f5175120b326a466a822
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


clang-analyzer warnings: (new ones prefixed by >>)
   44 warnings generated.
   drivers/gpu/drm/drm_mipi_dsi.c:536:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
           memset(packet, 0, sizeof(*packet));
           ^~~~~~
   drivers/gpu/drm/drm_mipi_dsi.c:536:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
           memset(packet, 0, sizeof(*packet));
           ^~~~~~
   drivers/gpu/drm/drm_mipi_dsi.c:846:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   memcpy(&tx[1], data, len);
                   ^~~~~~
   drivers/gpu/drm/drm_mipi_dsi.c:846:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                   memcpy(&tx[1], data, len);
                   ^~~~~~
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   30 warnings generated.
   Suppressed 30 warnings (30 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   42 warnings generated.
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   15 warnings generated.
   Suppressed 15 warnings (15 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   42 warnings generated.
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   49 warnings generated.
   drivers/leds/leds-88pm860x.c:167:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
           memset(data->name, 0, MFD_NAME_SIZE);
           ^~~~~~
   drivers/leds/leds-88pm860x.c:167:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
           memset(data->name, 0, MFD_NAME_SIZE);
           ^~~~~~
   drivers/leds/leds-88pm860x.c:171:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led0-red");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:171:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led0-red");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:175:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led0-green");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:175:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led0-green");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:179:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led0-blue");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:179:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led0-blue");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:183:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led1-red");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:183:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led1-red");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:187:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led1-green");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:187:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led1-green");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:191:3: warning: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   sprintf(data->name, "led1-blue");
                   ^~~~~~~
   drivers/leds/leds-88pm860x.c:191:3: note: Call to function 'sprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
                   sprintf(data->name, "led1-blue");
                   ^~~~~~~
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   30 warnings generated.
   drivers/gpu/drm/selftests/test-drm_buddy.c:523:7: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
                                                   err = 0;
                                                   ^     ~
   drivers/gpu/drm/selftests/test-drm_buddy.c:523:7: note: Value stored to 'err' is never read
                                                   err = 0;
                                                   ^     ~
   Suppressed 29 warnings (29 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   42 warnings generated.
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   30 warnings generated.
   Suppressed 30 warnings (30 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   45 warnings generated.
   drivers/gpu/drm/drm_cache.c:219:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   memcpy(dst->vaddr, src->vaddr, len);
                   ^~~~~~
   drivers/gpu/drm/drm_cache.c:219:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                   memcpy(dst->vaddr, src->vaddr, len);
                   ^~~~~~
   Suppressed 44 warnings (44 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   29 warnings generated.
   Suppressed 29 warnings (29 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   24 warnings generated.
>> drivers/dma-buf/dma-fence-array.c:193:34: warning: Array access (from variable 'fences') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                   WARN_ON(dma_fence_is_container(fences[num_fences]));
                                                  ^
   include/asm-generic/bug.h:166:25: note: expanded from macro 'WARN_ON'
           int __ret_warn_on = !!(condition);                              \
                                  ^~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:162:10: note: Assuming 'num_fences' is not equal to 0
           WARN_ON(!num_fences || !fences);
                   ^
   include/asm-generic/bug.h:166:25: note: expanded from macro 'WARN_ON'
           int __ret_warn_on = !!(condition);                              \
                                  ^~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:162:10: note: Left side of '||' is false
           WARN_ON(!num_fences || !fences);
                   ^
   drivers/dma-buf/dma-fence-array.c:162:25: note: Assuming 'fences' is null
           WARN_ON(!num_fences || !fences);
                                  ^
   include/asm-generic/bug.h:166:25: note: expanded from macro 'WARN_ON'
           int __ret_warn_on = !!(condition);                              \
                                  ^~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:166:10: note: Calling 'kzalloc'
           array = kzalloc(size, GFP_KERNEL);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/slab.h:714:9: note: Calling 'kmalloc'
           return kmalloc(size, flags | __GFP_ZERO);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/slab.h:569:2: note: Taking false branch
           if (__builtin_constant_p(size)) {
           ^
   include/linux/slab.h:586:2: note: Returning pointer, which participates in a condition later
           return __kmalloc(size, flags);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/slab.h:714:9: note: Returning from 'kmalloc'
           return kmalloc(size, flags | __GFP_ZERO);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/slab.h:714:2: note: Returning pointer, which participates in a condition later
           return kmalloc(size, flags | __GFP_ZERO);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:166:10: note: Returning from 'kzalloc'
           array = kzalloc(size, GFP_KERNEL);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:167:6: note: Assuming 'array' is non-null
           if (!array)
               ^~~~~~
   drivers/dma-buf/dma-fence-array.c:167:2: note: Taking false branch
           if (!array)
           ^
   drivers/dma-buf/dma-fence-array.c:170:2: note: Loop condition is false.  Exiting loop
           spin_lock_init(&array->lock);
           ^
   include/linux/spinlock.h:344:34: note: expanded from macro 'spin_lock_init'
   # define spin_lock_init(_lock)                  \
                                                   ^
   drivers/dma-buf/dma-fence-array.c:176:34: note: Assuming 'signal_on_any' is true
           atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences);
                                           ^~~~~~~~~~~~~
   drivers/dma-buf/dma-fence-array.c:176:34: note: '?' condition is true
   drivers/dma-buf/dma-fence-array.c:192:2: note: Loop condition is true.  Entering loop body
           while (num_fences--)
           ^
   drivers/dma-buf/dma-fence-array.c:193:34: note: Array access (from variable 'fences') results in a null pointer dereference
                   WARN_ON(dma_fence_is_container(fences[num_fences]));
                                                  ^
   include/asm-generic/bug.h:166:25: note: expanded from macro 'WARN_ON'
           int __ret_warn_on = !!(condition);                              \
                                  ^~~~~~~~~
   Suppressed 23 warnings (23 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   45 warnings generated.
   mm/slab_common.c:1062:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
           memset(&sinfo, 0, sizeof(sinfo));
           ^~~~~~
   mm/slab_common.c:1062:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
           memset(&sinfo, 0, sizeof(sinfo));
           ^~~~~~
   mm/slab_common.c:1188:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                   memcpy(ret, kasan_reset_tag(p), ks);
                   ^~~~~~
   mm/slab_common.c:1188:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                   memcpy(ret, kasan_reset_tag(p), ks);
                   ^~~~~~
   Suppressed 43 warnings (43 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   42 warnings generated.
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   30 warnings generated.
   Suppressed 30 warnings (30 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   42 warnings generated.
   Suppressed 42 warnings (42 in non-user code).
   Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
   18 warnings generated.
   drivers/mux/mmio.c:93:15: warning: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
                   field.msb = fls(mask) - 1;
                               ^   ~~~~
   drivers/mux/mmio.c:47:6: note: Assuming the condition is true
           if (of_device_is_compatible(np, "mmio-mux"))
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mux/mmio.c:47:2: note: Taking true branch

vim +/fences +193 drivers/dma-buf/dma-fence-array.c

b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  134  
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  135  /**
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  136   * dma_fence_array_create - Create a custom fence array
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  137   * @num_fences:		[in]	number of fences to add in the array
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  138   * @fences:		[in]	array containing the fences
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  139   * @context:		[in]	fence context to use
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  140   * @seqno:		[in]	sequence number to use
68acb6afb6f56d drivers/dma-buf/fence-array.c     Randy Dunlap    2016-08-16  141   * @signal_on_any:	[in]	signal on any fence in the array
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  142   *
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  143   * Allocate a dma_fence_array object and initialize the base fence with
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  144   * dma_fence_init().
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  145   * In case of error it returns NULL.
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  146   *
68acb6afb6f56d drivers/dma-buf/fence-array.c     Randy Dunlap    2016-08-16  147   * The caller should allocate the fences array with num_fences size
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  148   * and fill it with the fences it wants to add to the object. Ownership of this
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  149   * array is taken and dma_fence_put() is used on each fence on release.
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  150   *
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  151   * If @signal_on_any is true the fence array signals if any fence in the array
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  152   * signals, otherwise it signals when all fences in the array signal.
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  153   */
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  154  struct dma_fence_array *dma_fence_array_create(int num_fences,
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  155  					       struct dma_fence **fences,
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  156  					       u64 context, unsigned seqno,
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  157  					       bool signal_on_any)
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  158  {
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  159  	struct dma_fence_array *array;
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  160  	size_t size = sizeof(*array);
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  161  
2a2ee3b19ec028 drivers/dma-buf/dma-fence-array.c Tejas Upadhyay  2022-03-28  162  	WARN_ON(!num_fences || !fences);
2a2ee3b19ec028 drivers/dma-buf/dma-fence-array.c Tejas Upadhyay  2022-03-28  163  
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  164  	/* Allocate the callback structures behind the array. */
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  165  	size += num_fences * sizeof(struct dma_fence_array_cb);
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  166  	array = kzalloc(size, GFP_KERNEL);
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  167  	if (!array)
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  168  		return NULL;
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  169  
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  170  	spin_lock_init(&array->lock);
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  171  	dma_fence_init(&array->base, &dma_fence_array_ops, &array->lock,
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  172  		       context, seqno);
03e4e0a9e02cf7 drivers/dma-buf/dma-fence-array.c Chris Wilson    2017-11-14  173  	init_irq_work(&array->work, irq_dma_fence_array_work);
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  174  
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  175  	array->num_fences = num_fences;
f71045689656e3 drivers/dma-buf/fence-array.c     Christian König 2016-06-01  176  	atomic_set(&array->num_pending, signal_on_any ? 1 : num_fences);
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  177  	array->fences = fences;
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  178  
1f70b8b812f36c drivers/dma-buf/dma-fence-array.c Chris Wilson    2019-08-11  179  	array->base.error = PENDING_ERROR;
1f70b8b812f36c drivers/dma-buf/dma-fence-array.c Chris Wilson    2019-08-11  180  
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  181  	/*
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  182  	 * dma_fence_array objects should never contain any other fence
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  183  	 * containers or otherwise we run into recursion and potential kernel
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  184  	 * stack overflow on operations on the dma_fence_array.
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  185  	 *
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  186  	 * The correct way of handling this is to flatten out the array by the
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  187  	 * caller instead.
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  188  	 *
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  189  	 * Enforce this here by checking that we don't create a dma_fence_array
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  190  	 * with any container inside.
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  191  	 */
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  192  	while (num_fences--)
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19 @193  		WARN_ON(dma_fence_is_container(fences[num_fences]));
0fd9803b985e5d drivers/dma-buf/dma-fence-array.c Christian König 2022-01-19  194  
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  195  	return array;
b3dfbdf261e076 drivers/dma-buf/fence-array.c     Gustavo Padovan 2016-06-01  196  }
f54d1867005c33 drivers/dma-buf/dma-fence-array.c Chris Wilson    2016-10-25  197  EXPORT_SYMBOL(dma_fence_array_create);
d5b72a2123dfaf drivers/dma-buf/dma-fence-array.c Philipp Zabel   2017-03-17  198  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-29  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28 10:21 [Intel-gfx] [topic/core-for-CI] dma-buf: Check for empty dma_fence_array Tejas Upadhyay
2022-03-28 16:39 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2022-03-28 16:44 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork
2022-03-28 17:15 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2022-03-29  0:03 [Intel-gfx] [topic/core-for-CI] " kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.