All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v25 22/25] Audit: Add new record for multiple process LSM attributes
@ 2021-03-10 13:17 kernel test robot
  0 siblings, 0 replies; 70+ messages in thread
From: kernel test robot @ 2021-03-10 13:17 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 4563 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210309144243.12519-23-casey@schaufler-ca.com>
References: <20210309144243.12519-23-casey@schaufler-ca.com>
TO: Casey Schaufler <casey@schaufler-ca.com>
TO: casey.schaufler(a)intel.com
TO: jmorris(a)namei.org
TO: linux-security-module(a)vger.kernel.org
TO: selinux(a)vger.kernel.org
CC: casey(a)schaufler-ca.com
CC: linux-audit(a)redhat.com
CC: keescook(a)chromium.org
CC: john.johansen(a)canonical.com
CC: penguin-kernel(a)i-love.sakura.ne.jp
CC: paul(a)paul-moore.com

Hi Casey,

I love your patch! Perhaps something to improve:

[auto build test WARNING on nf/master]
[also build test WARNING on linus/master v5.12-rc2]
[cannot apply to pcmoore-audit/next nf-next/master security/next-testing]
[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]

url:    https://github.com/0day-ci/linux/commits/Casey-Schaufler/LSM-Infrastructure-management-of-the-sock-security/20210309-234224
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master
:::::: branch date: 22 hours ago
:::::: commit date: 22 hours ago
config: x86_64-randconfig-m001-20210308 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
kernel/auditsc.c:1533 audit_log_lsm_common() warn: we never enter this loop

Old smatch warnings:
include/linux/security.h:199 lsmblob_init() warn: we never enter this loop
include/linux/security.h:246 lsmblob_value() warn: we never enter this loop

vim +1533 kernel/auditsc.c

3f1c82502c299d William Roberts 2014-02-11  1516  
cfacc4ba1644ab Casey Schaufler 2021-03-09  1517  void audit_log_lsm_common(struct audit_context *context)
cfacc4ba1644ab Casey Schaufler 2021-03-09  1518  {
cfacc4ba1644ab Casey Schaufler 2021-03-09  1519  	struct audit_buffer *ab;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1520  	struct lsmcontext lsmdata;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1521  	bool sep = false;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1522  	int error;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1523  	int i;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1524  
cfacc4ba1644ab Casey Schaufler 2021-03-09  1525  	if (!lsm_multiple_contexts() || context == NULL ||
cfacc4ba1644ab Casey Schaufler 2021-03-09  1526  	    !lsmblob_is_set(&context->lsm))
cfacc4ba1644ab Casey Schaufler 2021-03-09  1527  		return;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1528  
cfacc4ba1644ab Casey Schaufler 2021-03-09  1529  	ab = audit_log_start(context, GFP_ATOMIC, AUDIT_MAC_TASK_CONTEXTS);
cfacc4ba1644ab Casey Schaufler 2021-03-09  1530  	if (!ab)
cfacc4ba1644ab Casey Schaufler 2021-03-09  1531  		return; /* audit_panic or being filtered */
cfacc4ba1644ab Casey Schaufler 2021-03-09  1532  
cfacc4ba1644ab Casey Schaufler 2021-03-09 @1533  	for (i = 0; i < LSMBLOB_ENTRIES; i++) {
cfacc4ba1644ab Casey Schaufler 2021-03-09  1534  		if (context->lsm.secid[i] == 0)
cfacc4ba1644ab Casey Schaufler 2021-03-09  1535  			continue;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1536  		error = security_secid_to_secctx(&context->lsm, &lsmdata, i);
cfacc4ba1644ab Casey Schaufler 2021-03-09  1537  		if (error && error != -EINVAL) {
cfacc4ba1644ab Casey Schaufler 2021-03-09  1538  			audit_panic("error in audit_log_lsm");
cfacc4ba1644ab Casey Schaufler 2021-03-09  1539  			return;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1540  		}
cfacc4ba1644ab Casey Schaufler 2021-03-09  1541  
cfacc4ba1644ab Casey Schaufler 2021-03-09  1542  		audit_log_format(ab, "%ssubj_%s=%s", sep ? " " : "",
cfacc4ba1644ab Casey Schaufler 2021-03-09  1543  				 lsm_slot_to_name(i), lsmdata.context);
cfacc4ba1644ab Casey Schaufler 2021-03-09  1544  		sep = true;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1545  
cfacc4ba1644ab Casey Schaufler 2021-03-09  1546  		security_release_secctx(&lsmdata);
cfacc4ba1644ab Casey Schaufler 2021-03-09  1547  	}
cfacc4ba1644ab Casey Schaufler 2021-03-09  1548  	audit_log_end(ab);
cfacc4ba1644ab Casey Schaufler 2021-03-09  1549  	context->lsmdone = true;
cfacc4ba1644ab Casey Schaufler 2021-03-09  1550  }
cfacc4ba1644ab Casey Schaufler 2021-03-09  1551  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31463 bytes --]

^ permalink raw reply	[flat|nested] 70+ messages in thread

end of thread, other threads:[~2021-03-12 21:29 UTC | newest]

Thread overview: 70+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210309144243.12519-1-casey.ref@schaufler-ca.com>
2021-03-09 14:42 ` [PATCH v25 00/25] LSM: Module stacking for AppArmor Casey Schaufler
2021-03-09 14:42   ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 01/25] LSM: Infrastructure management of the sock security Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 02/25] LSM: Add the lsmblob data structure Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 03/25] LSM: provide lsm name and id slot mappings Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 04/25] IMA: avoid label collisions with stacked LSMs Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 05/25] LSM: Use lsmblob in security_audit_rule_match Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 06/25] LSM: Use lsmblob in security_kernel_act_as Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 07/25] LSM: Use lsmblob in security_secctx_to_secid Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 08/25] LSM: Use lsmblob in security_secid_to_secctx Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 09/25] LSM: Use lsmblob in security_ipc_getsecid Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 10/25] LSM: Use lsmblob in security_task_getsecid Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 11/25] LSM: Use lsmblob in security_inode_getsecid Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 12/25] LSM: Use lsmblob in security_cred_getsecid Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 19:46     ` kernel test robot
2021-03-09 19:46       ` kernel test robot
2021-03-09 19:46       ` kernel test robot
2021-03-09 19:46     ` [RFC PATCH] LSM: audit_sig_lsm can be static kernel test robot
2021-03-09 19:46       ` kernel test robot
2021-03-09 19:46       ` kernel test robot
2021-03-09 14:42   ` [PATCH v25 13/25] IMA: Change internal interfaces to use lsmblobs Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 14/25] LSM: Specify which LSM to display Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 15/25] LSM: Ensure the correct LSM context releaser Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 16/25] LSM: Use lsmcontext in security_secid_to_secctx Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 17/25] LSM: Use lsmcontext in security_inode_getsecctx Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-12 16:16     ` Chuck Lever III
2021-03-12 16:16       ` Chuck Lever III
2021-03-09 14:42   ` [PATCH v25 18/25] LSM: security_secid_to_secctx in netlink netfilter Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 19/25] NET: Store LSM netlabel data in a lsmblob Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 20/25] LSM: Verify LSM display sanity in binder Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 21/25] audit: add support for non-syscall auxiliary records Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 17:55     ` kernel test robot
2021-03-09 17:55       ` kernel test robot
2021-03-09 17:55       ` kernel test robot
2021-03-09 14:42   ` [PATCH v25 22/25] Audit: Add new record for multiple process LSM attributes Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 17:04     ` kernel test robot
2021-03-09 17:04       ` kernel test robot
2021-03-09 17:04       ` kernel test robot
2021-03-09 17:19     ` kernel test robot
2021-03-09 17:19       ` kernel test robot
2021-03-09 17:19       ` kernel test robot
2021-03-09 14:42   ` [PATCH v25 23/25] Audit: Add a new record for multiple object " Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 24/25] LSM: Add /proc attr entry for full LSM context Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-09 14:42   ` [PATCH v25 25/25] AppArmor: Remove the exclusive flag Casey Schaufler
2021-03-09 14:42     ` Casey Schaufler
2021-03-10 13:17 [PATCH v25 22/25] Audit: Add new record for multiple process LSM attributes kernel test robot

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.