From: kernel test robot <lkp@intel.com>
To: Filipe Manana <fdmanana@suse.com>
Cc: oe-kbuild-all@lists.linux.dev,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>
Subject: [stable:linux-4.19.y 3835/9999] include/linux/pagemap.h:576: Error: unrecognized opcode `csrs sstatus,s4'
Date: Tue, 14 Feb 2023 07:24:42 +0800 [thread overview]
Message-ID: <202302140706.HJDNA8li-lkp@intel.com> (raw)
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
reply other threads:[~2023-02-13 23:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302140706.HJDNA8li-lkp@intel.com \
--to=lkp@intel.com \
--cc=dsterba@suse.com \
--cc=fdmanana@suse.com \
--cc=gregkh@linuxfoundation.org \
--cc=josef@toxicpanda.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.