/openbmc/linux/lib/ |
H A D | Kconfig.ubsan | 38 def_bool $(cc-option,-fsanitize=bounds-strict) 40 The -fsanitize=bounds-strict option is only available on GCC, 43 -fsanitize=bounds. 46 def_bool $(cc-option,-fsanitize=array-bounds) 48 Under Clang, the -fsanitize=bounds option is actually composed 49 of two more specific options, -fsanitize=array-bounds and 50 -fsanitize=local-bounds. However, -fsanitize=local-bounds can 52 CONFIG_LOCAL_BOUNDS.) Explicitly check for -fsanitize=array-bounds 57 bool "Perform array index bounds checking" 61 This option enables detection of directly indexed out of bounds [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_bounds_deduction_non_const.c | 8 __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 D | verifier_masking.c | 9 __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 D | verifier_bounds_deduction.c | 9 __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 D | verifier_bounds.c | 2 /* 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 …]
|
H A D | verifier_bounds_mix_sign_unsign.c | 16 __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 D | verifier_runtime_jit.c | 86 __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 D | sockopt_sk.c | 82 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 D | sockopt_multi.c | 20 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()
|
/openbmc/linux/mm/kasan/ |
H A D | kasan_test_module.c | 40 pr_info("out-of-bounds in copy_from_user()\n"); in copy_user_test() 43 pr_info("out-of-bounds in copy_to_user()\n"); in copy_user_test() 46 pr_info("out-of-bounds in __copy_from_user()\n"); in copy_user_test() 49 pr_info("out-of-bounds in __copy_to_user()\n"); in copy_user_test() 52 pr_info("out-of-bounds in __copy_from_user_inatomic()\n"); in copy_user_test() 55 pr_info("out-of-bounds in __copy_to_user_inatomic()\n"); in copy_user_test() 58 pr_info("out-of-bounds in strncpy_from_user()\n"); in copy_user_test()
|
H A D | report_tags.c | 17 * defined as out-of-bounds bug type. in get_common_bug_type() 21 * so that this can qualify as out-of-bounds. in get_common_bug_type() 24 return "out-of-bounds"; in get_common_bug_type() 104 * an out-of-bounds. in kasan_complete_mode_report_info() 107 info->bug_type = "slab-out-of-bounds"; in kasan_complete_mode_report_info()
|
H A D | report_generic.c | 94 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()
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | head917d.c | 53 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 D | head907d.c | 100 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 D | head507d.c | 71 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 …]
|
/openbmc/linux/ |
H A D | Kbuild | 8 # 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)
|
/openbmc/linux/include/linux/ |
H A D | nospec.h | 23 * 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
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | v4l2-selection-targets.rst | 46 - 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.
|
/openbmc/libpldm/ |
H A D | CHANGELOG.md | 128 4. dsp: firmware_update: Bounds check 131 The additional bounds-checking required the addition of further length 227 5. dsp: platform: Bounds check encode_sensor_state_pdr() 228 6. dsp: platform: Bounds check encode_state_effecter_pdr() 229 7. dsp: pdr: Bounds check pldm_entity_association_pdr_extract() 230 8. dsp: bios_table: Bounds check pldm_bios_table_append_pad_checksum() 231 9. dsp: bios_table: Bounds check 233 10. dsp: bios_table: Bounds check pldm_bios_table_attr_value_entry_encode_enum() 234 11. dsp: firmware_update: Bounds check 236 12. oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req() [all …]
|
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-common.c | 163 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()
|
/openbmc/linux/scripts/ |
H A D | Makefile.ubsan | 5 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
|
/openbmc/phosphor-pid-control/pid/ |
H A D | pidcontroller.cpp | 41 // Over the hysteresis bounds, keep counting pid in calPIDOutput() 52 // Under the hysteresis bounds, initialize pid in calPIDOutput() 59 // inside the hysteresis bounds, keep last output in calPIDOutput() 90 // if reading is outside of hysteresis bounds, use it for reading, in calPIDOutput()
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_compress.c | 378 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/libubox/libubox/ |
H A D | 0001-blobmsg-fix-array-out-of-bounds-GCC-10-warning.patch | 4 Subject: [PATCH] blobmsg: fix array out of bounds GCC 10 warning 11 …r' is out of the bounds of referenced subobject 'name' with type 'uint8_t[0]' {aka 'unsigned char[…
|
/openbmc/qemu/hw/misc/ |
H A D | aspeed_sli.c | 28 "%s: Out-of-bounds read at offset 0x%" HWADDR_PRIx "\n", in aspeed_sli_read() 45 "%s: Out-of-bounds write at offset 0x%" HWADDR_PRIx "\n", in aspeed_sli_write() 61 "%s: Out-of-bounds read at offset 0x%" HWADDR_PRIx "\n", in aspeed_sliio_read() 78 "%s: Out-of-bounds write at offset 0x%" HWADDR_PRIx "\n", in aspeed_sliio_write()
|