From: Andrew Morton <akpm@linux-foundation.org>
To: Vineet Agarwal <agarwal.vineet2006@gmail.com>
Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
david@kernel.org, ljs@kernel.org, Liam.Howlett@oracle.com,
vbabka@kernel.org, rppt@kernel.org, surenb@google.com,
mhocko@suse.com
Subject: Re: [PATCH v3] selftests/mm: ksm-functional-tests: fix partial write handling
Date: Sun, 3 May 2026 06:23:04 -0700 [thread overview]
Message-ID: <20260503062304.02b166415ef419cf4df6cb87@linux-foundation.org> (raw)
In-Reply-To: <20260503101229.654763-1-agarwal.vineet2006@gmail.com>
On Sun, 3 May 2026 15:38:40 +0530 Vineet Agarwal <agarwal.vineet2006@gmail.com> wrote:
> Update write() checks to properly detect and handle partial writes.
>
> Previously, partial writes (ret > 0 && ret != len) could be treated
> as success because write() does not set errno in this case and the
> code returned -errno. This could result in returning 0 and
> incorrectly signaling success.
>
> Fix this by verifying that write() returns the full expected length
> and treating any mismatch as failure.
Thanks. AI review asked some questions:
https://sashiko.dev/#/patchset/20260503101229.654763-1-agarwal.vineet2006@gmail.com
next prev parent reply other threads:[~2026-05-03 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-03 10:08 [PATCH v3] selftests/mm: ksm-functional-tests: fix partial write handling Vineet Agarwal
2026-05-03 13:23 ` Andrew Morton [this message]
2026-05-04 7:35 ` Mike Rapoport
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=20260503062304.02b166415ef419cf4df6cb87@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Liam.Howlett@oracle.com \
--cc=agarwal.vineet2006@gmail.com \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=shuah@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
/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