From: kernel test robot <lkp@intel.com>
To: " Mickaël Salaün " <mic@digikod.net>
Cc: oe-kbuild-all@lists.linux.dev, Oleg Nesterov <oleg@redhat.com>
Subject: [mic:next 1/1] security/landlock/tsync.c:492:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Mon, 23 Nov 2026 15:57:09 +0100 [thread overview]
Message-ID: <20261123155122.GQ2URc4f-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next
head: afa0df0854578e41f8fb321bddf61c9e5bdb49df
commit: afa0df0854578e41f8fb321bddf61c9e5bdb49df [1/1] landlock: Do not hold exec_update_lock across the TSYNC wait
config: hexagon-randconfig-r2301-20261123 (https://download.01.org/0day-ci/archive/20261123/20261123155122.GQ2URc4f-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 8db60b003f961f25c5cafe91ee44176f61374279)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261123/20261123155122.GQ2URc4f-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/20261123155122.GQ2URc4f-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> security/landlock/tsync.c:492:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *_T @@ got struct spinlock [noderef] __rcu * @@
security/landlock/tsync.c:492:9: sparse: expected struct spinlock [usertype] *_T
security/landlock/tsync.c:492:9: sparse: got struct spinlock [noderef] __rcu *
security/landlock/tsync.c:515:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *_T @@ got struct spinlock [noderef] __rcu * @@
security/landlock/tsync.c:515:9: sparse: expected struct spinlock [usertype] *_T
security/landlock/tsync.c:515:9: sparse: got struct spinlock [noderef] __rcu *
vim +492 security/landlock/tsync.c
482
483 /*
484 * try_set_current_tsync_marker - mark the current thread group as under TSYNC
485 *
486 * Returns false if another TSYNC operation, group exit, or exec is in progress.
487 */
488 static bool try_set_current_tsync_marker(void)
489 {
490 struct signal_struct *const signal = current->signal;
491
> 492 guard(spinlock_irq)(¤t->sighand->siglock);
493
494 /*
495 * Group-exit paths may replace all signal flags, including an active
496 * marker. Treat SIGNAL_GROUP_EXIT as a held marker to prevent another
497 * TSYNC operation from starting during group teardown.
498 *
499 * Like de_thread(), also treat an ongoing exec as a group action in
500 * progress. de_thread() sets group_exec_task in the same siglock
501 * critical section that sends SIGKILL to all other threads, including
502 * current. Instead of queuing task_work for exiting threads,
503 * restart_syscall() lets current handle its pending SIGKILL.
504 */
505 if ((signal->flags & (SIGNAL_GROUP_EXIT | SIGNAL_LANDLOCK_TSYNC)) ||
506 signal->group_exec_task)
507 return false;
508
509 signal->flags |= SIGNAL_LANDLOCK_TSYNC;
510 return true;
511 }
512
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-11-23 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 14:57 kernel test robot [this message]
2026-11-23 16:17 ` [mic:next 1/1] security/landlock/tsync.c:492:9: sparse: sparse: incorrect type in argument 1 (different address spaces) Oleg Nesterov
2026-11-30 14:21 ` Mickaël Salaün
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=20261123155122.GQ2URc4f-lkp@intel.com \
--to=lkp@intel.com \
--cc=mic@digikod.net \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oleg@redhat.com \
/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.