/openbmc/linux/kernel/ |
H A D | cred.c | 173 if (!new) in cred_alloc_blank() 180 return new; in cred_alloc_blank() 208 if (!new) in prepare_creds() 233 new->ucounts = get_ucounts(new->ucounts); in prepare_creds() 240 return new; in prepare_creds() 257 if (!new) in prepare_exec_creds() 270 new->suid = new->fsuid = new->euid; in prepare_exec_creds() 271 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 309 if (!new) in copy_creds() 635 if (!new) in prepare_kernel_cred() [all …]
|
/openbmc/linux/fs/nfsd/ |
H A D | auth.c | 25 struct cred *new; in nfsd_setuser() local 31 new = prepare_creds(); in nfsd_setuser() 32 if (!new) in nfsd_setuser() 41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 74 set_groups(new, gi); in nfsd_setuser() 78 new->cap_effective = cap_drop_nfsd_set(new->cap_effective); in nfsd_setuser() 80 new->cap_effective = cap_raise_nfsd_set(new->cap_effective, in nfsd_setuser() 81 new->cap_permitted); in nfsd_setuser() 83 put_cred(new); in nfsd_setuser() [all …]
|
/openbmc/linux/arch/s390/mm/ |
H A D | pageattr.c | 99 new = pte_wrprotect(new); in walk_pte_level() 101 new = pte_mkwrite_novma(pte_mkdirty(new)); in walk_pte_level() 109 new = __pte(pte_val(new) & PAGE_MASK); in walk_pte_level() 110 new = set_pte_bit(new, PAGE_KERNEL); in walk_pte_level() 157 new = pmd_wrprotect(new); in modify_pmd_page() 167 new = __pmd(pmd_val(new) & PMD_MASK); in modify_pmd_page() 168 new = set_pmd_bit(new, SEGMENT_KERNEL); in modify_pmd_page() 246 new = pud_wrprotect(new); in modify_pud_page() 248 new = pud_mkwrite(pud_mkdirty(new)); in modify_pud_page() 256 new = __pud(pud_val(new) & PUD_MASK); in modify_pud_page() [all …]
|
/openbmc/linux/security/ |
H A D | commoncap.c | 277 new->cap_ambient = cap_intersect(new->cap_ambient, in cap_capset() 922 new->euid = new->uid; in cap_bprm_creds_from_file() 923 new->egid = new->gid; in cap_bprm_creds_from_file() 929 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file() 930 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file() 940 new->cap_permitted = cap_combine(new->cap_permitted, new->cap_ambient); in cap_bprm_creds_from_file() 947 new->cap_effective = new->cap_permitted; in cap_bprm_creds_from_file() 949 new->cap_effective = new->cap_ambient; in cap_bprm_creds_from_file() 1109 new->cap_effective = new->cap_permitted; in cap_emulate_setxuid() 1244 if (!new) in cap_prctl_drop() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/ |
H A D | exception.c | 127 new = 0; in enter_exception64() 135 new |= PSR_TCO_BIT; in enter_exception64() 147 new |= PSR_PAN_BIT; in enter_exception64() 163 new |= PSR_D_BIT; in enter_exception64() 164 new |= PSR_A_BIT; in enter_exception64() 165 new |= PSR_I_BIT; in enter_exception64() 166 new |= PSR_F_BIT; in enter_exception64() 168 new |= target_mode; in enter_exception64() 198 new = 0; in get_except32_cpsr() 267 new |= mode; in get_except32_cpsr() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 50 new <<= bitoff; \ 298 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8() 306 unsigned long new) in __cmpxchg_u8_local() argument 318 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_local() 337 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_relaxed() 357 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_acquire() 378 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u16() 386 unsigned long new) in __cmpxchg_u16_local() argument 398 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u16_local() 468 unsigned long new) in __cmpxchg_u32_local() argument [all …]
|
/openbmc/linux/tools/testing/selftests/rtc/ |
H A D | setdate.c | 24 struct rtc_time new, current; in main() local 47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main() 48 new.tm_mon -= 1; in main() 49 new.tm_year -= 1900; in main() 50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main() 53 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main() 54 new.tm_hour, new.tm_min, new.tm_sec); in main() 57 retval = ioctl(fd, RTC_SET_TIME, &new); in main()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | ftrace.c | 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code() 50 if (replaced != old && replaced != new) in ftrace_modify_code() 59 u32 old, new; in ftrace_make_nop() local 62 new = ftrace_nop; in ftrace_make_nop() 63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 69 u32 old, new; in ftrace_make_call() local 72 new = ftrace_call_replace(ip, addr); in ftrace_make_call() 73 return ftrace_modify_code(ip, old, new); in ftrace_make_call() 79 u32 old, new; in ftrace_update_ftrace_func() local 95 u32 old, new; in ftrace_enable_ftrace_graph_caller() local [all …]
|
/openbmc/openbmc/poky/bitbake/lib/simplediff/ |
H A D | __init__.py | 17 def diff(old, new): argument 87 for inew, val in enumerate(new): 103 return (old and [('-', old)] or []) + (new and [('+', new)] or []) 110 new[sub_start_new + sub_length : ]) 113 def string_diff(old, new): argument 139 return diff(old.split(), new.split()) 142 def html_diff(old, new): argument 169 def check_diff(old, new): argument 192 new = list(new) 193 result = diff(old, new) [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | cmpxchg.h | 89 __typeof__(*(ptr)) __new = (new); \ 133 #define __cmpxchg(ptr, old, new, size) \ argument 148 #define arch_cmpxchg(ptr, old, new) \ argument 149 __cmpxchg(ptr, old, new, sizeof(*(ptr))) 151 #define arch_sync_cmpxchg(ptr, old, new) \ argument 152 __sync_cmpxchg(ptr, old, new, sizeof(*(ptr))) 154 #define arch_cmpxchg_local(ptr, old, new) \ argument 173 : [new] "q" (__new) \ 185 : [new] "r" (__new) \ 197 : [new] "r" (__new) \ [all …]
|
/openbmc/linux/security/keys/ |
H A D | process_keys.c | 228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred() 246 struct cred *new; in install_thread_keyring() local 250 if (!new) in install_thread_keyring() 275 keyring = keyring_alloc("_pid", new->uid, new->gid, new, in install_process_keyring_to_cred() 293 struct cred *new; in install_process_keyring() local 297 if (!new) in install_process_keyring() 358 struct cred *new; in install_session_keyring() local 362 if (!new) in install_session_keyring() 845 if (!new) in join_session_keyring() 917 put_cred(new); in key_change_session_keyring() [all …]
|
/openbmc/linux/drivers/mtd/ |
H A D | mtd_blkdevs.c | 321 kref_init(&new->ref); in add_mtd_blktrans_dev() 323 new->readonly = 1; in add_mtd_blktrans_dev() 326 new->tag_set = kzalloc(sizeof(*new->tag_set), GFP_KERNEL); in add_mtd_blktrans_dev() 327 if (!new->tag_set) in add_mtd_blktrans_dev() 336 gd = blk_mq_alloc_disk(new->tag_set, new); in add_mtd_blktrans_dev() 342 new->disk = gd; in add_mtd_blktrans_dev() 343 new->rq = new->disk->queue; in add_mtd_blktrans_dev() 384 gd->queue = new->rq; in add_mtd_blktrans_dev() 386 if (new->readonly) in add_mtd_blktrans_dev() 401 put_disk(new->disk); in add_mtd_blktrans_dev() [all …]
|
/openbmc/linux/fs/nfs/blocklayout/ |
H A D | extent_tree.c | 173 kfree(new); in __ext_tree_insert() 203 new = kzalloc(sizeof(*new), GFP_ATOMIC); in __ext_tree_remove() 204 if (!new) in __ext_tree_remove() 211 new->be_v_offset = in __ext_tree_remove() 214 new->be_length = len2; in __ext_tree_remove() 261 switch (new->be_state) { in ext_tree_insert() 283 kfree(new); in ext_tree_insert() 294 new->be_length = be->be_f_offset - new->be_f_offset; in ext_tree_insert() 301 split = kmemdup(new, sizeof(*new), GFP_ATOMIC); in ext_tree_insert() 386 new = kzalloc(sizeof(*new), GFP_ATOMIC); in ext_tree_split() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | cmpxchg.h | 89 unsigned long new, int size) in __cmpxchg() argument 98 new = (new & 0xff) << shift; in __cmpxchg() 117 [new] "+&d" (new), in __cmpxchg() 128 new = (new & 0xffff) << shift; in __cmpxchg() 147 [new] "+&d" (new), in __cmpxchg() 159 : [new] "d" (new) in __cmpxchg() 170 : [new] "d" (new) in __cmpxchg() 195 static __always_inline u128 arch_cmpxchg128(volatile u128 *ptr, u128 old, u128 new) in arch_cmpxchg128() argument 200 : [new] "d" (new) in arch_cmpxchg128()
|
H A D | atomic_ops.h | 101 int old, new; \ 108 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\ 127 long old, new; \ 134 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+QS" (*ptr)\ 157 static inline int __atomic_cmpxchg(int *ptr, int old, int new) in __atomic_cmpxchg() argument 162 : [new] "d" (new) in __atomic_cmpxchg() 167 static inline bool __atomic_cmpxchg_bool(int *ptr, int old, int new) in __atomic_cmpxchg_bool() argument 174 : [new] "d" (new) in __atomic_cmpxchg_bool() 179 static inline long __atomic64_cmpxchg(long *ptr, long old, long new) in __atomic64_cmpxchg() argument 184 : [new] "d" (new) in __atomic64_cmpxchg() [all …]
|
/openbmc/linux/fs/ |
H A D | signalfd.c | 74 struct signalfd_siginfo new; in signalfd_copyinfo() local 81 memset(&new, 0, sizeof(new)); in signalfd_copyinfo() 89 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 92 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 93 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 96 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 99 new.ssi_int = kinfo->si_int; in signalfd_copyinfo() 103 new.ssi_fd = kinfo->si_fd; in signalfd_copyinfo() 137 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 138 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() [all …]
|
/openbmc/linux/lib/ |
H A D | errseq.c | 79 errseq_t new; in errseq_set() local 86 new += ERRSEQ_CTR_INC; in errseq_set() 89 if (new == old) { in errseq_set() 90 cur = new; in errseq_set() 95 cur = cmpxchg(eseq, old, new); in errseq_set() 178 errseq_t old, new; in errseq_check_and_advance() local 199 new = old | ERRSEQ_SEEN; in errseq_check_and_advance() 200 if (new != old) in errseq_check_and_advance() 201 cmpxchg(eseq, old, new); in errseq_check_and_advance() 202 *since = new; in errseq_check_and_advance() [all …]
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | bitops.h | 42 __u32 bit, old, new; in set_bit() local 51 new = old | bit; in set_bit() 83 __u32 mask, old, new; in clear_bit() local 92 new = old & mask; in clear_bit() 107 __u32 mask, old, new; in clear_bit_unlock() local 116 new = old & mask; in clear_bit_unlock() 164 __u32 bit, old, new; in change_bit() local 173 new = old ^ bit; in change_bit() 212 new = old | bit; in test_and_set_bit() 266 new = old & mask; in test_and_clear_bit() [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | cmpxchg_64.h | 11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 14 : "=&r" (new) in __cmpxchg_u32() 15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32() 18 return new; in __cmpxchg_u32() 118 : "=&r" (new) in __cmpxchg_u64() 119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64() 122 return new; in __cmpxchg_u64() 161 return __cmpxchg_u8(ptr, old, new); in __cmpxchg() 163 return __cmpxchg_u32(ptr, old, new); in __cmpxchg() 165 return __cmpxchg_u64(ptr, old, new); in __cmpxchg() [all …]
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | xchg.h | 148 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in ____cmpxchg() 149 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); in ____cmpxchg() 174 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in ____cmpxchg() 175 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); in ____cmpxchg() 181 ____cmpxchg(_u32, volatile int *m, int old, int new) in ____cmpxchg() argument 197 : "r"((long) old), "r"(new), "m"(*m) : "memory"); in ____cmpxchg() 219 : "r"((long) old), "r"(new), "m"(*m) : "memory"); in ____cmpxchg() 234 return ____cmpxchg(_u8, ptr, old, new); 236 return ____cmpxchg(_u16, ptr, old, new); 238 return ____cmpxchg(_u32, ptr, old, new); [all …]
|
/openbmc/linux/arch/csky/include/asm/ |
H A D | cmpxchg.h | 10 #define __xchg_relaxed(new, ptr, size) \ argument 13 __typeof__(new) __new = (new); \ 56 #define __cmpxchg_relaxed(ptr, old, new, size) \ argument 59 __typeof__(new) __new = (new); \ 60 __typeof__(new) __tmp; \ 86 #define __cmpxchg_acquire(ptr, old, new, size) \ argument 89 __typeof__(new) __new = (new); \ 90 __typeof__(new) __tmp; \ 117 #define __cmpxchg(ptr, old, new, size) \ argument 120 __typeof__(new) __new = (new); \ [all …]
|
/openbmc/linux/arch/arm/kernel/ |
H A D | ftrace.c | 99 unsigned long new, bool validate) in ftrace_modify_code() argument 117 __patch_text((void *)pc, new); in ftrace_modify_code() 125 unsigned long new; in ftrace_update_ftrace_func() local 131 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 147 unsigned long new, old; in ftrace_make_call() local 158 new = ftrace_call_replace(ip, aaddr, !mod); in ftrace_make_call() 160 if (!new && mod) { in ftrace_make_call() 174 unsigned long new, old; in ftrace_modify_call() local 192 unsigned long new; in ftrace_make_nop() local 212 new = ftrace_nop_replace(rec); in ftrace_make_nop() [all …]
|
/openbmc/linux/mm/ |
H A D | page_counter.c | 51 long new; in page_counter_cancel() local 56 new, nr_pages)) { in page_counter_cancel() 57 new = 0; in page_counter_cancel() 75 long new; in page_counter_charge() local 78 propagate_protected_usage(c, new); in page_counter_charge() 83 if (new > READ_ONCE(c->watermark)) in page_counter_charge() 84 WRITE_ONCE(c->watermark, new); in page_counter_charge() 104 long new; in page_counter_try_charge() local 120 if (new > c->max) { in page_counter_try_charge() 131 propagate_protected_usage(c, new); in page_counter_try_charge() [all …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | security.c | 18 struct cred *new; in cachefiles_get_security_ID() local 23 new = prepare_kernel_cred(current); in cachefiles_get_security_ID() 24 if (!new) { in cachefiles_get_security_ID() 32 put_cred(new); in cachefiles_get_security_ID() 39 cache->cache_cred = new; in cachefiles_get_security_ID() 79 struct cred *new; in cachefiles_determine_cache_security() local 86 new = prepare_creds(); in cachefiles_determine_cache_security() 87 if (!new) in cachefiles_determine_cache_security() 94 ret = set_create_files_as(new, d_backing_inode(root)); in cachefiles_determine_cache_security() 96 abort_creds(new); in cachefiles_determine_cache_security() [all …]
|
/openbmc/linux/security/apparmor/ |
H A D | task.c | 50 struct cred *new; in aa_replace_current_label() local 60 new = prepare_creds(); in aa_replace_current_label() 61 if (!new) in aa_replace_current_label() 87 commit_creds(new); in aa_replace_current_label() 123 struct cred *new; in aa_set_current_hat() local 126 if (!new) in aa_set_current_hat() 138 abort_creds(new); in aa_set_current_hat() 147 commit_creds(new); in aa_set_current_hat() 163 struct cred *new; in aa_restore_previous_label() local 172 if (!new) in aa_restore_previous_label() [all …]
|