All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/3] Fix various minor bugs in core library
@ 2026-10-06 13:02 Andrea Cervesato
  2026-10-06 13:02 ` [LTP] [PATCH 1/3] tst_timer_test: Fix out-of-bounds array access Andrea Cervesato
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrea Cervesato @ 2026-10-06 13:02 UTC (permalink / raw)
  To: Linux Test Project

This series fixes three small bugs discovered in the LTP core library:

1. tst_timer_test: Check array bounds before accessing samples array in
   do_timer_test(), avoiding heap out-of-bounds reads when all samples
   are outliers or early wakeups.
2. tst_memutils: Use proper half-open interval overlap check in
   tst_mapping_in_range(), correctly identifying enclosed mappings and
   avoiding false positives on adjacent mappings.
3. tst_kconfig: Stop scanning at string termination in
   kconfig_parse_line(), avoiding stack buffer overreads when config
   lines do not end with whitespace.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Andrea Cervesato (3):
      tst_timer_test: Fix out-of-bounds array access
      tst_memutils: Fix mapping overlap predicate
      tst_kconfig: Prevent stack buffer overread

 lib/tst_kconfig.c    | 2 +-
 lib/tst_memutils.c   | 6 +-----
 lib/tst_timer_test.c | 5 +++--
 3 files changed, 5 insertions(+), 8 deletions(-)
---
base-commit: 78e6353fdff663b2fc2f77704ceec6c3ca786b96
change-id: 20261006-fix_simple_bugs_core_lib-2c7d8af4a72d

Best regards,
--  
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-07  7:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 13:02 [LTP] [PATCH 0/3] Fix various minor bugs in core library Andrea Cervesato
2026-10-06 13:02 ` [LTP] [PATCH 1/3] tst_timer_test: Fix out-of-bounds array access Andrea Cervesato
2026-10-06 18:53   ` [LTP] " linuxtestproject.agent
2026-10-07  5:50   ` [LTP] [PATCH 1/3] " Li Wang
2026-10-06 13:02 ` [LTP] [PATCH 2/3] tst_memutils: Fix mapping overlap predicate Andrea Cervesato
2026-10-07  6:18   ` Li Wang
2026-10-06 13:02 ` [LTP] [PATCH 3/3] tst_kconfig: Prevent stack buffer overread Andrea Cervesato
2026-10-07  5:51   ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.