* drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
@ 2021-05-13 22:46 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-05-13 22:46 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2565 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Arnd Bergmann <arnd@arndb.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 315d99318179b9cd5077ccc9f7f26a164c9fa998
commit: 6f6573a4044adefbd07f1bd951a2041150e888d7 asm-generic: fix ffs -Wshadow warning
date: 7 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 7 months ago
config: powerpc-randconfig-m031-20210513 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
Old smatch warnings:
drivers/block/rsxx/core.c:179 rsxx_cram_read() warn: maybe return -EFAULT instead of the bytes remaining?
drivers/block/rsxx/core.c:872 rsxx_pci_probe() warn: missing error code 'st'
vim +/state_strings +401 drivers/block/rsxx/core.c
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 391
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 392 /*----------------- Card Event Handler -------------------*/
f37912039eb049 Philip J Kelleher 2013-02-25 393 static const char * const rsxx_card_state_to_str(unsigned int state)
c206c70924737d Philip J Kelleher 2013-02-18 394 {
f37912039eb049 Philip J Kelleher 2013-02-25 395 static const char * const state_strings[] = {
c206c70924737d Philip J Kelleher 2013-02-18 396 "Unknown", "Shutdown", "Starting", "Formatting",
c206c70924737d Philip J Kelleher 2013-02-18 397 "Uninitialized", "Good", "Shutting Down",
c206c70924737d Philip J Kelleher 2013-02-18 398 "Fault", "Read Only Fault", "dStroying"
c206c70924737d Philip J Kelleher 2013-02-18 399 };
c206c70924737d Philip J Kelleher 2013-02-18 400
c206c70924737d Philip J Kelleher 2013-02-18 @401 return state_strings[ffs(state)];
c206c70924737d Philip J Kelleher 2013-02-18 402 }
c206c70924737d Philip J Kelleher 2013-02-18 403
:::::: The code@line 401 was first introduced by commit
:::::: c206c70924737db6836382c09ad2dacd04bb6204 block: IBM RamSan 70/80 driver fixes
:::::: TO: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
:::::: CC: Jens Axboe <axboe@kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31972 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
@ 2021-08-10 10:18 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-08-10 10:18 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2582 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Arnd Bergmann <arnd@arndb.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9a73fa375d58fee5262dd16473c8e7522bdf44de
commit: 6f6573a4044adefbd07f1bd951a2041150e888d7 asm-generic: fix ffs -Wshadow warning
date: 10 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 10 months ago
config: powerpc-randconfig-m031-20210809 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
Old smatch warnings:
drivers/block/rsxx/core.c:179 rsxx_cram_read() warn: maybe return -EFAULT instead of the bytes remaining?
drivers/block/rsxx/core.c:872 rsxx_pci_probe() warn: missing error code 'st'
vim +/state_strings +401 drivers/block/rsxx/core.c
8722ff8cdbfac9c josh.h.morris(a)us.ibm.com 2013-02-05 391
8722ff8cdbfac9c josh.h.morris(a)us.ibm.com 2013-02-05 392 /*----------------- Card Event Handler -------------------*/
f37912039eb0497 Philip J Kelleher 2013-02-25 393 static const char * const rsxx_card_state_to_str(unsigned int state)
c206c70924737db Philip J Kelleher 2013-02-18 394 {
f37912039eb0497 Philip J Kelleher 2013-02-25 395 static const char * const state_strings[] = {
c206c70924737db Philip J Kelleher 2013-02-18 396 "Unknown", "Shutdown", "Starting", "Formatting",
c206c70924737db Philip J Kelleher 2013-02-18 397 "Uninitialized", "Good", "Shutting Down",
c206c70924737db Philip J Kelleher 2013-02-18 398 "Fault", "Read Only Fault", "dStroying"
c206c70924737db Philip J Kelleher 2013-02-18 399 };
c206c70924737db Philip J Kelleher 2013-02-18 400
c206c70924737db Philip J Kelleher 2013-02-18 @401 return state_strings[ffs(state)];
c206c70924737db Philip J Kelleher 2013-02-18 402 }
c206c70924737db Philip J Kelleher 2013-02-18 403
:::::: The code@line 401 was first introduced by commit
:::::: c206c70924737db6836382c09ad2dacd04bb6204 block: IBM RamSan 70/80 driver fixes
:::::: TO: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
:::::: CC: Jens Axboe <axboe@kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37842 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
@ 2021-04-02 4:29 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-04-02 4:29 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2559 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Arnd Bergmann <arnd@arndb.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1678e493d530e7977cce34e59a86bb86f3c5631e
commit: 6f6573a4044adefbd07f1bd951a2041150e888d7 asm-generic: fix ffs -Wshadow warning
date: 5 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 5 months ago
config: ia64-randconfig-m031-20210402 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32
Old smatch warnings:
drivers/block/rsxx/core.c:179 rsxx_cram_read() warn: maybe return -EFAULT instead of the bytes remaining?
drivers/block/rsxx/core.c:872 rsxx_pci_probe() warn: missing error code 'st'
vim +/state_strings +401 drivers/block/rsxx/core.c
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 391
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 392 /*----------------- Card Event Handler -------------------*/
f37912039eb049 Philip J Kelleher 2013-02-25 393 static const char * const rsxx_card_state_to_str(unsigned int state)
c206c70924737d Philip J Kelleher 2013-02-18 394 {
f37912039eb049 Philip J Kelleher 2013-02-25 395 static const char * const state_strings[] = {
c206c70924737d Philip J Kelleher 2013-02-18 396 "Unknown", "Shutdown", "Starting", "Formatting",
c206c70924737d Philip J Kelleher 2013-02-18 397 "Uninitialized", "Good", "Shutting Down",
c206c70924737d Philip J Kelleher 2013-02-18 398 "Fault", "Read Only Fault", "dStroying"
c206c70924737d Philip J Kelleher 2013-02-18 399 };
c206c70924737d Philip J Kelleher 2013-02-18 400
c206c70924737d Philip J Kelleher 2013-02-18 @401 return state_strings[ffs(state)];
c206c70924737d Philip J Kelleher 2013-02-18 402 }
c206c70924737d Philip J Kelleher 2013-02-18 403
:::::: The code@line 401 was first introduced by commit
:::::: c206c70924737db6836382c09ad2dacd04bb6204 block: IBM RamSan 70/80 driver fixes
:::::: TO: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
:::::: CC: Jens Axboe <axboe@kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24712 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-10 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 22:46 drivers/block/rsxx/core.c:401 rsxx_card_state_to_str() error: buffer overflow 'state_strings' 10 <= 32 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-08-10 10:18 kernel test robot
2021-04-02 4:29 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.