[PATCH 0/2] taskstats: fix TGID exit version and tool message truncation

Yiyang Chen posted 2 patches 3 days, 14 hours ago
kernel/taskstats.c           |  1 +
tools/accounting/getdelays.c | 41 ++++++++++++++++++++++++++++++++----
tools/accounting/procacct.c  | 40 +++++++++++++++++++++++++++++++----
3 files changed, 74 insertions(+), 8 deletions(-)
[PATCH 0/2] taskstats: fix TGID exit version and tool message truncation
Posted by Yiyang Chen 3 days, 14 hours ago
This series contains two independent fixes around taskstats.

The first patch fixes a long-standing taskstats bug where TGID exit
notifications can carry version == 0 because the cached signal->stats
aggregate is copied into the outgoing payload without restoring the
taskstats version field.

The second patch hardens the accounting sample tools against truncated
taskstats netlink messages by switching to recvmsg(), checking
MSG_TRUNC explicitly, and increasing the receive buffer size.

Yiyang Chen (2):
  taskstats: set version in TGID exit notifications
  tools/accounting: handle truncated taskstats netlink messages

 kernel/taskstats.c           |  1 +
 tools/accounting/getdelays.c | 41 ++++++++++++++++++++++++++++++++----
 tools/accounting/procacct.c  | 40 +++++++++++++++++++++++++++++++----
 3 files changed, 74 insertions(+), 8 deletions(-)


base-commit: f242ac4a09443c6e2e0ec03d7e2a21b00cbb3907
-- 
2.43.0