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: <202209250216.mPLcusnu-lkp@intel.com>
Date:   Sun, 25 Sep 2022 03:10:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     John Johansen <john.johansen@...onical.com>
Cc:     llvm@...ts.linux.dev, 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-randconfig-c005-20220923
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # install s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # 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=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash security/apparmor/

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" (150022 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ