lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211091710.JSaQQncO-lkp@intel.com>
Date:   Wed, 9 Nov 2022 17:58:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org
Subject: drivers/net/wireless/intel/iwlwifi/fw/error-dump.h:297:2: warning:
 field  within 'struct iwl_fw_ini_error_dump_range' is less aligned than
 'union iwl_fw_ini_error_dump_range::(anonymous at
 drivers/net/wireless/intel/iwlwifi/fw/error-dump.h:297:2)' and is ...

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f141df371335645ce29a87d9683a3f79fba7fd67
commit: 250c1a694ff304e5d69e74ab32755eddcc2b8f65 ARM: pxa: convert to multiplatform
date:   6 months ago
config: arm-randconfig-r006-20221109
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 463da45892e2d2a262277b91b96f5f8c05dc25d0)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=250c1a694ff304e5d69e74ab32755eddcc2b8f65
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 250c1a694ff304e5d69e74ab32755eddcc2b8f65
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/wireless/intel/iwlwifi/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/intel/iwlwifi/fw/dbg.c:9:
   In file included from drivers/net/wireless/intel/iwlwifi/fw/runtime.h:10:
   In file included from drivers/net/wireless/intel/iwlwifi/iwl-trans.h:17:
   In file included from drivers/net/wireless/intel/iwlwifi/fw/img.h:14:
>> drivers/net/wireless/intel/iwlwifi/fw/error-dump.h:297:2: warning: field  within 'struct iwl_fw_ini_error_dump_range' is less aligned than 'union iwl_fw_ini_error_dump_range::(anonymous at drivers/net/wireless/intel/iwlwifi/fw/error-dump.h:297:2)' and is usually due to 'struct iwl_fw_ini_error_dump_range' being packed, which can lead to unaligned accesses [-Wunaligned-access]
           union {
           ^
   1 warning generated.


vim +297 drivers/net/wireless/intel/iwlwifi/fw/error-dump.h

990ffe3e81962f Shahar S Matityahu 2019-02-17  284  
8d534e96b5000a Shahar S Matityahu 2018-12-03  285  /**
8d534e96b5000a Shahar S Matityahu 2018-12-03  286   * struct iwl_fw_ini_error_dump_range - range of memory
8d534e96b5000a Shahar S Matityahu 2018-12-03  287   * @range_data_size: the size of this range, in bytes
4828f462b5eb32 Shahar S Matityahu 2019-07-10  288   * @internal_base_addr: base address of internal memory range
4828f462b5eb32 Shahar S Matityahu 2019-07-10  289   * @dram_base_addr: base address of dram monitor range
4828f462b5eb32 Shahar S Matityahu 2019-07-10  290   * @page_num: page number of memory range
4828f462b5eb32 Shahar S Matityahu 2019-07-10  291   * @fifo_hdr: fifo header of memory range
3ed34fbf9d3bfc Shahar S Matityahu 2019-07-23  292   * @fw_pkt: FW packet header of memory range
8d534e96b5000a Shahar S Matityahu 2018-12-03  293   * @data: the actual memory
8d534e96b5000a Shahar S Matityahu 2018-12-03  294   */
8d534e96b5000a Shahar S Matityahu 2018-12-03  295  struct iwl_fw_ini_error_dump_range {
8d534e96b5000a Shahar S Matityahu 2018-12-03  296  	__le32 range_data_size;
973193554cae6b Shahar S Matityahu 2019-04-08 @297  	union {
973193554cae6b Shahar S Matityahu 2019-04-08  298  		__le32 internal_base_addr;
973193554cae6b Shahar S Matityahu 2019-04-08  299  		__le64 dram_base_addr;
973193554cae6b Shahar S Matityahu 2019-04-08  300  		__le32 page_num;
973193554cae6b Shahar S Matityahu 2019-04-08  301  		struct iwl_fw_ini_fifo_hdr fifo_hdr;
3ed34fbf9d3bfc Shahar S Matityahu 2019-07-23  302  		struct iwl_cmd_header fw_pkt_hdr;
973193554cae6b Shahar S Matityahu 2019-04-08  303  	};
8d534e96b5000a Shahar S Matityahu 2018-12-03  304  	__le32 data[];
8d534e96b5000a Shahar S Matityahu 2018-12-03  305  } __packed;
8d534e96b5000a Shahar S Matityahu 2018-12-03  306  

:::::: The code at line 297 was first introduced by commit
:::::: 973193554cae6b055474964f995e36c42d195137 iwlwifi: dbg_ini: dump headers cleanup

:::::: TO: Shahar S Matityahu <shahar.s.matityahu@...el.com>
:::::: CC: Luca Coelho <luciano.coelho@...el.com>

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

View attachment "config" of type "text/plain" (160444 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ