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: <202210180315.RIAaV1l1-lkp@intel.com>
Date:   Tue, 18 Oct 2022 04:02:53 +0800
From:   kernel test robot <lkp@...el.com>
To:     David Howells <dhowells@...hat.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:dhowells/linux-fs/rxrpc-ringless-5 46/50]
 net/rxrpc/io_thread.c:373:10: warning: unused variable 'now'

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-5
head:   469cbecffb3d796ca9cce1590515d2aba5a0b39a
commit: 700788b00b7a2ab708c6e008dfccae91a3b24bb5 [46/50] rxrpc: Allow a delay to be injected into packet reception
config: x86_64-randconfig-a013-20221017
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/ammarfaizi2/linux-block/commit/700788b00b7a2ab708c6e008dfccae91a3b24bb5
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-5
        git checkout 700788b00b7a2ab708c6e008dfccae91a3b24bb5
        # 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=x86_64 SHELL=/bin/bash net/rxrpc/

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 >>):

   net/rxrpc/io_thread.c:59:13: warning: variable 'skb' is uninitialized when used here [-Wuninitialized]
                   kfree_skb(skb);
                             ^~~
   net/rxrpc/io_thread.c:53:21: note: initialize the variable 'skb' to silence this warning
           struct sk_buff *skb;
                              ^
                               = NULL
>> net/rxrpc/io_thread.c:373:10: warning: unused variable 'now' [-Wunused-variable]
           ktime_t now, tstamp;
                   ^
>> net/rxrpc/io_thread.c:373:15: warning: unused variable 'tstamp' [-Wunused-variable]
           ktime_t now, tstamp;
                        ^
>> net/rxrpc/io_thread.c:374:6: warning: unused variable 'delay_ns' [-Wunused-variable]
           s64 delay_ns;
               ^
>> net/rxrpc/io_thread.c:372:16: warning: unused variable 'timeout' [-Wunused-variable]
           unsigned long timeout;
                         ^
   5 warnings generated.


vim +/now +373 net/rxrpc/io_thread.c

   363	
   364	/*
   365	 * I/O and event handling thread.
   366	 */
   367	int rxrpc_io_thread(void *data)
   368	{
   369		struct sk_buff_head rx_queue;
   370		struct rxrpc_local *local = data;
   371		struct sk_buff *skb;
 > 372		unsigned long timeout;
 > 373		ktime_t now, tstamp;
 > 374		s64 delay_ns;
   375	
   376		skb_queue_head_init(&rx_queue);
   377	
   378		set_user_nice(current, MIN_NICE);
   379	
   380		for (;;) {
   381			rxrpc_inc_stat(local->rxnet, stat_io_loop);
   382	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ