All of lore.kernel.org
 help / color / mirror / Atom feed
* [stable:linux-4.19.y 3835/9999] include/linux/pagemap.h:576: Error: unrecognized opcode `csrs sstatus,s4'
@ 2023-02-13 23:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-13 23:24 UTC (permalink / raw)
  To: Filipe Manana
  Cc: oe-kbuild-all, Greg Kroah-Hartman, Josef Bacik, David Sterba

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
head:   53b696f0584acce2e90db69272a2a11aab138370
commit: 91567128a9cbe55a4c133b900d73e6f56fef8f59 [3835/9999] btrfs: fix wrong address when faulting in pages in the search ioctl
config: riscv-randconfig-c44-20230212 (https://download.01.org/0day-ci/archive/20230214/202302140706.HJDNA8li-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=91567128a9cbe55a4c133b900d73e6f56fef8f59
        git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
        git fetch --no-tags stable linux-4.19.y
        git checkout 91567128a9cbe55a4c133b900d73e6f56fef8f59
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302140706.HJDNA8li-lkp@intel.com/

All errors (new ones prefixed by >>):

   include/linux/pagemap.h: Assembler messages:
>> include/linux/pagemap.h:576: Error: unrecognized opcode `csrs sstatus,s4'
>> include/linux/pagemap.h:576: Error: unrecognized opcode `csrc sstatus,s4'
   include/linux/pagemap.h:584: Error: unrecognized opcode `csrs sstatus,s4'
   include/linux/pagemap.h:584: Error: unrecognized opcode `csrc sstatus,s4'
   fs/btrfs/ioctl.c:482: Error: unrecognized opcode `csrs sstatus,a4'
   fs/btrfs/ioctl.c:482: Error: unrecognized opcode `csrc sstatus,a4'


vim +576 include/linux/pagemap.h

385e1ca5f21c46 David Howells  2009-04-03  558  
^1da177e4c3f41 Linus Torvalds 2005-04-16  559  /*
4bce9f6ee8f84f Al Viro        2016-09-17  560   * Fault everything in given userspace address range in.
^1da177e4c3f41 Linus Torvalds 2005-04-16  561   */
^1da177e4c3f41 Linus Torvalds 2005-04-16  562  static inline int fault_in_pages_writeable(char __user *uaddr, int size)
f56f821feb7b36 Daniel Vetter  2012-03-25  563  {
9923777dff4543 Daniel Vetter  2012-04-14  564  	char __user *end = uaddr + size - 1;
f56f821feb7b36 Daniel Vetter  2012-03-25  565  
f56f821feb7b36 Daniel Vetter  2012-03-25  566  	if (unlikely(size == 0))
e23d4159b10916 Al Viro        2016-09-20  567  		return 0;
f56f821feb7b36 Daniel Vetter  2012-03-25  568  
e23d4159b10916 Al Viro        2016-09-20  569  	if (unlikely(uaddr > end))
e23d4159b10916 Al Viro        2016-09-20  570  		return -EFAULT;
f56f821feb7b36 Daniel Vetter  2012-03-25  571  	/*
f56f821feb7b36 Daniel Vetter  2012-03-25  572  	 * Writing zeroes into userspace here is OK, because we know that if
f56f821feb7b36 Daniel Vetter  2012-03-25  573  	 * the zero gets there, we'll be overwriting it.
f56f821feb7b36 Daniel Vetter  2012-03-25  574  	 */
e23d4159b10916 Al Viro        2016-09-20  575  	do {
e23d4159b10916 Al Viro        2016-09-20 @576  		if (unlikely(__put_user(0, uaddr) != 0))
e23d4159b10916 Al Viro        2016-09-20  577  			return -EFAULT;
f56f821feb7b36 Daniel Vetter  2012-03-25  578  		uaddr += PAGE_SIZE;
e23d4159b10916 Al Viro        2016-09-20  579  	} while (uaddr <= end);
f56f821feb7b36 Daniel Vetter  2012-03-25  580  
f56f821feb7b36 Daniel Vetter  2012-03-25  581  	/* Check whether the range spilled into the next page. */
f56f821feb7b36 Daniel Vetter  2012-03-25  582  	if (((unsigned long)uaddr & PAGE_MASK) ==
f56f821feb7b36 Daniel Vetter  2012-03-25  583  			((unsigned long)end & PAGE_MASK))
e23d4159b10916 Al Viro        2016-09-20  584  		return __put_user(0, end);
f56f821feb7b36 Daniel Vetter  2012-03-25  585  
e23d4159b10916 Al Viro        2016-09-20  586  	return 0;
f56f821feb7b36 Daniel Vetter  2012-03-25  587  }
f56f821feb7b36 Daniel Vetter  2012-03-25  588  

:::::: The code at line 576 was first introduced by commit
:::::: e23d4159b109167126e5bcd7f3775c95de7fee47 fix fault_in_multipages_...() on architectures with no-op access_ok()

:::::: TO: Al Viro <viro@ZenIV.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-13 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 23:24 [stable:linux-4.19.y 3835/9999] include/linux/pagemap.h:576: Error: unrecognized opcode `csrs sstatus,s4' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.