From: Balbir Singh <balbirs@nvidia.com>
To: Dan Carpenter <dan.carpenter@linaro.org>, oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [akpm-mm:mm-new 398/411] mm/huge_memory.c:3069 __split_huge_pmd_locked() error: uninitialized symbol 'write'.
Date: Thu, 11 Sep 2025 07:54:20 +1000 [thread overview]
Message-ID: <88f160fb-0f84-49e2-9139-1fba1a21428e@nvidia.com> (raw)
In-Reply-To: <202509101756.jkC29gja-lkp@intel.com>
On 9/10/25 21:52, Dan Carpenter wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head: 3a0afa6640282ff559b6f4ff432cffc3ecc2bc77
> commit: 825d533acfd9573bd1b99f08a80c42fa41fbf07d [398/411] mm/huge_memory: implement device-private THP splitting
> config: i386-randconfig-141-20250910 (https://download.01.org/0day-ci/archive/20250910/202509101756.jkC29gja-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> | Closes: https://lore.kernel.org/r/202509101756.jkC29gja-lkp@intel.com/
>
> smatch warnings:
> mm/huge_memory.c:3069 __split_huge_pmd_locked() error: uninitialized symbol 'write'.
> mm/huge_memory.c:3078 __split_huge_pmd_locked() error: uninitialized symbol 'young'.
>
> vim +/write +3069 mm/huge_memory.c
>
If the entry is not present, it is a migration or device private entry, so write is
set, I understand that smatch is complaining about it falling through the paths.
If freeze is true for a device private migration entry, young needs to be initialized
to false.
Andrew I can send out a patch to fix it or I can wait to gather more feedback
and do a v6?
Balbir
next prev parent reply other threads:[~2025-09-10 21:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 11:52 Dan Carpenter
2025-09-10 21:54 ` Balbir Singh [this message]
2025-09-11 0:57 ` Andrew Morton
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=88f160fb-0f84-49e2-9139-1fba1a21428e@nvidia.com \
--to=balbirs@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=dan.carpenter@linaro.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
/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