Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3516275pxb; Mon, 24 Jan 2022 11:11:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGj6qf7Y91ok5BcFCkM1HaGLjBD8H1QFeVjUDPsNm2X6pPacMIHaouvGnOAbAqRuYssoum X-Received: by 2002:a63:3808:: with SMTP id f8mr12578600pga.186.1643051489805; Mon, 24 Jan 2022 11:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643051489; cv=none; d=google.com; s=arc-20160816; b=GyM19OGDWy+U4U0DPdm1m78r33jd5S+BQgfFpUS36aqeicr6+dg8b7PYPhefPKdNhE D+TsaKkIcLdIGWb5eSD+dLQeN2sqOYLPFpqCDF69ORJPK512IEyMTF/G5RlUWQf+JLjQ RVDe8eAPNDH5Cg+IPSgljRePz/MoWxzCmFsvTv+iELxevOgrYbFtyGEoZTIsC6sYXwx3 LQN22G3Ec5tb8P2yb+o1FgjjiCG75JFEzxPUFI/zsT0z4/LC071E4Z5NXAmoMNRCmYQK 9oaoq1qLpfMmxfePYCaDwQauRpV6tM7v+5oWpt8R24+OBhN8LFC5/Pa2AwKsbSCh0IWK 8sSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HHzVecXzBSpJb2+UDGVBrFqqKu+atif1ghvMaMRWCQk=; b=iOVHdeduJCIRki3Nc8Xbn2G3eNIrFNHeJb72aTsABEiDBX7Tik94qyWjGvjOaHb8ud ITgmDH6karwNx8QK3fTu3ald+n+sTo2DNd/Y3m8WeRPeWZ/xCk1E5oC1heCQ76nVaeKh 9MofuTtVjufNg0+tPr+55PUqAAdbzy2Ey6uvU6tifTrgrDD0SUpTwyiCEAH/1lu7zkz/ H1R9Gsuyuyl1rEtsgnglag91v2+vBRMAy77StqJV3HX1My6/6vJY2xLvr4gPTsY7pvdK 5MjyJhAygYYK9UNVjlovq44QSDOE8up4ZPHboG+NzpEb5OFjpw3Kb6D0Nvsj+Is2/poK 2G5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=It3GvrS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si13642874pfu.201.2022.01.24.11.11.13; Mon, 24 Jan 2022 11:11:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=It3GvrS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242769AbiAXMPv (ORCPT + 99 others); Mon, 24 Jan 2022 07:15:51 -0500 Received: from mga11.intel.com ([192.55.52.93]:63891 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241954AbiAXMOn (ORCPT ); Mon, 24 Jan 2022 07:14:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643026483; x=1674562483; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FR/Plqwyf6P+JXGAx4Yblw5sOsYQlSfhlYedmM/BhpI=; b=It3GvrS4HsbnwOAl9k9BxeAmnNFPLkYcoUt7DYeG1atxtJyvOxi3r388 N6xz97Up10aOq6P3iaQzf19+IkWFRj0nYmUtCPRjxH3fw6a8nPsW33c82 9g1nc0Y+mxB85s9g9IDAGpUI7sJUdTQt8ocookAjndJxMFmyIGVFdc7KG riXbHaLrotnJjY7ZmRgk//+1NFHXy7ziHk4pIM/nayCaszrfOO3P17rjy 4gDU8UZMuXE5cw1p3MCoWMHARV1g5fmhC+z88w+T7oQqwJR3PZa/Bq9/t /LzOKoPyJNTmRRRU3rb1Z9gdRsDHNgmyZKxNAeIsRI6Esc3Li+XmJe4Ln Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="243626687" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="243626687" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 04:14:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="617214240" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 24 Jan 2022 04:14:39 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nByF5-000II9-52; Mon, 24 Jan 2022 12:14:39 +0000 Date: Mon, 24 Jan 2022 20:14:26 +0800 From: kernel test robot To: Tong Zhang , Alexander Viro , Eric Biederman , Kees Cook , Luis Chamberlain , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Linux Memory Management List , Tong Zhang Subject: Re: [PATCH v1] binfmt_misc: fix crash when load/unload module Message-ID: <202201242006.cqM8NznF-lkp@intel.com> References: <20220124003342.1457437-1-ztong0001@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124003342.1457437-1-ztong0001@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tong, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc1 next-20220124] [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/Tong-Zhang/binfmt_misc-fix-crash-when-load-unload-module/20220124-083500 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0 config: arm-randconfig-c002-20220124 (https://download.01.org/0day-ci/archive/20220124/202201242006.cqM8NznF-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/d649008f3214eb4d94760873831ef5e53c292976 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tong-Zhang/binfmt_misc-fix-crash-when-load-unload-module/20220124-083500 git checkout d649008f3214eb4d94760873831ef5e53c292976 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm 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 >>): fs/binfmt_misc.c: In function 'init_misc_binfmt': >> fs/binfmt_misc.c:828:28: error: assignment to 'struct ctl_table_header *' from incompatible pointer type 'struct sysctl_header *' [-Werror=incompatible-pointer-types] 828 | binfmt_misc_header = register_sysctl_mount_point("fs/binfmt_misc"); | ^ cc1: some warnings being treated as errors vim +828 fs/binfmt_misc.c 821 822 static int __init init_misc_binfmt(void) 823 { 824 int err = register_filesystem(&bm_fs_type); 825 if (!err) 826 insert_binfmt(&misc_format); 827 > 828 binfmt_misc_header = register_sysctl_mount_point("fs/binfmt_misc"); 829 if (!binfmt_misc_header) { 830 pr_warn("Failed to create fs/binfmt_misc sysctl mount point"); 831 return -ENOMEM; 832 } 833 return 0; 834 } 835 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org