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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 133EEC677F1 for ; Fri, 24 Feb 2023 08:02:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbjBXICa (ORCPT ); Fri, 24 Feb 2023 03:02:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjBXIC2 (ORCPT ); Fri, 24 Feb 2023 03:02:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 946CB4ECC5; Fri, 24 Feb 2023 00:02:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 37A7161852; Fri, 24 Feb 2023 08:02:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C213C433D2; Fri, 24 Feb 2023 08:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677225746; bh=Bo2E+OcPRtsyfOuNhBqdfQ6dza6KHxFnMmteR7AUNU8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HcAwzD00WtKrDzbXvL/AtI520oUZ7DFlj1fqK3mxnh9hp04Bzi1lnNn5y5X9MuDAU Tt3izELcuYdesXK65rkggGz9ZXowzapyLOS421afFfvlgZqMKcfXQeqMy8wttpLhMR ff7US44o6Rnifd/lHeapwDf4zAmWwlWl7jhd0nb9LN3kFx4tZwrV9bgLw8zyDW/7JV eKLe8lYj4mfFZ50YHCUAb6XVxSFmETQPxDWQRia5T5BQW/Ow/6h5yUgU/Nv928gyxG Iuun5/JCiuH/Z7jz98uUUtu8p2NPx2Y+PizbaW+0kI2e5YaXhnNy4HPqipUE4h7B2X d0m/CMiejFXRw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pVT2L-0003DH-Ca; Fri, 24 Feb 2023 09:02:37 +0100 Date: Fri, 24 Feb 2023 09:02:37 +0100 From: Johan Hovold To: kernel test robot Cc: Johan Hovold , Ard Biesheuvel , oe-kbuild-all@lists.linux.dev, Jeremy Kerr , Maximilian Luz , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Steev Klimaszewski Subject: Re: [PATCH] efivarfs: fix NULL-deref on mount when no efivars Message-ID: References: <20230126112129.4602-1-johan+linaro@kernel.org> <202302231642.tyrVwZMY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202302231642.tyrVwZMY-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 23, 2023 at 05:03:54PM +0800, kernel test robot wrote: > Hi Johan, > > I love your patch! Yet something to improve: > > [auto build test ERROR on v6.2-rc5] > [also build test ERROR on linus/master] > [cannot apply to efi/next next-20230223] I have no idea what your robot is trying to do here, but this patch has been folded into 301de9a20553 ("efivarfs: always register filesystem") and is already in linux-next building just fine. > [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#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Johan-Hovold/efivarfs-fix-NULL-deref-on-mount-when-no-efivars/20230128-094525 > patch link: https://lore.kernel.org/r/20230126112129.4602-1-johan%2Blinaro%40kernel.org > patch subject: [PATCH] efivarfs: fix NULL-deref on mount when no efivars > config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20230223/202302231642.tyrVwZMY-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 > reproduce (this is a W=1 build): > # https://github.com/intel-lab-lkp/linux/commit/da57163cc9d947884520240ec71c2806f48b8a64 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Johan-Hovold/efivarfs-fix-NULL-deref-on-mount-when-no-efivars/20230128-094525 > git checkout da57163cc9d947884520240ec71c2806f48b8a64 > # save the config file > mkdir build_dir && cp config build_dir/.config > make W=1 O=build_dir ARCH=x86_64 olddefconfig > make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/ > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > | Link: https://lore.kernel.org/oe-kbuild-all/202302231642.tyrVwZMY-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > fs/efivarfs/super.c: In function 'efivarfs_kill_sb': > >> fs/efivarfs/super.c:246:14: error: implicit declaration of function 'efivar_is_available'; did you mean 'slab_is_available'? [-Werror=implicit-function-declaration] > 246 | if (!efivar_is_available()) > | ^~~~~~~~~~~~~~~~~~~ > | slab_is_available > cc1: some warnings being treated as errors > > > vim +246 fs/efivarfs/super.c > > 241 > 242 static void efivarfs_kill_sb(struct super_block *sb) > 243 { > 244 kill_litter_super(sb); > 245 > > 246 if (!efivar_is_available()) > 247 return; > 248 > 249 /* Remove all entries and destroy */ > 250 efivar_entry_iter(efivarfs_destroy, &efivarfs_list, NULL); > 251 } > 252 Johan