/linux-6.14.4/kernel/ |
D | cred.c | 175 struct cred *new; in cred_alloc_blank() local 177 new = kmem_cache_zalloc(cred_jar, GFP_KERNEL); in cred_alloc_blank() 178 if (!new) in cred_alloc_blank() 181 atomic_long_set(&new->usage, 1); in cred_alloc_blank() 182 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) in cred_alloc_blank() 185 return new; in cred_alloc_blank() 188 abort_creds(new); in cred_alloc_blank() 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 copy, which the caller then modifies and then commits by [all …]
|
/linux-6.14.4/fs/nfsd/ |
D | auth.c | 25 struct cred *new; in nfsd_setuser() local 29 /* discard any old override before preparing the new set */ in nfsd_setuser() 31 new = prepare_creds(); in nfsd_setuser() 32 if (!new) in nfsd_setuser() 35 new->fsuid = cred->cr_uid; in nfsd_setuser() 36 new->fsgid = cred->cr_gid; in nfsd_setuser() 41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser() 48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() [all …]
|
/linux-6.14.4/arch/s390/mm/ |
D | pageattr.c | 60 static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr, in pgt_set() argument 79 crdte(*old, new, table, dtt, addr, get_lowcore()->kernel_asce.val); in pgt_set() 81 cspg(old, *old, new); in pgt_set() 83 csp((unsigned int *)old + 1, *old, new); in pgt_set() 90 pte_t *ptep, new; in walk_pte_level() local 96 new = *ptep; in walk_pte_level() 97 if (pte_none(new)) in walk_pte_level() 100 new = pte_wrprotect(new); in walk_pte_level() 102 new = pte_mkwrite_novma(pte_mkdirty(new)); in walk_pte_level() 104 new = set_pte_bit(new, __pgprot(_PAGE_NOEXEC)); in walk_pte_level() [all …]
|
/linux-6.14.4/arch/s390/include/asm/ |
D | cmpxchg.h | 18 static __always_inline u32 __cs_asm(u64 ptr, u32 old, u32 new) in __cs_asm() argument 21 " cs %[old],%[new],%[ptr]\n" in __cs_asm() 23 : [new] "d" (new) in __cs_asm() 28 static __always_inline u64 __csg_asm(u64 ptr, u64 old, u64 new) in __csg_asm() argument 31 " csg %[old],%[new],%[ptr]\n" in __csg_asm() 33 : [new] "d" (new) in __csg_asm() 38 static inline u8 __arch_cmpxchg1(u64 ptr, u8 old, u8 new) in __arch_cmpxchg1() argument 55 new32.b[i] = new; in __arch_cmpxchg1() 61 static inline u16 __arch_cmpxchg2(u64 ptr, u16 old, u16 new) in __arch_cmpxchg2() argument 78 new32.b[i] = new; in __arch_cmpxchg2() [all …]
|
D | futex.h | 16 int rc, new; \ 23 "2: cs %[old],%[new],%[uaddr]\n" \ 32 [new] "=&d" (new), [uaddr] "+Q" (*uaddr) \ 40 FUTEX_OP_FUNC(set, "lr %[new],%[oparg]\n") 41 FUTEX_OP_FUNC(add, "lr %[new],%[old]\n ar %[new],%[oparg]\n") 42 FUTEX_OP_FUNC(or, "lr %[new],%[old]\n or %[new],%[oparg]\n") 43 FUTEX_OP_FUNC(and, "lr %[new],%[old]\n nr %[new],%[oparg]\n") 44 FUTEX_OP_FUNC(xor, "lr %[new],%[old]\n xr %[new],%[oparg]\n") 83 "0: cs %[old],%[new],%[uaddr]\n" in futex_atomic_cmpxchg_inatomic() 89 : [new] "d" (newval) in futex_atomic_cmpxchg_inatomic()
|
/linux-6.14.4/security/ipe/ |
D | policy.c | 76 * ipe_update_policy() - parse a new policy and replace old with it. 93 struct ipe_policy *old, *ap, *new = NULL; in ipe_update_policy() local 100 new = ipe_new_policy(text, textlen, pkcs7, pkcs7len); in ipe_update_policy() 101 if (IS_ERR(new)) in ipe_update_policy() 102 return PTR_ERR(new); in ipe_update_policy() 104 if (strcmp(new->parsed->name, old->parsed->name)) { in ipe_update_policy() 109 if (ver_to_u64(old) >= ver_to_u64(new)) { in ipe_update_policy() 114 root->i_private = new; in ipe_update_policy() 115 swap(new->policyfs, old->policyfs); in ipe_update_policy() 116 ipe_audit_policy_load(new); in ipe_update_policy() [all …]
|
/linux-6.14.4/fs/nfs/blocklayout/ |
D | extent_tree.c | 137 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument 146 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert() 147 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert() 148 be->be_f_offset = new->be_f_offset; in __ext_tree_insert() 150 be->be_v_offset = new->be_v_offset; in __ext_tree_insert() 151 be->be_length += new->be_length; in __ext_tree_insert() 156 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert() 157 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert() 158 be->be_length += new->be_length; in __ext_tree_insert() 168 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert() [all …]
|
/linux-6.14.4/arch/x86/include/asm/ |
D | cmpxchg.h | 82 * store NEW in MEM. Return the initial value in MEM. Success is 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument 89 __typeof__(*(ptr)) __new = (new); \ 133 #define __cmpxchg(ptr, old, new, size) \ argument 134 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX) 136 #define __sync_cmpxchg(ptr, old, new, size) \ argument 137 __raw_cmpxchg((ptr), (old), (new), (size), "lock; ") 139 #define __cmpxchg_local(ptr, old, new, size) \ argument 140 __raw_cmpxchg((ptr), (old), (new), (size), "") 148 #define arch_cmpxchg(ptr, old, new) \ argument [all …]
|
D | cmpxchg_32.h | 32 static __always_inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64() argument 34 return __arch_cmpxchg64(ptr, old, new, LOCK_PREFIX); in __cmpxchg64() 37 static __always_inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64_local() argument 39 return __arch_cmpxchg64(ptr, old, new,); in __cmpxchg64_local() 62 static __always_inline bool __try_cmpxchg64(volatile u64 *ptr, u64 *oldp, u64 new) in __try_cmpxchg64() argument 64 return __arch_try_cmpxchg64(ptr, oldp, new, LOCK_PREFIX); in __try_cmpxchg64() 67 static __always_inline bool __try_cmpxchg64_local(volatile u64 *ptr, u64 *oldp, u64 new) in __try_cmpxchg64_local() argument 69 return __arch_try_cmpxchg64(ptr, oldp, new,); in __try_cmpxchg64_local() 104 static __always_inline u64 arch_cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in arch_cmpxchg64() argument 106 return __arch_cmpxchg64_emu(ptr, old, new, LOCK_PREFIX_HERE, "lock; "); in arch_cmpxchg64() [all …]
|
/linux-6.14.4/fs/xfs/libxfs/ |
D | xfs_rmap.c | 663 * growing the last AG. This extent is new space and so it is not tracked as 720 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap() 830 * record to the length of the new left-extent size, increment in xfs_rmap_unmap() 831 * the insertion position so we can insert a new record in xfs_rmap_unmap() 1014 * When we allocate a new block, the first thing we do is add a reference to 1178 * new record at current cursor position. in xfs_rmap_map() 1241 #define NEW r[3] macro 1258 /* prev is 2, new is 3 */ in xfs_rmap_convert() 1413 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert() 1461 NEW = LEFT; in xfs_rmap_convert() [all …]
|
/linux-6.14.4/security/ |
D | commoncap.c | 261 * @new: The proposed new credentials; alterations should be made here 263 * @effective: A pointer to the proposed new effective capabilities set 264 * @inheritable: A pointer to the proposed new inheritable capabilities set 265 * @permitted: A pointer to the proposed new permitted capabilities set 268 * process's capability sets. The changes are made to the proposed new 271 int cap_capset(struct cred *new, in cap_capset() argument 287 /* no new pI capabilities outside bounding set */ in cap_capset() 290 /* verify restrictions on target's new Permitted set */ in cap_capset() 298 new->cap_effective = *effective; in cap_capset() 299 new->cap_inheritable = *inheritable; in cap_capset() [all …]
|
/linux-6.14.4/arch/sparc/kernel/ |
D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument 32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code() 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() [all …]
|
/linux-6.14.4/security/keys/ |
D | process_keys.c | 221 int install_thread_keyring_to_cred(struct cred *new) in install_thread_keyring_to_cred() argument 225 if (new->thread_keyring) in install_thread_keyring_to_cred() 228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, in install_thread_keyring_to_cred() 235 new->thread_keyring = keyring; in install_thread_keyring_to_cred() 246 struct cred *new; in install_thread_keyring() local 249 new = prepare_creds(); in install_thread_keyring() 250 if (!new) in install_thread_keyring() 253 ret = install_thread_keyring_to_cred(new); in install_thread_keyring() 255 abort_creds(new); in install_thread_keyring() 259 return commit_creds(new); in install_thread_keyring() [all …]
|
/linux-6.14.4/tools/testing/selftests/rtc/ |
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() 56 /* Write the new date in RTC */ in main() 57 retval = ioctl(fd, RTC_SET_TIME, &new); in main()
|
/linux-6.14.4/drivers/mtd/ |
D | mtd_blkdevs.c | 276 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() argument 278 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev() 288 if (new->devnum == -1) { in add_mtd_blktrans_dev() 292 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() 293 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 296 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev() 299 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev() 301 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 308 if (new->devnum == -1) in add_mtd_blktrans_dev() 309 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() [all …]
|
/linux-6.14.4/arch/powerpc/include/asm/ |
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) in __cmpxchg_u8() argument 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() 325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigned long new) in __cmpxchg_u8_relaxed() argument 337 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_relaxed() [all …]
|
/linux-6.14.4/arch/arm64/kvm/hyp/ |
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; in enter_exception64() local 127 new = 0; in enter_exception64() 129 new |= (old & PSR_N_BIT); in enter_exception64() 130 new |= (old & PSR_Z_BIT); in enter_exception64() 131 new |= (old & PSR_C_BIT); in enter_exception64() 132 new |= (old & PSR_V_BIT); in enter_exception64() 135 new |= PSR_TCO_BIT; in enter_exception64() 137 new |= (old & PSR_DIT_BIT); in enter_exception64() 145 new |= (old & PSR_PAN_BIT); in enter_exception64() [all …]
|
/linux-6.14.4/fs/ |
D | signalfd.c | 73 struct signalfd_siginfo new; in signalfd_copyinfo() local 80 memset(&new, 0, sizeof(new)); in signalfd_copyinfo() 86 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo() 87 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo() 88 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 91 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 92 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 95 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 96 new.ssi_overrun = kinfo->si_overrun; in signalfd_copyinfo() 97 new.ssi_ptr = (long) kinfo->si_ptr; in signalfd_copyinfo() [all …]
|
D | anon_inodes.c | 128 * anon_inode_getfile - creates a new file instance by hooking it up to an 132 * @name: [in] name of the "class" of the new file 133 * @fops: [in] file operations for the new file 134 * @priv: [in] private data for the new file (will be file's private_data) 137 * Creates a new file by hooking it on a single inode. This is useful for files 152 * anon_inode_getfile_fmode - creates a new file instance by hooking it up to an 156 * @name: [in] name of the "class" of the new file 157 * @fops: [in] file operations for the new file 158 * @priv: [in] private data for the new file (will be file's private_data) 162 * Creates a new file by hooking it on a single inode. This is useful for files [all …]
|
/linux-6.14.4/arch/s390/kvm/ |
D | gmap-vsie.c | 72 struct gmap *sg, *new; in gmap_shadow() local 84 /* Create a new shadow gmap */ in gmap_shadow() 88 new = gmap_alloc(limit); in gmap_shadow() 89 if (!new) in gmap_shadow() 91 new->mm = parent->mm; in gmap_shadow() 92 new->parent = gmap_get(parent); in gmap_shadow() 93 new->private = parent->private; in gmap_shadow() 94 new->orig_asce = asce; in gmap_shadow() 95 new->edat_level = edat_level; in gmap_shadow() 96 new->initialized = false; in gmap_shadow() [all …]
|
/linux-6.14.4/scripts/include/ |
D | list.h | 58 * Insert a new entry between two known consecutive entries. 63 static inline void __list_add(struct list_head *new, in __list_add() argument 67 next->prev = new; in __list_add() 68 new->next = next; in __list_add() 69 new->prev = prev; in __list_add() 70 prev->next = new; in __list_add() 74 * list_add - add a new entry 75 * @new: new entry to be added 78 * Insert a new entry after the specified head. 81 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument [all …]
|
/linux-6.14.4/security/apparmor/ |
D | label.c | 62 struct aa_proxy *new; in aa_alloc_proxy() local 64 new = kzalloc(sizeof(struct aa_proxy), gfp); in aa_alloc_proxy() 65 if (new) { in aa_alloc_proxy() 66 kref_init(&new->count); in aa_alloc_proxy() 67 rcu_assign_pointer(new->label, aa_get_label(label)); in aa_alloc_proxy() 69 return new; in aa_alloc_proxy() 73 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect() argument 78 AA_BUG(!new); in __aa_proxy_redirect() 83 rcu_assign_pointer(orig->proxy->label, aa_get_label(new)); in __aa_proxy_redirect() 88 static void __proxy_share(struct aa_label *old, struct aa_label *new) in __proxy_share() argument [all …]
|
D | domain.c | 38 * to trace the new domain 456 * The new match isn't more specific in find_attach() 569 struct aa_label *new = NULL; in x_to_label() local 584 new = x_table_lookup(profile, xindex, lookupname); in x_to_label() 592 new = find_attach(bprm, ns, &profile->base.profiles, in x_to_label() 596 new = find_attach(bprm, ns, &ns->base.profiles, in x_to_label() 602 if (!new) { in x_to_label() 609 new = aa_get_newest_label(&profile->label); in x_to_label() 611 new = aa_get_newest_label(ns_unconfined(profile->ns)); in x_to_label() 616 if (new && stack) { in x_to_label() [all …]
|
/linux-6.14.4/scripts/dtc/ |
D | livetree.c | 15 struct label *new; in add_label() local 18 for_each_label_withdel(*labels, new) in add_label() 19 if (streq(new->label, label)) { in add_label() 20 new->deleted = 0; in add_label() 24 new = xmalloc(sizeof(*new)); in add_label() 25 memset(new, 0, sizeof(*new)); in add_label() 26 new->label = label; in add_label() 27 new->next = *labels; in add_label() 28 *labels = new; in add_label() 42 struct property *new = xmalloc(sizeof(*new)); in build_property() local [all …]
|
/linux-6.14.4/lib/ |
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; in errseq_set() local 81 /* Clear out error bits and set new error */ in errseq_set() 82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set() 86 new += ERRSEQ_CTR_INC; in errseq_set() 89 if (new == old) { in errseq_set() 90 cur = new; in errseq_set() [all …]
|