Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 2684) sorted by relevance

12345678910>>...108

/linux-6.15/kernel/
H A Dcred.c178 if (!new) in cred_alloc_blank()
185 return new; in cred_alloc_blank()
213 if (!new) in prepare_creds()
238 new->ucounts = get_ucounts(new->ucounts); in prepare_creds()
245 return new; in prepare_creds()
262 if (!new) in prepare_exec_creds()
275 new->suid = new->fsuid = new->euid; in prepare_exec_creds()
276 new->sgid = new->fsgid = new->egid; in prepare_exec_creds()
313 if (!new) in copy_creds()
588 if (!new) in prepare_kernel_cred()
[all …]
/linux-6.15/fs/nfsd/
H A Dauth.c25 struct cred *new; in nfsd_setuser() local
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()
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()
[all …]
/linux-6.15/arch/arm64/kvm/hyp/
H A Dexception.c127 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 …]
/linux-6.15/security/ipe/
H A Dpolicy.c101 if (IS_ERR(new)) in ipe_update_policy()
102 return PTR_ERR(new); in ipe_update_policy()
114 root->i_private = new; in ipe_update_policy()
133 ipe_free_policy(new); in ipe_update_policy()
160 new = kzalloc(sizeof(*new), GFP_KERNEL); in ipe_new_policy()
161 if (!new) in ipe_new_policy()
167 if (!new->pkcs7) { in ipe_new_policy()
190 new->textlen = textlen; in ipe_new_policy()
192 if (!new->text) { in ipe_new_policy()
202 return new; in ipe_new_policy()
[all …]
/linux-6.15/arch/s390/mm/
H A Dpageattr.c101 new = pte_wrprotect(new); in walk_pte_level()
103 new = pte_mkwrite_novma(pte_mkdirty(new)); in walk_pte_level()
111 new = __pte(pte_val(new) & PAGE_MASK); in walk_pte_level()
112 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()
244 new = pud_wrprotect(new); in modify_pud_page()
246 new = pud_mkwrite(pud_mkdirty(new)); in modify_pud_page()
254 new = __pud(pud_val(new) & PUD_MASK); in modify_pud_page()
[all …]
/linux-6.15/security/
H A Dcommoncap.c307 new->cap_ambient = cap_intersect(new->cap_ambient, in cap_capset()
952 new->euid = new->uid; in cap_bprm_creds_from_file()
953 new->egid = new->gid; in cap_bprm_creds_from_file()
959 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file()
960 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
970 new->cap_permitted = cap_combine(new->cap_permitted, new->cap_ambient); in cap_bprm_creds_from_file()
977 new->cap_effective = new->cap_permitted; in cap_bprm_creds_from_file()
979 new->cap_effective = new->cap_ambient; in cap_bprm_creds_from_file()
1139 new->cap_effective = new->cap_permitted; in cap_emulate_setxuid()
1274 if (!new) in cap_prctl_drop()
[all …]
/linux-6.15/arch/powerpc/include/asm/
H A Dcmpxchg.h50 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 …]
/linux-6.15/arch/x86/include/asm/
H A Dcmpxchg.h89 __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 …]
/linux-6.15/arch/s390/include/asm/
H A Dcmpxchg.h23 : [new] "d" (new) in __cs_asm()
33 : [new] "d" (new) in __csg_asm()
55 new32.b[i] = new; in __arch_cmpxchg1()
78 new32.b[i] = new; in __arch_cmpxchg2()
179 u32 mask, old, new; in __arch_xchg1() local
185 new = old & mask; in __arch_xchg1()
186 new |= x << shift; in __arch_xchg1()
194 u32 mask, old, new; in __arch_xchg2() local
200 new = old & mask; in __arch_xchg2()
246 : [new] "d" (new) in arch_cmpxchg128()
[all …]
/linux-6.15/arch/sparc/kernel/
H A Dftrace.c47 : [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 …]
/linux-6.15/security/keys/
H A Dprocess_keys.c228 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 …]
/linux-6.15/arch/s390/kvm/
H A Dgmap-vsie.c72 struct gmap *sg, *new; in gmap_shadow() local
88 new = gmap_alloc(limit); in gmap_shadow()
89 if (!new) in gmap_shadow()
91 new->mm = parent->mm; in gmap_shadow()
94 new->orig_asce = asce; in gmap_shadow()
102 gmap_free(new); in gmap_shadow()
124 return new; in gmap_shadow()
136 list_del(&new->list); in gmap_shadow()
137 gmap_free(new); in gmap_shadow()
138 new = ERR_PTR(rc); in gmap_shadow()
[all …]
/linux-6.15/fs/nfs/blocklayout/
H A Dextent_tree.c173 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 …]
/linux-6.15/fs/
H A Dsignalfd.c73 struct signalfd_siginfo new; in signalfd_copyinfo() local
80 memset(&new, 0, sizeof(new)); 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()
98 new.ssi_int = kinfo->si_int; in signalfd_copyinfo()
102 new.ssi_fd = kinfo->si_fd; in signalfd_copyinfo()
136 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo()
137 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo()
[all …]
/linux-6.15/drivers/mtd/
H A Dmtd_blkdevs.c322 kref_init(&new->ref); in add_mtd_blktrans_dev()
324 new->readonly = 1; in add_mtd_blktrans_dev()
327 new->tag_set = kzalloc(sizeof(*new->tag_set), GFP_KERNEL); in add_mtd_blktrans_dev()
328 if (!new->tag_set) in add_mtd_blktrans_dev()
343 gd = blk_mq_alloc_disk(new->tag_set, &lim, new); in add_mtd_blktrans_dev()
349 new->disk = gd; in add_mtd_blktrans_dev()
350 new->rq = new->disk->queue; in add_mtd_blktrans_dev()
377 gd->queue = new->rq; in add_mtd_blktrans_dev()
379 if (new->readonly) in add_mtd_blktrans_dev()
394 put_disk(new->disk); in add_mtd_blktrans_dev()
[all …]
/linux-6.15/lib/
H A Derrseq.c79 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 …]
/linux-6.15/arch/arm/kernel/
H A Dftrace.c99 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 …]
/linux-6.15/arch/sparc/include/asm/
H A Dcmpxchg_64.h11 __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 …]
/linux-6.15/fs/cachefiles/
H A Dsecurity.c18 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()
30 ret = set_security_override(new, cache->secid); 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()
96 abort_creds(new); in cachefiles_determine_cache_security()
[all …]
/linux-6.15/security/apparmor/
H A Dlabel.c65 if (new) { in aa_alloc_proxy()
69 return new; in aa_alloc_proxy()
435 if (!new) in aa_label_alloc()
603 if (new) in __label_remove()
699 new = &((*new)->rb_left); in __label_insert()
701 new = &((*new)->rb_right); in __label_insert()
877 if (!new) in vec_create_and_insert_label()
1071 new->size -= aa_vec_unique(&new->vec[0], new->size, in label_merge_insert()
1088 new->flags |= accum_vec_flags(new->vec, new->size); in label_merge_insert()
2051 new->size -= aa_vec_unique(&new->vec[0], new->size, in __label_update()
[all …]
H A Ddomain.c602 if (!new) { in x_to_label()
627 return new; in x_to_label()
666 if (new) { in profile_transition()
710 if (!new) in profile_transition()
733 return new; in profile_transition()
841 if (new) in handle_onexec()
1140 if (!new) { in change_hat()
1146 return new; in change_hat()
1477 if (!new) in aa_change_profile()
1487 if (new) { in aa_change_profile()
[all …]
H A Dtask.c50 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()
120 struct cred *new; in aa_set_current_hat() local
123 if (!new) in aa_set_current_hat()
135 abort_creds(new); in aa_set_current_hat()
144 commit_creds(new); in aa_set_current_hat()
160 struct cred *new; in aa_restore_previous_label() local
169 if (!new) in aa_restore_previous_label()
[all …]
/linux-6.15/mm/
H A Dpage_counter.c56 long new; in page_counter_cancel() local
61 new, nr_pages)) { in page_counter_cancel()
62 new = 0; in page_counter_cancel()
82 long new; in page_counter_charge() local
86 propagate_protected_usage(c, new); in page_counter_charge()
103 if (new > READ_ONCE(c->watermark)) in page_counter_charge()
104 WRITE_ONCE(c->watermark, new); in page_counter_charge()
127 long new; in page_counter_try_charge() local
143 if (new > c->max) { in page_counter_try_charge()
156 propagate_protected_usage(c, new); in page_counter_try_charge()
[all …]
/linux-6.15/drivers/net/phy/
H A Dqt2025.rs51 dev.write(C45::new(Mmd::PMAPMD, 0xc300), 0x0000)?; in probe()
53 dev.write(C45::new(Mmd::PMAPMD, 0xc302), 0x0004)?; in probe()
55 dev.write(C45::new(Mmd::PMAPMD, 0xc319), 0x0038)?; in probe()
57 dev.write(C45::new(Mmd::PMAPMD, 0xc31a), 0x0098)?; in probe()
61 dev.write(C45::new(Mmd::PCS, 0x0026), 0x0e00)?; in probe()
62 dev.write(C45::new(Mmd::PCS, 0x0027), 0x0893)?; in probe()
63 dev.write(C45::new(Mmd::PCS, 0x0028), 0xa528)?; in probe()
64 dev.write(C45::new(Mmd::PCS, 0x0029), 0x0003)?; in probe()
66 dev.write(C45::new(Mmd::PMAPMD, 0xa30a), 0x06e1)?; in probe()
70 dev.write(C45::new(Mmd::PCS, 0xe854), 0x00c0)?; in probe()
[all …]
/linux-6.15/arch/csky/include/asm/
H A Dcmpxchg.h11 #define __xchg_relaxed(new, ptr, size) \ argument
14 __typeof__(new) __new = (new); \
57 #define __cmpxchg_relaxed(ptr, old, new, size) \ argument
60 __typeof__(new) __new = (new); \
61 __typeof__(new) __tmp; \
90 #define __cmpxchg_acquire(ptr, old, new, size) \ argument
93 __typeof__(new) __new = (new); \
94 __typeof__(new) __tmp; \
124 #define __cmpxchg(ptr, old, new, size) \ argument
127 __typeof__(new) __new = (new); \
[all …]

12345678910>>...108