From: kernel test robot <lkp@intel.com>
To: James Bottomley <James.Bottomley@hansenpartnership.com>,
bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, Roberto Sassu <roberto.sassu@huawei.com>
Subject: Re: [PATCH 2/3] bpf: remove bpf_key reference
Date: Sat, 26 Jul 2025 20:06:09 +0800 [thread overview]
Message-ID: <202507261944.7ub6moae-lkp@intel.com> (raw)
In-Reply-To: <20250724143428.4416-3-James.Bottomley@HansenPartnership.com>
Hi James,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf-next/master]
[also build test WARNING on bpf/master linus/master v6.16-rc7 next-20250725]
[cannot apply to bpf-next/net]
[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/James-Bottomley/bpf-make-bpf_key-an-opaque-type/20250724-224304
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20250724143428.4416-3-James.Bottomley%40HansenPartnership.com
patch subject: [PATCH 2/3] bpf: remove bpf_key reference
config: i386-randconfig-063-20250725 (https://download.01.org/0day-ci/archive/20250726/202507261944.7ub6moae-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250726/202507261944.7ub6moae-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/202507261944.7ub6moae-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/trace/bpf_trace.c:834:41: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr @@ got void * @@
kernel/trace/bpf_trace.c:834:41: sparse: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr
kernel/trace/bpf_trace.c:834:41: sparse: got void *
kernel/trace/bpf_trace.c:3695:52: sparse: sparse: cast removes address space '__user' of expression
kernel/trace/bpf_trace.c:3709:56: sparse: sparse: cast removes address space '__user' of expression
kernel/trace/bpf_trace.c:3723:52: sparse: sparse: cast removes address space '__user' of expression
kernel/trace/bpf_trace.c:3730:56: sparse: sparse: cast removes address space '__user' of expression
kernel/trace/bpf_trace.c:3738:52: sparse: sparse: cast removes address space '__user' of expression
kernel/trace/bpf_trace.c:3746:56: sparse: sparse: cast removes address space '__user' of expression
>> kernel/trace/bpf_trace.c:1349:42: sparse: sparse: non size-preserving pointer to integer cast
kernel/trace/bpf_trace.c:1377:42: sparse: sparse: non size-preserving pointer to integer cast
kernel/trace/bpf_trace.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...):
include/linux/rcupdate.h:871:25: sparse: sparse: context imbalance in 'uprobe_prog_run' - unexpected unlock
vim +1349 kernel/trace/bpf_trace.c
1339
1340 /**
1341 * bpf_key_put - decrement key reference count if key is valid and free bpf_key
1342 * @bkey: bpf_key structure
1343 *
1344 * Decrement the reference count of the key inside *bkey*, if the pointer
1345 * is valid, and free *bkey*.
1346 */
1347 __bpf_kfunc void bpf_key_put(struct bpf_key *bkey)
1348 {
> 1349 if (system_keyring_id_check((u64)bkey->key) < 0)
1350 key_put(bkey->key);
1351
1352 kfree(bkey);
1353 }
1354
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-26 12:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-24 14:34 [PATCH 0/3] bpf: tidy up internals of bpf key handling James Bottomley
2025-07-24 14:34 ` [PATCH 1/3] bpf: make bpf_key an opaque type James Bottomley
2025-07-24 14:34 ` [PATCH 2/3] bpf: remove bpf_key reference James Bottomley
2025-07-26 12:06 ` kernel test robot [this message]
2025-07-26 12:16 ` kernel test robot
2025-07-24 14:34 ` [PATCH 3/3] bpf: eliminate the allocation of an intermediate struct bpf_key James Bottomley
2025-07-24 17:13 ` [PATCH 0/3] bpf: tidy up internals of bpf key handling James Bottomley
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=202507261944.7ub6moae-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=bpf@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=roberto.sassu@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).