* [android-common:android13-5.15 4/4] include/linux/userfaultfd_k.h:81:64: sparse: sparse: incompatible types in comparison expression (different address spaces):
@ 2026-03-27 13:52 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-27 13:52 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android13-5.15
head: fc88a7504f0f262cc5b2e8a7f58b2a1108034856
commit: 9b613572d6246da9b616f34e4a0e0b5ac74b2dd0 [4/4] ANDROID: userfaultfd: allow SPF for UFFD_FEATURE_SIGBUS on private+anon
config: i386-randconfig-r133-20260325 (https://download.01.org/0day-ci/archive/20260327/202603272106.IALaEpg0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260327/202603272106.IALaEpg0-lkp@intel.com/reproduce)
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/202603272106.IALaEpg0-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/mmap.c: note: in included file (through include/linux/hugetlb.h):
>> include/linux/userfaultfd_k.h:81:64: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/userfaultfd_k.h:81:64: sparse: struct userfaultfd_ctx *
include/linux/userfaultfd_k.h:81:64: sparse: struct userfaultfd_ctx [noderef] __rcu *
>> include/linux/userfaultfd_k.h:81:64: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/userfaultfd_k.h:81:64: sparse: struct userfaultfd_ctx *
include/linux/userfaultfd_k.h:81:64: sparse: struct userfaultfd_ctx [noderef] __rcu *
--
>> fs/userfaultfd.c:757:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct userfaultfd_ctx [noderef] __rcu *ctx @@ got struct userfaultfd_ctx *[assigned] ctx @@
fs/userfaultfd.c:757:29: sparse: expected struct userfaultfd_ctx [noderef] __rcu *ctx
fs/userfaultfd.c:757:29: sparse: got struct userfaultfd_ctx *[assigned] ctx
>> fs/userfaultfd.c:771:45: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct userfaultfd_ctx *ctx @@ got struct userfaultfd_ctx [noderef] __rcu *ctx @@
fs/userfaultfd.c:771:45: sparse: expected struct userfaultfd_ctx *ctx
fs/userfaultfd.c:771:45: sparse: got struct userfaultfd_ctx [noderef] __rcu *ctx
>> fs/userfaultfd.c:1483:64: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct userfaultfd_ctx [noderef] __rcu *ctx @@ got struct userfaultfd_ctx *ctx @@
fs/userfaultfd.c:1483:64: sparse: expected struct userfaultfd_ctx [noderef] __rcu *ctx
fs/userfaultfd.c:1483:64: sparse: got struct userfaultfd_ctx *ctx
vim +81 include/linux/userfaultfd_k.h
58
59 extern int mfill_atomic_install_pte(struct mm_struct *dst_mm, pmd_t *dst_pmd,
60 struct vm_area_struct *dst_vma,
61 unsigned long dst_addr, struct page *page,
62 bool newly_allocated, bool wp_copy);
63
64 extern ssize_t mcopy_atomic(struct mm_struct *dst_mm, unsigned long dst_start,
65 unsigned long src_start, unsigned long len,
66 atomic_t *mmap_changing, __u64 mode);
67 extern ssize_t mfill_zeropage(struct mm_struct *dst_mm,
68 unsigned long dst_start,
69 unsigned long len,
70 atomic_t *mmap_changing);
71 extern ssize_t mcopy_continue(struct mm_struct *dst_mm, unsigned long dst_start,
72 unsigned long len, atomic_t *mmap_changing);
73 extern int mwriteprotect_range(struct mm_struct *dst_mm,
74 unsigned long start, unsigned long len,
75 bool enable_wp, atomic_t *mmap_changing);
76
77 /* mm helpers */
78 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma,
79 struct vm_userfaultfd_ctx vm_ctx)
80 {
> 81 return rcu_access_pointer(vma->vm_userfaultfd_ctx.ctx) == vm_ctx.ctx;
82 }
83
--
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:[~2026-03-27 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-27 13:52 [android-common:android13-5.15 4/4] include/linux/userfaultfd_k.h:81:64: sparse: sparse: incompatible types in comparison expression (different address spaces): 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.