From: kernel test robot <lkp@intel.com>
To: Christian Ehrhardt <christian.ehrhardt@codasip.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [scosu-sched:topic/mmap-cap-prot-wip/v6.18 126/1130] fs/select.c:783:44: error: passing argument 1 of '__get_user_ptr_fn' from incompatible pointer type
Date: Fri, 22 May 2026 01:35:53 +0800 [thread overview]
Message-ID: <202605220144.KSF3718G-lkp@intel.com> (raw)
tree: https://github.com/scosu/linux-sched topic/mmap-cap-prot-wip/v6.18
head: f69a5a9d9fee15edde28429e23a4c749a59937bd
commit: 1ab05c9b1f5b7d7f615c289b441e2bf963123a0e [126/1130] [CHERRY-PICK] fs/select: Use get_user_ptr for PCuABI support
config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20260522/202605220144.KSF3718G-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260522/202605220144.KSF3718G-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/202605220144.KSF3718G-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/sched/task.h:13,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:34,
from include/linux/compat.h:17,
from fs/select.c:18:
include/linux/uaccess.h:726:9: warning: 'get_user_ptr' redefined
726 | #define get_user_ptr(x,y) __get_user(x,y)
| ^~~~~~~~~~~~
In file included from arch/csky/include/asm/uaccess.h:201,
from include/linux/uaccess.h:12:
include/asm-generic/uaccess.h:259:9: note: this is the location of the previous definition
259 | #define get_user_ptr(x, ptr) \
| ^~~~~~~~~~~~
include/linux/uaccess.h:727:9: warning: 'put_user_ptr' redefined
727 | #define put_user_ptr(x,y) __put_user(x,y)
| ^~~~~~~~~~~~
include/asm-generic/uaccess.h:218:9: note: this is the location of the previous definition
218 | #define put_user_ptr(x, ptr) \
| ^~~~~~~~~~~~
In file included from include/asm-generic/div64.h:27,
from ./arch/csky/include/generated/asm/div64.h:1,
from include/linux/math.h:6,
from include/linux/math64.h:6,
from include/linux/time.h:6,
from include/linux/compat.h:10:
fs/select.c: In function 'get_sigset_argpack':
>> fs/select.c:783:44: error: passing argument 1 of '__get_user_ptr_fn' from incompatible pointer type [-Wincompatible-pointer-types]
783 | unsafe_get_user_ptr(to->p, &from->p, Efault);
| ^~~~~~~~
| |
| sigset_t **
include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/uaccess.h:703:36: note: in expansion of macro 'unsafe_op_wrap'
703 | #define unsafe_get_user_ptr(x,p,e) unsafe_op_wrap(__get_user_ptr(x,p),e)
| ^~~~~~~~~~~~~~
include/asm-generic/uaccess.h:254:20: note: in expansion of macro '__get_user_ptr_fn'
254 | __gu_err = __get_user_ptr_fn(ptr, &__x); \
| ^~~~~~~~~~~~~~~~~
include/linux/uaccess.h:703:51: note: in expansion of macro '__get_user_ptr'
703 | #define unsafe_get_user_ptr(x,p,e) unsafe_op_wrap(__get_user_ptr(x,p),e)
| ^~~~~~~~~~~~~~
fs/select.c:783:17: note: in expansion of macro 'unsafe_get_user_ptr'
783 | unsafe_get_user_ptr(to->p, &from->p, Efault);
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/uaccess.h:279:47: note: expected 'const void **' but argument is of type 'sigset_t **'
279 | __get_user_ptr_fn(const void __user * __user *ptr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
vim +/__get_user_ptr_fn +783 fs/select.c
773
774 static inline int get_sigset_argpack(struct sigset_argpack *to,
775 struct sigset_argpack __user *from)
776 {
777 // the path is hot enough for overhead of copy_from_user() to matter
778 if (from) {
779 if (can_do_masked_user_access())
780 from = masked_user_access_begin(from);
781 else if (!user_read_access_begin(from, sizeof(*from)))
782 return -EFAULT;
> 783 unsafe_get_user_ptr(to->p, &from->p, Efault);
784 unsafe_get_user(to->size, &from->size, Efault);
785 user_read_access_end();
786 }
787 return 0;
788 Efault:
789 user_read_access_end();
790 return -EFAULT;
791 }
792
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-21 17:36 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=202605220144.KSF3718G-lkp@intel.com \
--to=lkp@intel.com \
--cc=christian.ehrhardt@codasip.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.