From: Ryan Cai <ycaibb@gmail.com>
To: <akpm@linux-foundation.org>, <shuah@kernel.org>
Cc: <linux-mm@kvack.org>, <linux-kselftest@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: [Resource Leak] Missing closing files in tools/bpf/bpf_asm.c
Date: Thu, 30 Dec 2021 11:50:34 +0800 [thread overview]
Message-ID: <3772BC47-11E0-420D-A0CA-3F3EF279B26B@gmail.com> (raw)
Dear Kernel maintainers,
1. In ksm_read_sysfs, the file opened at Line 74 may not closed when going to Line 83.
Location: https://github.com/torvalds/linux/blob/512b7931ad0561ffe14265f9ff554a3c081b476b/tools/testing/selftests/vm/ksm_tests.c#L74-L83
2. In ksm_write_sysfs, the file opened at Line 56 may not closed when going to Line 64.
Location: https://github.com/torvalds/linux/blob/512b7931ad0561ffe14265f9ff554a3c081b476b/tools/testing/selftests/vm/ksm_tests.c#L55-L65
Should they be bugs? I can send a patch for these.
Best,
Ryan
reply other threads:[~2021-12-30 3:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3772BC47-11E0-420D-A0CA-3F3EF279B26B@gmail.com \
--to=ycaibb@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@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