All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android17-6.18 0/1] include/trace/hooks/security.h:25:1: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Tue, 13 Oct 2026 20:34:03 +0200	[thread overview]
Message-ID: <202610132025.r4suFAMV-lkp@intel.com> (raw)

tree:   https://android.googlesource.com/kernel/common android17-6.18
head:   8ae25af0371be0b65ba79e7787c6c1fc4e2eb4fe
commit: fa573af4b2ab4a7c778dfaf0bb0a081ed59327f8 [0/1] ANDROID: vendor_hooks: add hooks for process authenticator security module
config: x86_64-randconfig-2302-20261013 (https://download.01.org/0day-ci/archive/20261013/202610132025.r4suFAMV-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/20261013/202610132025.r4suFAMV-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/202610132025.r4suFAMV-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   include/linux/lsm_hook_defs.h:194:1: sparse: sparse: symbol 'security_hook_active_file_ioctl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:196:1: sparse: sparse: symbol 'security_hook_active_file_ioctl_compat_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:198:1: sparse: sparse: symbol 'security_hook_active_mmap_addr_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:199:1: sparse: sparse: symbol 'security_hook_active_mmap_file_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:201:1: sparse: sparse: symbol 'security_hook_active_file_mprotect_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:203:1: sparse: sparse: symbol 'security_hook_active_file_lock_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:204:1: sparse: sparse: symbol 'security_hook_active_file_fcntl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:206:1: sparse: sparse: symbol 'security_hook_active_file_set_fowner_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:207:1: sparse: sparse: symbol 'security_hook_active_file_send_sigiotask_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:209:1: sparse: sparse: symbol 'security_hook_active_file_receive_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:210:1: sparse: sparse: symbol 'security_hook_active_file_open_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:211:1: sparse: sparse: symbol 'security_hook_active_file_post_open_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:212:1: sparse: sparse: symbol 'security_hook_active_file_truncate_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:213:1: sparse: sparse: symbol 'security_hook_active_task_alloc_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:215:1: sparse: sparse: symbol 'security_hook_active_task_free_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:216:1: sparse: sparse: symbol 'security_hook_active_cred_alloc_blank_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:217:1: sparse: sparse: symbol 'security_hook_active_cred_free_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:218:1: sparse: sparse: symbol 'security_hook_active_cred_prepare_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:220:1: sparse: sparse: symbol 'security_hook_active_cred_transfer_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:222:1: sparse: sparse: symbol 'security_hook_active_cred_getsecid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:223:1: sparse: sparse: symbol 'security_hook_active_cred_getlsmprop_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:225:1: sparse: sparse: symbol 'security_hook_active_kernel_act_as_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:226:1: sparse: sparse: symbol 'security_hook_active_kernel_create_files_as_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:227:1: sparse: sparse: symbol 'security_hook_active_kernel_module_request_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:228:1: sparse: sparse: symbol 'security_hook_active_kernel_load_data_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:229:1: sparse: sparse: symbol 'security_hook_active_kernel_post_load_data_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:231:1: sparse: sparse: symbol 'security_hook_active_kernel_read_file_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:233:1: sparse: sparse: symbol 'security_hook_active_kernel_post_read_file_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:235:1: sparse: sparse: symbol 'security_hook_active_task_fix_setuid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:237:1: sparse: sparse: symbol 'security_hook_active_task_fix_setgid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:239:1: sparse: sparse: symbol 'security_hook_active_task_fix_setgroups_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:240:1: sparse: sparse: symbol 'security_hook_active_task_setpgid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:241:1: sparse: sparse: symbol 'security_hook_active_task_getpgid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:242:1: sparse: sparse: symbol 'security_hook_active_task_getsid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:243:1: sparse: sparse: symbol 'security_hook_active_current_getlsmprop_subj_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:244:1: sparse: sparse: symbol 'security_hook_active_task_getlsmprop_obj_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:246:1: sparse: sparse: symbol 'security_hook_active_task_setnice_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:247:1: sparse: sparse: symbol 'security_hook_active_task_setioprio_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:248:1: sparse: sparse: symbol 'security_hook_active_task_getioprio_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:249:1: sparse: sparse: symbol 'security_hook_active_task_prlimit_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:251:1: sparse: sparse: symbol 'security_hook_active_task_setrlimit_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:253:1: sparse: sparse: symbol 'security_hook_active_task_setscheduler_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:254:1: sparse: sparse: symbol 'security_hook_active_task_getscheduler_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:255:1: sparse: sparse: symbol 'security_hook_active_task_movememory_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:256:1: sparse: sparse: symbol 'security_hook_active_task_kill_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:258:1: sparse: sparse: symbol 'security_hook_active_task_prctl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:260:1: sparse: sparse: symbol 'security_hook_active_task_to_inode_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:262:1: sparse: sparse: symbol 'security_hook_active_userns_create_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:263:1: sparse: sparse: symbol 'security_hook_active_ipc_permission_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:264:1: sparse: sparse: symbol 'security_hook_active_ipc_getlsmprop_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:266:1: sparse: sparse: symbol 'security_hook_active_msg_msg_alloc_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:267:1: sparse: sparse: symbol 'security_hook_active_msg_msg_free_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:268:1: sparse: sparse: symbol 'security_hook_active_msg_queue_alloc_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:269:1: sparse: sparse: symbol 'security_hook_active_msg_queue_free_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:271:1: sparse: sparse: symbol 'security_hook_active_msg_queue_associate_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:272:1: sparse: sparse: symbol 'security_hook_active_msg_queue_msgctl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:273:1: sparse: sparse: symbol 'security_hook_active_msg_queue_msgsnd_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:275:1: sparse: sparse: symbol 'security_hook_active_msg_queue_msgrcv_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:277:1: sparse: sparse: symbol 'security_hook_active_shm_alloc_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:278:1: sparse: sparse: symbol 'security_hook_active_shm_free_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:279:1: sparse: sparse: symbol 'security_hook_active_shm_associate_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:280:1: sparse: sparse: symbol 'security_hook_active_shm_shmctl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:281:1: sparse: sparse: symbol 'security_hook_active_shm_shmat_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:283:1: sparse: sparse: symbol 'security_hook_active_sem_alloc_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:284:1: sparse: sparse: symbol 'security_hook_active_sem_free_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:285:1: sparse: sparse: symbol 'security_hook_active_sem_associate_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:286:1: sparse: sparse: symbol 'security_hook_active_sem_semctl_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:287:1: sparse: sparse: symbol 'security_hook_active_sem_semop_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:289:1: sparse: sparse: symbol 'security_hook_active_netlink_send_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:290:1: sparse: sparse: symbol 'security_hook_active_d_instantiate_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:292:1: sparse: sparse: symbol 'security_hook_active_getselfattr_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:294:1: sparse: sparse: symbol 'security_hook_active_setselfattr_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:296:1: sparse: sparse: symbol 'security_hook_active_getprocattr_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:298:1: sparse: sparse: symbol 'security_hook_active_setprocattr_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:299:1: sparse: sparse: symbol 'security_hook_active_ismaclabel_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:300:1: sparse: sparse: symbol 'security_hook_active_secid_to_secctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:301:1: sparse: sparse: symbol 'security_hook_active_lsmprop_to_secctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:303:1: sparse: sparse: symbol 'security_hook_active_secctx_to_secid_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:304:1: sparse: sparse: symbol 'security_hook_active_release_secctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:305:1: sparse: sparse: symbol 'security_hook_active_inode_invalidate_secctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:306:1: sparse: sparse: symbol 'security_hook_active_inode_notifysecctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:307:1: sparse: sparse: symbol 'security_hook_active_inode_setsecctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:308:1: sparse: sparse: symbol 'security_hook_active_inode_getsecctx_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:312:1: sparse: sparse: symbol 'security_hook_active_post_notification_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:317:1: sparse: sparse: symbol 'security_hook_active_watch_key_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:411:1: sparse: sparse: symbol 'security_hook_active_key_alloc_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:413:1: sparse: sparse: symbol 'security_hook_active_key_permission_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:415:1: sparse: sparse: symbol 'security_hook_active_key_getsecurity_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:416:1: sparse: sparse: symbol 'security_hook_active_key_post_create_or_update_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:447:1: sparse: sparse: symbol 'security_hook_active_locked_down_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:450:1: sparse: sparse: symbol 'security_hook_active_perf_event_open_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:451:1: sparse: sparse: symbol 'security_hook_active_perf_event_alloc_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:452:1: sparse: sparse: symbol 'security_hook_active_perf_event_read_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:453:1: sparse: sparse: symbol 'security_hook_active_perf_event_write_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:463:1: sparse: sparse: symbol 'security_hook_active_initramfs_populated_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:465:1: sparse: sparse: symbol 'security_hook_active_bdev_alloc_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:466:1: sparse: sparse: symbol 'security_hook_active_bdev_free_security_0' was not declared. Should it be static?
   include/linux/lsm_hook_defs.h:467:1: sparse: sparse: symbol 'security_hook_active_bdev_setintegrity_0' was not declared. Should it be static?
   security/security.c:506:25: sparse: sparse: cast removes address space '__rcu' of expression
   security/security.c: note: in included file:
>> include/trace/hooks/security.h:25:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/security.h:25:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/security.h:25:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
   include/trace/hooks/security.h:34:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/security.h:34:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/security.h:34:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
   include/trace/hooks/security.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/security.h:28:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/security.h:28:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
   include/trace/hooks/security.h:37:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/security.h:37:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/security.h:37:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
   include/trace/hooks/security.h:40:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/security.h:40:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/security.h:40:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
--
   kernel/ptrace.c:56:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/ptrace.c:56:22: sparse:    struct task_struct *
   kernel/ptrace.c:56:22: sparse:    struct task_struct [noderef] __rcu *
   kernel/ptrace.c:75:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct [noderef] __rcu *parent @@     got struct task_struct *new_parent @@
   kernel/ptrace.c:75:23: sparse:     expected struct task_struct [noderef] __rcu *parent
   kernel/ptrace.c:75:23: sparse:     got struct task_struct *new_parent
   kernel/ptrace.c:76:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct cred const [noderef] __rcu *ptracer_cred @@     got struct cred const * @@
   kernel/ptrace.c:76:29: sparse:     expected struct cred const [noderef] __rcu *ptracer_cred
   kernel/ptrace.c:76:29: sparse:     got struct cred const *
   kernel/ptrace.c:130:18: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct cred const *old_cred @@     got struct cred const [noderef] __rcu *ptracer_cred @@
   kernel/ptrace.c:130:18: sparse:     expected struct cred const *old_cred
   kernel/ptrace.c:130:18: sparse:     got struct cred const [noderef] __rcu *ptracer_cred
   kernel/ptrace.c:134:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:134:25: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:134:25: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:161:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:161:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:161:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:193:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:193:28: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:193:28: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:199:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:199:30: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:199:30: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:252:44: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/ptrace.c:252:44: sparse:    struct task_struct [noderef] __rcu *
   kernel/ptrace.c:252:44: sparse:    struct task_struct *
   kernel/ptrace.c:505:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *parent @@     got struct task_struct [noderef] __rcu *parent @@
   kernel/ptrace.c:505:54: sparse:     expected struct task_struct *parent
   kernel/ptrace.c:505:54: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/ptrace.c:513:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *new_parent @@     got struct task_struct [noderef] __rcu *real_parent @@
   kernel/ptrace.c:513:53: sparse:     expected struct task_struct *new_parent
   kernel/ptrace.c:513:53: sparse:     got struct task_struct [noderef] __rcu *real_parent
   kernel/ptrace.c:561:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p1 @@     got struct task_struct [noderef] __rcu *real_parent @@
   kernel/ptrace.c:561:41: sparse:     expected struct task_struct *p1
   kernel/ptrace.c:561:41: sparse:     got struct task_struct [noderef] __rcu *real_parent
   kernel/ptrace.c:563:50: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct sighand_struct *sigh @@     got struct sighand_struct [noderef] __rcu *sighand @@
   kernel/ptrace.c:563:50: sparse:     expected struct sighand_struct *sigh
   kernel/ptrace.c:563:50: sparse:     got struct sighand_struct [noderef] __rcu *sighand
   kernel/ptrace.c:754:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:754:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:754:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:762:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:762:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:762:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:873:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:873:29: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:873:29: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:877:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:877:31: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:877:31: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1232:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:1232:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:1232:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1234:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:1234:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:1234:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c: note: in included file (through include/linux/rcuwait.h, include/linux/mm.h):
   include/linux/sched/signal.h:762:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:762:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:762:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:391:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *l @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:391:30: sparse:     expected struct spinlock [usertype] *l
   kernel/ptrace.c:391:30: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:420:12: sparse: sparse: context imbalance in 'ptrace_attach' - different lock contexts for basic block
   kernel/ptrace.c:511:38: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:762:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:762:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:762:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:701:9: sparse: sparse: context imbalance in 'ptrace_getsiginfo' - different lock contexts for basic block
   include/linux/sched/signal.h:762:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:762:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:762:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:717:9: sparse: sparse: context imbalance in 'ptrace_setsiginfo' - different lock contexts for basic block
   include/linux/sched/signal.h:762:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:762:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:762:37: sparse:     got struct spinlock [noderef] __rcu *
   include/linux/sched/signal.h:762:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:762:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:762:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1395:9: sparse: sparse: context imbalance in 'ptrace_request' - different lock contexts for basic block
   kernel/ptrace.c: note: in included file:
>> include/trace/hooks/ptrace.h:17:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/ptrace.h:17:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/ptrace.h:17:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
>> include/trace/hooks/ptrace.h:17:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/ptrace.h:17:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/ptrace.h:17:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
>> include/trace/hooks/ptrace.h:17:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/ptrace.h:17:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/ptrace.h:17:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
>> include/trace/hooks/ptrace.h:17:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/ptrace.h:17:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/ptrace.h:17:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs

vim +25 include/trace/hooks/security.h

    24	
  > 25	DECLARE_RESTRICTED_HOOK(android_rvh_security_inode_free,
    26		TP_PROTO(struct inode *inode),
    27		TP_ARGS(inode), 1);
    28	DECLARE_RESTRICTED_HOOK(android_rvh_security_file_open,
    29		TP_PROTO(struct file *file, int *rc),
    30		TP_ARGS(file, rc), 1);
    31	DECLARE_RESTRICTED_HOOK(android_rvh_security_file_free,
    32		TP_PROTO(struct file *file),
    33		TP_ARGS(file), 1);
    34	DECLARE_RESTRICTED_HOOK(android_rvh_security_mmap_file,
    35		TP_PROTO(struct file *file, unsigned long prot, unsigned long flags, int *rc),
    36		TP_ARGS(file, prot, flags, rc), 1);
    37	DECLARE_RESTRICTED_HOOK(android_rvh_security_task_alloc,
    38		TP_PROTO(struct task_struct *task, unsigned long clone_flags, int *rc),
    39		TP_ARGS(task, clone_flags, rc), 1);
    40	DECLARE_RESTRICTED_HOOK(android_rvh_security_task_free,
    41		TP_PROTO(struct task_struct *task),
    42		TP_ARGS(task), 1);
    43	DECLARE_RESTRICTED_HOOK(android_rvh_copy_process_integrity,
    44		TP_PROTO(unsigned long clone_flags, struct task_struct *p, int *retval),
    45		TP_ARGS(clone_flags, p, retval), 1);
    46	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-10-13 18:35 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=202610132025.r4suFAMV-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.