tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
btree-private-unions
head: 30d91fbcef11ed07350f943fd3f695e0fb0635dd
commit: 35137236b91e958ca683fd4a045a29c0b5310938 [52/72] xfs: don't crash with
assfail
config: parisc-allnoconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 35137236b91e958ca683fd4a045a29c0b5310938
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/mm.h:94,
from fs///attr.c:11:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
> arch/parisc/include/asm/pgtable.h:96:9: warning: variable
'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t
old_pte; \
| ^~~~~~~
> arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of
macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp)
set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
> include/asm-generic/pgtable.h:201:2: note: in expansion of macro
'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
> arch/parisc/include/asm/pgtable.h:96:9: warning: variable
'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t
old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:640:2: note: in expansion of macro 'set_pte_at'
640 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
vim +/old_pte +96 arch/parisc/include/asm/pgtable.h
01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01 84
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 85 /*
Certain architectures need to do special things when PTEs
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 86 *
within a page table are directly modified. Thus, the following
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 87 *
hook is made available.
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 88 */
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 89
#define set_pte(pteptr, pteval) \
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 90
do{ \
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 91
*(pteptr) = (pteval); \
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 92
} while(0)
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14 93
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14 94
#define set_pte_at(mm, addr, ptep, pteval) \
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14 95 do
{ \
01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01 @96
pte_t old_pte; \
bda079d336cd81 arch/parisc/include/asm/pgtable.h John David Anglin 2013-04-23 97
unsigned long flags; \
b37d1c1898b288 arch/parisc/include/asm/pgtable.h Mikulas Patocka 2019-04-28 98
spin_lock_irqsave(pgd_spinlock((mm)->pgd), flags);\
01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01 99
old_pte = *ptep; \
4dd5b673fa625d arch/parisc/include/asm/pgtable.h John David Anglin 2018-09-20 100
set_pte(ptep, pteval); \
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14 101
purge_tlb_entries(mm, addr); \
b37d1c1898b288 arch/parisc/include/asm/pgtable.h Mikulas Patocka 2019-04-28 102
spin_unlock_irqrestore(pgd_spinlock((mm)->pgd), flags);\
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14 103 }
while (0)
^1da177e4c3f41 include/asm-parisc/pgtable.h Linus Torvalds 2005-04-16 104
:::::: The code at line 96 was first introduced by commit
:::::: 01ab60570427caa24b9debc369e452e86cd9beb4 parisc: Fix some PTE/TLB race conditions
and optimize __flush_tlb_range based on timing results
:::::: TO: John David Anglin <dave.anglin(a)bell.net>
:::::: CC: Helge Deller <deller(a)gmx.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org