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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aTb8MDNm2KiOpJTl@smile.fi.intel.com>
Date: Mon, 8 Dec 2025 18:26:24 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: kernel test robot <lkp@...el.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-kernel@...r.kernel.org, Petr Mladek <pmladek@...e.com>,
	Kees Cook <kees@...nel.org>
Subject: Re: kernel/trace/bpf_trace.c:475:35: warning: diagnostic behavior
 may be improved by adding the 'format(printf, 2, 0)' attribute to the
 declaration of '____bpf_seq_printf'

On Sat, Dec 06, 2025 at 06:15:56PM +0200, Andy Shevchenko wrote:
> On Sat, Dec 06, 2025 at 02:44:24PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   f19b84186d297063a1006ca9e1c8597f77a75581
> > commit: 6b2c1e30ad6846624d935a7ea98dae60458126b8 seq_file: Mark binary printing functions with __printf() attribute
> > date:   8 months ago
> > config: riscv-defconfig (https://download.01.org/0day-ci/archive/20251206/202512061425.x0qTt9ww-lkp@intel.com/config)
> > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 14bf95b06a18b9b59c89601cbc0e5a6f2176b118)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/202512061425.x0qTt9ww-lkp@intel.com/reproduce)
> > 
> > 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/202512061425.x0qTt9ww-lkp@intel.com/
> > 
> > All warnings (new ones prefixed by >>):
> 
> Not an expert in BPF, but the compiler recommendation to add __printf(1, 0)
> sounds reasonable to me. Anybody to confirm that and/or send a patch?

FWIW, I just sent a patch
https://lore.kernel.org/r/20251208161800.2902699-2-andriy.shevchenko@linux.intel.com

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ