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]
Date:   Thu, 12 Aug 2021 22:47:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Julian Braha <julianbraha@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        Sasha Levin <sashal@...nel.org>
Subject: [linux-stable-rc:linux-5.10.y 4013/4144]
 drivers/ata/pata_cs5520.c:98:19: warning: initialized field overwritten

Hi Julian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head:   5f894e4a8758db7af6eeb43311c0e9314871b031
commit: 955da2b5cd9855b186f14b71ddb1703d5144193c [4013/4144] lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS
config: csky-buildonly-randconfig-r004-20210812 (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=955da2b5cd9855b186f14b71ddb1703d5144193c
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-5.10.y
        git checkout 955da2b5cd9855b186f14b71ddb1703d5144193c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=csky 

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

All warnings (new ones prefixed by >>):

>> drivers/ata/pata_cs5520.c:98:19: warning: initialized field overwritten [-Woverride-init]
      98 |  .sg_tablesize  = LIBATA_DUMB_MAX_PRD,
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/ata/pata_cs5520.c:98:19: note: (near initialization for 'cs5520_sht.sg_tablesize')
--
   In function 'sky2_name',
       inlined from 'sky2_probe.part.0' at drivers/net/ethernet/marvell/sky2.c:5049:2:
>> drivers/net/ethernet/marvell/sky2.c:4903:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
    4903 |   strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz);
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +98 drivers/ata/pata_cs5520.c

669a5db411d85a Jeff Garzik 2006-08-29   95  
669a5db411d85a Jeff Garzik 2006-08-29   96  static struct scsi_host_template cs5520_sht = {
68d1d07b510bb5 Tejun Heo   2008-03-25   97  	ATA_BMDMA_SHT(DRV_NAME),
d26fc9551a15fd Alan Cox    2007-07-06  @98  	.sg_tablesize		= LIBATA_DUMB_MAX_PRD,
669a5db411d85a Jeff Garzik 2006-08-29   99  };
669a5db411d85a Jeff Garzik 2006-08-29  100  

:::::: The code at line 98 was first introduced by commit
:::::: d26fc9551a15fdad0d5de8376a78816b8af44f00 libata: Support chips with 64K PRD quirk

:::::: TO: Alan Cox <alan@...rguk.ukuu.org.uk>
:::::: CC: Jeff Garzik <jeff@...zik.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (34267 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ