| /linux/tools/testing/selftests/filesystems/umount_propagation/ |
| H A D | umount_propagation_test.c | 79 char victim[80]; in FIXTURE() local 99 snprintf(self->victim, sizeof(self->victim), "%s/victim", self->base); in FIXTURE_SETUP() 100 ASSERT_EQ(mkdir(self->victim, 0755), 0); in FIXTURE_SETUP() 101 ASSERT_EQ(mount("tmpfs", self->victim, "tmpfs", 0, NULL), 0); in FIXTURE_SETUP() 151 static int slave_child(const char *base, const char *victim, int to_parent, in slave_child() argument 166 if (sys_move_mount(fd, "", AT_FDCWD, victim, in slave_child() 200 _exit(slave_child(self->base, self->victim, to_parent[1], in TEST_F() 209 ASSERT_EQ(umount2(self->victim, 0), -1); in TEST_F() 218 ASSERT_EQ(umount2(self->victim, 0), 0); in TEST_F()
|
| /linux/drivers/usb/core/ |
| H A D | urb.c | 822 struct urb *victim; in usb_kill_anchored_urbs() 828 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs() 831 usb_get_urb(victim); in usb_kill_anchored_urbs() 834 usb_kill_urb(victim); in usb_kill_anchored_urbs() 835 usb_put_urb(victim); in usb_kill_anchored_urbs() 860 struct urb *victim; in usb_poison_anchored_urbs() 867 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs() 870 usb_get_urb(victim); in usb_poison_anchored_urbs() 873 usb_poison_urb(victim); in usb_poison_anchored_urbs() 874 usb_put_urb(victim); in usb_poison_anchored_urbs() 814 struct urb *victim; usb_kill_anchored_urbs() local 852 struct urb *victim; usb_poison_anchored_urbs() local 962 struct urb *victim; usb_get_from_anchor() local 989 struct urb *victim; usb_scuttle_anchored_urbs() local [all...] |
| /linux/fs/cachefiles/ |
| H A D | namei.c | 708 struct dentry *victim; in cachefiles_lookup_for_cull() local 711 victim = start_removing(&nop_mnt_idmap, dir, &QSTR(filename)); in cachefiles_lookup_for_cull() 713 if (IS_ERR(victim)) in cachefiles_lookup_for_cull() 715 if (d_inode(victim)->i_flags & S_KERNEL_FILE) in cachefiles_lookup_for_cull() 717 return victim; in cachefiles_lookup_for_cull() 721 end_removing(victim); in cachefiles_lookup_for_cull() 725 ret = PTR_ERR(victim); in cachefiles_lookup_for_cull() 746 struct dentry *victim; in cachefiles_cull() local 752 victim = cachefiles_lookup_for_cull(cache, dir, filename); in cachefiles_cull() 753 if (IS_ERR(victim)) in cachefiles_cull() [all …]
|
| /linux/arch/powerpc/kvm/ |
| H A D | trace.h | 49 TP_PROTO(unsigned int victim, unsigned int tid, unsigned int word0, 51 TP_ARGS(victim, tid, word0, word1, word2), 54 __field( unsigned int, victim ) 62 __entry->victim = victim; 70 __entry->victim, __entry->tid, __entry->word0,
|
| H A D | e500_mmu.c | 39 unsigned int victim; in gtlb0_get_next_victim() local 41 victim = vcpu_e500->gtlb_nv[0]++; in gtlb0_get_next_victim() 45 return victim; in gtlb0_get_next_victim() 130 unsigned int victim, tsized; in kvmppc_e500_deliver_tlb_miss() local 135 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_deliver_tlb_miss() 138 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim) in kvmppc_e500_deliver_tlb_miss() 366 int victim; in kvmppc_e500_emul_tlbsx() local 370 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_emul_tlbsx() 373 | MAS0_ESEL(victim) in kvmppc_e500_emul_tlbsx()
|
| /linux/arch/powerpc/platforms/cell/spufs/ |
| H A D | sched.c | 613 struct spu_context *victim = NULL; in find_victim() local 639 (!victim || tmp->prio > victim->prio)) { in find_victim() 640 victim = spu->ctx; in find_victim() 643 if (victim) in find_victim() 644 get_spu_context(victim); in find_victim() 647 if (victim) { in find_victim() 658 if (!mutex_trylock(&victim->state_mutex)) { in find_victim() 659 put_spu_context(victim); in find_victim() 660 victim = NULL; in find_victim() 664 spu = victim->spu; in find_victim() [all …]
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | kernfs_test.c | 873 char victim[PATH_MAX], procs[PATH_MAX]; in TEST_F() local 878 snprintf(victim, sizeof(victim), "%s/fh", self->scratch); in TEST_F() 879 snprintf(procs, sizeof(procs), "%s/cgroup.procs", victim); in TEST_F() 880 ASSERT_EQ(mkdir(victim, 0755), 0); in TEST_F() 890 rmdir(victim); in TEST_F() 898 rmdir(victim); in TEST_F() 908 ASSERT_EQ(rmdir(victim), 0); in TEST_F() 946 char victim[PATH_MAX], procs[PATH_MAX]; in TEST_F() local 952 snprintf(victim, sizeof(victim), "%s/fh%d", self->scratch, in TEST_F() 954 snprintf(procs, sizeof(procs), "%s/cgroup.procs", victim); in TEST_F() [all …]
|
| /linux/tools/lib/ |
| H A D | rbtree.c | 545 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument 548 struct rb_node *parent = rb_parent(victim); in rb_replace_node() 550 /* Copy the pointers/colour from the victim to the replacement */ in rb_replace_node() 551 *new = *victim; in rb_replace_node() 554 if (victim->rb_left) in rb_replace_node() 555 rb_set_parent(victim->rb_left, new); in rb_replace_node() 556 if (victim->rb_right) in rb_replace_node() 557 rb_set_parent(victim->rb_right, new); in rb_replace_node() 558 __rb_change_child(victim, new, parent, root); in rb_replace_node()
|
| /linux/kernel/ |
| H A D | audit_tree.c | 588 static void prune_tree_chunks(struct audit_tree *victim, bool tagged) in prune_tree_chunks() 591 while (!list_empty(&victim->chunks)) { in prune_tree_chunks() 596 p = list_first_entry(&victim->chunks, struct audit_node, list); in prune_tree_chunks() 620 static void prune_one(struct audit_tree *victim) in prune_one() 622 prune_tree_chunks(victim, false); in prune_one() 623 put_tree(victim); in prune_one() 788 struct audit_tree *victim; in prune_tree_thread() 790 victim = list_entry(prune_list.next, in prune_tree_thread() 792 list_del_init(&victim->list); in prune_tree_thread() 796 prune_one(victim); in prune_tree_thread() 587 prune_tree_chunks(struct audit_tree * victim,bool tagged) prune_tree_chunks() argument 619 prune_one(struct audit_tree * victim) prune_one() argument 787 struct audit_tree *victim; prune_tree_thread() local 1003 struct audit_tree *victim; audit_kill_trees() local [all...] |
| /linux/drivers/mmc/core/ |
| H A D | sdio_cis.c | 384 struct sdio_func_tuple *tuple, *victim; in sdio_free_common_cis() 389 victim = tuple; in sdio_free_common_cis() 391 kfree(victim); in sdio_free_common_cis() 419 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() 424 victim = tuple; in sdio_free_func_cis() 426 kfree(victim); in sdio_free_func_cis() 385 struct sdio_func_tuple *tuple, *victim; sdio_free_common_cis() local 420 struct sdio_func_tuple *tuple, *victim; sdio_free_func_cis() local
|
| /linux/init/ |
| H A D | initramfs.c | 237 static __initdata char *victim; variable 243 victim += n; in eat() 255 collected = victim; in read_into() 279 memcpy(collect, victim, n); in do_collect() 336 while (byte_count && *victim == '\0') in do_reset() 427 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy() 438 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy() 478 victim = buf; in write_buffer()
|
| /linux/fs/ |
| H A D | pnode.c | 430 static struct mount *next_candidate(struct mount *m, struct mount *victim) in next_candidate() argument 432 if (!receives_from(m, victim->mnt_parent)) in next_candidate() 434 return __lookup_mnt(&m->mnt, victim->mnt_mountpoint); in next_candidate() 454 static bool chain_busy(struct mount *c, struct mount *victim) in chain_busy() argument 461 next = next_candidate(m, victim); in chain_busy() 463 if (n != next && n != victim) { in chain_busy() 474 next = next_candidate(m, victim); in chain_busy() 476 if (n != next && n != m->overmount && n != victim) { in chain_busy()
|
| H A D | dcache.c | 1315 static inline void shrink_kill(struct dentry *victim) in dentry_lru_isolate() 1317 while ((victim = dentry_kill(victim)) != NULL) in dentry_lru_isolate() 1683 struct dentry *victim; in select_collect_umount() 1740 data->victim = dentry; in shrink_dcache_tree() 1781 data.victim = NULL; in shrink_dcache_parent() 1783 if (data.victim) { in shrink_dcache_parent() 1784 struct dentry *v = data.victim; in shrink_dcache_parent() 1902 struct dentry **victim = _data; in d_invalidate() 1904 *victim in d_invalidate() 1287 shrink_kill(struct dentry * victim) shrink_kill() argument 1650 struct dentry *victim; global() member 1864 struct dentry **victim = _data; find_submount() local 1893 struct dentry *victim = NULL; d_invalidate() local [all...] |
| H A D | libfs.c | 574 struct dentry *victim = NULL, *child; 580 while ((child = find_next_child(this, victim)) == NULL) { in find_next_child() 586 victim = this; in find_next_child() 589 if (!locked || victim != dentry) in find_next_child() 591 if (simple_positive(victim)) { in find_next_child() 592 d_invalidate(victim); // avoid lost mounts in find_next_child() 594 callback(victim); in find_next_child() 595 fsnotify_delete(inode, d_inode(victim), victim); 596 d_make_discardable(victim); 603 struct dentry *victim = NULL, *child; __simple_recursive_removal() local [all...] |
| /linux/tools/include/linux/ |
| H A D | rbtree.h | 63 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new, 146 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument 150 if (root->rb_leftmost == victim) in rb_replace_node_cached() 152 rb_replace_node(victim, new, &root->rb_root); in rb_replace_node_cached()
|
| /linux/security/ |
| H A D | inode.c | 277 static void remove_one(struct dentry *victim) in remove_one() argument 279 if (victim->d_parent == victim->d_sb->s_root) in remove_one()
|
| /linux/fs/btrfs/ |
| H A D | zstd.c | 125 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local 129 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn() 133 if (victim->req_level) in zstd_reclaim_timer_fn() 136 level = victim->level; in zstd_reclaim_timer_fn() 137 list_del(&victim->lru_list); in zstd_reclaim_timer_fn() 138 list_del(&victim->list); in zstd_reclaim_timer_fn() 139 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
|
| /linux/fs/erofs/ |
| H A D | decompressor.c | 53 struct page *page, *victim; in z_erofs_oneshot_prepare_dstpages() local 69 victim = __erofs_allocpage(pagepool, rq->gfp, true); in z_erofs_oneshot_prepare_dstpages() 70 if (!victim) in z_erofs_oneshot_prepare_dstpages() 72 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_oneshot_prepare_dstpages() 73 rq->out[i] = victim; in z_erofs_oneshot_prepare_dstpages()
|
| /linux/include/linux/ |
| H A D | btree-128.h | 78 struct btree_head128 *victim, in btree_merge128() argument 81 return btree_merge(&target->h, &victim->h, &btree_geo128, gfp); in btree_merge128()
|
| H A D | btree-type.h | 31 BTREE_TYPE_HEAD *victim, in BTREE_FN() 34 return btree_merge(&target->h, &victim->h, BTREE_TYPE_GEO, gfp); in BTREE_FN()
|
| /linux/lib/ |
| H A D | btree.c | 634 int btree_merge(struct btree_head *target, struct btree_head *victim, in btree_merge() argument 642 BUG_ON(target == victim); in btree_merge() 646 target->node = victim->node; in btree_merge() 647 target->height = victim->height; in btree_merge() 648 __btree_init(victim); in btree_merge() 656 val = btree_last(victim, geo, key); in btree_merge() 665 btree_remove(victim, geo, dup); in btree_merge()
|
| /linux/security/selinux/ss/ |
| H A D | sidtab.c | 566 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local 589 victim = container_of(s->cache_lru_list.prev, in sidtab_sid2str_put() 591 list_del(&victim->lru_member); in sidtab_sid2str_put() 592 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put() 605 kfree_rcu(victim, rcu_member); in sidtab_sid2str_put()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_storage.c | 62 int BPF_PROG(unlink_hook, struct inode *dir, struct dentry *victim) in BPF_PROG() argument 83 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()
|
| /linux/drivers/mtd/ubi/ |
| H A D | fastmap-wl.c | 29 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry() local 34 victim = e; in find_anchor_wl_entry() 39 return victim; in find_anchor_wl_entry()
|
| /linux/Documentation/admin-guide/hw-vuln/ |
| H A D | core-scheduling.rst | 16 A cross-HT attack involves the attacker and victim running on different Hyper 135 HT1 (attack) HT2 (victim) 142 (victim) to enter idle mode. This is because the sending of the IPI would bring 177 IPI. Even though cache is flushed on entry to user mode, victim tasks on siblings 195 guest or host victim. This is because the guest attacker can craft invalid
|