All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: wen.yang@linux.dev
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH 39/39] sysctl: remove the extra pointers and the compatibility bounds read
Date: Wed, 4 Nov 2026 13:45:45 +0800	[thread overview]
Message-ID: <202611041234.Gjf6kfSR-lkp@intel.com> (raw)
In-Reply-To: <b6e4cbd509687301a8ee2106f19a3ac01e7671a6.1793204511.git.wen.yang@linux.dev>

Hi,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[cannot apply to sysctl/sysctl-next brauner-vfs/vfs.all linus/master mcgrof/sysctl-next v7.3 next-20261030]
[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/wen-yang-linux-dev/sysctl-replace-overloaded-extra-pointers-with-typed-bounds-and-context/20261029-003440
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/b6e4cbd509687301a8ee2106f19a3ac01e7671a6.1793204511.git.wen.yang%40linux.dev
patch subject: [RFC PATCH 39/39] sysctl: remove the extra pointers and the compatibility bounds read
config: um-defconfig (https://download.01.org/0day-ci/archive/20261104/202611041234.Gjf6kfSR-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 65303e81f481bbfe386b8596423f94c43198ba94)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261104/202611041234.Gjf6kfSR-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/202611041234.Gjf6kfSR-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/unix/sysctl_net_unix.c:23:4: error: field designator 'extra1' does not refer to any field in type 'const struct ctl_table'
      23 |                 .extra1         = SYSCTL_ZERO,
         |                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/unix/sysctl_net_unix.c:24:4: error: field designator 'extra2' does not refer to any field in type 'const struct ctl_table'
      24 |                 .extra2         = SYSCTL_INT_MAX,
         |                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/unix/sysctl_net_unix.c:32:36: error: invalid application of 'sizeof' to an incomplete type 'const struct ctl_table[]'
      32 |         table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
         |                                           ^~~~~~~~~~~~
   include/linux/string.h:315:49: note: expanded from macro 'kmemdup'
     315 | #define kmemdup(...)    alloc_hooks(kmemdup_noprof(__VA_ARGS__))
         |                                                    ^~~~~~~~~~~
   include/linux/alloc_tag.h:270:31: note: expanded from macro 'alloc_hooks'
     270 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
         |                                      ^~~~~~~~~
   include/linux/alloc_tag.h:256:9: note: expanded from macro 'alloc_hooks_tag'
     256 |         typeof(_do_alloc) _res;                                         \
         |                ^~~~~~~~~
>> net/unix/sysctl_net_unix.c:32:36: error: invalid application of 'sizeof' to an incomplete type 'const struct ctl_table[]'
      32 |         table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
         |                                           ^~~~~~~~~~~~
   include/linux/string.h:315:49: note: expanded from macro 'kmemdup'
     315 | #define kmemdup(...)    alloc_hooks(kmemdup_noprof(__VA_ARGS__))
         |                                                    ^~~~~~~~~~~
   include/linux/alloc_tag.h:270:31: note: expanded from macro 'alloc_hooks'
     270 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
         |                                      ^~~~~~~~~
   include/linux/alloc_tag.h:260:10: note: expanded from macro 'alloc_hooks_tag'
     260 |                 _res = _do_alloc;                                       \
         |                        ^~~~~~~~~
>> net/unix/sysctl_net_unix.c:32:36: error: invalid application of 'sizeof' to an incomplete type 'const struct ctl_table[]'
      32 |         table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
         |                                           ^~~~~~~~~~~~
   include/linux/string.h:315:49: note: expanded from macro 'kmemdup'
     315 | #define kmemdup(...)    alloc_hooks(kmemdup_noprof(__VA_ARGS__))
         |                                                    ^~~~~~~~~~~
   include/linux/alloc_tag.h:270:31: note: expanded from macro 'alloc_hooks'
     270 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
         |                                      ^~~~~~~~~
   include/linux/alloc_tag.h:263:10: note: expanded from macro 'alloc_hooks_tag'
     263 |                 _res = _do_alloc;                                       \
         |                        ^~~~~~~~~
   net/unix/sysctl_net_unix.c:54:12: error: invalid application of 'sizeof' to an incomplete type 'const struct ctl_table[]'
      54 |                                               ARRAY_SIZE(unix_table));
         |                                               ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                ^~~~~
   6 errors generated.


vim +23 net/unix/sysctl_net_unix.c

84960bf2403123a Kuniyuki Iwashima 2025-03-17  15  
0abc76bc20826e2 Joel Granados     2026-08-10  16  static const struct ctl_table unix_table[] = {
^1da177e4c3f415 Linus Torvalds    2005-04-16  17  	{
^1da177e4c3f415 Linus Torvalds    2005-04-16  18  		.procname	= "max_dgram_qlen",
a0a53c8ba95451f Denis V. Lunev    2007-12-11  19  		.data		= &init_net.unx.sysctl_max_dgram_qlen,
^1da177e4c3f415 Linus Torvalds    2005-04-16  20  		.maxlen		= sizeof(int),
^1da177e4c3f415 Linus Torvalds    2005-04-16  21  		.mode		= 0644,
1a4e7bc6e3457ad Yingjie Wang      2026-10-16  22  		.proc_handler	= proc_dointvec_minmax,
1a4e7bc6e3457ad Yingjie Wang      2026-10-16 @23  		.extra1		= SYSCTL_ZERO,
1a4e7bc6e3457ad Yingjie Wang      2026-10-16 @24  		.extra2		= SYSCTL_INT_MAX,
^1da177e4c3f415 Linus Torvalds    2005-04-16  25  	},
^1da177e4c3f415 Linus Torvalds    2005-04-16  26  };
^1da177e4c3f415 Linus Torvalds    2005-04-16  27  
0abc76bc20826e2 Joel Granados     2026-08-10  28  static const struct ctl_table *unix_table_dup(struct net *net)
^1da177e4c3f415 Linus Torvalds    2005-04-16  29  {
1597fbc0faf88c4 Pavel Emelyanov   2007-12-01  30  	struct ctl_table *table;
1597fbc0faf88c4 Pavel Emelyanov   2007-12-01  31  
0abc76bc20826e2 Joel Granados     2026-08-10 @32  	table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
0abc76bc20826e2 Joel Granados     2026-08-10  33  	if (!table)
0abc76bc20826e2 Joel Granados     2026-08-10  34  		return NULL;
0abc76bc20826e2 Joel Granados     2026-08-10  35  
0abc76bc20826e2 Joel Granados     2026-08-10  36  	table[0].data = &net->unx.sysctl_max_dgram_qlen;
0abc76bc20826e2 Joel Granados     2026-08-10  37  
0abc76bc20826e2 Joel Granados     2026-08-10  38  	return table;
0abc76bc20826e2 Joel Granados     2026-08-10  39  }
0abc76bc20826e2 Joel Granados     2026-08-10  40  

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

  parent reply	other threads:[~2026-11-04  5:46 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 16:34 [RFC PATCH 00/39] sysctl: replace overloaded extra pointers with typed bounds and context wen.yang
2026-10-28 16:34 ` [RFC PATCH 01/39] " wen.yang
2026-10-28 21:09   ` David Laight
2026-11-07 17:43   ` Joel Granados
2026-10-28 16:34 ` [RFC PATCH 02/39] test_sysctl: convert bounds to numeric values wen.yang
2026-10-28 16:34 ` [RFC PATCH 03/39] sysctl: add KUnit coverage for numeric bounds and handlers wen.yang
2026-11-04  5:46   ` kernel test robot
2026-10-28 16:34 ` [RFC PATCH 04/39] sysctl: cover runtime ranges and context lifecycles in KUnit wen.yang
2026-10-28 16:34 ` [RFC PATCH 05/39] sysctl: cover priv in KUnit and the debug test module wen.yang
2026-10-28 16:34 ` [RFC PATCH 06/39] sysctl: convert core table bounds to numeric values wen.yang
2026-10-28 16:34 ` [RFC PATCH 07/39] sysctl: store architecture sysctl bounds by value wen.yang
2026-10-28 16:34 ` [RFC PATCH 08/39] sysctl: store crypto " wen.yang
2026-10-28 16:34 ` [RFC PATCH 09/39] sysctl: store device " wen.yang
2026-10-28 16:34 ` [RFC PATCH 10/39] sysctl: store filesystem " wen.yang
2026-10-28 16:34 ` [RFC PATCH 11/39] sysctl: store message-queue " wen.yang
2026-10-28 16:34 ` [RFC PATCH 12/39] sysctl: store kernel " wen.yang
2026-10-28 16:34 ` [RFC PATCH 13/39] sysctl: store memory-management " wen.yang
2026-10-28 16:34 ` [RFC PATCH 14/39] sysctl: store IPv6 scalar " wen.yang
2026-10-28 16:34 ` [RFC PATCH 15/39] sysctl: store netfilter " wen.yang
2026-10-28 16:34 ` [RFC PATCH 16/39] sysctl: store RPC " wen.yang
2026-10-28 16:34 ` [RFC PATCH 17/39] sysctl: store remaining network " wen.yang
2026-10-28 16:34 ` [RFC PATCH 18/39] sysctl: store security " wen.yang
2026-10-28 16:34 ` [RFC PATCH 19/39] io_uring: store its " wen.yang
2026-10-28 16:34 ` [RFC PATCH 20/39] sysctl: refresh dynamic scheduler and PID bounds per call wen.yang
2026-10-28 16:35 ` [RFC PATCH 21/39] sysctl: refresh device-dependent " wen.yang
2026-10-28 16:35 ` [RFC PATCH 22/39] sysctl: refresh namespace IPC " wen.yang
2026-10-28 16:35 ` [RFC PATCH 23/39] yama: preserve scope locking with numeric sysctl bounds wen.yang
2026-10-28 16:35 ` [RFC PATCH 24/39] net: refresh core sysctl limits without bound pointers wen.yang
2026-10-28 16:35 ` [RFC PATCH 25/39] sctp: resolve numeric ranges from the current namespace wen.yang
2026-10-28 16:35 ` [RFC PATCH 26/39] rds: preserve live reconnect limits with numeric bounds wen.yang
2026-10-28 16:35 ` [RFC PATCH 27/39] ipv4: preserve live and vector bounds with numeric sysctls wen.yang
2026-10-28 16:35 ` [RFC PATCH 28/39] net: refresh fragment and remaining dynamic sysctl bounds wen.yang
2026-10-28 16:35 ` [RFC PATCH 29/39] neighbour: derive sysctl ownership independently of bounds wen.yang
2026-10-28 16:35 ` [RFC PATCH 30/39] net: resolve sysctl owners from their backing data wen.yang
2026-10-28 16:35 ` [RFC PATCH 31/39] ipvs: derive sysctl ownership from numeric storage wen.yang
2026-10-28 16:35 ` [RFC PATCH 32/39] sysctl: remove obsolete nr_open bound variables wen.yang
2026-10-28 16:35 ` [RFC PATCH 33/39] ipv6: move address sysctl context to priv wen.yang
2026-10-28 16:35 ` [RFC PATCH 34/39] ipv4: move device " wen.yang
2026-10-28 16:35 ` [RFC PATCH 35/39] netfilter: move logger " wen.yang
2026-10-28 16:35 ` [RFC PATCH 36/39] parport: move device " wen.yang
2026-10-28 16:35 ` [RFC PATCH 37/39] net: move namespace " wen.yang
2026-10-28 16:35 ` [RFC PATCH 38/39] arm64: move vector-length " wen.yang
2026-10-28 16:35 ` [RFC PATCH 39/39] sysctl: remove the extra pointers and the compatibility bounds read wen.yang
2026-11-04  5:17   ` kernel test robot
2026-11-04  5:45   ` kernel test robot [this message]
2026-10-29 10:58 ` [RFC PATCH 00/39] sysctl: replace overloaded extra pointers with typed bounds and context David Laight
2026-11-02 15:40   ` Wen Yang
2026-11-02 16:54     ` David Laight
2026-11-04 18:32       ` Wen Yang
2026-11-07 15:27     ` Joel Granados
2026-11-07 17:05       ` David Laight
2026-11-07 21:26 ` Joel Granados

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=202611041234.Gjf6kfSR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wen.yang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.