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 BE54FC433EF for ; Mon, 24 Jan 2022 11:41:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51A1D6B0081; Mon, 24 Jan 2022 06:41:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C8BA6B0083; Mon, 24 Jan 2022 06:41:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B7176B0085; Mon, 24 Jan 2022 06:41:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0201.hostedemail.com [216.40.44.201]) by kanga.kvack.org (Postfix) with ESMTP id 283C56B0081 for ; Mon, 24 Jan 2022 06:41:44 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id CB9D3181B10C3 for ; Mon, 24 Jan 2022 11:41:43 +0000 (UTC) X-FDA: 79064990886.06.F4CF8F9 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf14.hostedemail.com (Postfix) with ESMTP id 0486F100002 for ; Mon, 24 Jan 2022 11:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643024503; x=1674560503; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qSwxcSWc61GCN/jeYgEf7uRAI0O6FiXI5qymb1AvrOY=; b=RLRdflL+Uag1EFRQmHxt13oZRAr7c2vwh1dif5z2RJUFymeJP/+8mxi1 Hczq+PVd8R3V1gQciuVPV5gVDMzOw2/PaUdXopM+Q6w0caIJqYp+/4wat 2o/qbuChwswZnLKVDQFHAkz7DYOWx8L8Im/zt1V/9Mx3yD/mxIk6G+QWR V8nK/7fAlZMoPRqEWbpd2+QX9VCuQZGoZWwS2LjX0eBWINh6L0/RmX++e 7mPWNNBKuENSjYPI+Y0bLDQDEvePB11L4bTAhwJ412BRoUe0W/deSPz5k zs7o3Ck3AFRDyBy/5N2KgVWvyqyALhGQvb2jcNERAFLtSTJnongPfs0ms w==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="226697957" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="226697957" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 03:41:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="476691737" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 24 Jan 2022 03:41:38 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nBxj7-000IFp-Tr; Mon, 24 Jan 2022 11:41:37 +0000 Date: Mon, 24 Jan 2022 19:40:53 +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: llvm@lists.linux.dev, 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: <202201241937.i9KSsyAj-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-Rspamd-Queue-Id: 0486F100002 X-Stat-Signature: byfx1ed8wdhur69dkb5c6gdhaujggtbc Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RLRdflL+; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam01 X-HE-Tag: 1643024502-53132 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: riscv-randconfig-r001-20220123 (https://download.01.org/0day-ci/archive/20220124/202201241937.i9KSsyAj-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # 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=clang make.cross W=1 O=build_dir ARCH=riscv 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:828:21: error: incompatible pointer types assigning to 'struct ctl_table_header *' from 'struct sysctl_header *' [-Werror,-Wincompatible-pointer-types] binfmt_misc_header = register_sysctl_mount_point("fs/binfmt_misc"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. 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