From: kernel test robot <lkp@intel.com>
To: Sanghyun Park <sanghyun.park.cnu@gmail.com>,
Yonghong Song <yonghong.song@linux.dev>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Sanghyun Park <sanghyun.park.cnu@gmail.com>,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>,
Kumar Kartikeya Dwivedi <memxor@gmail.com>,
John Fastabend <john.fastabend@gmail.com>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>, Hao Luo <haoluo@google.com>,
Jiri Olsa <jolsa@kernel.org>,
Emil Tsalapatis <emil@etsalapatis.com>,
Puranjay Mohan <puranjay@kernel.org>,
bpf@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf-next v5] bpf: Fix use-after-free on mm_struct in bpf_find_vma()
Date: Fri, 14 Aug 2026 14:05:12 +0800 [thread overview]
Message-ID: <202608141429.e94YU9PI-lkp@intel.com> (raw)
In-Reply-To: <20260630023443.3026627-2-sanghyun.park.cnu@gmail.com>
Hi Sanghyun,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/net]
[also build test ERROR on bpf/master linus/master v7.2-rc7]
[cannot apply to bpf-next/master next-20260812]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sanghyun-Park/bpf-Fix-use-after-free-on-mm_struct-in-bpf_find_vma/20260813-193715
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git net
patch link: https://lore.kernel.org/r/20260630023443.3026627-2-sanghyun.park.cnu%40gmail.com
patch subject: [PATCH bpf-next v5] bpf: Fix use-after-free on mm_struct in bpf_find_vma()
config: riscv-randconfig-002-20260814 (https://download.01.org/0day-ci/archive/20260814/202608141429.e94YU9PI-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/202608141429.e94YU9PI-lkp@intel.com/reproduce)
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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608141429.e94YU9PI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/bpf/task_iter.c:1017:3: error: call to undeclared function 'bpf_iter_mmput_async'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1017 | bpf_iter_mmput_async(kit->data->mm);
| ^
1 error generated.
vim +/bpf_iter_mmput_async +1017 kernel/bpf/task_iter.c
4ac454682158473 Dave Marchevsky 2023-10-13 1009
4ac454682158473 Dave Marchevsky 2023-10-13 1010 __bpf_kfunc void bpf_iter_task_vma_destroy(struct bpf_iter_task_vma *it)
4ac454682158473 Dave Marchevsky 2023-10-13 1011 {
4ac454682158473 Dave Marchevsky 2023-10-13 1012 struct bpf_iter_task_vma_kern *kit = (void *)it;
4ac454682158473 Dave Marchevsky 2023-10-13 1013
4ac454682158473 Dave Marchevsky 2023-10-13 1014 if (kit->data) {
4cbee026db54cad Puranjay Mohan 2026-04-08 1015 bpf_iter_task_vma_snapshot_reset(&kit->data->snapshot);
4ac454682158473 Dave Marchevsky 2023-10-13 1016 put_task_struct(kit->data->task);
d8e27d2d22b6e2d Puranjay Mohan 2026-04-08 @1017 bpf_iter_mmput_async(kit->data->mm);
4ac454682158473 Dave Marchevsky 2023-10-13 1018 bpf_mem_free(&bpf_global_ma, kit->data);
4ac454682158473 Dave Marchevsky 2023-10-13 1019 }
4ac454682158473 Dave Marchevsky 2023-10-13 1020 }
4ac454682158473 Dave Marchevsky 2023-10-13 1021
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-08-14 6:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 2:34 [PATCH bpf-next v5] bpf: Fix use-after-free on mm_struct in bpf_find_vma() Sanghyun Park
2026-06-30 2:47 ` sashiko-bot
2026-06-30 9:23 ` [syzbot ci] " syzbot ci
2026-08-13 16:58 ` [PATCH bpf-next v5] " kernel test robot
2026-08-14 6:05 ` kernel test robot [this message]
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=202608141429.e94YU9PI-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=puranjay@kernel.org \
--cc=sanghyun.park.cnu@gmail.com \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=yonghong.song@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