/kernel/ |
D | tracepoint.c | 142 static inline void release_probes(struct tracepoint_func *old) in release_probes() argument 144 if (old) { in release_probes() 145 struct tp_probes *tp_probes = container_of(old, in release_probes() 183 struct tracepoint_func *old, *new; in func_add() local 192 old = *funcs; in func_add() 193 if (old) { in func_add() 195 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add() 196 if (old[iter_probes].func == tp_stub_func) in func_add() 198 if (old[iter_probes].func == tp_func->func && in func_add() 199 old[iter_probes].data == tp_func->data) in func_add() [all …]
|
D | cred.c | 258 const struct cred *old; in prepare_creds() local 269 old = task->cred; in prepare_creds() 270 memcpy(new, old, sizeof(struct cred)); in prepare_creds() 294 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds() 453 const struct cred *old = task->real_cred; in commit_creds() local 459 BUG_ON(task->cred != old); in commit_creds() 461 BUG_ON(read_cred_subscribers(old) < 2); in commit_creds() 462 validate_creds(old); in commit_creds() 470 if (!uid_eq(old->euid, new->euid) || in commit_creds() 471 !gid_eq(old->egid, new->egid) || in commit_creds() [all …]
|
D | sys.c | 370 const struct cred *old; in __sys_setregid() local 386 old = current_cred(); in __sys_setregid() 390 if (gid_eq(old->gid, krgid) || in __sys_setregid() 391 gid_eq(old->egid, krgid) || in __sys_setregid() 392 ns_capable_setid(old->user_ns, CAP_SETGID)) in __sys_setregid() 398 if (gid_eq(old->gid, kegid) || in __sys_setregid() 399 gid_eq(old->egid, kegid) || in __sys_setregid() 400 gid_eq(old->sgid, kegid) || in __sys_setregid() 401 ns_capable_setid(old->user_ns, CAP_SETGID)) in __sys_setregid() 408 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() [all …]
|
D | audit_tree.c | 282 struct audit_chunk *old; in replace_mark_chunk() local 285 old = mark_chunk(mark); in replace_mark_chunk() 289 if (old) in replace_mark_chunk() 290 old->mark = NULL; in replace_mark_chunk() 293 static void replace_chunk(struct audit_chunk *new, struct audit_chunk *old) in replace_chunk() argument 298 new->key = old->key; in replace_chunk() 299 list_splice_init(&old->trees, &new->trees); in replace_chunk() 302 for (i = j = 0; j < old->count; i++, j++) { in replace_chunk() 303 if (!old->owners[j].owner) { in replace_chunk() 307 owner = old->owners[j].owner; in replace_chunk() [all …]
|
D | resource.c | 199 static int __release_resource(struct resource *old, bool release_child) in __release_resource() argument 203 p = &old->parent->child; in __release_resource() 208 if (tmp == old) { in __release_resource() 220 old->parent = NULL; in __release_resource() 296 int release_resource(struct resource *old) in release_resource() argument 301 retval = __release_resource(old, true); in release_resource() 579 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument 593 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource() 598 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource() 628 if (this != old) in __find_resource() [all …]
|
D | auditfilter.c | 819 struct audit_entry *audit_dupe_rule(struct audit_krule *old) in audit_dupe_rule() argument 821 u32 fcount = old->field_count; in audit_dupe_rule() 832 new->flags = old->flags; in audit_dupe_rule() 833 new->pflags = old->pflags; in audit_dupe_rule() 834 new->listnr = old->listnr; in audit_dupe_rule() 835 new->action = old->action; in audit_dupe_rule() 837 new->mask[i] = old->mask[i]; in audit_dupe_rule() 838 new->prio = old->prio; in audit_dupe_rule() 839 new->buflen = old->buflen; in audit_dupe_rule() 840 new->inode_f = old->inode_f; in audit_dupe_rule() [all …]
|
D | audit_watch.c | 203 static struct audit_watch *audit_dupe_watch(struct audit_watch *old) in audit_dupe_watch() argument 208 path = kstrdup(old->path, GFP_KERNEL); in audit_dupe_watch() 218 new->dev = old->dev; in audit_dupe_watch() 219 new->ino = old->ino; in audit_dupe_watch() 220 audit_get_parent(old->parent); in audit_dupe_watch() 221 new->parent = old->parent; in audit_dupe_watch() 505 int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old) in audit_dupe_exe() argument 510 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
|
D | watchdog.c | 671 int err, old, *param = table->data; in proc_watchdog_common() local 683 old = READ_ONCE(*param); in proc_watchdog_common() 685 if (!err && old != READ_ONCE(*param)) in proc_watchdog_common() 730 int err, old; in proc_watchdog_thresh() local 734 old = READ_ONCE(watchdog_thresh); in proc_watchdog_thresh() 737 if (!err && write && old != READ_ONCE(watchdog_thresh)) in proc_watchdog_thresh()
|
D | exec_domain.c | 40 unsigned int old = current->personality; in SYSCALL_DEFINE1() local 45 return old; in SYSCALL_DEFINE1()
|
D | audit.c | 384 static int audit_log_config_change(char *function_name, u32 new, u32 old, in audit_log_config_change() argument 393 audit_log_format(ab, "op=set %s=%u old=%u ", function_name, new, old); in audit_log_config_change() 406 u32 old = *to_change; in audit_do_config_change() local 415 rc = audit_log_config_change(function_name, new, old, allow_changes); in audit_do_config_change() 1441 char *old, *new; in audit_receive_msg() local 1449 old = audit_unpack_string(&bufp, &msglen, sizes[0]); in audit_receive_msg() 1450 if (IS_ERR(old)) { in audit_receive_msg() 1451 err = PTR_ERR(old); in audit_receive_msg() 1457 kfree(old); in audit_receive_msg() 1461 err = audit_tag_tree(old, new); in audit_receive_msg() [all …]
|
D | audit.h | 253 extern struct audit_entry *audit_dupe_rule(struct audit_krule *old); 284 extern int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old); 296 extern int audit_tag_tree(char *old, char *new); 328 #define audit_tag_tree(old, new) -EINVAL argument
|
D | groups.c | 137 const struct cred *old; in set_current_groups() local 144 old = current_cred(); in set_current_groups() 148 retval = security_task_fix_setgroups(new, old); in set_current_groups()
|
D | ucount.c | 217 long c, old; in atomic_long_inc_below() local 222 old = atomic_long_cmpxchg(v, c, c+1); in atomic_long_inc_below() 223 if (likely(old == c)) in atomic_long_inc_below() 225 c = old; in atomic_long_inc_below()
|
/kernel/futex/ |
D | requeue.c | 95 int old, new; in futex_requeue_pi_prepare() local 102 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_prepare() 104 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_prepare() 115 if (old != Q_REQUEUE_PI_NONE) in futex_requeue_pi_prepare() 119 } while (!atomic_try_cmpxchg(&q->requeue_state, &old, new)); in futex_requeue_pi_prepare() 127 int old, new; in futex_requeue_pi_complete() local 129 old = atomic_read_acquire(&q->requeue_state); in futex_requeue_pi_complete() 131 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_complete() 136 WARN_ON_ONCE(old != Q_REQUEUE_PI_IN_PROGRESS && in futex_requeue_pi_complete() 137 old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete() [all …]
|
D | core.c | 175 u64 old; in get_inode_sequence_number() local 178 old = atomic64_read(&inode->i_sequence); in get_inode_sequence_number() 179 if (likely(old)) in get_inode_sequence_number() 180 return old; in get_inode_sequence_number() 187 old = atomic64_cmpxchg_relaxed(&inode->i_sequence, 0, new); in get_inode_sequence_number() 188 if (old) in get_inode_sequence_number() 189 return old; in get_inode_sequence_number()
|
/kernel/locking/ |
D | osq_lock.c | 48 int old; in osq_wait_next() local 55 old = prev ? prev->cpu : OSQ_UNLOCKED_VAL; in osq_wait_next() 59 atomic_cmpxchg_acquire(&lock->tail, curr, old) == curr) { in osq_wait_next() 95 int old; in osq_lock() local 107 old = atomic_xchg(&lock->tail, curr); in osq_lock() 108 if (old == OSQ_UNLOCKED_VAL) in osq_lock() 111 prev = decode_cpu(old); in osq_lock()
|
D | qspinlock.c | 223 u32 old, new, val = atomic_read(&lock->val); in xchg_tail() local 232 old = atomic_cmpxchg_relaxed(&lock->val, val, new); in xchg_tail() 233 if (old == val) in xchg_tail() 236 val = old; in xchg_tail() 238 return old; in xchg_tail() 319 u32 old, tail; in queued_spin_lock_slowpath() local 463 old = xchg_tail(lock, tail); in queued_spin_lock_slowpath() 470 if (old & _Q_TAIL_MASK) { in queued_spin_lock_slowpath() 471 prev = decode_tail(old); in queued_spin_lock_slowpath()
|
D | qspinlock_paravirt.h | 136 int old, new; in trylock_clear_pending() local 144 old = val; in trylock_clear_pending() 146 val = atomic_cmpxchg_acquire(&lock->val, old, new); in trylock_clear_pending() 148 if (val == old) in trylock_clear_pending()
|
/kernel/rcu/ |
D | rcu.h | 136 static inline bool rcu_seq_completed_gp(unsigned long old, unsigned long new) in rcu_seq_completed_gp() argument 138 return ULONG_CMP_LT(old, new & ~RCU_SEQ_STATE_MASK); in rcu_seq_completed_gp() 144 static inline bool rcu_seq_new_gp(unsigned long old, unsigned long new) in rcu_seq_new_gp() argument 146 return ULONG_CMP_LT((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK, in rcu_seq_new_gp() 154 static inline unsigned long rcu_seq_diff(unsigned long new, unsigned long old) in rcu_seq_diff() argument 158 if (old == new) in rcu_seq_diff() 165 ((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK) + in rcu_seq_diff() 166 ((new & RCU_SEQ_STATE_MASK) || (old & RCU_SEQ_STATE_MASK)); in rcu_seq_diff()
|
/kernel/trace/ |
D | trace_recursion_record.c | 29 unsigned long old; in ftrace_record_recursion() local 78 old = cmpxchg(&recursed_functions[index].ip, 0, ip); in ftrace_record_recursion() 79 if (old != 0) { in ftrace_record_recursion() 81 if (old == ip) in ftrace_record_recursion()
|
/kernel/kcsan/ |
D | report.c | 391 u64 old, u64 new, u64 mask) in print_report() argument 474 u64 diff = old ^ new; in print_report() 481 hex_len, old, hex_len, new); in print_report() 668 int watchpoint_idx, u64 old, u64 new, u64 mask) in kcsan_report_known_origin() argument 692 print_report(value_change, &ai, other_info, old, new, mask); in kcsan_report_known_origin() 701 unsigned long ip, u64 old, u64 new, u64 mask) in kcsan_report_unknown_origin() argument 710 print_report(KCSAN_VALUE_CHANGE_TRUE, &ai, NULL, old, new, mask); in kcsan_report_unknown_origin()
|
D | permissive.h | 38 kcsan_ignore_data_race(size_t size, int type, u64 old, u64 new, u64 diff) in kcsan_ignore_data_race() argument 87 if (!((!old || !new) && diff == 1)) in kcsan_ignore_data_race()
|
D | kcsan.h | 133 int watchpoint_idx, u64 old, u64 new, u64 mask); 140 unsigned long ip, u64 old, u64 new, u64 mask);
|
/kernel/sched/ |
D | pelt.c | 488 unsigned int old; in sched_pelt_multiplier() local 492 old = sysctl_sched_pelt_multiplier; in sched_pelt_multiplier() 499 trace_android_vh_sched_pelt_multiplier(old, sysctl_sched_pelt_multiplier, &ret); in sched_pelt_multiplier() 517 sysctl_sched_pelt_multiplier = old; in sched_pelt_multiplier()
|
/kernel/time/ |
D | clockevents.c | 568 void clockevents_exchange_device(struct clock_event_device *old, in clockevents_exchange_device() argument 575 if (old) { in clockevents_exchange_device() 576 module_put(old->owner); in clockevents_exchange_device() 577 clockevents_switch_state(old, CLOCK_EVT_STATE_DETACHED); in clockevents_exchange_device() 578 list_move(&old->list, &clockevents_released); in clockevents_exchange_device()
|