/Linux-v6.6/Documentation/admin-guide/device-mapper/ |
D | snapshot.rst | 12 - To merge a snapshot of a block device back into the snapshot's origin 20 the origin device. 24 snapshot, snapshot-origin, and snapshot-merge. 26 - snapshot-origin <origin> 34 - snapshot <origin> <COW device> <persistent?> <chunksize> 37 A snapshot of the <origin> block device is created. Changed chunks of 40 from <origin> for unchanged data. <COW device> will often be 41 smaller than the origin and if it fills up the snapshot will become 55 snapshot-origin or snapshot-merge target must be suspended. A failure to 56 suspend the origin target could result in data corruption. [all …]
|
D | cache.rst | 39 The origin device always contains a copy of the logical block, which 52 1. An origin device - the big, slow one. 66 The origin is divided up into blocks of a fixed size. This block size 89 complete until it has hit both the origin and cache devices. Clean 93 to be coherent with the origin device, then all reads are served from 94 the origin device (all reads miss the cache) and all writes are 95 forwarded to the origin device; additionally, write hits cause cache 121 Migrating data between the origin and cache device uses bandwidth. 170 state for all of the origin device (compare with the dirty bitset 181 cache <metadata dev> <cache dev> <origin dev> <block size> [all …]
|
D | thin-provisioning.rst | 186 N.B. If the origin device that you wish to snapshot is active, you 197 identifier for the origin device. 202 between the origin and the snapshot. Indeed the snapshot is no 216 You can use an external **read only** device as an origin for a 218 thin device will be passed through to the origin. Writes trigger 225 You must not write to the origin device if you use this technique! 232 You don't mention the origin at this stage. 240 Append an extra parameter to the thin target specifying the origin:: 245 same extra origin parameter. 364 create_snap <dev id> <origin id> [all …]
|
/Linux-v6.6/mm/kmsan/ |
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 139 depot_stack_handle_t *origin) in get_param0_metadata() argument 144 *origin = ctx->cstate.param_origin_tls[0]; in get_param0_metadata() 147 static inline void set_retval_metadata(u64 shadow, depot_stack_handle_t origin) in set_retval_metadata() argument 152 ctx->cstate.retval_origin_tls = origin; in set_retval_metadata() 159 depot_stack_handle_t origin; in __msan_memmove() local 163 get_param0_metadata(&shadow, &origin); in __msan_memmove() [all …]
|
D | init.c | 97 struct page *shadow, *origin; member 107 * time - as an origin block. On the third time the incoming block receives its 108 * shadow and origin ranges from the previously saved shadow and origin blocks, 116 struct page *shadow, *origin; in kmsan_memblock_free_pages() local 122 if (!held_back[order].origin) { in kmsan_memblock_free_pages() 123 held_back[order].origin = page; in kmsan_memblock_free_pages() 127 origin = held_back[order].origin; in kmsan_memblock_free_pages() 128 kmsan_setup_meta(page, shadow, origin, order); in kmsan_memblock_free_pages() 131 held_back[order].origin = NULL; in kmsan_memblock_free_pages() 168 struct page *page, *shadow, *origin; in do_collection() local [all …]
|
D | core.c | 153 * Overwrite the origin only if the corresponding in kmsan_internal_memmove_metadata() 162 * origin value. in kmsan_internal_memmove_metadata() 174 * dst_slots == src_slots + 1), there is an extra origin slot at the in kmsan_internal_memmove_metadata() 176 * origin from the previous slot. in kmsan_internal_memmove_metadata() 182 * these two origins are copied to three origin slots, so one of then in kmsan_internal_memmove_metadata() 186 * src origin: |o111|o222|....| in kmsan_internal_memmove_metadata() 190 * dst origin: |....|o111|o222| - fill the empty slot with o111 in kmsan_internal_memmove_metadata() 193 * dst origin: |o111|o222|....| - fill the empty slot with o222 in kmsan_internal_memmove_metadata() 238 * are copied around many times. Origin chains for such structures are in kmsan_internal_chain_origin() 262 u32 origin, bool checked) in kmsan_internal_set_shadow_origin() argument [all …]
|
D | shadow.c | 102 ret.origin = kmsan_get_metadata(address, KMSAN_META_ORIGIN); in kmsan_get_shadow_origin_ptr() 109 ret.origin = dummy_store_page; in kmsan_get_shadow_origin_ptr() 113 ret.origin = dummy_load_page; in kmsan_get_shadow_origin_ptr() 119 * Obtain the shadow or origin pointer for the given address, or NULL if there's 175 struct page *shadow, *origin; in kmsan_alloc_page() local 183 origin = origin_page_for(page); in kmsan_alloc_page() 187 __memset(page_address(origin), 0, PAGE_SIZE * pages); in kmsan_alloc_page() 201 * to just fill the origin pages with @handle. in kmsan_alloc_page() 204 ((depot_stack_handle_t *)page_address(origin))[i] = handle; in kmsan_alloc_page() 280 void *shadow, *origin; in kmsan_init_alloc_meta_for_range() local [all …]
|
D | report.c | 84 void kmsan_print_origin(depot_stack_handle_t origin) in kmsan_print_origin() argument 94 if (!origin) in kmsan_print_origin() 98 nr_entries = stack_depot_fetch(origin, &entries); in kmsan_print_origin() 99 depth = kmsan_depth_from_eb(stack_depot_get_extra_bits(origin)); in kmsan_print_origin() 115 * Origin chains deeper than KMSAN_MAX_ORIGIN_DEPTH are in kmsan_print_origin() 121 origin = entries[2]; in kmsan_print_origin() 148 void kmsan_report(depot_stack_handle_t origin, void *address, int size, in kmsan_report() argument 162 if (!origin) in kmsan_report() 169 is_uaf = kmsan_uaf_from_eb(stack_depot_get_extra_bits(origin)); in kmsan_report() 194 kmsan_print_origin(origin); in kmsan_report()
|
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; in kmsan_ioremap_page_range() local 167 origin = alloc_pages(gfp_mask, 1); in kmsan_ioremap_page_range() 168 if (!shadow || !origin) { in kmsan_ioremap_page_range() 183 vmalloc_origin(start + off + PAGE_SIZE), prot, &origin, in kmsan_ioremap_page_range() 192 origin = NULL; in kmsan_ioremap_page_range() 200 * Something went wrong. Clean up shadow/origin pages allocated in kmsan_ioremap_page_range() 206 if (origin) in kmsan_ioremap_page_range() 207 __free_pages(origin, 1); in kmsan_ioremap_page_range() [all …]
|
D | kmsan.h | 64 void *shadow, *origin; member 78 void kmsan_print_origin(depot_stack_handle_t origin); 82 * @origin: Stack ID of the uninitialized value. 92 * sharing the same origin. If an uninitialized value is used in a comparison, 96 * @off_last corresponding to different @origin values. 98 void kmsan_report(depot_stack_handle_t origin, void *address, int size, 152 * Pack and unpack the origin chain depth and UAF flag to/from the extra bits 183 u32 origin, bool checked); 194 struct page *origin, int order);
|
/Linux-v6.6/Documentation/dev-tools/ |
D | kmsan.rst | 95 incorrect shadow/origin values, likely leading to false positives. Functions 160 Origin tracking 163 Every four bytes of kernel memory also have a so-called origin mapped to them. 164 This origin describes the point in program execution at which the uninitialized 165 value was created. Every origin is associated with either the full allocation 169 When an uninitialized variable is allocated on stack or heap, a new origin 170 value is created, and that variable's origin is filled with that value. When a 171 value is read from memory, its origin is also read and kept together with the 172 shadow. For every instruction that takes one or more values, the origin of the 174 If a poisoned value is written into memory, its origin is written to the [all …]
|
/Linux-v6.6/fs/overlayfs/ |
D | namei.c | 74 * A non-dir origin may be disconnected, which is fine, because in ovl_acceptable() 92 * Return -ENODATA for "origin unknown". 103 /* Treat larger version and unknown flags as "origin unknown" */ in ovl_check_fb_len() 107 /* Treat endianness mismatch as "origin unknown" */ in ovl_check_fb_len() 127 /* Zero size value means "copied up but origin unknown" */ in ovl_get_fh() 153 pr_warn_ratelimited("failed to get origin (%i)\n", res); in ovl_get_fh() 156 pr_warn_ratelimited("invalid origin (%*phN)\n", res, fh); in ovl_get_fh() 185 * Treat stale file handle to lower file as "origin unknown". in ovl_decode_real_fh() 418 struct dentry *origin = NULL; in ovl_check_origin_fh() local 430 origin = ovl_decode_real_fh(ofs, fh, ofs->layers[i].mnt, in ovl_check_origin_fh() [all …]
|
D | export.c | 99 * have the same uppermost lower layer as the origin's layer. We may need to 103 * Return the connected origin layer or < 0 on error. 120 /* Find the topmost origin layer connectable ancestor of @dentry */ in ovl_connect_layer() 130 * If @parent is not origin layer connectable, then copy up in ovl_connect_layer() 131 * @next which is origin layer connectable and we are done. in ovl_connect_layer() 157 * We only need to encode origin if there is a chance that the same object was 212 * Decoding a merge dir, whose origin's ancestor is under a redirected in ovl_check_encode_origin() 214 * ovl_connect_layer() will try to make origin's layer "connected" by in ovl_check_encode_origin() 465 * For decoded lower dir file handle, lookup index by origin to check in ovl_lookup_real_inode() 714 struct ovl_path origin = { }; in ovl_lower_fh_to_d() local [all …]
|
/Linux-v6.6/drivers/md/ |
D | dm-snap.c | 52 struct dm_dev *origin; member 57 /* List of snapshots per Origin */ 73 /* Origin writes don't trigger exceptions until this is set */ 128 * => use the origin; forget about the snapshot. 131 * (We can't use the intermediate origin state.) 174 return s->origin; in dm_snap_origin() 203 * Origin buffers waiting for this to complete are held 234 * Hash table mapping origin volumes to lists of snapshots and 312 * One of these per registered origin, held in the snapshot_origins hash 314 struct origin { struct [all …]
|
/Linux-v6.6/drivers/gpu/drm/i915/display/ |
D | intel_frontbuffer.h | 81 enum fb_op_origin origin, 87 * @origin: which operation caused the invalidation 96 enum fb_op_origin origin) in intel_frontbuffer_invalidate() argument 107 __intel_fb_invalidate(front, origin, frontbuffer_bits); in intel_frontbuffer_invalidate() 112 enum fb_op_origin origin, 118 * @origin: which operation caused the flush 124 enum fb_op_origin origin) in intel_frontbuffer_flush() argument 135 __intel_fb_flush(front, origin, frontbuffer_bits); in intel_frontbuffer_flush()
|
D | intel_frontbuffer.c | 71 * @origin: which operation caused the flush 81 enum fb_op_origin origin) in frontbuffer_flush() argument 91 trace_intel_frontbuffer_flush(i915, frontbuffer_bits, origin); in frontbuffer_flush() 95 intel_psr_flush(i915, frontbuffer_bits, origin); in frontbuffer_flush() 96 intel_fbc_flush(i915, frontbuffer_bits, origin); in frontbuffer_flush() 167 enum fb_op_origin origin, in __intel_fb_invalidate() argument 172 if (origin == ORIGIN_CS) { in __intel_fb_invalidate() 179 trace_intel_frontbuffer_invalidate(i915, frontbuffer_bits, origin); in __intel_fb_invalidate() 182 intel_psr_invalidate(i915, frontbuffer_bits, origin); in __intel_fb_invalidate() 184 intel_fbc_invalidate(i915, frontbuffer_bits, origin); in __intel_fb_invalidate() [all …]
|
D | intel_display_trace.h | 606 unsigned int frontbuffer_bits, unsigned int origin), 607 TP_ARGS(i915, frontbuffer_bits, origin), 612 __field(unsigned int, origin) 618 __entry->origin = origin; 621 TP_printk("dev %s, frontbuffer_bits=0x%08x, origin=%u", 622 __get_str(dev), __entry->frontbuffer_bits, __entry->origin) 627 unsigned int frontbuffer_bits, unsigned int origin), 628 TP_ARGS(i915, frontbuffer_bits, origin), 633 __field(unsigned int, origin) 639 __entry->origin = origin; [all …]
|
/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_common.h | 42 #define roce_get_field(origin, mask, shift) \ argument 43 ((le32_to_cpu(origin) & (mask)) >> (u32)(shift)) 45 #define roce_get_bit(origin, shift) \ argument 46 roce_get_field((origin), (1ul << (shift)), (shift)) 48 #define roce_set_field(origin, mask, shift, val) \ argument 50 (origin) &= ~cpu_to_le32(mask); \ 51 (origin) |= \ 55 #define roce_set_bit(origin, shift, val) \ argument 56 roce_set_field((origin), (1ul << (shift)), (shift), (val))
|
/Linux-v6.6/security/loadpin/ |
D | loadpin.c | 26 static void report_load(const char *origin, struct file *file, char *operation) in report_load() argument 34 origin, operation, in report_load() 132 const char *origin = kernel_read_file_id_str(id); in loadpin_check() local 139 report_load(origin, file, "pinning-excluded"); in loadpin_check() 146 report_load(origin, NULL, "old-api-pinning-ignored"); in loadpin_check() 150 report_load(origin, NULL, "old-api-denied"); in loadpin_check() 173 report_load(origin, file, "pinned"); in loadpin_check() 179 report_load(origin, file, "pinning-ignored"); in loadpin_check() 183 report_load(origin, file, "denied"); in loadpin_check()
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_reg.h | 1043 #define dsaf_set_field(origin, mask, shift, val) \ argument 1045 (origin) &= (~(mask)); \ 1046 (origin) |= (((val) << (shift)) & (mask)); \ 1049 #define dsaf_set_bit(origin, shift, val) \ argument 1050 dsaf_set_field((origin), (1ull << (shift)), (shift), (val)) 1055 u32 origin = dsaf_read_reg(base, reg); in dsaf_set_reg_field() local 1057 dsaf_set_field(origin, mask, shift, val); in dsaf_set_reg_field() 1058 dsaf_write_reg(base, reg, origin); in dsaf_set_reg_field() 1067 #define dsaf_get_field(origin, mask, shift) (((origin) & (mask)) >> (shift)) argument 1069 #define dsaf_get_bit(origin, shift) \ argument [all …]
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/ |
D | hns_mdio.c | 108 #define mdio_set_field(origin, mask, shift, val) \ argument 110 (origin) &= (~((mask) << (shift))); \ 111 (origin) |= (((val) & (mask)) << (shift)); \ 114 #define mdio_get_field(origin, mask, shift) (((origin) >> (shift)) & (mask)) argument 119 u32 origin = mdio_read_reg(base, reg); in mdio_set_reg_field() local 121 mdio_set_field(origin, mask, shift, val); in mdio_set_reg_field() 122 mdio_write_reg(base, reg, origin); in mdio_set_reg_field() 130 u32 origin; in mdio_get_reg_field() local 132 origin = mdio_read_reg(base, reg); in mdio_get_reg_field() 133 return mdio_get_field(origin, mask, shift); in mdio_get_reg_field()
|
/Linux-v6.6/drivers/crypto/intel/qat/qat_common/ |
D | adf_pfvf_msg.h | 34 * | | Message Origin 45 * | | Message Origin 49 * Message Origin (Should always be 1) 51 * by this driver; these had a Msg Origin of 0 and are ignored by this driver. 66 * Both the Interrupt bit and the Message Origin bit retain the same position 77 * | | Message Origin
|
/Linux-v6.6/block/partitions/ |
D | msdos.c | 251 sector_t offset, sector_t size, int origin) in parse_solaris_x86() argument 269 snprintf(tmp, sizeof(tmp), " %s%d: <solaris:", state->name, origin); in parse_solaris_x86() 356 sector_t offset, sector_t size, int origin, char *flavour, in parse_bsd() argument 372 snprintf(tmp, sizeof(tmp), " %s%d: <%s:", state->name, origin, flavour); in parse_bsd() 410 sector_t offset, sector_t size, int origin) in parse_freebsd() argument 413 parse_bsd(state, offset, size, origin, "bsd", BSD_MAXPARTITIONS); in parse_freebsd() 418 sector_t offset, sector_t size, int origin) in parse_netbsd() argument 421 parse_bsd(state, offset, size, origin, "netbsd", BSD_MAXPARTITIONS); in parse_netbsd() 426 sector_t offset, sector_t size, int origin) in parse_openbsd() argument 429 parse_bsd(state, offset, size, origin, "openbsd", in parse_openbsd() [all …]
|
/Linux-v6.6/fs/ |
D | pnode.c | 142 * @origin: the original mount from where the tree walk initiated 150 struct mount *origin) in propagation_next() argument 159 if (master == origin->mnt_master) { in propagation_next() 161 return (next == origin) ? NULL : next; in propagation_next() 171 struct mount *origin) in skip_propagation_subtree() argument 183 static struct mount *next_group(struct mount *m, struct mount *origin) in next_group() argument 191 if (m->mnt_group_id == origin->mnt_group_id) { in next_group() 192 if (next == origin) in next_group() 204 if (master->mnt_group_id == origin->mnt_group_id) in next_group() 210 if (m == origin) in next_group()
|
/Linux-v6.6/drivers/acpi/acpica/ |
D | pstree.c | 159 * PARAMETERS: origin - Root of subtree to search 165 * Return NULL when reaching "origin" or when walking up from root 169 union acpi_parse_object *acpi_ps_get_depth_next(union acpi_parse_object *origin, in acpi_ps_get_depth_next() argument 204 while (arg && (arg != origin) && (arg != op)) { in acpi_ps_get_depth_next() 210 if (arg == origin) { in acpi_ps_get_depth_next() 212 /* Reached parent of origin, end search */ in acpi_ps_get_depth_next()
|