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-next>] [day] [month] [year] [list]
Message-ID: <202210062152.UVjgI2io-lkp@intel.com>
Date:   Thu, 6 Oct 2022 21:49:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jens Axboe <axboe@...nel.dk>
Subject: include/trace/events/jbd2.h:356:1: sparse: sparse: cast to
 restricted blk_opf_t

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   833477fce7a14d43ae4c07f8ddc32fa5119471a2
commit: 6669797b0dd41ced457760b6e1014fdda8ce19ce fs/jbd2: Fix the documentation of the jbd2_write_superblock() callers
date:   3 months ago
config: x86_64-randconfig-s023
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6669797b0dd41ced457760b6e1014fdda8ce19ce
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6669797b0dd41ced457760b6e1014fdda8ce19ce
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/btrfs/ fs/jbd2/ fs/nilfs2/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

sparse warnings: (new ones prefixed by >>)
   fs/jbd2/journal.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/jbd2.h):
>> include/trace/events/jbd2.h:356:1: sparse: sparse: cast to restricted blk_opf_t
>> include/trace/events/jbd2.h:356:1: sparse: sparse: cast to restricted blk_opf_t
>> include/trace/events/jbd2.h:356:1: sparse: sparse: restricted blk_opf_t degrades to integer
>> include/trace/events/jbd2.h:356:1: sparse: sparse: restricted blk_opf_t degrades to integer

vim +356 include/trace/events/jbd2.h

71f2be213a0009 Theodore Ts'o   2009-12-23  355  
24bcc89c7e7c64 Jan Kara        2012-03-13 @356  TRACE_EVENT(jbd2_write_superblock,
2201c590dd6e80 Seiji Aguchi    2012-02-20  357  
6669797b0dd41c Bart Van Assche 2022-07-14  358  	TP_PROTO(journal_t *journal, blk_opf_t write_flags),
2201c590dd6e80 Seiji Aguchi    2012-02-20  359  
6669797b0dd41c Bart Van Assche 2022-07-14  360  	TP_ARGS(journal, write_flags),
2201c590dd6e80 Seiji Aguchi    2012-02-20  361  
2201c590dd6e80 Seiji Aguchi    2012-02-20  362  	TP_STRUCT__entry(
2201c590dd6e80 Seiji Aguchi    2012-02-20  363  		__field(	dev_t,  dev			)
6669797b0dd41c Bart Van Assche 2022-07-14  364  		__field(    blk_opf_t,  write_flags		)
2201c590dd6e80 Seiji Aguchi    2012-02-20  365  	),
2201c590dd6e80 Seiji Aguchi    2012-02-20  366  
2201c590dd6e80 Seiji Aguchi    2012-02-20  367  	TP_fast_assign(
2201c590dd6e80 Seiji Aguchi    2012-02-20  368  		__entry->dev		= journal->j_fs_dev->bd_dev;
6669797b0dd41c Bart Van Assche 2022-07-14  369  		__entry->write_flags	= write_flags;
2201c590dd6e80 Seiji Aguchi    2012-02-20  370  	),
2201c590dd6e80 Seiji Aguchi    2012-02-20  371  
6669797b0dd41c Bart Van Assche 2022-07-14  372  	TP_printk("dev %d,%d write_flags %x", MAJOR(__entry->dev),
6669797b0dd41c Bart Van Assche 2022-07-14  373  		  MINOR(__entry->dev), (__force u32)__entry->write_flags)
2201c590dd6e80 Seiji Aguchi    2012-02-20  374  );
2201c590dd6e80 Seiji Aguchi    2012-02-20  375  

:::::: The code at line 356 was first introduced by commit
:::::: 24bcc89c7e7c64982e6192b4952a0a92379fc341 jbd2: split updating of journal superblock and marking journal empty

:::::: TO: Jan Kara <jack@...e.cz>
:::::: CC: Theodore Ts'o <tytso@....edu>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ