tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 951151c7a27bc2a9436c2c49ae12510c82137ec1 commit: 2cef14dac00fca28ba2c0492e70bb537cba83f4d [2600/2600] mm/pin_mem: add PG_hotreplace to mark pages need hotreplaced config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270714.njP0n3lT-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270714.njP0n3lT-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202412270714.njP0n3lT-lkp@intel.com/
sparse warnings: (new ones prefixed by >>) mm/memory.c:5306:22: sparse: sparse: cast removes address space '__user' of expression mm/memory.c:273:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:307:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:943:17: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block mm/memory.c:1099:61: sparse: sparse: self-comparison always evaluates to false mm/memory.c:1123:61: sparse: sparse: self-comparison always evaluates to false mm/memory.c:1635:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block mm/memory.c:1684:9: sparse: sparse: context imbalance in 'insert_page' - different lock contexts for basic block mm/memory.c:2186:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block mm/memory.c:2243:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:2265:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:2431:17: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock mm/memory.c:2504:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:2540:46: sparse: sparse: self-comparison always evaluates to false mm/memory.c:2719:17: sparse: sparse: context imbalance in 'wp_page_copy' - unexpected unlock mm/memory.c: note: in included file (through arch/arm64/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/atomic.h, ...):
arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff) arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
mm/memory.c:3064:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock
arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff) arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
mm/memory.c:3127:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block mm/memory.c:3755:19: sparse: sparse: context imbalance in 'pte_alloc_one_map' - different lock contexts for basic block mm/memory.c:3982:17: sparse: sparse: context imbalance in 'finish_fault' - unexpected unlock mm/memory.c:4091:9: sparse: sparse: context imbalance in 'do_fault_around' - unexpected unlock mm/memory.c:4814:5: sparse: sparse: context imbalance in 'follow_invalidate_pte' - different lock contexts for basic block mm/memory.c:4935:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock -- mm/migrate.c: note: in included file (through arch/arm64/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/atomic.h, ...):
arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
vim +88 arch/arm64/include/asm/cmpxchg.h
10b663aef1c2479 Catalin Marinas 2012-03-05 84 305d454aaa292be Will Deacon 2015-10-08 85 __XCHG_GEN() 305d454aaa292be Will Deacon 2015-10-08 86 __XCHG_GEN(_acq) 305d454aaa292be Will Deacon 2015-10-08 87 __XCHG_GEN(_rel) 305d454aaa292be Will Deacon 2015-10-08 @88 __XCHG_GEN(_mb) 305d454aaa292be Will Deacon 2015-10-08 89
:::::: The code at line 88 was first introduced by commit :::::: 305d454aaa292be3a09a9d674e6c35f5b4249a13 arm64: atomics: implement native {relaxed, acquire, release} atomics
:::::: TO: Will Deacon will.deacon@arm.com :::::: CC: Catalin Marinas catalin.marinas@arm.com