|FAILURE| pw136588 [PATCH] common/sfc: replace out of bounds condition with static_assert

0-day Robot robot at bytheb.org
Mon Feb 12 00:04:43 CET 2024


From: robot at bytheb.org

Test-Label: github-robot: build
Test-Status: FAILURE
http://patchwork.dpdk.org/patch/136588/

_github build: failed_
Build URL: https://github.com/ovsrobot/dpdk/actions/runs/7865179949
Build Logs:
-----------------------Summary of failed steps-----------------------
"ubuntu-20.04-clang-stdatomic" failed at step Build and test
"ubuntu-20.04-clang-asan+doc+tests" failed at step Build and test
"fedora:37-clang" failed at step Build
----------------------End summary of failed steps--------------------

-------------------------------BEGIN LOGS----------------------------
####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################
        EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
                           ^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
        ((size_t)&(((_type *)0)->_field))
         ^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
        matches_count = MCDI_OUT_DWORD(req,
                        ^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
        EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst),           \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
            EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
                                    ^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
            (((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
                             ^  ~~~~~~~~~~~~~~~~~
2 errors generated.
[885/2847] Generating rte_common_mlx5.sym_chk with a meson_exe.py custom command.
[886/2847] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_intr.c.o'.
[887/2847] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_mcdi.c.o'.
[888/2847] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_mac.c.o'.
[889/2847] Generating rte_common_cnxk.sym_chk with a meson_exe.py custom command.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################
        EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
                           ^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
        ((size_t)&(((_type *)0)->_field))
         ^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
        matches_count = MCDI_OUT_DWORD(req,
                        ^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
        EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst),           \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
            EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
                                    ^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
            (((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
                             ^  ~~~~~~~~~~~~~~~~~
2 errors generated.
[898/3919] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_evb.c.o'.
[899/3919] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_intr.c.o'.
[900/3919] Compiling C object 'drivers/common/sfc_efx/base/932d09a@@sfc_base at sta/ef10_mac.c.o'.
[901/3919] Compiling C object 'lib/76b5a35@@rte_pipeline at sta/pipeline_rte_table_action.c.o'.
[902/3919] Compiling C object 'drivers/a715181@@tmp_rte_common_qat at sta/crypto_qat_qat_asym.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################




####################################################################################
#### [Begin job log] "fedora:37-clang" at step Build
####################################################################################
####################################################################################
#### [End job log] "fedora:37-clang" at step Build
####################################################################################
--------------------------------END LOGS-----------------------------


More information about the test-report mailing list