tus='pass' reason=''
DKIMCheck: Server passes DKIM test, 0 Spam score
X-DKIM: signer='@intel.com' status='pass' reason=''
X-Spam-Score: 0.4 (/)
X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has
 performed the tests listed below against this email.
 Information: https://mxroutedocs.com/directadmin/spamfilters/
 ---
 Content analysis details:   (0.4 points)
 ---
  pts rule name              description
 ---- ---------------------- -----------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
                             blocked.  See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: git-scm.com]
  0.0 RCVD_IN_DNSWL_BLOCKED  RBL: ADMINISTRATOR NOTICE: The query to
                             DNSWL was blocked.  See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block
                              for more information.
                             [172.234.253.10 listed in list.dnswl.org]
  1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
                             mail domains are different
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
                             author's domain
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
                             valid
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager
 -0.0 DKIMWL_WL_HIGH         DKIMwl.org - High trust sender
SpamTally: Final spam score: 4

Hi Joanne,

kernel test robot noticed the following build warnings:

[auto build test WARNING on axboe/for-next]
[also build test WARNING on linus/master v6.19-rc1 next-20251219]
[cannot apply to mszeredi-fuse/for-next]
[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/Joanne-Koong/io_uring-kbuf-refactor-io_buf_pbuf_register-logic-into-generic-helpers/20251218-165107
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link:    https://lore.kernel.org/r/20251218083319.3485503-6-joannelkoong%40gmail.com
patch subject: [PATCH v2 05/25] io_uring/kbuf: support kernel-managed buffer rings in buffer selection
config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20251221/202512212111.RWRN4N7A-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251221/202512212111.RWRN4N7A-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/202512212111.RWRN4N7A-lkp@intel.com/

All warnings (new ones prefixed by >>):

   io_uring/kbuf.c: In function 'io_ring_buffer_select':
>> io_uring/kbuf.c:210:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     210 |                 sel.kaddr = (void *)buf->addr;
         |                             ^
   io_uring/kbuf.c: In function 'io_setup_kmbuf_ring':
   io_uring/kbuf.c:826:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     826 |                 buf->addr = (u64)buf_region;
         |                             ^


vim +210 io_uring/kbuf.c

   183	
   184	static struct io_br_sel io_ring_buffer_select(struct io_kiocb *req, size_t *len,
   185						      struct io_buffer_list *bl,
   186						      unsigned int issue_flags)
   187	{
   188		struct io_uring_buf_ring *br = bl->buf_ring;
   189		__u16 tail, head = bl->head;
   190		struct io_br_sel sel = { };
   191		struct io_uring_buf *buf;
   192		u32 buf_len;
   193	
   194		tail = smp_load_acquire(&br->tail);
   195		if (unlikely(tail == head))
   196			return sel;
   197	
   198		if (head + 1 == tail)
   199			req->flags |= REQ_F_BL_EMPTY;
   200	
   201		buf = io_ring_head_to_buf(br, head, bl->mask);
   202		buf_len = READ_ONCE(buf->len);
   203		if (*len == 0 || *len > buf_len)
   204			*len = buf_len;
   205		req->flags |= REQ_F_BUFFER_RING | REQ_F_BUFFERS_COMMIT;
   206		req->buf_index = READ_ONCE(buf->bid);
   207		sel.buf_list = bl;
   208		sel.addr = u64_to_user_ptr(READ_ONCE(buf->addr));
   209		if (bl->flags & IOBL_KERNEL_MANAGED)
 > 210			sel.kaddr = (void *)buf->addr;
   211		else
   212			sel.addr = u64_to_user_ptr(READ_ONCE(buf->addr));
   213	
   214		if (io_should_commit(req, bl, issue_flags)) {
   215			io_kbuf_commit(req, sel.buf_list, *len, 1);
   216			sel.buf_list = NULL;
   217		}
   218		return sel;
   219	}
   220	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


From - Sun Dec 21 16:00:25 2025
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <stable+bounces-203164-hi=josie.lol@vger.kernel.org>
Delivered-To: hi@josie.lol
Received: from witcher.mxrouting.net
	by witcher.mxrouting.net with LMTP
	id QEH4MJUZSGkMACAAYBR5ng
	(envelope-from <stable+bounces-203164-hi=josie.lol@vger.kernel.org>)
	for <hi@josie.lol>; Sun, 21 Dec 2025 16:00:21 +0000
Return-path: <stable+bounces-203164-hi=josie.lol@vger.kernel.org>
Envelope-to: hi@josie.lol
Delivery-date: Sun, 21 Dec 2025 16:00:21 +0000
Received: from sea.lore.kernel.org ([172.234.253.10])
	by witcher.mxrouting.net with esmtps  (TLS1.3) tls TLS_AES_256_GCM_SHA384
	(Exim 4.98)
	(envelope-from <stable+bounces-203164-hi=josie.lol@vger.kernel.org>)
	id 1vXLr3-00000008oi9-0HA5
	for hi@josie.lol;
	Sun, 21 Dec 2025 16:00:21 +0000
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9F59730084EF
	for <hi@josie.lol>; Sun, 21 Dec 2025 16:00:19 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 9875F17B505;
	Sun, 21 Dec 2025 16:00:18 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="toO0U0F9"
X-Original-To: stable@vger.kernel.org
Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBA2986352;
	Sun, 21 Dec 2025 16:00:13 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1766332818; cv=none; b=TdCd0PYJnmlC9yyVGRaxAJ0NYrw7M40IP2jjSsV3szAc76fEh74l4heeLhem8FkQgZ8hl7EBUc9En/TJmqcaVnMSXDp57lor9YAJU1Om372z2Q/UqV3vrQzM8YQlxRh3hv+hpZX0vYpEdvHUQgnk79t60CegEnrWvnogAoPGc7g=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1766332818; c=relaxed/simple;
	bh=HKpA2T0u4QqWlM8JmhrPuDVXGUGzQ6rfPmv7E1O9hy8=;
	h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
	 In-Reply-To:Content-Type; b=jhkKon0TgJuMaxktnACq1gfRIalH7Z/fRzrBG4iG1NIhuwr101eZSQTluhffCsoQZASDPqKmEIe0Zg8Txx0rRNUWyukSZSG1kDTVIZxzlxaccvOQqzoadQikcqUTVaclSuL33epqQ60gVFzgb5D7Y9xG/T11tKdFhKAG3BD4SmQ=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=toO0U0F9; arc=none smtp.client-ip=115.124.30.97
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=no