From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [linux-next:master 2042/2633] kernel/crash_core.c:303 crash_exclude_core_ranges() warn: we never enter this loop
Date: Thu, 02 Jul 2026 14:25:55 +0800 [thread overview]
Message-ID: <202607021410.VIPCVui0-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Jinjie Ruan <ruanjinjie@huawei.com>
CC: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
CC: Sourabh Jain <sourabhjain@linux.ibm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4f441960e691d37c880d2cc004de06bb5b6bd5e4
commit: 5beabef0cffaa1ea6e27e85dbd526b7a28e0e7c7 [2042/2633] crash: Add crash_prepare_headers() to exclude crash kernel memory
:::::: branch date: 15 hours ago
:::::: commit date: 2 days ago
config: sh-randconfig-r072-20260702 (https://download.01.org/0day-ci/archive/20260702/202607021410.VIPCVui0-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9185-gbcc58b9c
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 <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202607021410.VIPCVui0-lkp@intel.com/
smatch warnings:
kernel/crash_core.c:303 crash_exclude_core_ranges() warn: we never enter this loop
vim +303 kernel/crash_core.c
5beabef0cffaa1e Jinjie Ruan 2026-06-29 287
5beabef0cffaa1e Jinjie Ruan 2026-06-29 288 static int crash_exclude_core_ranges(struct crash_mem *cmem)
5beabef0cffaa1e Jinjie Ruan 2026-06-29 289 {
5beabef0cffaa1e Jinjie Ruan 2026-06-29 290 int ret, i;
5beabef0cffaa1e Jinjie Ruan 2026-06-29 291
5beabef0cffaa1e Jinjie Ruan 2026-06-29 292 /* Exclude crashkernel region */
5beabef0cffaa1e Jinjie Ruan 2026-06-29 293 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end);
5beabef0cffaa1e Jinjie Ruan 2026-06-29 294 if (ret)
5beabef0cffaa1e Jinjie Ruan 2026-06-29 295 return ret;
5beabef0cffaa1e Jinjie Ruan 2026-06-29 296
5beabef0cffaa1e Jinjie Ruan 2026-06-29 297 if (crashk_low_res.end) {
5beabef0cffaa1e Jinjie Ruan 2026-06-29 298 ret = crash_exclude_mem_range(cmem, crashk_low_res.start, crashk_low_res.end);
5beabef0cffaa1e Jinjie Ruan 2026-06-29 299 if (ret)
5beabef0cffaa1e Jinjie Ruan 2026-06-29 300 return ret;
5beabef0cffaa1e Jinjie Ruan 2026-06-29 301 }
5beabef0cffaa1e Jinjie Ruan 2026-06-29 302
5beabef0cffaa1e Jinjie Ruan 2026-06-29 @303 for (i = 0; i < crashk_cma_cnt; ++i) {
5beabef0cffaa1e Jinjie Ruan 2026-06-29 304 ret = crash_exclude_mem_range(cmem, crashk_cma_ranges[i].start,
5beabef0cffaa1e Jinjie Ruan 2026-06-29 305 crashk_cma_ranges[i].end);
5beabef0cffaa1e Jinjie Ruan 2026-06-29 306 if (ret)
5beabef0cffaa1e Jinjie Ruan 2026-06-29 307 return ret;
5beabef0cffaa1e Jinjie Ruan 2026-06-29 308 }
5beabef0cffaa1e Jinjie Ruan 2026-06-29 309
5beabef0cffaa1e Jinjie Ruan 2026-06-29 310 return 0;
5beabef0cffaa1e Jinjie Ruan 2026-06-29 311 }
5beabef0cffaa1e Jinjie Ruan 2026-06-29 312
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-02 6:26 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=202607021410.VIPCVui0-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--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