[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512140315.QRNaYare-lkp@intel.com>
Date: Sun, 14 Dec 2025 03:52:40 +0800
From: kernel test robot <lkp@...el.com>
To: Mickaël Salaün <mic@...ikod.net>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry
defined twice
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4a298a43f5e339f48d2dda0665c02b88ee9a4e03
commit: c56f649646ecec3dd1a2e400e6e5ec83439d940f landlock: Log mount-related denials
date: 9 months ago
config: arm64-randconfig-r112-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140315.QRNaYare-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140315.QRNaYare-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140315.QRNaYare-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry defined twice
security/landlock/fs.c:1340:26: sparse: also defined here
security/landlock/fs.c:1353:18: sparse: sparse: Initializer entry defined twice
security/landlock/fs.c:1354:26: sparse: also defined here
vim +1339 security/landlock/fs.c
1333
1334 static void
1335 log_fs_change_topology_path(const struct landlock_cred_security *const subject,
1336 size_t handle_layer, const struct path *const path)
1337 {
1338 landlock_log_denial(subject, &(struct landlock_request) {
> 1339 .type = LANDLOCK_REQUEST_FS_CHANGE_TOPOLOGY,
1340 .audit = {
1341 .type = LSM_AUDIT_DATA_PATH,
1342 .u.path = *path,
1343 },
1344 .layer_plus_one = handle_layer + 1,
1345 });
1346 }
1347
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists