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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202506102340.uo7QDaVk-lkp@intel.com>
Date: Tue, 10 Jun 2025 23:47:40 +0800
From: kernel test robot <lkp@...el.com>
To: Jason Xing <kerneljasonxing@...il.com>, axboe@...nel.dk,
	rostedt@...dmis.org, mhiramat@...nel.org,
	mathieu.desnoyers@...icios.com, akpm@...ux-foundation.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	linux-block@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
	Jason Xing <kernelxing@...cent.com>,
	Yushan Zhou <katrinzhou@...cent.com>
Subject: Re: [PATCH v4 4/5] blktrace: use rbuf->stats.full as a drop
 indicator in relayfs

Hi Jason,

kernel test robot noticed the following build warnings:

[auto build test WARNING on axboe-block/for-next]
[also build test WARNING on drm-i915/for-linux-next drm-i915/for-linux-next-fixes akpm-mm/mm-everything linus/master v6.16-rc1 next-20250610]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Jason-Xing/relayfs-abolish-prev_padding/20250610-085150
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
patch link:    https://lore.kernel.org/r/20250610004844.66688-5-kerneljasonxing%40gmail.com
patch subject: [PATCH v4 4/5] blktrace: use rbuf->stats.full as a drop indicator in relayfs
config: arc-randconfig-001-20250610
compiler: arc-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build):

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506102340.uo7QDaVk-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/trace/blktrace.c: In function 'blk_dropped_read':
>> kernel/trace/blktrace.c:421:39: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     421 |         snprintf(buf, sizeof(buf), "%lu\n", dropped);
         |                                     ~~^     ~~~~~~~
         |                                       |     |
         |                                       |     size_t {aka unsigned int}
         |                                       long unsigned int
         |                                     %u


vim +421 kernel/trace/blktrace.c

   413	
   414	static ssize_t blk_dropped_read(struct file *filp, char __user *buffer,
   415					size_t count, loff_t *ppos)
   416	{
   417		struct blk_trace *bt = filp->private_data;
   418		size_t dropped = relay_stats(bt->rchan, RELAY_STATS_BUF_FULL);
   419		char buf[16];
   420	
 > 421		snprintf(buf, sizeof(buf), "%lu\n", dropped);
   422	
   423		return simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf));
   424	}
   425	

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

View attachment "reproduce" of type "text/plain" (742 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ