/linux-master/tools/testing/selftests/rtc/ |
H A D | setdate.c | 24 struct rtc_time new, current; local 47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); 48 new.tm_mon -= 1; 49 new.tm_year -= 1900; 50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); 53 new [all...] |
/linux-master/fs/nfsd/ |
H A D | auth.c | 25 struct cred *new; local 29 /* discard any old override before preparing the new set */ 31 new = prepare_creds(); 32 if (!new) 35 new->fsuid = rqstp->rq_cred.cr_uid; 36 new->fsgid = rqstp->rq_cred.cr_gid; 41 new->fsuid = exp->ex_anon_uid; 42 new->fsgid = exp->ex_anon_gid; 47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) 48 new [all...] |
/linux-master/kernel/ |
H A D | cred.c | 175 struct cred *new; local 177 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); 178 if (!new) 181 atomic_long_set(&new->usage, 1); 182 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) 185 return new; 188 abort_creds(new); 193 * prepare_creds - Prepare a new set of credentials for modification 195 * Prepare a new set of task credentials for modification. A task's creds 197 * prepare a new cop 210 struct cred *new; local 259 struct cred *new; local 292 struct cred *new; local 392 commit_creds(struct cred *new) argument 469 abort_creds(struct cred *new) argument 486 override_creds(const struct cred *new) argument 583 set_cred_ucounts(struct cred *new) argument 632 struct cred *new; local 688 set_security_override(struct cred *new, u32 secid) argument 704 set_security_override_from_ctx(struct cred *new, const char *secctx) argument 726 set_create_files_as(struct cred *new, struct inode *inode) argument [all...] |
/linux-master/arch/sh/include/asm/ |
H A D | cmpxchg-cas.h | 6 __cmpxchg_u32(volatile u32 *m, unsigned long old, unsigned long new) argument 9 : "+r"(new) 12 return new;
|
/linux-master/fs/cachefiles/ |
H A D | security.c | 18 struct cred *new; local 23 new = prepare_kernel_cred(current); 24 if (!new) { 30 ret = set_security_override_from_ctx(new, cache->secctx); 32 put_cred(new); 39 cache->cache_cred = new; 79 struct cred *new; local 86 new = prepare_creds(); 87 if (!new) 94 ret = set_create_files_as(new, d_backing_inod [all...] |
/linux-master/lib/ |
H A D | memcat_p.c | 12 void **p = a, **new; local 23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); 24 if (!new) 29 new[nr] = *p; 31 return new;
|
H A D | errseq.c | 19 * can later be used to tell whether any new errors have occurred since that 22 * Note that there is a risk of collisions if new errors are being recorded 26 * been sampled since a new value was recorded. That allows us to avoid bumping 30 * A new errseq_t should always be zeroed out. A errseq_t value of all zeroes 79 errseq_t new; local 81 /* Clear out error bits and set new error */ 82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; 86 new += ERRSEQ_CTR_INC; 89 if (new == old) { 90 cur = new; 178 errseq_t old, new; local [all...] |
/linux-master/tools/include/linux/ |
H A D | refcount.h | 78 unsigned int old, new, val = atomic_read(&r->refs); 81 new = val + 1; 86 if (unlikely(!new)) 89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); 96 REFCOUNT_WARN(new == UINT_MAX, "refcount_t: saturated; leaking memory.\n"); 123 unsigned int old, new, val = atomic_read(&r->refs); 129 new = val - i; 130 if (new > val) { 131 REFCOUNT_WARN(new > val, "refcount_t: underflow; use-after-free.\n"); 135 old = atomic_cmpxchg_release(&r->refs, val, new); [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) argument 32 "1: cas [%[ip]], %[old], %[new]\n" 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) 50 if (replaced != old && replaced != new) 59 u32 old, new; local 62 new = ftrace_nop; 63 return ftrace_modify_code(ip, old, new); 69 u32 old, new; local 72 new 79 u32 old, new; local 95 u32 old, new; local 105 u32 old, new; local [all...] |
/linux-master/arch/arm64/kvm/hyp/ |
H A D | exception.c | 76 * and PSTATE into ELR and SPSR respectively, and compute the new PC/PSTATE. 94 unsigned long sctlr, vbar, old, new, mode; local 127 new = 0; 129 new |= (old & PSR_N_BIT); 130 new |= (old & PSR_Z_BIT); 131 new |= (old & PSR_C_BIT); 132 new |= (old & PSR_V_BIT); 135 new |= PSR_TCO_BIT; 137 new |= (old & PSR_DIT_BIT); 145 new | 195 unsigned long old, new; local [all...] |
/linux-master/arch/s390/mm/ |
H A D | pageattr.c | 59 static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr, argument 78 crdte(*old, new, table, dtt, addr, S390_lowcore.kernel_asce.val); 80 cspg(old, *old, new); 82 csp((unsigned int *)old + 1, *old, new); 89 pte_t *ptep, new; local 95 new = *ptep; 96 if (pte_none(new)) 99 new = pte_wrprotect(new); 101 new 126 pmd_t new; local 154 pmd_t new = *pmdp; local 215 pud_t new; local 243 pud_t new = *pudp; local [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | cmpxchg.h | 89 unsigned long new, int size) 98 new = (new & 0xff) << shift; 104 " or %[new],%[prev]\n" 107 " cs %[prev],%[new],%[address]\n" 110 " xr %[new],%[tmp]\n" 117 [new] "+&d" (new), 128 new = (new 87 __cmpxchg(unsigned long address, unsigned long old, unsigned long new, int size) argument 195 arch_cmpxchg128(volatile u128 *ptr, u128 old, u128 new) argument [all...] |
H A D | atomic_ops.h | 101 int old, new; \ 104 "0: lr %[new],%[old]\n" \ 105 op_string " %[new],%[val]\n" \ 106 " cs %[old],%[new],%[ptr]\n" \ 108 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\ 127 long old, new; \ 130 "0: lgr %[new],%[old]\n" \ 131 op_string " %[new],%[val]\n" \ 132 " csg %[old],%[new], 157 __atomic_cmpxchg(int *ptr, int old, int new) argument 167 __atomic_cmpxchg_bool(int *ptr, int old, int new) argument 179 __atomic64_cmpxchg(long *ptr, long old, long new) argument 189 __atomic64_cmpxchg_bool(long *ptr, long old, long new) argument [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | xchg.h | 129 ____cmpxchg(_u8, volatile char *m, unsigned char old, unsigned char new) argument 148 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) 149 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); 155 ____cmpxchg(_u16, volatile short *m, unsigned short old, unsigned short new) argument 174 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) 175 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); 181 ____cmpxchg(_u32, volatile int *m, int old, int new) argument 197 : "r"((long) old), "r"(new), "m"(*m) : "memory"); 203 ____cmpxchg(_u64, volatile long *m, unsigned long old, unsigned long new) argument 219 : "r"((long) old), "r"(new), " 229 ____cmpxchg(, volatile void *ptr, unsigned long old, unsigned long new, int size) argument [all...] |
/linux-master/arch/csky/include/asm/ |
H A D | cmpxchg.h | 10 #define __xchg_relaxed(new, ptr, size) \ 13 __typeof__(new) __new = (new); \ 56 #define __cmpxchg_relaxed(ptr, old, new, size) \ 59 __typeof__(new) __new = (new); \ 60 __typeof__(new) __tmp; \ 86 #define __cmpxchg_acquire(ptr, old, new, size) \ 89 __typeof__(new) __new = (new); \ [all...] |
/linux-master/include/linux/ |
H A D | vt.h | 17 extern int vt_kmsg_redirect(int new); 21 static inline int vt_kmsg_redirect(int new) argument
|
/linux-master/arch/s390/kernel/ |
H A D | jump_label.c | 34 struct insn *new) 38 unsigned char *ipn = (unsigned char *)new; 51 struct insn old, new; local 55 jump_label_make_branch(entry, &new); 58 jump_label_make_nop(entry, &new); 61 jump_label_bug(entry, &old, &new); 62 s390_kernel_write(code, &new, sizeof(new)); 33 jump_label_bug(struct jump_entry *entry, struct insn *expected, struct insn *new) argument
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_probe_user.c | 12 struct sockaddr_in new; local 15 __builtin_memset(&new, 0xab, sizeof(new)); 16 bpf_probe_write_user(uservaddr, &new, sizeof(new));
|
H A D | normal_map_btf.c | 36 struct node_data *new; local 46 new = bpf_obj_new(typeof(*new)); 47 if (!new) 51 bpf_list_push_back(&value->head, &new->node);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 42 u32 __cmpxchg_##type##sfx(volatile void *p, u32 old, u32 new) \ 50 new <<= bitoff; \ 67 : "r" (p), "r" (old), "r" (new), "r" (prev_mask) \ 269 * Compare and exchange - if *p == old, set it to new, 283 __cmpxchg_u8(volatile unsigned char *p, unsigned long old, unsigned long new) argument 298 : "r" (p), "r" (old), "r" (new) 306 unsigned long new) 318 : "r" (p), "r" (old), "r" (new) 325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigned long new) argument 337 : "r" (p), "r" (old), "r" (new) 305 __cmpxchg_u8_local(volatile unsigned char *p, unsigned long old, unsigned long new) argument 344 __cmpxchg_u8_acquire(u8 *p, unsigned long old, unsigned long new) argument 364 __cmpxchg_u16(volatile unsigned short *p, unsigned long old, unsigned long new) argument 385 __cmpxchg_u16_local(volatile unsigned short *p, unsigned long old, unsigned long new) argument 405 __cmpxchg_u16_relaxed(u16 *p, unsigned long old, unsigned long new) argument 424 __cmpxchg_u16_acquire(u16 *p, unsigned long old, unsigned long new) argument 445 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new) argument 467 __cmpxchg_u32_local(volatile unsigned int *p, unsigned long old, unsigned long new) argument 488 __cmpxchg_u32_relaxed(u32 *p, unsigned long old, unsigned long new) argument 515 __cmpxchg_u32_acquire(u32 *p, unsigned long old, unsigned long new) argument 537 __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new) argument 559 __cmpxchg_u64_local(volatile unsigned long *p, unsigned long old, unsigned long new) argument 580 __cmpxchg_u64_relaxed(u64 *p, unsigned long old, unsigned long new) argument 599 __cmpxchg_u64_acquire(u64 *p, unsigned long old, unsigned long new) argument 621 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) argument 641 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument 661 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument 681 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | cmpxchg.h | 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ 89 __typeof__(*(ptr)) __new = (new); \ 133 #define __cmpxchg(ptr, old, new, size) \ 134 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX) 136 #define __sync_cmpxchg(ptr, old, new, size) \ 137 __raw_cmpxchg((ptr), (old), (new), (size), "lock; ") 139 #define __cmpxchg_local(ptr, old, new, size) \ 140 __raw_cmpxchg((ptr), (old), (new), (size), "") 148 #define arch_cmpxchg(ptr, old, new) \ 149 __cmpxchg(ptr, old, new, sizeo [all...] |
H A D | cmpxchg_32.h | 22 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) argument 28 : "b" ((u32)new), 29 "c" ((u32)(new >> 32)), 35 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) argument 41 : "b" ((u32)new), 42 "c" ((u32)(new >> 32)), 48 static inline bool __try_cmpxchg64(volatile u64 *ptr, u64 *pold, u64 new) argument 57 : "b" ((u32)new), 58 "c" ((u32)(new >> 32))
|
/linux-master/mm/ |
H A D | page_counter.c | 51 long new; local 53 new = atomic_long_sub_return(nr_pages, &counter->usage); 55 if (WARN_ONCE(new < 0, "page_counter underflow: %ld nr_pages=%lu\n", 56 new, nr_pages)) { 57 new = 0; 58 atomic_long_set(&counter->usage, new); 60 propagate_protected_usage(counter, new); 75 long new; local 77 new = atomic_long_add_return(nr_pages, &c->usage); 78 propagate_protected_usage(c, new); 104 long new; local [all...] |
/linux-master/include/asm-generic/ |
H A D | cmpxchg-local.h | 16 unsigned long old, unsigned long new, int size) 30 *(u8 *)ptr = (new & 0xffu); 34 *(u16 *)ptr = (new & 0xffffu); 38 *(u32 *)ptr = (new & 0xffffffffu); 42 *(u64 *)ptr = (u64)new; 55 u64 old, u64 new) 63 *(u64 *)ptr = new; 15 __generic_cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) argument 54 __generic_cmpxchg64_local(volatile void *ptr, u64 old, u64 new) argument
|
/linux-master/security/ |
H A D | commoncap.c | 233 * @new: The proposed new credentials; alterations should be made here 235 * @effective: A pointer to the proposed new effective capabilities set 236 * @inheritable: A pointer to the proposed new inheritable capabilities set 237 * @permitted: A pointer to the proposed new permitted capabilities set 240 * process's capability sets. The changes are made to the proposed new 243 int cap_capset(struct cred *new, argument 259 /* no new pI capabilities outside bounding set */ 262 /* verify restrictions on target's new Permitted set */ 270 new 592 struct cred *new = bprm->cred; local 793 struct cred *new = bprm->cred; local 830 __is_setuid(struct cred *new, const struct cred *old) argument 833 __is_setgid(struct cred *new, const struct cred *old) argument 853 nonroot_raised_pE(struct cred *new, const struct cred *old, kuid_t root, bool has_fcap) argument 890 struct cred *new = bprm->cred; local 1085 cap_emulate_setxuid(struct cred *new, const struct cred *old) argument 1124 cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags) argument 1237 struct cred *new; local 1270 struct cred *new; local [all...] |