Home
last modified time | relevance | path

Searched full:bounds (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/linux-6.14.4/lib/
DKconfig.ubsan39 def_bool $(cc-option,-fsanitize=bounds-strict)
41 The -fsanitize=bounds-strict option is only available on GCC,
44 -fsanitize=bounds.
47 def_bool $(cc-option,-fsanitize=array-bounds)
49 Under Clang, the -fsanitize=bounds option is actually composed
50 of two more specific options, -fsanitize=array-bounds and
51 -fsanitize=local-bounds. However, -fsanitize=local-bounds can
53 CONFIG_LOCAL_BOUNDS.) Explicitly check for -fsanitize=array-bounds
58 bool "Perform array index bounds checking"
62 This option enables detection of directly indexed out of bounds
[all …]
/linux-6.14.4/tools/testing/selftests/bpf/progs/
Dverifier_bounds_deduction_non_const.c8 __description("check deducing bounds from non-const, jmp64, <non_const> == <const>, 1")
29 __description("check deducing bounds from non-const, jmp64, <non_const> == <const>, 2")
50 __description("check deducing bounds from non-const, jmp64, <non_const> != <const>, 1")
72 __description("check deducing bounds from non-const, jmp64, <non_const> != <const>, 2")
94 __description("check deducing bounds from non-const, jmp32, <non_const> == <const>, 1")
115 __description("check deducing bounds from non-const, jmp32, <non_const> == <const>, 2")
136 __description("check deducing bounds from non-const, jmp32, <non_const> != <const>, 1")
158 __description("check deducing bounds from non-const, jmp32, <non_const> != <const>, 2")
180 __description("check deducing bounds from non-const, jmp64, <const> > <non_const>, 1")
199 __description("check deducing bounds from non-const, jmp64, <const> > <non_const>, 2")
[all …]
Dverifier_masking.c9 __description("masking, test out of bounds 1")
29 __description("masking, test out of bounds 2")
49 __description("masking, test out of bounds 3")
69 __description("masking, test out of bounds 4")
89 __description("masking, test out of bounds 5")
109 __description("masking, test out of bounds 6")
129 __description("masking, test out of bounds 7")
149 __description("masking, test out of bounds 8")
169 __description("masking, test out of bounds 9")
189 __description("masking, test out of bounds 10")
[all …]
Dverifier_bounds_deduction.c9 __description("check deducing bounds from const, 1")
23 __description("check deducing bounds from const, 2")
41 __description("check deducing bounds from const, 3")
55 __description("check deducing bounds from const, 4")
74 __description("check deducing bounds from const, 5")
88 __description("check deducing bounds from const, 6")
103 __description("check deducing bounds from const, 7")
122 __description("check deducing bounds from const, 8")
141 __description("check deducing bounds from const, 9")
155 __description("check deducing bounds from const, 10")
Dverifier_bounds.c2 /* Converted from tools/testing/selftests/bpf/verifier/bounds.c */
16 __description("subtraction bounds (map value) variant 1")
47 __description("subtraction bounds (map value) variant 2")
50 __msg_unpriv("R1 has unknown scalar with mixed signed bounds")
111 __description("bounds check based on zero-extended MOV")
141 __description("bounds check based on sign-extended MOV. test1")
172 __description("bounds check based on sign-extended MOV. test2")
203 __description("bounds check based on reg_off + var_off + insn_off. test1")
232 __description("bounds check based on reg_off + var_off + insn_off. test2")
262 __description("bounds check after truncation of non-boundary-crossing range")
[all …]
Dverifier_bounds_mix_sign_unsign.c16 __description("bounds checks mixing signed and unsigned, positive bounds")
48 __description("bounds checks mixing signed and unsigned")
80 __description("bounds checks mixing signed and unsigned, variant 2")
114 __description("bounds checks mixing signed and unsigned, variant 3")
147 __description("bounds checks mixing signed and unsigned, variant 4")
178 __description("bounds checks mixing signed and unsigned, variant 5")
211 __description("bounds checks mixing signed and unsigned, variant 6")
242 __description("bounds checks mixing signed and unsigned, variant 7")
274 __description("bounds checks mixing signed and unsigned, variant 8")
308 __description("bounds checks mixing signed and unsigned, variant 9")
[all …]
Dverifier_runtime_jit.c86 __description("runtime/jit: tail_call within bounds, prog once")
103 __description("runtime/jit: tail_call within bounds, prog loop")
120 __description("runtime/jit: tail_call within bounds, no prog")
137 __description("runtime/jit: tail_call within bounds, key 2")
154 __description("runtime/jit: tail_call within bounds, key 2 / key 2, first branch")
179 __description("runtime/jit: tail_call within bounds, key 2 / key 2, second branch")
204 __description("runtime/jit: tail_call within bounds, key 0 / key 2, first branch")
229 __description("runtime/jit: tail_call within bounds, key 0 / key 2, second branch")
254 __description("runtime/jit: tail_call within bounds, different maps, first branch")
281 __description("runtime/jit: tail_call within bounds, different maps, second branch")
[all …]
Dsockopt_sk.c82 return 0; /* bounds check */ in _getsockopt()
92 return 0; /* bounds check */ in _getsockopt()
114 return 0; /* bounds check */ in _getsockopt()
173 return 0; /* bounds check */ in _setsockopt()
185 return 0; /* bounds check */ in _setsockopt()
199 return 0; /* bounds check */ in _setsockopt()
219 return 0; /* bounds check */ in _setsockopt()
Dsockopt_multi.c20 return 0; /* EPERM, bounds check */ in _getsockopt_child()
49 return 0; /* EPERM, bounds check */ in _getsockopt_parent()
78 return 0; /* EPERM, bounds check */ in _setsockopt()
/linux-6.14.4/drivers/gpu/drm/nouveau/dispnv50/
Dhead917d.c53 u32 bounds = 0; in head917d_base() local
58 case 8: bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break; in head917d_base()
59 case 4: bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break; in head917d_base()
60 case 2: bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break; in head917d_base()
61 case 1: bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_8); break; in head917d_base()
66 bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, USABLE, TRUE); in head917d_base()
67 bounds |= NVDEF(NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, BASE_LUT, USAGE_1025); in head917d_base()
73 PUSH_MTHD(push, NV917D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS(i), bounds); in head917d_base()
Dhead907d.c100 u32 bounds = 0; in head907d_ovly() local
105 case 8: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break; in head907d_ovly()
106 case 4: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break; in head907d_ovly()
107 case 2: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break; in head907d_ovly()
112 bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, USABLE, TRUE); in head907d_ovly()
114 bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); in head907d_ovly()
120 PUSH_MTHD(push, NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS(i), bounds); in head907d_ovly()
129 u32 bounds = 0; in head907d_base() local
134 case 8: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break; in head907d_base()
135 case 4: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break; in head907d_base()
[all …]
Dhead507d.c71 u32 bounds = 0; in head507d_ovly() local
76 case 4: bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break; in head507d_ovly()
77 case 2: bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break; in head507d_ovly()
82 bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, USABLE, TRUE); in head507d_ovly()
84 bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); in head507d_ovly()
90 PUSH_MTHD(push, NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS(i), bounds); in head507d_ovly()
99 u32 bounds = 0; in head507d_base() local
104 case 8: bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break; in head507d_base()
105 case 4: bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break; in head507d_base()
106 case 2: bounds |= NVDEF(NV507D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break; in head507d_base()
[all …]
/linux-6.14.4/
DKbuild8 # Generate bounds.h
10 bounds-file := include/generated/bounds.h
12 targets := kernel/bounds.s
14 $(bounds-file): kernel/bounds.s FORCE
32 arch/$(SRCARCH)/kernel/asm-offsets.s: $(timeconst-file) $(bounds-file)
/linux-6.14.4/include/linux/
Dnospec.h23 * When @index is out of bounds (@index >= @size), the sign bit will be
25 * zero for an out of bounds index, or ~0 if within bounds [0, @size).
42 * array_index_nospec - sanitize an array index after a bounds check
51 * ...if the CPU speculates past the bounds check then
Dfortify-string.h130 * unsafe_memcpy - memcpy implementation with no FORTIFY bounds checking
139 * very rarely, and includes a place for justification detailing where bounds
159 #define __compiletime_lessthan(bounds, length) ( \ argument
160 __builtin_constant_p((bounds) < (length)) && \
161 (bounds) < (length) \
469 * can perform compile-time bounds checking where in fortify_memset_chk()
484 * so run-time bounds checking can be done where buffer sizes are in fortify_memset_chk()
525 * Bounds checking at:
540 * y = perform deterministic compile-time bounds checking
541 * n = cannot perform deterministic compile-time bounds checking
[all …]
/linux-6.14.4/mm/kasan/
Dreport_tags.c18 * defined as out-of-bounds bug type. in get_common_bug_type()
22 * so that this can qualify as out-of-bounds. in get_common_bug_type()
25 return "out-of-bounds"; in get_common_bug_type()
95 * an out-of-bounds. in kasan_complete_mode_report_info()
98 info->bug_type = "slab-out-of-bounds"; in kasan_complete_mode_report_info()
Dreport_generic.c94 bug_type = "out-of-bounds"; in get_shadow_bug_type()
98 bug_type = "slab-out-of-bounds"; in get_shadow_bug_type()
101 bug_type = "global-out-of-bounds"; in get_shadow_bug_type()
107 bug_type = "stack-out-of-bounds"; in get_shadow_bug_type()
118 bug_type = "alloca-out-of-bounds"; in get_shadow_bug_type()
121 bug_type = "vmalloc-out-of-bounds"; in get_shadow_bug_type()
146 * defined as out-of-bounds bug type. in get_bug_type()
150 * so that this can qualify as out-of-bounds. in get_bug_type()
153 return "out-of-bounds"; in get_bug_type()
/linux-6.14.4/rust/kernel/
Dpage.rs123 /// Runs a piece of code with a raw pointer to a slice of this page, with bounds checking.
155 // result in a pointer that is in bounds or one off the end of the page. in with_pointer_into_page()
165 /// This method will perform bounds checks on the page offset. If `offset .. offset+len` goes
176 // it has performed a bounds check and guarantees that `src` is in read_raw()
187 /// This method will perform bounds checks on the page offset. If `offset .. offset+len` goes
198 // bounds check and guarantees that `dst` is valid for `len` bytes. in write_raw()
208 /// This method will perform bounds checks on the page offset. If `offset .. offset+len` goes
218 // bounds check and guarantees that `dst` is valid for `len` bytes. in fill_zero_raw()
228 /// This method will perform bounds checks on the page offset. If `offset .. offset+len` goes
246 // bounds check and guarantees that `dst` is valid for `len` bytes. Furthermore, we have in copy_from_user_slice_raw()
/linux-6.14.4/Documentation/userspace-api/media/v4l/
Dv4l2-selection-targets.rst46 - Bounds of the crop rectangle. All valid crop rectangles fit inside
47 the crop bounds rectangle.
68 - Bounds of the compose rectangle. All valid compose rectangles fit
69 inside the compose bounds rectangle.
/linux-6.14.4/drivers/media/platform/rockchip/rkisp1/
Drkisp1-common.c163 const struct v4l2_rect *bounds) in rkisp1_sd_adjust_crop_rect() argument
166 v4l2_rect_map_inside(crop, bounds); in rkisp1_sd_adjust_crop_rect()
170 const struct v4l2_mbus_framefmt *bounds) in rkisp1_sd_adjust_crop() argument
175 .width = bounds->width, in rkisp1_sd_adjust_crop()
176 .height = bounds->height, in rkisp1_sd_adjust_crop()
/linux-6.14.4/scripts/
DMakefile.ubsan5 ubsan-cflags-$(CONFIG_UBSAN_BOUNDS_STRICT) += -fsanitize=bounds-strict
6 ubsan-cflags-$(CONFIG_UBSAN_ARRAY_BOUNDS) += -fsanitize=array-bounds
7 ubsan-cflags-$(CONFIG_UBSAN_LOCAL_BOUNDS) += -fsanitize=local-bounds
/linux-6.14.4/lib/zstd/compress/
Dzstd_compress.c378 ZSTD_bounds bounds = { 0, 0, 0 }; in ZSTD_cParam_getBounds() local
383 bounds.lowerBound = ZSTD_minCLevel(); in ZSTD_cParam_getBounds()
384 bounds.upperBound = ZSTD_maxCLevel(); in ZSTD_cParam_getBounds()
385 return bounds; in ZSTD_cParam_getBounds()
388 bounds.lowerBound = ZSTD_WINDOWLOG_MIN; in ZSTD_cParam_getBounds()
389 bounds.upperBound = ZSTD_WINDOWLOG_MAX; in ZSTD_cParam_getBounds()
390 return bounds; in ZSTD_cParam_getBounds()
393 bounds.lowerBound = ZSTD_HASHLOG_MIN; in ZSTD_cParam_getBounds()
394 bounds.upperBound = ZSTD_HASHLOG_MAX; in ZSTD_cParam_getBounds()
395 return bounds; in ZSTD_cParam_getBounds()
[all …]
/linux-6.14.4/rust/macros/
Dhelpers.rs95 /// The generics with bounds and default values (e.g. `T: Clone, const N: usize = 0`).
99 /// The generics with bounds (e.g. `T: Clone, const N: usize`).
103 /// The generics without bounds and without default values (e.g. `T, N`).
114 // The generics with bounds and default values. in parse_generics()
116 // `impl_generics`, the declared generics with their bounds. in parse_generics()
118 // Only the names of the generics, without any bounds. in parse_generics()
/linux-6.14.4/drivers/md/persistent-data/
Ddm-bitset.h22 * and access an out of bounds word. However, an out of bounds bit in the
139 * -ENODATA will be returned if the index is out of bounds.
152 * -ENODATA will be returned if the index is out of bounds.
166 * -ENODATA will be returned if the index is out of bounds.
/linux-6.14.4/kernel/configs/
Dhardening.config38 # Basic buffer length bounds checking.
42 # Basic array index bounds checking.
54 # Sampling-based heap out-of-bounds and use-after-free detection.

12345678910>>...28