From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BF44CDB47E for ; Fri, 20 Oct 2023 11:19:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84BF08D0060; Fri, 20 Oct 2023 07:19:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7FD1B8D0003; Fri, 20 Oct 2023 07:19:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6EB088D0060; Fri, 20 Oct 2023 07:19:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 60ECD8D0003 for ; Fri, 20 Oct 2023 07:19:12 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 313084080C for ; Fri, 20 Oct 2023 11:19:12 +0000 (UTC) X-FDA: 81365593344.08.190D2A9 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by imf23.hostedemail.com (Postfix) with ESMTP id C6C6114001B for ; Fri, 20 Oct 2023 11:19:08 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NDobJPlH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697800749; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=bKR3HcCBFlGdKZaBCwoMLTVAxlToQUkVkh1lIMj8jyI=; b=WQs4v8r/pvK4xMBujgS/I7hDM0rWhZ5Q+PKt72BZwGN7IhwZWuR7Rzce121dCfX2irOMc4 Fz8dsCCOHHU0JEMto7EUyriHXQlNdBxd0QQKMCrZ0HBn3yiEr20wqhR0cSl/9wCL0NgTob x3eFZdMNWw8jL1MbKTLgMYPUx6jWmSc= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NDobJPlH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697800749; a=rsa-sha256; cv=none; b=OhfoKWVVthLnSY2JDaBky6f0iDtwPTpJr/JcXQPGPf5ReyI6ZdMYhx6VRW6yCJ1fYCh45d jra16vL092xkZ5n5xLenMAsoAHwU1oigxTELT+cwVYTfOJxj3+SIPkWsmGMlthHHdGCz9E C/Yi4ZiiSMQVPgMMQOtpl3qgvqUPs1k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697800748; x=1729336748; h=date:from:to:cc:subject:message-id:mime-version; bh=otx+Zz/LY19UTVsVa3Npz5zr1ue4E3U/OyiF31M7JVo=; b=NDobJPlHkcBl263102h/5pTHhFongV0SPFB3EuUCnmEHb6E65+6Fso7w RUSE5dtpDNAUhQf1QX74aZchcR9Wr8nyagjMKKxJ86U18JDvV2/W/R04Y Kali03dvjK9TqIUeLVcsAjRvpjHfJTSElT12mPy0LxJznJGTT6zGqDf2e U0tiCdk7A+s+ecGDUxjg7fmX7g3WpBIat97Mb4JoM2IkBpHYLvnyCzSRF OpJVPa2VT5KRSDddSFbdSXI4kEACxvFAKKN78sxfN/6tSAMvgnPhWlxiM csOJ3VIck0K67/aTN+YPtpuuL3M0sjMuOIeMprMiL7x9njivpfL8XOsco w==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="385354702" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="385354702" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 04:19:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="873877190" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="873877190" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 20 Oct 2023 04:19:05 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtnWx-0003RW-2b; Fri, 20 Oct 2023 11:19:03 +0000 Date: Fri, 20 Oct 2023 19:18:28 +0800 From: kernel test robot To: Georgia Garcia Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , John Johansen Subject: [linux-next:master 10379/13906] security/apparmor/lsm.c:651:5: warning: no previous declaration for 'apparmor_uring_override_creds' Message-ID: <202310201911.QT2YAa39-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C6C6114001B X-Stat-Signature: d9mnfzs3bw67isfr9qn4ogrkr1xb3b9t X-Rspam-User: X-HE-Tag: 1697800748-176686 X-HE-Meta: U2FsdGVkX1950mbwXV/+/tyec5AkCiVioHXrQlGmzLz6ujSK9Ie/A4rVsUyCKHcOSRa57Ptak9jdGKgwWjunSo4gm3KE60sCfoIafvR2HDegC8X71yhPeDKB5CQAyJG8Mt6eCDEQZFJT9Rn4IfBdypKL3MtjNXRWtV8zUdItgShPWakXAU7CE8rX23N03PUUdsxmOj3LbVd9MYvaOsT8MtPI0LAkj9FVCXaIdBdXfent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9FfPdz8EHLuuVguMyEMtAKJtREcMGCAS3s+dlB X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 2030579113a1b1b5bfd7ff24c0852847836d8fd1 commit: c4371d90633b73cf6e86aff43ff2b5d95ad2b9eb [10379/13906] apparmor: add io_uring mediation config: x86_64-randconfig-072-20231020 (https://download.01.org/0day-ci/archive/20231020/202310201911.QT2YAa39-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310201911.QT2YAa39-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310201911.QT2YAa39-lkp@intel.com/ All warnings (new ones prefixed by >>): >> security/apparmor/lsm.c:651:5: warning: no previous declaration for 'apparmor_uring_override_creds' [-Wmissing-declarations] int apparmor_uring_override_creds(const struct cred *new) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> security/apparmor/lsm.c:675:5: warning: no previous declaration for 'apparmor_uring_sqpoll' [-Wmissing-declarations] int apparmor_uring_sqpoll(void) ^~~~~~~~~~~~~~~~~~~~~ vim +/apparmor_uring_override_creds +651 security/apparmor/lsm.c 643 644 /** 645 * apparmor_uring_override_creds - check the requested cred override 646 * @new: the target creds 647 * 648 * Check to see if the current task is allowed to override it's credentials 649 * to service an io_uring operation. 650 */ > 651 int apparmor_uring_override_creds(const struct cred *new) 652 { 653 struct aa_profile *profile; 654 struct aa_label *label; 655 int error; 656 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_IO_URING, 657 OP_URING_OVERRIDE); 658 659 ad.uring.target = cred_label(new); 660 label = __begin_current_label_crit_section(); 661 error = fn_for_each(label, profile, 662 profile_uring(profile, AA_MAY_OVERRIDE_CRED, 663 cred_label(new), CAP_SYS_ADMIN, &ad)); 664 __end_current_label_crit_section(label); 665 666 return error; 667 } 668 669 /** 670 * apparmor_uring_sqpoll - check if a io_uring polling thread can be created 671 * 672 * Check to see if the current task is allowed to create a new io_uring 673 * kernel polling thread. 674 */ > 675 int apparmor_uring_sqpoll(void) 676 { 677 struct aa_profile *profile; 678 struct aa_label *label; 679 int error; 680 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_IO_URING, 681 OP_URING_SQPOLL); 682 683 label = __begin_current_label_crit_section(); 684 error = fn_for_each(label, profile, 685 profile_uring(profile, AA_MAY_CREATE_SQPOLL, 686 NULL, CAP_SYS_ADMIN, &ad)); 687 __end_current_label_crit_section(label); 688 689 return error; 690 } 691 #endif /* CONFIG_IO_URING */ 692 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki