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: <202512110613.PQnFrrXt-lkp@intel.com>
Date: Thu, 11 Dec 2025 06:19:54 +0800
From: kernel test robot <lkp@...el.com>
To: Jeff Layton <jlayton@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Anna Schumaker <anna.schumaker@...cle.com>,
	Benjamin Coddington <bcodding@...hat.com>
Subject: fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef
 expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0048fbb4011ec55c32d3148b2cda56433f273375
commit: b6ef079fd984930dcc42f4b247777f296528507e nfs: more in-depth tracing of writepage events
date:   3 months ago
config: i386-randconfig-r113-20251210 (https://download.01.org/0day-ci/archive/20251211/202512110613.PQnFrrXt-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110613.PQnFrrXt-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/202512110613.PQnFrrXt-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression

vim +1483 fs/nfs/./nfstrace.h

  1482	
> 1483	DECLARE_EVENT_CLASS(nfs_page_class,
  1484			TP_PROTO(
  1485				const struct nfs_page *req
  1486			),
  1487	
  1488			TP_ARGS(req),
  1489	
  1490			TP_STRUCT__entry(
  1491				__field(dev_t, dev)
  1492				__field(u32, fhandle)
  1493				__field(u64, fileid)
  1494				__field(const struct nfs_page *__private, req)
  1495				__field(loff_t, offset)
  1496				__field(unsigned int, count)
  1497				__field(unsigned long, flags)
  1498			),
  1499	
  1500			TP_fast_assign(
  1501				const struct inode *inode = folio_inode(req->wb_folio);
  1502				const struct nfs_inode *nfsi = NFS_I(inode);
  1503	
  1504				__entry->dev = inode->i_sb->s_dev;
  1505				__entry->fileid = nfsi->fileid;
  1506				__entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
  1507				__entry->req = req;
  1508				__entry->offset = req_offset(req);
  1509				__entry->count = req->wb_bytes;
  1510				__entry->flags = req->wb_flags;
  1511			),
  1512	
  1513			TP_printk(
  1514				"fileid=%02x:%02x:%llu fhandle=0x%08x req=%p offset=%lld count=%u flags=%s",
  1515				MAJOR(__entry->dev), MINOR(__entry->dev),
  1516				(unsigned long long)__entry->fileid, __entry->fhandle,
  1517				__entry->req, __entry->offset, __entry->count,
  1518				nfs_show_wb_flags(__entry->flags)
  1519			)
  1520	);
  1521	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ