Re: [PATCH RFC 08/30] shmem/userfaultfd: Handle uffd-wp special pte in page fault handler
by kernel test robot
Hi Peter,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on asm-generic/master]
[cannot apply to arm64/for-next/core linus/master hnaz-linux-mm/master v5.11-rc3 next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Peter-Xu/userfaultfd-wp-Support-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/52b3f6cd15560c697c44ecfb34fd303f9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Peter-Xu/userfaultfd-wp-Support-shmem-and-hugetlbfs/20210116-011305
git checkout 52b3f6cd15560c697c44ecfb34fd303f9cc43ae2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> mm/memory.c:4380:12: warning: no previous prototype for 'uffd_wp_handle_special' [-Wmissing-prototypes]
4380 | vm_fault_t uffd_wp_handle_special(struct vm_fault *vmf)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/uffd_wp_handle_special +4380 mm/memory.c
4375
4376 /*
4377 * This is actually a page-missing access, but with uffd-wp special pte
4378 * installed. It means this pte was wr-protected before being unmapped.
4379 */
> 4380 vm_fault_t uffd_wp_handle_special(struct vm_fault *vmf)
4381 {
4382 /* Careful! vmf->pte unmapped after return */
4383 if (!pte_unmap_same(vmf))
4384 return 0;
4385
4386 /*
4387 * Just in case there're leftover special ptes even after the region
4388 * got unregistered - we can simply clear them.
4389 */
4390 if (unlikely(!userfaultfd_wp(vmf->vma) || vma_is_anonymous(vmf->vma)))
4391 return uffd_wp_clear_special(vmf);
4392
4393 /*
4394 * Tell all the rest of the fault code: we're handling a special pte,
4395 * always remember to arm the uffd-wp bit when intalling the new pte.
4396 */
4397 vmf->flags |= FAULT_FLAG_UFFD_WP;
4398
4399 /*
4400 * Let's assume this is a read fault no matter what. If it is a real
4401 * write access, it'll fault again into do_wp_page() where the message
4402 * will be generated before the thread yields itself.
4403 *
4404 * Ideally we can also handle write immediately before return, but this
4405 * should be a slow path already (pte unmapped), so be simple first.
4406 */
4407 vmf->flags &= ~FAULT_FLAG_WRITE;
4408
4409 return do_fault(vmf);
4410 }
4411
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH net-next] net: ks8851: Fix mixed module/builtin build
by kernel test robot
Hi Marek,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Marek-Vasut/net-ks8851-Fix-mixed...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1d9f03c0a15fa01aa14fb295cbc1236403fceb0b
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/e11965ba009b3247ecbbb87730c724405...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Vasut/net-ks8851-Fix-mixed-module-builtin-build/20210115-215024
git checkout e11965ba009b3247ecbbb87730c724405eae8753
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mips-linux-ld: drivers/net/ethernet/micrel/ks8851_par.o: in function `ks8851_resume':
>> ks8851_par.c:(.text.ks8851_resume+0x0): multiple definition of `ks8851_resume'; drivers/net/ethernet/micrel/ks8851_spi.o:ks8851_spi.c:(.text.ks8851_resume+0x0): first defined here
mips-linux-ld: drivers/net/ethernet/micrel/ks8851_par.o: in function `ks8851_suspend':
>> ks8851_par.c:(.text.ks8851_suspend+0x0): multiple definition of `ks8851_suspend'; drivers/net/ethernet/micrel/ks8851_spi.o:ks8851_spi.c:(.text.ks8851_suspend+0x0): first defined here
mips-linux-ld: drivers/net/ethernet/micrel/ks8851_par.o: in function `ks8851_probe_common':
>> ks8851_par.c:(.text.ks8851_probe_common+0x0): multiple definition of `ks8851_probe_common'; drivers/net/ethernet/micrel/ks8851_spi.o:ks8851_spi.c:(.text.ks8851_probe_common+0x0): first defined here
mips-linux-ld: drivers/net/ethernet/micrel/ks8851_par.o: in function `ks8851_remove_common':
>> ks8851_par.c:(.text.ks8851_remove_common+0x0): multiple definition of `ks8851_remove_common'; drivers/net/ethernet/micrel/ks8851_spi.o:ks8851_spi.c:(.text.ks8851_remove_common+0x0): first defined here
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH RFC 4/4] logic_pio: Warn on and discard accesses to addresses below IO_SPACE_BASE
by kernel test robot
Hi John,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on asm-generic/master soc/for-next linus/master v5.11-rc3 next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/John-Garry/Fix-arm64-crash-for-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: nios2-randconfig-r012-20210115 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/a75a79165fd5529fe38a5f05268cce3c1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review John-Garry/Fix-arm64-crash-for-accessing-unmapped-IO-port-regions-reboot/20210116-010800
git checkout a75a79165fd5529fe38a5f05268cce3c1ee89b5e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/io.h:530,
from arch/nios2/include/asm/io.h:41,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/nios2/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from arch/nios2/kernel/asm-offsets.c:8:
>> include/linux/logic_pio.h:118:2: error: #error MMIO_UPPPER_LIMIT should be above MMIO_LOWER_LIMIT
118 | #error MMIO_UPPPER_LIMIT should be above MMIO_LOWER_LIMIT
| ^~~~~
make[2]: *** [scripts/Makefile.build:117: arch/nios2/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +118 include/linux/logic_pio.h
114
115 #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
116 #define MMIO_LOWER_LIMIT IO_SPACE_BASE
117 #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
> 118 #error MMIO_UPPPER_LIMIT should be above MMIO_LOWER_LIMIT
119 #endif
120
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[jfern:coresched 2/13] kernel/sched/core.c:5147:15: error: use of undeclared identifier '_TIF_UNSAFE_RET'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git coresched
head: 96c7e148eeff83b159e8e4c6d5aa9bed6ea47580
commit: f9ce34d192fc4b26bcb6402f41e534f1776d3832 [2/13] kernel/entry: Add support for core-wide protection of kernel-mode
config: s390-randconfig-r012-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?i...
git remote add jfern https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git
git fetch --no-tags jfern coresched
git checkout f9ce34d192fc4b26bcb6402f41e534f1776d3832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
kernel/sched/core.c:283:6: warning: no previous prototype for function 'sched_core_get' [-Wmissing-prototypes]
void sched_core_get(void)
^
kernel/sched/core.c:283:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_core_get(void)
^
static
kernel/sched/core.c:291:6: warning: no previous prototype for function 'sched_core_put' [-Wmissing-prototypes]
void sched_core_put(void)
^
kernel/sched/core.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_core_put(void)
^
static
kernel/sched/core.c:3032:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:3032:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
>> kernel/sched/core.c:5147:15: error: use of undeclared identifier '_TIF_UNSAFE_RET'
ti_check &= ~_TIF_UNSAFE_RET;
^
23 warnings and 1 error generated.
vim +/_TIF_UNSAFE_RET +5147 kernel/sched/core.c
5128
5129 /*
5130 * sched_core_wait_till_safe - Pause the caller's hyperthread until the core
5131 * exits the core-wide unsafe state. Obviously the CPU calling this function
5132 * should not be responsible for the core being in the core-wide unsafe state
5133 * otherwise it will deadlock.
5134 *
5135 * @ti_check: We spin here with IRQ enabled and preempt disabled. Break out of
5136 * the loop if TIF flags are set and notify caller about it.
5137 *
5138 * IRQs should be disabled.
5139 */
5140 bool sched_core_wait_till_safe(unsigned long ti_check)
5141 {
5142 bool restart = false;
5143 struct rq *rq;
5144 int cpu;
5145
5146 /* We clear the thread flag only at the end, so no need to check for it. */
> 5147 ti_check &= ~_TIF_UNSAFE_RET;
5148
5149 cpu = smp_processor_id();
5150 rq = cpu_rq(cpu);
5151
5152 if (!sched_core_enabled(rq))
5153 goto ret;
5154
5155 /* Down grade to allow interrupts to prevent stop_machine lockups.. */
5156 preempt_disable();
5157 local_irq_enable();
5158
5159 /*
5160 * Wait till the core of this HT is not in an unsafe state.
5161 *
5162 * Pair with raw_spin_lock/unlock() in sched_core_unsafe_enter/exit().
5163 */
5164 while (smp_load_acquire(&rq->core->core_unsafe_nest) > 0) {
5165 cpu_relax();
5166 if (READ_ONCE(current_thread_info()->flags) & ti_check) {
5167 restart = true;
5168 break;
5169 }
5170 }
5171
5172 /* Upgrade it back to the expectations of entry code. */
5173 local_irq_disable();
5174 preempt_enable();
5175
5176 ret:
5177 if (!restart)
5178 clear_tsk_thread_flag(current, TIF_UNSAFE_RET);
5179
5180 return restart;
5181 }
5182
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH RFC 4/4] logic_pio: Warn on and discard accesses to addresses below IO_SPACE_BASE
by kernel test robot
Hi John,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on asm-generic/master soc/for-next linus/master v5.11-rc3 next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/John-Garry/Fix-arm64-crash-for-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm-randconfig-r014-20210115 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/a75a79165fd5529fe38a5f05268cce3c1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review John-Garry/Fix-arm64-crash-for-accessing-unmapped-IO-port-regions-reboot/20210116-010800
git checkout a75a79165fd5529fe38a5f05268cce3c1ee89b5e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:10,
from arch/arm/kernel/asm-offsets.c:13:
>> arch/arm/include/asm/io.h:221:26: warning: "resource_size_t" is not defined, evaluates to 0 [-Wundef]
221 | #define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~~~~~~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro 'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
>> arch/arm/include/asm/io.h:221:42: error: missing binary operator before token "0xffff"
221 | #define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro 'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:10,
from arch/arm/kernel/asm-offsets.c:13:
>> arch/arm/include/asm/io.h:221:26: warning: "resource_size_t" is not defined, evaluates to 0 [-Wundef]
221 | #define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~~~~~~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro 'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
>> arch/arm/include/asm/io.h:221:42: error: missing binary operator before token "0xffff"
221 | #define IO_SPACE_LIMIT ((resource_size_t)0xffff)
| ^~~~~~
include/linux/logic_pio.h:115:27: note: in expansion of macro 'IO_SPACE_LIMIT'
115 | #define MMIO_UPPER_LIMIT (IO_SPACE_LIMIT - PIO_INDIRECT_SIZE)
| ^~~~~~~~~~~~~~
include/linux/logic_pio.h:117:25: note: in expansion of macro 'MMIO_UPPER_LIMIT'
117 | #if MMIO_LOWER_LIMIT >= MMIO_UPPER_LIMIT
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/resource_size_t +221 arch/arm/include/asm/io.h
^1da177e4c3f4152 include/asm-arm/io.h Linus Torvalds 2005-04-16 205
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 206 /*
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 207 * This is the limit of PC card/PCI/ISA IO space, which is by default
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 208 * 64K if we have PC card, PCI or ISA support. Otherwise, default to
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 209 * zero to prevent ISA/PCI drivers claiming IO space (and potentially
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 210 * oopsing.)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 211 *
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 212 * Only set this larger if you really need inb() et.al. to operate over
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 213 * a larger address space. Note that SOC_COMMON ioremaps each sockets
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 214 * IO space area, and so inb() et.al. must be defined to operate as per
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 215 * readb() et.al. on such platforms.
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 216 */
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 217 #ifndef IO_SPACE_LIMIT
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 218 #if defined(CONFIG_PCMCIA_SOC_COMMON) || defined(CONFIG_PCMCIA_SOC_COMMON_MODULE)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 219 #define IO_SPACE_LIMIT ((resource_size_t)0xffffffff)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 220 #elif defined(CONFIG_PCI) || defined(CONFIG_ISA) || defined(CONFIG_PCCARD)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 @221 #define IO_SPACE_LIMIT ((resource_size_t)0xffff)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 222 #else
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 223 #define IO_SPACE_LIMIT ((resource_size_t)0)
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 224 #endif
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 225 #endif
04e1c83806e30ae3 arch/arm/include/asm/io.h Russell King 2011-07-06 226
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [RFC PATCH v7 3/3] KVM: arm64: ioctl to fetch/store tags in a guest
by kernel test robot
Hi Steven,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on v5.11-rc3]
[cannot apply to kvmarm/next kvm/linux-next next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Steven-Price/MTE-support-for-KVM...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/ddde8cff287aad027c9fa0015afe26ced...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Steven-Price/MTE-support-for-KVM-guest/20210115-233109
git checkout ddde8cff287aad027c9fa0015afe26ced5041f50
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm64/kvm/arm.c: In function 'kvm_vm_ioctl_mte_copy_tags':
>> arch/arm64/kvm/arm.c:1313:9: warning: variable 'pages' set but not used [-Wunused-but-set-variable]
1313 | size_t pages;
| ^~~~~
vim +/pages +1313 arch/arm64/kvm/arm.c
1305
1306 static int kvm_vm_ioctl_mte_copy_tags(struct kvm *kvm,
1307 struct kvm_arm_copy_mte_tags *copy_tags)
1308 {
1309 gpa_t guest_ipa = copy_tags->guest_ipa;
1310 size_t length = copy_tags->length;
1311 void __user *tags = copy_tags->addr;
1312 gpa_t gfn;
> 1313 size_t pages;
1314 bool write = !(copy_tags->flags & KVM_ARM_TAGS_FROM_GUEST);
1315
1316 if (copy_tags->flags & ~KVM_ARM_TAGS_FROM_GUEST)
1317 return -EINVAL;
1318
1319 if (length & ~PAGE_MASK || guest_ipa & ~PAGE_MASK)
1320 return -EINVAL;
1321
1322 gfn = gpa_to_gfn(guest_ipa);
1323 pages = length >> PAGE_SHIFT;
1324
1325 while (length > 0) {
1326 kvm_pfn_t pfn = gfn_to_pfn_prot(kvm, gfn, write, NULL);
1327 void *maddr;
1328 unsigned long num_tags = PAGE_SIZE / MTE_GRANULE_SIZE;
1329
1330 if (is_error_noslot_pfn(pfn))
1331 return -ENOENT;
1332
1333 maddr = page_address(pfn_to_page(pfn));
1334
1335 if (!write) {
1336 num_tags = mte_copy_tags_to_user(tags, maddr, num_tags);
1337 kvm_release_pfn_clean(pfn);
1338 } else {
1339 num_tags = mte_copy_tags_from_user(maddr, tags,
1340 num_tags);
1341 kvm_release_pfn_dirty(pfn);
1342 }
1343
1344 if (num_tags != PAGE_SIZE / MTE_GRANULE_SIZE)
1345 return -EFAULT;
1346
1347 gfn++;
1348 tags += num_tags;
1349 length -= PAGE_SIZE;
1350 }
1351
1352 return 0;
1353 }
1354
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH 12/21] objtool: Add CONFIG_CFI_CLANG support
by kernel test robot
Hi Josh,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/master]
[also build test ERROR on linus/master v5.11-rc3 next-20210115]
[cannot apply to xen-tip/linux-next tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Josh-Poimboeuf/objtool-vmlinux-o...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2c2adbc40b7276518921864053f3c02034b2290f
config: x86_64-randconfig-r021-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/8bd968235f05d3e12d27c48feea19efdb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Josh-Poimboeuf/objtool-vmlinux-o-and-CLANG-LTO-support/20210115-125439
git checkout 8bd968235f05d3e12d27c48feea19efdb7abeca6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
elf.c:414:8: error: unused variable 'coldstr' [-Werror,-Wunused-variable]
char *coldstr;
^
>> elf.c:639:9: error: variable 'sym' is uninitialized when used here [-Werror,-Wuninitialized]
if (sym->type == STT_SECTION)
^~~
elf.c:637:30: note: initialize the variable 'sym' to silence this warning
struct symbol *func, *sym;
^
= NULL
2 errors generated.
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
--
elf.c:414:8: error: unused variable 'coldstr' [-Werror,-Wunused-variable]
char *coldstr;
^
>> elf.c:639:9: error: variable 'sym' is uninitialized when used here [-Werror,-Wuninitialized]
if (sym->type == STT_SECTION)
^~~
elf.c:637:30: note: initialize the variable 'sym' to silence this warning
struct symbol *func, *sym;
^
= NULL
2 errors generated.
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1931: tools/objtool] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
elf.c:414:8: error: unused variable 'coldstr' [-Werror,-Wunused-variable]
char *coldstr;
^
>> elf.c:639:9: error: variable 'sym' is uninitialized when used here [-Werror,-Wuninitialized]
if (sym->type == STT_SECTION)
^~~
elf.c:637:30: note: initialize the variable 'sym' to silence this warning
struct symbol *func, *sym;
^
= NULL
2 errors generated.
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:59: tools/objtool/objtool-in.o] Error 2
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1931: tools/objtool] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[drm-drm-intel:drm-intel-gt-next 8/8] drivers/gpu/drm/i915/gem/i915_gem_stolen.c:624:5: warning: no previous prototype for '__i915_gem_object_create_stolen'
by kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-intel drm-intel-gt-next
head: 97d5539632501af59290ead8f832e0ca6b6f69e7
commit: 97d5539632501af59290ead8f832e0ca6b6f69e7 [8/8] drm/i915/region: convert object_create into object_init
config: i386-randconfig-r024-20210115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add drm-drm-intel git://anongit.freedesktop.org/drm/drm-intel
git fetch --no-tags drm-drm-intel drm-intel-gt-next
git checkout 97d5539632501af59290ead8f832e0ca6b6f69e7
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:624:5: warning: no previous prototype for '__i915_gem_object_create_stolen' [-Wmissing-prototypes]
624 | int __i915_gem_object_create_stolen(struct intel_memory_region *mem,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:649:5: warning: no previous prototype for '_i915_gem_object_stolen_init' [-Wmissing-prototypes]
649 | int _i915_gem_object_stolen_init(struct intel_memory_region *mem,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/__i915_gem_object_create_stolen +624 drivers/gpu/drm/i915/gem/i915_gem_stolen.c
623
> 624 int __i915_gem_object_create_stolen(struct intel_memory_region *mem,
625 struct drm_i915_gem_object *obj,
626 struct drm_mm_node *stolen)
627 {
628 static struct lock_class_key lock_class;
629 unsigned int cache_level;
630 int err;
631
632 drm_gem_private_object_init(&mem->i915->drm, &obj->base, stolen->size);
633 i915_gem_object_init(obj, &i915_gem_object_stolen_ops, &lock_class);
634
635 obj->stolen = stolen;
636 obj->read_domains = I915_GEM_DOMAIN_CPU | I915_GEM_DOMAIN_GTT;
637 cache_level = HAS_LLC(mem->i915) ? I915_CACHE_LLC : I915_CACHE_NONE;
638 i915_gem_object_set_cache_coherency(obj, cache_level);
639
640 err = i915_gem_object_pin_pages(obj);
641 if (err)
642 return err;
643
644 i915_gem_object_init_memory_region(obj, mem, 0);
645
646 return 0;
647 }
648
> 649 int _i915_gem_object_stolen_init(struct intel_memory_region *mem,
650 struct drm_i915_gem_object *obj,
651 resource_size_t size,
652 unsigned int flags)
653 {
654 struct drm_i915_private *i915 = mem->i915;
655 struct drm_mm_node *stolen;
656 int ret;
657
658 if (!drm_mm_initialized(&i915->mm.stolen))
659 return -ENODEV;
660
661 if (size == 0)
662 return -EINVAL;
663
664 stolen = kzalloc(sizeof(*stolen), GFP_KERNEL);
665 if (!stolen)
666 return -ENOMEM;
667
668 ret = i915_gem_stolen_insert_node(i915, stolen, size, 4096);
669 if (ret)
670 goto err_free;
671
672 ret = __i915_gem_object_create_stolen(mem, obj, stolen);
673 if (ret)
674 goto err_remove;
675
676 return 0;
677
678 err_remove:
679 i915_gem_stolen_remove_node(i915, stolen);
680 err_free:
681 kfree(stolen);
682 return ret;
683 }
684
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months