public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 00/11] Introduce guarded buffers
@ 2019-08-12 14:39 Cyril Hrubis
  2019-08-12 14:39 ` [LTP] [PATCH v2 01/11] lib: Add support for " Cyril Hrubis
                   ` (11 more replies)
  0 siblings, 12 replies; 21+ messages in thread
From: Cyril Hrubis @ 2019-08-12 14:39 UTC (permalink / raw)
  To: ltp

Changes since v1:

* Removed debugging "freeing buffer %p" output and
  added a message that is printed first time tst_alloc() is called.

* Added the missing getpid() to the warning message
  from check_canary()

* Added call to atexit(tst_free_all) in the safe_fork()
  - now we check the canary in child processes as well

* Added documentation into the test-writing-guidelines.txt

* Separated the accept02.c changes from the patch that adds
  the guarded buffers library

Cyril Hrubis (11):
  lib: Add support for guarded buffers
  lib: Add a canary for guarded buffers
  doc: Add guarded buffers documentation
  syscalls/accept02: Make use of guarded buffers.
  syscalls/preadv01: Make use of guarded buffers.
  syscalls/accept4_01: Make use of guarded buffers.
  syscalls/add_key04: Make use of guarded buffers.
  syscalls/adjtimex: Make use of guarded buffers.
  syscalls/clock_getres01: Make use of guarded buffers.
  syscalls/clock_settime01: Make use of guarded buffers.
  syscalls/sendmmsg01: Make use of guarded buffers.

 doc/test-writing-guidelines.txt               |  68 +++++++++
 include/tst_buffers.h                         |  63 ++++++++
 include/tst_test.h                            |   6 +
 lib/newlib_tests/.gitignore                   |   1 +
 lib/newlib_tests/test_guarded_buf.c           |  92 +++++++++++
 lib/tst_buffers.c                             | 143 ++++++++++++++++++
 lib/tst_test.c                                |   8 +
 testcases/kernel/syscalls/accept/accept02.c   |  41 ++---
 .../kernel/syscalls/accept4/accept4_01.c      |  24 +--
 testcases/kernel/syscalls/add_key/add_key04.c |  13 +-
 .../kernel/syscalls/adjtimex/adjtimex01.c     |  23 +--
 .../kernel/syscalls/adjtimex/adjtimex02.c     |  39 ++---
 .../syscalls/clock_getres/clock_getres01.c    |  12 +-
 .../syscalls/clock_settime/clock_settime01.c  |  29 ++--
 testcases/kernel/syscalls/preadv/preadv01.c   |  10 +-
 .../kernel/syscalls/sendmmsg/sendmmsg01.c     |  68 ++++-----
 16 files changed, 528 insertions(+), 112 deletions(-)
 create mode 100644 include/tst_buffers.h
 create mode 100644 lib/newlib_tests/test_guarded_buf.c
 create mode 100644 lib/tst_buffers.c

-- 
2.21.0


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

end of thread, other threads:[~2019-08-21  9:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-12 14:39 [LTP] [PATCH v2 00/11] Introduce guarded buffers Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 01/11] lib: Add support for " Cyril Hrubis
2019-08-19  9:06   ` Richard Palethorpe
2019-08-19 12:42     ` Cyril Hrubis
2019-08-20  8:25       ` Richard Palethorpe
2019-08-21  9:11         ` Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 02/11] lib: Add a canary " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 03/11] doc: Add guarded buffers documentation Cyril Hrubis
2019-08-19  9:44   ` Richard Palethorpe
2019-08-12 14:39 ` [LTP] [PATCH v2 04/11] syscalls/accept02: Make use of guarded buffers Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 05/11] syscalls/preadv01: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 06/11] syscalls/accept4_01: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 07/11] syscalls/add_key04: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 08/11] syscalls/adjtimex: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 09/11] syscalls/clock_getres01: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 10/11] syscalls/clock_settime01: " Cyril Hrubis
2019-08-12 14:39 ` [LTP] [PATCH v2 11/11] syscalls/sendmmsg01: " Cyril Hrubis
2019-08-13  9:53 ` [LTP] [PATCH v2 00/11] Introduce " Li Wang
2019-08-13 10:29   ` Cyril Hrubis
2019-08-20 11:23   ` Cyril Hrubis
2019-08-20 11:55     ` Li Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox