/linux-master/kernel/livepatch/ |
H A D | shadow.c | 3 * shadow.c - Shadow Variables 13 * The shadow variable API provides a simple relationship between an 15 * caller to provide any mutual exclusion required of the shadow data. 17 * Once a shadow variable is attached to its parent object via the 19 * call to klp_shadow_get() may then return the shadow variable's data 20 * pointer. Callers of klp_shadow_*alloc() should prepare shadow data 23 * The klp_shadow_*alloc() API calls may allocate memory for new shadow 42 * the shadow variables it references. 47 * struct klp_shadow - shadow variable structure 63 * klp_shadow_match() - verify a shadow variabl 70 klp_shadow_match(struct klp_shadow *shadow, void *obj, unsigned long id) argument 85 struct klp_shadow *shadow; local 234 klp_shadow_free_struct(struct klp_shadow *shadow, klp_shadow_dtor_t dtor) argument 255 struct klp_shadow *shadow; local 285 struct klp_shadow *shadow; local [all...] |
H A D | Makefile | 4 livepatch-objs := core.o patch.o shadow.o state.o transition.o
|
/linux-master/include/linux/ |
H A D | scx200_gpio.h | 13 #define __SCx200_GPIO_SHADOW unsigned long *shadow = scx200_gpio_shadow+bank 16 #define __SCx200_GPIO_OUT __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow)) 46 set_bit(index, shadow); /* __set_bit()? */ 57 clear_bit(index, shadow); /* __clear_bit()? */ 69 set_bit(index, shadow); 71 clear_bit(index, shadow); 81 change_bit(index, shadow);
|
/linux-master/samples/livepatch/ |
H A D | Makefile | 3 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-mod.o 4 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix1.o 5 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix2.o
|
/linux-master/drivers/scsi/ |
H A D | xen-scsifront.c | 121 struct vscsifrnt_shadow *shadow[VSCSIIF_MAX_REQS]; member in struct:vscsifrnt_info 163 info->shadow[id] = NULL; 182 struct vscsifrnt_shadow *shadow) 186 struct scsi_cmnd *sc = shadow->sc; 197 info->shadow[id] = shadow; 198 shadow->rqid = id; 204 ring_req->act = shadow->act; 205 ring_req->ref_rqid = shadow->ref_rqid; 206 ring_req->nr_segments = shadow 181 scsifront_do_request(struct vscsifrnt_info *info, struct vscsifrnt_shadow *shadow) argument 239 scsifront_gnttab_done(struct vscsifrnt_info *info, struct vscsifrnt_shadow *shadow) argument 302 struct vscsifrnt_shadow *shadow; local 336 struct vscsifrnt_shadow *shadow = info->shadow[id]; local 367 struct vscsifrnt_shadow *shadow; local 470 map_data_for_request(struct vscsifrnt_info *info, struct scsi_cmnd *sc, struct vscsifrnt_shadow *shadow) argument 610 struct vscsifrnt_shadow *shadow = scsi_cmd_priv(sc); local 666 struct vscsifrnt_shadow *shadow, *s = scsi_cmd_priv(sc); local [all...] |
/linux-master/mm/kasan/ |
H A D | report_sw_tags.c | 51 u8 *shadow; local 62 shadow = (u8 *)kasan_mem_to_shadow(object); 64 if (*shadow != KASAN_TAG_INVALID) 68 shadow++; 81 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr); local 83 pr_err("Pointer tag: [%02x], memory tag: [%02x]\n", addr_tag, *shadow);
|
H A D | sw_tags.c | 77 u8 *shadow_first, *shadow_last, *shadow; local 113 for (shadow = shadow_first; shadow <= shadow_last; shadow++) { 114 if (*shadow != tag) {
|
H A D | report_generic.c | 49 u8 *shadow; local 60 shadow = (u8 *)kasan_mem_to_shadow(object); 62 if (*shadow == 0) 64 else if (*shadow >= 1 && *shadow <= KASAN_GRANULE_SIZE - 1) 65 return size + *shadow; 68 shadow++; 82 * If shadow byte value is in [0, KASAN_GRANULE_SIZE) we can look 83 * at the next shadow byte to determine the type of the bad access. 91 * In theory it's still possible to see these shadow value [all...] |
H A D | Makefile | 51 obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o report_generic.o shadow.o quarantine.o 53 obj-$(CONFIG_KASAN_SW_TAGS) += init.o report_sw_tags.o shadow.o sw_tags.o tags.o report_tags.o
|
/linux-master/drivers/gpio/ |
H A D | gpio-mm-lantiq.c | 31 u16 shadow; /* shadow the latches state */ member in struct:ltq_mm 35 * ltq_mm_apply() - write the shadow value to the ebu address. 38 * Write the shadow value to the EBU to set the gpios. We need to set the 47 __raw_writew(chip->shadow, chip->mmchip.regs); 58 * Set the shadow value and call ltq_mm_apply. 65 chip->shadow |= (1 << offset); 67 chip->shadow &= ~(1 << offset); 104 u32 shadow; local 117 /* store the shadow valu [all...] |
H A D | gpio-janz-ttl.c | 60 u8 *shadow; local 64 shadow = &mod->porta_shadow; 66 shadow = &mod->portb_shadow; 69 shadow = &mod->portc_shadow; 74 ret = *shadow & BIT(offset); 83 u8 *shadow; local 87 shadow = &mod->porta_shadow; 90 shadow = &mod->portb_shadow; 94 shadow = &mod->portc_shadow; 100 *shadow | [all...] |
H A D | gpio-stp-xway.c | 84 u32 shadow; /* shadow the shift registers state */ member in struct:xway_stp 99 * Gets the shadow value. 114 * Set the shadow value and call ltq_ebu_apply. 121 chip->shadow |= BIT(gpio); 123 chip->shadow &= ~BIT(gpio); 124 xway_stp_w32(chip->virt, chip->shadow, XWAY_STP_CPU0); 235 u32 shadow, groups, dsl, phy; local 257 /* store the shadow value if one was passed by the devicetree */ 258 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,shadow", [all...] |
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_cmd_parser.h | 22 struct i915_vma *shadow,
|
/linux-master/tools/testing/selftests/livepatch/ |
H A D | Makefile | 9 test-shadow-vars.sh \
|
/linux-master/mm/kmsan/ |
H A D | init.c | 67 * Initialize the shadow for existing mappings during kernel initialization. 83 /* Allocate shadow for .data */ 97 struct page *shadow, *origin; member in struct:metadata_page_pair 106 * time with a certain order, it is reserved as a shadow block, for the second 108 * shadow and origin ranges from the previously saved shadow and origin blocks, 116 struct page *shadow, *origin; local 118 if (!held_back[order].shadow) { 119 held_back[order].shadow = page; 126 shadow 168 struct page *page, *shadow, *origin; local [all...] |
H A D | shadow.c | 3 * KMSAN shadow implementation. 85 void *shadow; local 97 shadow = kmsan_get_metadata(address, KMSAN_META_SHADOW); 98 if (!shadow) 101 ret.shadow = shadow; 108 ret.shadow = dummy_store_page; 112 ret.shadow = dummy_load_page; 119 * Obtain the shadow or origin pointer for the given address, or NULL if there's 175 struct page *shadow, *origi local 280 void *shadow, *origin; local 304 kmsan_setup_meta(struct page *page, struct page *shadow, struct page *origin, int order) argument [all...] |
H A D | instrumentation.c | 47 /* Get shadow and origin pointers for a memory load with non-standard size. */ 57 /* Get shadow and origin pointers for a memory store with non-standard size. */ 68 * Declare functions that obtain shadow/origin pointers for loads and stores 134 * get_param0_metadata() and set_retval_metadata() to store the shadow/origin 138 static inline void get_param0_metadata(u64 *shadow, argument 143 *shadow = *(u64 *)(ctx->cstate.param_tls); 147 static inline void set_retval_metadata(u64 shadow, depot_stack_handle_t origin) argument 151 *(u64 *)(ctx->cstate.retval_tls) = shadow; 161 u64 shadow; local 163 get_param0_metadata(&shadow, 186 u64 shadow; local 213 u64 shadow; local [all...] |
H A D | hooks.c | 147 * This function creates new shadow/origin pages for the physical pages mapped 148 * into the virtual memory. If those physical pages already had shadow/origin, 156 struct page *shadow, *origin; local 166 shadow = alloc_pages(gfp_mask, 1); 168 if (!shadow || !origin) { 174 vmalloc_shadow(start + off + PAGE_SIZE), prot, &shadow, 180 shadow = NULL; 200 * Something went wrong. Clean up shadow/origin pages allocated 204 if (shadow) 205 __free_pages(shadow, 224 struct page *shadow, *origin; local [all...] |
/linux-master/fs/nilfs2/ |
H A D | mdt.c | 474 struct nilfs_shadow_map *shadow = mdi->mi_shadow; local 479 if (shadow) { 480 struct inode *s_inode = shadow->inode; 482 shadow->inode = NULL; 511 * nilfs_mdt_setup_shadow_map - setup shadow map and bind it to metadata file 513 * @shadow: shadow mapping 516 struct nilfs_shadow_map *shadow) 521 INIT_LIST_HEAD(&shadow->frozen_buffers); 527 shadow 515 nilfs_mdt_setup_shadow_map(struct inode *inode, struct nilfs_shadow_map *shadow) argument 540 struct nilfs_shadow_map *shadow = mi->mi_shadow; local 560 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; local 594 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; local 613 nilfs_release_frozen_buffers(struct nilfs_shadow_map *shadow) argument 634 struct nilfs_shadow_map *shadow = mi->mi_shadow; local 660 struct nilfs_shadow_map *shadow = mi->mi_shadow; local [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | mce.h | 26 unsigned long shadow[8]; /* Shadow reg. 8-14, 25 */ member in struct:el_common_EV5_uncorrectable_mcheck
|
/linux-master/mm/ |
H A D | workingset.c | 177 * slot of the evicted page. This is called a shadow entry. 179 * On cache misses for which there are shadow entries, an eligible 210 static void unpack_shadow(void *shadow, int *memcgidp, pg_data_t **pgdat, argument 213 unsigned long entry = xa_to_value(shadow); 260 * Tests if the shadow entry is for a folio that was recently evicted. 261 * Fills in @lruvec, @token, @workingset with the values unpacked from shadow. 263 static bool lru_gen_test_recent(void *shadow, bool file, struct lruvec **lruvec, argument 271 unpack_shadow(shadow, &memcg_id, &pgdat, token, workingset); 280 static void lru_gen_refault(struct folio *folio, void *shadow) argument 293 recent = lru_gen_test_recent(shadow, typ 334 lru_gen_test_recent(void *shadow, bool file, struct lruvec **lruvec, unsigned long *token, bool *workingset) argument 340 lru_gen_refault(struct folio *folio, void *shadow) argument 418 workingset_test_recent(void *shadow, bool file, bool *workingset) argument 530 workingset_refault(struct folio *folio, void *shadow) argument [all...] |
/linux-master/drivers/block/ |
H A D | xen-blkfront.c | 190 struct blk_shadow shadow[]; member in struct:blkfront_ring_info 291 rinfo->shadow_free = rinfo->shadow[free].req.u.rw.id; 292 rinfo->shadow[free].req.u.rw.id = 0x0fffffee; /* debug */ 299 if (rinfo->shadow[id].req.u.rw.id != id) 301 if (rinfo->shadow[id].request == NULL) 303 rinfo->shadow[id].req.u.rw.id = rinfo->shadow_free; 304 rinfo->shadow[id].request = NULL; 543 rinfo->shadow[id].request = req; 544 rinfo->shadow[id].status = REQ_PROCESSING; 545 rinfo->shadow[i 611 struct blk_shadow *shadow = &rinfo->shadow[setup->id]; local 2074 struct blk_shadow *shadow = rinfo->shadow; local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vm_sdma.c | 44 if (table->shadow) 45 r = amdgpu_ttm_alloc_gart(&table->shadow->tbo); 267 if (vmbo->shadow) 268 amdgpu_vm_sdma_set_ptes(p, vmbo->shadow, pe, addr, 277 (vmbo->shadow ? 2 : 1); 292 if (vmbo->shadow) 293 amdgpu_vm_sdma_copy_ptes(p, vmbo->shadow, pe, nptes);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | itd1000_priv.h | 20 u8 shadow[256]; member in struct:itd1000_state
|
/linux-master/arch/s390/kvm/ |
H A D | trace-s390.h | 340 TP_PROTO(unsigned long start, unsigned long end, unsigned int shadow), 341 TP_ARGS(start, end, shadow), 346 __field(unsigned int, shadow) 352 __entry->shadow = shadow; 355 TP_printk("gmap notified (start:0x%lx end:0x%lx shadow:%d)", 356 __entry->start, __entry->end, __entry->shadow)
|