/kernel/ |
D | cred.c | 211 struct cred *new; in cred_alloc_blank() local 213 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank() 214 if (!new) in cred_alloc_blank() 217 atomic_set(&new->usage, 1); in cred_alloc_blank() 219 new->magic = CRED_MAGIC; in cred_alloc_blank() 222 if (security_cred_alloc_blank(new, GFP_KERNEL) < 0) in cred_alloc_blank() 225 return new; in cred_alloc_blank() 228 abort_creds(new); in cred_alloc_blank() 250 struct cred *new; in prepare_creds() local 254 new = kmem_cache_alloc(cred_jar, GFP_KERNEL); in prepare_creds() [all …]
|
D | resource.c | 217 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource() argument 219 resource_size_t start = new->start; in __request_resource() 220 resource_size_t end = new->end; in __request_resource() 233 new->sibling = tmp; in __request_resource() 234 *p = new; in __request_resource() 235 new->parent = root; in __request_resource() 301 struct resource *request_resource_conflict(struct resource *root, struct resource *new) in request_resource_conflict() argument 306 conflict = __request_resource(root, new); in request_resource_conflict() 318 int request_resource(struct resource *root, struct resource *new) in request_resource() argument 322 conflict = request_resource_conflict(root, new); in request_resource() [all …]
|
D | sys.c | 337 struct cred *new; in SYSCALL_DEFINE2() local 349 new = prepare_creds(); in SYSCALL_DEFINE2() 350 if (!new) in SYSCALL_DEFINE2() 359 new->gid = krgid; in SYSCALL_DEFINE2() 368 new->egid = kegid; in SYSCALL_DEFINE2() 375 new->sgid = new->egid; in SYSCALL_DEFINE2() 376 new->fsgid = new->egid; in SYSCALL_DEFINE2() 378 return commit_creds(new); in SYSCALL_DEFINE2() 381 abort_creds(new); in SYSCALL_DEFINE2() 394 struct cred *new; in SYSCALL_DEFINE1() local [all …]
|
D | user.c | 175 struct user_struct *up, *new; in alloc_uid() local 182 new = kmem_cache_zalloc(uid_cachep, GFP_KERNEL); in alloc_uid() 183 if (!new) in alloc_uid() 186 new->uid = uid; in alloc_uid() 187 atomic_set(&new->__count, 1); in alloc_uid() 196 key_put(new->uid_keyring); in alloc_uid() 197 key_put(new->session_keyring); in alloc_uid() 198 kmem_cache_free(uid_cachep, new); in alloc_uid() 200 uid_hash_insert(new, hashent); in alloc_uid() 201 up = new; in alloc_uid()
|
D | tracepoint.c | 104 struct tracepoint_func *old, *new; in func_add() local 128 new = allocate_probes(nr_probes + 2 - stub_funcs); in func_add() 129 if (new == NULL) in func_add() 142 new[probes++] = old[nr_probes]; in func_add() 152 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in func_add() 155 memcpy(new, old, pos * sizeof(struct tracepoint_func)); in func_add() 157 memcpy(new + pos + 1, old + pos, in func_add() 162 new[pos] = *tp_func; in func_add() 163 new[nr_probes + 1].func = NULL; in func_add() 164 *funcs = new; in func_add() [all …]
|
D | groups.c | 160 void set_groups(struct cred *new, struct group_info *group_info) in set_groups() argument 162 put_group_info(new->group_info); in set_groups() 164 new->group_info = group_info; in set_groups() 178 struct cred *new; in set_current_groups() local 180 new = prepare_creds(); in set_current_groups() 181 if (!new) in set_current_groups() 184 set_groups(new, group_info); in set_current_groups() 185 return commit_creds(new); in set_current_groups()
|
D | kmod.c | 219 struct cred *new; in call_usermodehelper_exec_async() local 241 new = prepare_kernel_cred(current); in call_usermodehelper_exec_async() 242 if (!new) in call_usermodehelper_exec_async() 246 new->cap_bset = cap_intersect(usermodehelper_bset, new->cap_bset); in call_usermodehelper_exec_async() 247 new->cap_inheritable = cap_intersect(usermodehelper_inheritable, in call_usermodehelper_exec_async() 248 new->cap_inheritable); in call_usermodehelper_exec_async() 252 retval = sub_info->init(sub_info, new); in call_usermodehelper_exec_async() 254 abort_creds(new); in call_usermodehelper_exec_async() 259 commit_creds(new); in call_usermodehelper_exec_async() 530 int (*init)(struct subprocess_info *info, struct cred *new), in call_usermodehelper_setup() argument
|
D | audit_tree.c | 222 struct audit_chunk *new = NULL; in untag_chunk() local 232 new = alloc_chunk(size); in untag_chunk() 237 if (new) in untag_chunk() 238 free_chunk(new); in untag_chunk() 258 if (!new) in untag_chunk() 261 fsnotify_duplicate_mark(&new->mark, entry); in untag_chunk() 262 if (fsnotify_add_mark(&new->mark, new->mark.group, new->mark.inode, NULL, 1)) { in untag_chunk() 263 fsnotify_put_mark(&new->mark); in untag_chunk() 269 list_replace_init(&chunk->trees, &new->trees); in untag_chunk() 283 new->owners[i].owner = s; in untag_chunk() [all …]
|
D | capability.c | 228 struct cred *new; in SYSCALL_DEFINE2() local 266 new = prepare_creds(); in SYSCALL_DEFINE2() 267 if (!new) in SYSCALL_DEFINE2() 270 ret = security_capset(new, current_cred(), in SYSCALL_DEFINE2() 275 audit_log_capset(new, current_cred()); in SYSCALL_DEFINE2() 277 return commit_creds(new); in SYSCALL_DEFINE2() 280 abort_creds(new); in SYSCALL_DEFINE2()
|
D | audit_watch.c | 217 struct audit_watch *new; in audit_dupe_watch() local 223 new = audit_init_watch(path); in audit_dupe_watch() 224 if (IS_ERR(new)) { in audit_dupe_watch() 229 new->dev = old->dev; in audit_dupe_watch() 230 new->ino = old->ino; in audit_dupe_watch() 232 new->parent = old->parent; in audit_dupe_watch() 235 return new; in audit_dupe_watch() 533 int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old) in audit_dupe_exe() argument 542 audit_mark = audit_alloc_mark(new, pathname, strlen(pathname)); in audit_dupe_exe() 547 new->exe = audit_mark; in audit_dupe_exe()
|
D | auditfilter.c | 793 struct audit_krule *new; in audit_dupe_rule() local 801 new = &entry->rule; in audit_dupe_rule() 802 new->flags = old->flags; in audit_dupe_rule() 803 new->pflags = old->pflags; in audit_dupe_rule() 804 new->listnr = old->listnr; in audit_dupe_rule() 805 new->action = old->action; in audit_dupe_rule() 807 new->mask[i] = old->mask[i]; in audit_dupe_rule() 808 new->prio = old->prio; in audit_dupe_rule() 809 new->buflen = old->buflen; in audit_dupe_rule() 810 new->inode_f = old->inode_f; in audit_dupe_rule() [all …]
|
D | watchdog.c | 971 int err, old, new; in proc_watchdog_common() local 1010 new = old | which; in proc_watchdog_common() 1012 new = old & ~which; in proc_watchdog_common() 1013 } while (cmpxchg(&watchdog_enabled, old, new) != old); in proc_watchdog_common() 1022 if (old == new) in proc_watchdog_common() 1069 int err, old, new; in proc_watchdog_thresh() local 1089 new = ACCESS_ONCE(watchdog_thresh); in proc_watchdog_thresh() 1090 if (old == new) in proc_watchdog_thresh()
|
D | pid_namespace.c | 363 struct pid_namespace *ancestor, *new = to_pid_ns(ns); in pidns_install() local 365 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install() 377 if (new->level < active->level) in pidns_install() 380 ancestor = new; in pidns_install() 387 nsproxy->pid_ns_for_children = get_pid_ns(new); in pidns_install()
|
D | smpboot.c | 340 const struct cpumask *new) in smpboot_update_cpumask_percpu_thread() argument 353 cpumask_andnot(tmp, old, new); in smpboot_update_cpumask_percpu_thread() 358 cpumask_andnot(tmp, new, old); in smpboot_update_cpumask_percpu_thread() 362 cpumask_copy(old, new); in smpboot_update_cpumask_percpu_thread()
|
D | pid.c | 396 struct pid *new) in __change_pid() argument 406 link->pid = new; in __change_pid() 428 void transfer_pid(struct task_struct *old, struct task_struct *new, in transfer_pid() argument 431 new->pids[type].pid = old->pids[type].pid; in transfer_pid() 432 hlist_replace_rcu(&old->pids[type].node, &new->pids[type].node); in transfer_pid()
|
D | audit.c | 284 static int audit_log_config_change(char *function_name, u32 new, u32 old, in audit_log_config_change() argument 293 audit_log_format(ab, "%s=%u old=%u", function_name, new, old); in audit_log_config_change() 303 static int audit_do_config_change(char *function_name, u32 *to_change, u32 new) in audit_do_config_change() argument 315 rc = audit_log_config_change(function_name, new, old, allow_changes); in audit_do_config_change() 322 *to_change = new; in audit_do_config_change() 987 char *old, *new; in audit_receive_msg() local 1000 new = audit_unpack_string(&bufp, &msglen, sizes[1]); in audit_receive_msg() 1001 if (IS_ERR(new)) { in audit_receive_msg() 1002 err = PTR_ERR(new); in audit_receive_msg() 1007 err = audit_tag_tree(old, new); in audit_receive_msg() [all …]
|
D | utsname.c | 119 static int utsns_install(struct nsproxy *nsproxy, struct ns_common *new) in utsns_install() argument 121 struct uts_namespace *ns = to_uts_ns(new); in utsns_install()
|
D | audit.h | 280 extern int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old); 309 extern int audit_tag_tree(char *old, char *new); 319 #define audit_tag_tree(old, new) -EINVAL argument
|
D | compat.c | 701 struct compat_itimerspec __user *, new, in COMPAT_SYSCALL_DEFINE4() argument 708 if (!new) in COMPAT_SYSCALL_DEFINE4() 710 if (get_compat_itimerspec(&newts, new)) in COMPAT_SYSCALL_DEFINE4() 1113 unsigned long __user *new = NULL; in COMPAT_SYSCALL_DEFINE4() local 1125 new = old + size / sizeof(unsigned long); in COMPAT_SYSCALL_DEFINE4() 1132 if (new == NULL) in COMPAT_SYSCALL_DEFINE4() 1133 new = compat_alloc_user_space(size); in COMPAT_SYSCALL_DEFINE4() 1134 if (copy_to_user(new, nodes_addr(tmp_mask), size)) in COMPAT_SYSCALL_DEFINE4() 1137 return sys_migrate_pages(pid, nr_bits + 1, old, new); in COMPAT_SYSCALL_DEFINE4()
|
D | user_namespace.c | 60 int create_user_ns(struct cred *new) in create_user_ns() argument 62 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() 63 kuid_t owner = new->euid; in create_user_ns() 64 kgid_t group = new->egid; in create_user_ns() 110 set_cred_user_ns(new, ns); in create_user_ns()
|
/kernel/irq/ |
D | manage.c | 1025 static int irq_setup_forced_threading(struct irqaction *new) in irq_setup_forced_threading() argument 1029 if (new->flags & (IRQF_NO_THREAD | IRQF_PERCPU | IRQF_ONESHOT)) in irq_setup_forced_threading() 1036 if (new->handler == irq_default_primary_handler) in irq_setup_forced_threading() 1039 new->flags |= IRQF_ONESHOT; in irq_setup_forced_threading() 1046 if (new->handler && new->thread_fn) { in irq_setup_forced_threading() 1048 new->secondary = kzalloc(sizeof(struct irqaction), GFP_KERNEL); in irq_setup_forced_threading() 1049 if (!new->secondary) in irq_setup_forced_threading() 1051 new->secondary->handler = irq_forced_secondary_handler; in irq_setup_forced_threading() 1052 new->secondary->thread_fn = new->thread_fn; in irq_setup_forced_threading() 1053 new->secondary->dev_id = new->dev_id; in irq_setup_forced_threading() [all …]
|
/kernel/locking/ |
D | qspinlock.c | 207 u32 old, new, val = atomic_read(&lock->val); in xchg_tail() local 210 new = (val & _Q_LOCKED_PENDING_MASK) | tail; in xchg_tail() 211 old = atomic_cmpxchg(&lock->val, val, new); in xchg_tail() 344 u32 new, old, tail; in queued_spin_lock_slowpath() local 378 new = _Q_LOCKED_VAL; in queued_spin_lock_slowpath() 379 if (val == new) in queued_spin_lock_slowpath() 380 new |= _Q_PENDING_VAL; in queued_spin_lock_slowpath() 382 old = atomic_cmpxchg(&lock->val, val, new); in queued_spin_lock_slowpath() 392 if (new == _Q_LOCKED_VAL) in queued_spin_lock_slowpath()
|
/kernel/trace/ |
D | trace_stat.c | 78 struct rb_node **new = &(root->rb_node), *parent = NULL; in insert_stat() local 90 while (*new) { in insert_stat() 94 this = container_of(*new, struct stat_node, node); in insert_stat() 97 parent = *new; in insert_stat() 99 new = &((*new)->rb_left); in insert_stat() 101 new = &((*new)->rb_right); in insert_stat() 104 rb_link_node(&data->node, parent, new); in insert_stat()
|
/kernel/power/ |
D | swap.c | 132 struct rb_node **new = &(swsusp_extents.rb_node); in swsusp_extents_insert() local 137 while (*new) { in swsusp_extents_insert() 138 ext = rb_entry(*new, struct swsusp_extent, node); in swsusp_extents_insert() 139 parent = *new; in swsusp_extents_insert() 146 new = &((*new)->rb_left); in swsusp_extents_insert() 153 new = &((*new)->rb_right); in swsusp_extents_insert() 166 rb_link_node(&ext->node, parent, new); in swsusp_extents_insert()
|
/kernel/time/ |
D | clockevents.c | 569 struct clock_event_device *new) in clockevents_exchange_device() argument 582 if (new) { in clockevents_exchange_device() 583 BUG_ON(!clockevent_state_detached(new)); in clockevents_exchange_device() 584 clockevents_shutdown(new); in clockevents_exchange_device()
|