Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp881752iob; Wed, 4 May 2022 09:49:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH+IjeWST5of9hD33Ny4r6UB66XqrLAf9rD26K+X6gwIM4QzPvtcx5bRotYxFc+CLcb+9K X-Received: by 2002:a17:907:970a:b0:6f4:5ad2:5e66 with SMTP id jg10-20020a170907970a00b006f45ad25e66mr13106021ejc.698.1651682983148; Wed, 04 May 2022 09:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651682983; cv=none; d=google.com; s=arc-20160816; b=gQb3yeWY2JzY/MKS0yA/S3kWSPZkYU/6vBkFWF7dZfssOz86evBTYxc4p6doVF8yOI qX6WMf5ywDFc4SK9VoZlpHoOqnDvXICOF0dy+Z3Ddy8Hsv78hCrtArFh7Xvh6SOqx0uJ iuZnLtDT9tdi113pHEsqWfoCK8xqHcxv+VOdjjIXk1DY4LA21SRDk9WrQpufqE35JTbP K4S1/SWtmILygOkU63tYWk0ePtZjAp+0THqMnTPWj2k0kW/HU19FG+xlftWGTMqu2zSA o6X0OyOEeGC35vsfRmvppulWmXcOR96OUI/ReakpyKsUSM1XuZ/zJcg1iyI40ni0CsdQ AibA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S0s0tB1m9mZSH2Io5Re3TqEaKgU4A/tDAPomqykPtrc=; b=nsx1smHDJFvzcQUUZKWuFu/4yaJZ82Z5M4twj1y+UKsh2i3fHJzAti9VzwlrNoCpIl 3zCN9ryB0ioibrfgmUUyzZN+1qiqp5GHXxY8dZq4PzdJsxenvb9cDSLCAlr59KwVqmCG xrrufHCQrCCphRTvRfNcSTrN6psT4fkibU1pOEZJisJPNQw6wlf2IB1BMa32FIVHnmHR YqxWkJAuoqZtaYzUsIJvf8HWJMSgsL4ko8WmWXW+dzlWWD5gqruZEETQOvQxt33a/BQn SnEDGyTVJt6QjInTD1O2moV0fJGh6uY4hnpV177Ql6QRGy+2e3q60UNHB+aW2XWZRrSs fH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XM9QFrmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a05640242ce00b0041d76617cc2si20796955edc.462.2022.05.04.09.49.19; Wed, 04 May 2022 09:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XM9QFrmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245614AbiEDBZR (ORCPT + 99 others); Tue, 3 May 2022 21:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245635AbiEDBZK (ORCPT ); Tue, 3 May 2022 21:25:10 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD034616F; Tue, 3 May 2022 18:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651627235; x=1683163235; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=i4MxkxPDNSGtzMvlquogsvEU8lFtzY2vpeFrQnL7YOU=; b=XM9QFrmZspa71IODuBGPKLe8jAEGqod/CRPLKATvxIqfNM+Bbf0wLYgA ltahLkLodmGS9fp/hikMdbAbFCN6Yw9CSudtzs3AuJlv4MKmKI0SIId09 HtxaDbomHcPs6LxteZOHJWszPxnVblmw2kNH0JsBD5KWLVXXMM0bNXCto P6M/FpvrbrQlZeLCVOSioDm+jgOZnNndFWIfFjcP0qw77GLINjYInvKF8 EtznMu+aFlJxDvwV9bl9PYdFBsAYIQ9yt8vSPXVOQRewIu3EMJULW++cD h66q6IIEYDgqVeSKP2Sp0GhWz6qnp8Di1MdnRi1K/Nmi3PdTcb+6iUGPh Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="354072558" X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="354072558" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 18:19:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="516817108" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 03 May 2022 18:19:33 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nm3fw-000Avv-BI; Wed, 04 May 2022 01:19:32 +0000 Date: Wed, 4 May 2022 09:19:08 +0800 From: kernel test robot To: Guowei Du , jack@suse.cz Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, amir73il@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, jmorris@namei.org, serge@hallyn.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, paul@paul-moore.com, stephen.smalley.work@gmail.com, eparis@parisplace.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, selinux@vger.kernel.org, duguoweisz@gmail.com, duguowei Subject: Re: [PATCH] fsnotify: add generic perm check for unlink/rmdir Message-ID: <202205040959.SAV6vlzH-lkp@intel.com> References: <20220503183750.1977-1-duguoweisz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503183750.1977-1-duguoweisz@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guowei, Thank you for the patch! Yet something to improve: [auto build test ERROR on pcmoore-selinux/next] [also build test ERROR on linus/master v5.18-rc5] [cannot apply to jack-fs/fsnotify next-20220503] [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/intel-lab-lkp/linux/commits/Guowei-Du/fsnotify-add-generic-perm-check-for-unlink-rmdir/20220504-024310 base: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git next config: hexagon-randconfig-r041-20220501 (https://download.01.org/0day-ci/archive/20220504/202205040959.SAV6vlzH-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 363b3a645a1e30011cc8da624f13dac5fd915628) 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://github.com/intel-lab-lkp/linux/commit/6f635019bbd2ab22a64e03164c8812a46531966e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Guowei-Du/fsnotify-add-generic-perm-check-for-unlink-rmdir/20220504-024310 git checkout 6f635019bbd2ab22a64e03164c8812a46531966e # 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=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> security/security.c:1169:28: error: passing 'const struct path *' to parameter of type 'struct path *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return fsnotify_path_perm(dir, dentry, MAY_RMDIR); ^~~ include/linux/fsnotify.h:83:51: note: passing argument to parameter 'path' here static inline int fsnotify_path_perm(struct path *path, struct dentry *dentry, __u32 mask) ^ security/security.c:1180:28: error: passing 'const struct path *' to parameter of type 'struct path *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] return fsnotify_path_perm(dir, dentry, MAY_UNLINK); ^~~ include/linux/fsnotify.h:83:51: note: passing argument to parameter 'path' here static inline int fsnotify_path_perm(struct path *path, struct dentry *dentry, __u32 mask) ^ 2 errors generated. vim +1169 security/security.c 1160 1161 int security_path_rmdir(const struct path *dir, struct dentry *dentry) 1162 { 1163 int ret; 1164 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) 1165 return 0; 1166 ret = call_int_hook(path_rmdir, 0, dir, dentry); 1167 if (ret) 1168 return ret; > 1169 return fsnotify_path_perm(dir, dentry, MAY_RMDIR); 1170 } 1171 -- 0-DAY CI Kernel Test Service https://01.org/lkp