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 58341C433EF for ; Mon, 24 Jan 2022 12:14:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ABEE96B0081; Mon, 24 Jan 2022 07:14:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A6EBF6B0083; Mon, 24 Jan 2022 07:14:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95DFA6B0085; Mon, 24 Jan 2022 07:14:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0173.hostedemail.com [216.40.44.173]) by kanga.kvack.org (Postfix) with ESMTP id 83B236B0081 for ; Mon, 24 Jan 2022 07:14:45 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 37EF45D5CE for ; Mon, 24 Jan 2022 12:14:45 +0000 (UTC) X-FDA: 79065074130.23.B52EBCE Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf28.hostedemail.com (Postfix) with ESMTP id 394BBC000B for ; Mon, 24 Jan 2022 12:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643026484; x=1674562484; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FR/Plqwyf6P+JXGAx4Yblw5sOsYQlSfhlYedmM/BhpI=; b=Ecv/FH0ec4l3M0Z0uGmFycXbr1UEkaCFApkoMh29U6C+P/fRrHzCSBr0 9gYokLpJBwbfY++TIBzF6vrAWBxODI2rKTG1uf4sTbZdPoE7N/Eb2jMLL PJoz1YqEYob5Onhw+i6TomAgccv+FFdIhkCjOsGi8KmsoumKqUt2YPrj0 jOSMPDzS+VSxaGT3z9QQExJHg00zOrpqvnQa84ra31HkgqGqO4xhgccR8 kAylhMrBxMt7pRj2e27Hd8Ou1qkWlNcyGfC3hSUfNFf2WfjKwkiVqgZN9 q7WEUc0K3EMpC0HpTe0DgT+Vri11dWxeXKyUFGV7LXvLx3R0QSZmPm/5S A==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="246247948" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="246247948" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.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) X-Stat-Signature: adan8sor5qj4jd1ou4mgpizug44qjss8 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Ecv/FH0e"; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 394BBC000B X-HE-Tag: 1643026483-603553 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: 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