Home
last modified time | relevance | path

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

12345678910>>...24

/linux/tools/testing/selftests/bpf/progs/
H A 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 …]
H A 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 …]
H A Dverifier_bounds.c2 /* Converted from tools/testing/selftests/bpf/verifier/bounds.c */
17 __description("subtraction bounds (map value) variant 1")
48 __description("subtraction bounds (map value) variant 2")
51 __msg_unpriv("R1 has unknown scalar with mixed signed bounds")
112 __description("bounds check based on zero-extended MOV")
142 __description("bounds check based on sign-extended MOV. test1")
173 __description("bounds check based on sign-extended MOV. test2")
204 __description("bounds check based on reg_off + var_off + insn_off. test1")
233 __description("bounds check based on reg_off + var_off + insn_off. test2")
263 __description("bounds chec
[all...]
H A 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")
H A 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 …]
H A 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 …]
H A 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()
H A 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/lib/
H A 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/rust/syn/
H A Dty.rs135 pub bounds: Punctuated<TypeParamBound, Token![+]>,
219 pub bounds: Punctuated<TypeParamBound, Token![+]>,
399 bounds: { in ambig_ty()
400 let mut bounds = Punctuated::new(); in ambig_ty() localVariable
401 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty()
406 bounds.push_punct(plus); in ambig_ty()
407 bounds.push_value({ in ambig_ty()
417 bounds in ambig_ty()
453 bounds, in ambig_ty()
455 if bounds.len() > 1 || bounds.trailing_punct() { in ambig_ty()
[all …]
H A Dgenerics.rs65 pub bounds: Punctuated<Lifetime, Token![+]>,
76 pub bounds: Punctuated<TypeParamBound, Token![+]>,
382 bounds: Punctuated::new(), in new()
393 bounds: Punctuated::new(), in from()
498 pub bounds: Punctuated<Lifetime, Token![+]>,
511 /// Trait and lifetime bounds (`Clone+Send+'static`)
512 pub bounds: Punctuated<TypeParamBound, Token![+]>,
576 bounds: Punctuated::new(), in parse()
645 bounds: { in parse()
646 let mut bounds = Punctuated::new(); in parse() localVariable
[all …]
H A Dclassify.rs80 Type::ImplTrait(t) => match last_type_in_bounds(&t.bounds) { in trailing_unparameterized_path()
90 Type::TraitObject(t) => match last_type_in_bounds(&t.bounds) { in trailing_unparameterized_path()
119 bounds: &Punctuated<TypeParamBound, Token![+]>, in trailing_unparameterized_path()
121 match bounds.last().unwrap() { in trailing_unparameterized_path()
253 Type::ImplTrait(t) => match last_type_in_bounds(&t.bounds) { in expr_trailing_brace()
264 Type::TraitObject(t) => match last_type_in_bounds(&t.bounds) { in expr_trailing_brace()
292 bounds: &Punctuated<TypeParamBound, Token![+]>, in expr_trailing_brace()
294 match bounds.last().unwrap() { in expr_trailing_brace()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A 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()
H A 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 …]
H A 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/include/linux/
H A 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
H A 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/mm/kasan/
H A 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()
H A 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()
/linux/Documentation/userspace-api/media/v4l/
H A Dv4l2-selection-targets.rst47 - Bounds of the crop rectangle. All valid crop rectangles fit inside
48 the crop bounds rectangle.
69 - Bounds of the compose rectangle. All valid compose rectangles fit
70 inside the compose bounds rectangle.
/linux/drivers/media/platform/rockchip/rkisp1/
H A 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/lib/zstd/compress/
H A Dzstd_compress.c416 ZSTD_bounds bounds = { 0, 0, 0 }; in ZSTD_cParam_getBounds() local
421 bounds.lowerBound = ZSTD_minCLevel(); in ZSTD_cParam_getBounds()
422 bounds.upperBound = ZSTD_maxCLevel(); in ZSTD_cParam_getBounds()
423 return bounds; in ZSTD_cParam_getBounds()
426 bounds.lowerBound = ZSTD_WINDOWLOG_MIN; in ZSTD_cParam_getBounds()
427 bounds.upperBound = ZSTD_WINDOWLOG_MAX; in ZSTD_cParam_getBounds()
428 return bounds; in ZSTD_cParam_getBounds()
431 bounds.lowerBound = ZSTD_HASHLOG_MIN; in ZSTD_cParam_getBounds()
432 bounds.upperBound = ZSTD_HASHLOG_MAX; in ZSTD_cParam_getBounds()
433 return bounds; in ZSTD_cParam_getBounds()
[all …]
/linux/scripts/
H A DMakefile.ubsan8 ubsan-cflags-$(CONFIG_UBSAN_BOUNDS_STRICT) += -fsanitize=bounds-strict
9 ubsan-cflags-$(CONFIG_UBSAN_ARRAY_BOUNDS) += -fsanitize=array-bounds
10 ubsan-cflags-$(CONFIG_UBSAN_LOCAL_BOUNDS) += -fsanitize=local-bounds
/linux/rust/kernel/alloc/kvec/
H A Derrors.rs30 write!(f, "Index out of bounds") in fmt()
42 /// The value could not be inserted because the index is out of bounds.
51 InsertError::IndexOutOfBounds(_) => write!(f, "Index out of bounds"), in fmt()
/linux/drivers/md/persistent-data/
H A 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.

12345678910>>...24