xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-4.15 0/5] xenstore: Address coverity issues in the LiveUpdate code
@ 2021-02-25 17:41 Julien Grall
  2021-02-25 17:41 ` [PATCH for-4.15 1/5] tools/xenstored: Avoid unnecessary talloc_strdup() in do_control_lu() Julien Grall
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Julien Grall @ 2021-02-25 17:41 UTC (permalink / raw)
  To: xen-devel; +Cc: raphning, iwj, Julien Grall, Wei Liu, Juergen Gross

From: Julien Grall <jgrall@amazon.com>

Hi all,

The AWS coverity instance spotted a few issues that could either
leak memory and derefence NULL pointer.

All the patches are candidate for 4.15 as they are hardening XenStored
code. The changes are low risks.

Cheers,

Julien Grall (5):
  tools/xenstored: Avoid unnecessary talloc_strdup() in do_control_lu()
  tools/xenstored: Avoid unnecessary talloc_strdup() in do_lu_start()
  tools/xenstored: control: Store the save filename in lu_dump_state
  tools/xenstore-control: Don't leak buf in live_update_start()
  tools/xenstored: Silence coverity when using xs_state_* structures

 tools/xenstore/include/xenstore_state.h |  6 +++---
 tools/xenstore/xenstore_control.c       |  4 +++-
 tools/xenstore/xenstored_control.c      | 26 +++++++++++--------------
 3 files changed, 17 insertions(+), 19 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2021-02-26  9:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 17:41 [PATCH for-4.15 0/5] xenstore: Address coverity issues in the LiveUpdate code Julien Grall
2021-02-25 17:41 ` [PATCH for-4.15 1/5] tools/xenstored: Avoid unnecessary talloc_strdup() in do_control_lu() Julien Grall
2021-02-26  7:00   ` Jürgen Groß
2021-02-25 17:41 ` [PATCH for-4.15 2/5] tools/xenstored: Avoid unnecessary talloc_strdup() in do_lu_start() Julien Grall
2021-02-26  7:01   ` Jürgen Groß
2021-02-25 17:41 ` [PATCH for-4.15 3/5] tools/xenstored: control: Store the save filename in lu_dump_state Julien Grall
2021-02-26  7:04   ` Jürgen Groß
2021-02-25 17:41 ` [PATCH for-4.15 4/5] tools/xenstore-control: Don't leak buf in live_update_start() Julien Grall
2021-02-26  7:06   ` Jürgen Groß
2021-02-25 17:41 ` [PATCH for-4.15 5/5] tools/xenstored: Silence coverity when using xs_state_* structures Julien Grall
2021-02-25 17:47   ` Andrew Cooper
2021-02-25 17:53     ` Julien Grall
2021-02-26  7:10   ` Jürgen Groß
2021-02-26  8:57     ` Julien Grall
2021-02-26  9:15       ` Jürgen Groß
2021-02-25 17:54 ` [PATCH for-4.15 0/5] xenstore: Address coverity issues in the LiveUpdate code Ian Jackson
2021-02-25 17:57   ` Julien Grall
2021-02-25 18:01     ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).