lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209242113.ureaZtJf-lkp@intel.com>
Date:   Sat, 24 Sep 2022 21:22:36 +0800
From:   kernel test robot <lkp@...el.com>
To:     John Johansen <john.johansen@...onical.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jj-apparmor:apparmor-next 24/41]
 security/apparmor/policy_compat.c:150: warning: expecting prototype for
 aa_compute_fperms(). Prototype was for compute_fperms() instead

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor.git apparmor-next
head:   97b7371922d82e5841281d3f8575243a55f8f0bd
commit: ef43d624ed6316f3e5e45f8f26356818f1356ad1 [24/41] apparmor: isolate policy backwards compatibility to its own file
config: s390-allmodconfig
compiler: s390-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor.git/commit/?id=ef43d624ed6316f3e5e45f8f26356818f1356ad1
        git remote add jj-apparmor https://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor.git
        git fetch --no-tags jj-apparmor apparmor-next
        git checkout ef43d624ed6316f3e5e45f8f26356818f1356ad1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> security/apparmor/policy_compat.c:150: warning: expecting prototype for aa_compute_fperms(). Prototype was for compute_fperms() instead


vim +150 security/apparmor/policy_compat.c

   141	
   142	/**
   143	 * aa_compute_fperms - convert dfa compressed perms to internal perms and store
   144	 *		       them so they can be retrieved later.
   145	 * @dfa: a dfa using fperms to remap to internal permissions
   146	 *
   147	 * Returns: remapped perm table
   148	 */
   149	static struct aa_perms *compute_fperms(struct aa_dfa *dfa)
 > 150	{
   151		aa_state_t state;
   152		unsigned int state_count;
   153		struct aa_perms *table;
   154	
   155		AA_BUG(!dfa);
   156	
   157		state_count = dfa->tables[YYTD_ID_BASE]->td_lolen;
   158		/* DFAs are restricted from having a state_count of less than 2 */
   159		table = kvcalloc(state_count * 2, sizeof(struct aa_perms), GFP_KERNEL);
   160		if (!table)
   161			return NULL;
   162	
   163		/* zero init so skip the trap state (state == 0) */
   164		for (state = 1; state < state_count; state++) {
   165			table[state * 2] = compute_fperms_user(dfa, state);
   166			table[state * 2 + 1] = compute_fperms_other(dfa, state);
   167		}
   168	
   169		return table;
   170	}
   171	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (119690 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ