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: <202305160749.ay1HAoyP-lkp@intel.com>
Date:   Tue, 16 May 2023 07:33:27 +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/broadcom/b43/b43.h:654:4: warning: field data
 within 'struct b43_iv' is less aligned than 'union (unnamed union at
 drivers/net/wireless/broadcom/b43/b43.h:651:2)' and is usually due to
 'struct b43_iv' being packed, which can lead to u...

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date:   1 year, 1 month ago
config: arm-buildonly-randconfig-r005-20230515
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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=09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
        # 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 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305160749.ay1HAoyP-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/broadcom/b43/main.c:35:
>> drivers/net/wireless/broadcom/b43/b43.h:654:4: warning: field data within 'struct b43_iv' is less aligned than 'union (unnamed union at drivers/net/wireless/broadcom/b43/b43.h:651:2)' and is usually due to 'struct b43_iv' being packed, which can lead to unaligned accesses [-Wunaligned-access]
           } data __packed;
             ^
   1 warning generated.


vim +654 drivers/net/wireless/broadcom/b43/b43.h

e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  645  
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  646  /* Initial Value file format */
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  647  #define B43_IV_OFFSET_MASK	0x7FFF
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  648  #define B43_IV_32BIT		0x8000
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  649  struct b43_iv {
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  650  	__be16 offset_size;
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  651  	union {
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  652  		__be16 d16;
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  653  		__be32 d32;
ba2d3587912f82d drivers/net/wireless/b43/b43.h Eric Dumazet   2010-06-02 @654  	} data __packed;
ba2d3587912f82d drivers/net/wireless/b43/b43.h Eric Dumazet   2010-06-02  655  } __packed;
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  656  
e4d6b7951812d98 drivers/net/wireless/b43/b43.h Michael Buesch 2007-09-18  657  

:::::: The code at line 654 was first introduced by commit
:::::: ba2d3587912f82d1ab4367975b1df460db60fb1e drivers/net: use __packed annotation

:::::: TO: Eric Dumazet <eric.dumazet@...il.com>
:::::: CC: David S. Miller <davem@...emloft.net>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ