Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 63) sorted by relevance

123

/kernel/
A Dtracepoint.c111 if (old) { in release_probes()
146 old = *funcs; in func_add()
147 if (old) { in func_add()
162 if (old) { in func_add()
183 return old; in func_add()
192 old = *funcs; in func_remove()
194 if (!old) in func_remove()
216 return old; in func_remove()
241 *funcs = old; in func_remove()
245 return old; in func_remove()
[all …]
A Dcred.c209 const struct cred *old; in prepare_creds() local
218 old = task->cred; in prepare_creds()
400 BUG_ON(task->cred != old); in commit_creds()
436 if (new->user != old->user || new->user_ns != old->user_ns) in commit_creds()
440 if (new->user != old->user || new->user_ns != old->user_ns) in commit_creds()
457 put_cred_many(old, 2); in commit_creds()
581 const struct cred *old; in prepare_kernel_cred() local
593 old = get_task_cred(daemon); in prepare_kernel_cred()
595 *new = *old; in prepare_kernel_cred()
620 put_cred(old); in prepare_kernel_cred()
[all …]
A Dsys.c499 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
740 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid); in __sys_setresuid()
742 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid); in __sys_setresuid()
744 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid); in __sys_setresuid()
840 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid); in __sys_setresgid()
912 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); in __sys_setfsuid()
922 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || in __sys_setfsuid()
923 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
956 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); in __sys_setfsgid()
966 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
[all …]
A Daudit_tree.c282 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()
298 new->key = old->key; in replace_chunk()
303 if (!old->owners[j].owner) { in replace_chunk()
307 owner = old->owners[j].owner; in replace_chunk()
461 struct audit_chunk *chunk, *old; in tag_chunk() local
477 old = mark_chunk(mark); in tag_chunk()
516 replace_chunk(chunk, old); in tag_chunk()
[all …]
A Dresource.c213 p = &old->parent->child; in __release_resource()
218 if (tmp == old) { in __release_resource()
230 old->parent = NULL; in __release_resource()
682 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource_space()
721 if (this != old) in __find_resource_space()
774 old->start = new.start; in reallocate_resource()
775 old->end = new.end; in reallocate_resource()
779 if (old->child) { in reallocate_resource()
785 old->start = new.start; in reallocate_resource()
786 old->end = new.end; in reallocate_resource()
[all …]
A Dauditfilter.c834 new->flags = old->flags; in audit_dupe_rule()
835 new->pflags = old->pflags; in audit_dupe_rule()
836 new->listnr = old->listnr; in audit_dupe_rule()
837 new->action = old->action; in audit_dupe_rule()
839 new->mask[i] = old->mask[i]; in audit_dupe_rule()
840 new->prio = old->prio; in audit_dupe_rule()
841 new->buflen = old->buflen; in audit_dupe_rule()
842 new->inode_f = old->inode_f; in audit_dupe_rule()
852 new->tree = old->tree; in audit_dupe_rule()
891 if (old->watch) { in audit_dupe_rule()
[all …]
A Daudit_watch.c203 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()
509 int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old) in audit_dupe_exe() argument
514 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
A Dexec_domain.c40 unsigned int old = current->personality; in SYSCALL_DEFINE1() local
45 return old; in SYSCALL_DEFINE1()
A Daudit.c405 u32 old = *to_change; in audit_do_config_change() local
1439 char *old, *new; in audit_receive_msg() local
1448 if (IS_ERR(old)) { in audit_receive_msg()
1449 err = PTR_ERR(old); in audit_receive_msg()
1455 kfree(old); in audit_receive_msg()
1459 err = audit_tag_tree(old, new); in audit_receive_msg()
1464 audit_log_untrustedstring(ab, old); in audit_receive_msg()
1469 kfree(old); in audit_receive_msg()
1510 struct audit_tty_status s, old; in audit_receive_msg() local
1528 old.enabled = t & AUDIT_TTY_ENABLE; in audit_receive_msg()
[all …]
A Dkexec_internal.h26 int old = 0; in kexec_trylock() local
27 return atomic_try_cmpxchg_acquire(&__kexec_lock, &old, 1); in kexec_trylock()
A Daudit.h254 extern struct audit_entry *audit_dupe_rule(struct audit_krule *old);
285 extern int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old);
297 extern int audit_tag_tree(char *old, char *new);
329 #define audit_tag_tree(old, new) -EINVAL argument
A Dwatchdog.c1035 int err, old, *param = table->data; in proc_watchdog_common() local
1039 old = *param; in proc_watchdog_common()
1047 *param = old; in proc_watchdog_common()
1050 if (!err && old != READ_ONCE(*param)) in proc_watchdog_common()
1098 int err, old; in proc_watchdog_thresh() local
1104 old = watchdog_thresh_next; in proc_watchdog_thresh()
1107 if (!err && write && old != READ_ONCE(watchdog_thresh_next)) in proc_watchdog_thresh()
/kernel/futex/
A Drequeue.c102 int old, new; in futex_requeue_pi_prepare() local
111 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_prepare()
122 if (old != Q_REQUEUE_PI_NONE) in futex_requeue_pi_prepare()
134 int old, new; in futex_requeue_pi_complete() local
138 if (old == Q_REQUEUE_PI_IGNORE) in futex_requeue_pi_complete()
144 old != Q_REQUEUE_PI_WAIT); in futex_requeue_pi_complete()
165 int old, new; in futex_requeue_pi_wakeup_sync() local
170 if (old >= Q_REQUEUE_PI_DONE) in futex_requeue_pi_wakeup_sync()
171 return old; in futex_requeue_pi_wakeup_sync()
178 if (old == Q_REQUEUE_PI_NONE) in futex_requeue_pi_wakeup_sync()
[all …]
/kernel/locking/
A Dqspinlock_paravirt.h89 u8 old = 0; in pv_hybrid_queued_unfair_trylock() local
122 u16 old = _Q_PENDING_VAL; in trylock_clear_pending() local
135 int old, new; in trylock_clear_pending() local
137 old = atomic_read(&lock->val); in trylock_clear_pending()
139 if (old & _Q_LOCKED_MASK) in trylock_clear_pending()
144 new = (old & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL; in trylock_clear_pending()
145 } while (!atomic_try_cmpxchg_acquire (&lock->val, &old, new)); in trylock_clear_pending()
215 struct qspinlock *old = NULL; in pv_hash() local
217 if (try_cmpxchg(&he->lock, &old, lock)) { in pv_hash()
360 u8 old = VCPU_HALTED; in pv_kick_node() local
[all …]
A Dqspinlock.h160 u32 old, new; in xchg_tail() local
162 old = atomic_read(&lock->val); in xchg_tail()
164 new = (old & _Q_LOCKED_PENDING_MASK) | tail; in xchg_tail()
170 } while (!atomic_try_cmpxchg_relaxed(&lock->val, &old, new)); in xchg_tail()
172 return old; in xchg_tail()
A Dosq_lock.c98 int old; in osq_lock() local
110 old = atomic_xchg(&lock->tail, curr); in osq_lock()
111 if (old == OSQ_UNLOCKED_VAL) in osq_lock()
114 prev = decode_cpu(old); in osq_lock()
A Dqspinlock.c133 u32 old, tail; in queued_spin_lock_slowpath() local
277 old = xchg_tail(lock, tail); in queued_spin_lock_slowpath()
284 if (old & _Q_TAIL_MASK) { in queued_spin_lock_slowpath()
285 prev = decode_tail(old, qnodes); in queued_spin_lock_slowpath()
/kernel/bpf/
A Drqspinlock.h30 u32 old, new; in try_cmpxchg_tail() local
32 old = atomic_read(&lock->val); in try_cmpxchg_tail()
37 if ((old & _Q_TAIL_MASK) != tail) in try_cmpxchg_tail()
42 new = (old & _Q_LOCKED_PENDING_MASK) | new_tail; in try_cmpxchg_tail()
43 } while (!atomic_try_cmpxchg_relaxed(&lock->val, &old, new)); in try_cmpxchg_tail()
/kernel/unwind/
A Ddeferred.c26 u32 old = 0; in try_assign_cnt() local
28 return try_cmpxchg(&info->id.cnt, &old, cnt); in try_assign_cnt()
234 unsigned long old, bits; in unwind_deferred_request() local
264 old = READ_ONCE(info->unwind_mask); in unwind_deferred_request()
267 if (old & bit) in unwind_deferred_request()
277 old = atomic_long_fetch_or(bits, (atomic_long_t *)&info->unwind_mask); in unwind_deferred_request()
278 if (old & bits) { in unwind_deferred_request()
283 WARN_ON_ONCE(!(old & UNWIND_PENDING)); in unwind_deferred_request()
284 return old & bit; in unwind_deferred_request()
/kernel/rcu/
A Drcu.h183 static inline bool rcu_seq_completed_gp(unsigned long old, unsigned long new) in rcu_seq_completed_gp() argument
185 return ULONG_CMP_LT(old, new & ~RCU_SEQ_STATE_MASK); in rcu_seq_completed_gp()
191 static inline bool rcu_seq_new_gp(unsigned long old, unsigned long new) in rcu_seq_new_gp() argument
193 return ULONG_CMP_LT((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK, in rcu_seq_new_gp()
201 static inline unsigned long rcu_seq_diff(unsigned long new, unsigned long old) in rcu_seq_diff() argument
205 if (old == new) in rcu_seq_diff()
212 ((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK) + in rcu_seq_diff()
213 ((new & RCU_SEQ_STATE_MASK) || (old & RCU_SEQ_STATE_MASK)); in rcu_seq_diff()
/kernel/trace/
A Dtrace_recursion_record.c29 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/
A Dreport.c391 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()
A Dpermissive.h38 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()
A Dkcsan.h133 int watchpoint_idx, u64 old, u64 new, u64 mask);
140 unsigned long ip, u64 old, u64 new, u64 mask);
/kernel/cgroup/
A Dmisc.c114 u64 old; in misc_cg_update_watermark() local
117 old = atomic64_read(&res->watermark); in misc_cg_update_watermark()
118 if (new_usage <= old) in misc_cg_update_watermark()
120 if (atomic64_cmpxchg(&res->watermark, old, new_usage) == old) in misc_cg_update_watermark()

Completed in 60 milliseconds

123