From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.15 4/4] include/linux/userfaultfd_k.h:81:64: sparse: sparse: incompatible types in comparison expression (different address spaces):
Date: Fri, 27 Mar 2026 21:52:53 +0800 [thread overview]
Message-ID: <202603272106.IALaEpg0-lkp@intel.com> (raw)
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
reply other threads:[~2026-03-27 13:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603272106.IALaEpg0-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.