* [stable:linux-4.19.y 4204/6017] net/atm/mpoa_proc.c:226: Error: unrecognized opcode `csrs sstatus,a2'
@ 2023-05-28 23:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-28 23:07 UTC (permalink / raw)
To: Xiaobo Liu; +Cc: oe-kbuild-all, Greg Kroah-Hartman, Sasha Levin
Hi Xiaobo,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
head: 3f57fb8b1bd06b277556601133823bec370d723f
commit: c5f762b60cd9ae7c766376a94d9c41f4ed613d9f [4204/6017] net/atm: fix proc_mpc_write incorrect return value
config: riscv-randconfig-c004-20230528 (https://download.01.org/0day-ci/archive/20230529/202305290652.NeGKB6BF-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
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=c5f762b60cd9ae7c766376a94d9c41f4ed613d9f
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 c5f762b60cd9ae7c766376a94d9c41f4ed613d9f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/atm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305290652.NeGKB6BF-lkp@intel.com/
All errors (new ones prefixed by >>):
net/atm/mpoa_proc.c: Assembler messages:
>> net/atm/mpoa_proc.c:226: Error: unrecognized opcode `csrs sstatus,a2'
>> net/atm/mpoa_proc.c:226: Error: unrecognized opcode `csrc sstatus,a2'
vim +226 net/atm/mpoa_proc.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 208
^1da177e4c3f41 Linus Torvalds 2005-04-16 209 static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
^1da177e4c3f41 Linus Torvalds 2005-04-16 210 size_t nbytes, loff_t *ppos)
^1da177e4c3f41 Linus Torvalds 2005-04-16 211 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 212 char *page, *p;
95c961747284a6 Eric Dumazet 2012-04-15 213 unsigned int len;
^1da177e4c3f41 Linus Torvalds 2005-04-16 214
^1da177e4c3f41 Linus Torvalds 2005-04-16 215 if (nbytes == 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16 216 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 217
^1da177e4c3f41 Linus Torvalds 2005-04-16 218 if (nbytes >= PAGE_SIZE)
^1da177e4c3f41 Linus Torvalds 2005-04-16 219 nbytes = PAGE_SIZE-1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 220
^1da177e4c3f41 Linus Torvalds 2005-04-16 221 page = (char *)__get_free_page(GFP_KERNEL);
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 if (!page)
^1da177e4c3f41 Linus Torvalds 2005-04-16 223 return -ENOMEM;
^1da177e4c3f41 Linus Torvalds 2005-04-16 224
c5f762b60cd9ae Xiaobo Liu 2022-10-14 225 for (p = page, len = 0; len < nbytes; p++) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @226 if (get_user(*p, buff++)) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 227 free_page((unsigned long)page);
^1da177e4c3f41 Linus Torvalds 2005-04-16 228 return -EFAULT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 229 }
c5f762b60cd9ae Xiaobo Liu 2022-10-14 230 len += 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 231 if (*p == '\0' || *p == '\n')
^1da177e4c3f41 Linus Torvalds 2005-04-16 232 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 233 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 234
^1da177e4c3f41 Linus Torvalds 2005-04-16 235 *p = '\0';
^1da177e4c3f41 Linus Torvalds 2005-04-16 236
^1da177e4c3f41 Linus Torvalds 2005-04-16 237 if (!parse_qos(page))
^1da177e4c3f41 Linus Torvalds 2005-04-16 238 printk("mpoa: proc_mpc_write: could not parse '%s'\n", page);
^1da177e4c3f41 Linus Torvalds 2005-04-16 239
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 free_page((unsigned long)page);
^1da177e4c3f41 Linus Torvalds 2005-04-16 241
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 return len;
^1da177e4c3f41 Linus Torvalds 2005-04-16 243 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 244
:::::: The code at line 226 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-28 23:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28 23:07 [stable:linux-4.19.y 4204/6017] net/atm/mpoa_proc.c:226: Error: unrecognized opcode `csrs sstatus,a2' 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.