From: Yiyang Chen <cyyzero16@gmail.com>
To: Balbir Singh <bsingharora@gmail.com>
Cc: linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Wang Yaxin <wang.yaxin@zte.com.cn>, Fan Yu <fan.yu9@zte.com.cn>,
"Dr . Thomas Orgis" <thomas.orgis@uni-hamburg.de>,
Yiyang Chen <cyyzero16@gmail.com>
Subject: [PATCH 0/2] taskstats: fix TGID exit version and tool message truncation
Date: Mon, 30 Mar 2026 03:00:39 +0800 [thread overview]
Message-ID: <cover.1774810498.git.cyyzero16@gmail.com> (raw)
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
next reply other threads:[~2026-03-29 19:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-29 19:00 Yiyang Chen [this message]
2026-03-29 19:00 ` [PATCH 1/2] taskstats: set version in TGID exit notifications Yiyang Chen
2026-03-29 19:00 ` [PATCH 2/2] tools/accounting: handle truncated taskstats netlink messages Yiyang Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1774810498.git.cyyzero16@gmail.com \
--to=cyyzero16@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bsingharora@gmail.com \
--cc=fan.yu9@zte.com.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=thomas.orgis@uni-hamburg.de \
--cc=wang.yaxin@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox