Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7559391ybn; Mon, 30 Sep 2019 16:11:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzDogcYboBlyMatRgF+NfNQhrcoDfLkfmeMRzoLZAMtX/UBiKDjUmXlp/IoynILVo6J2cA X-Received: by 2002:a50:ed01:: with SMTP id j1mr22344728eds.268.1569885069706; Mon, 30 Sep 2019 16:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569885069; cv=none; d=google.com; s=arc-20160816; b=LULHn0RZn1raOEMDeooiafriXh2EXVEzs2OZctkdFo8EYy0YTP8sshYPXWHTdxLiW+ EbRBPSgsualsWigMS4kOejiQhcgq3W4+RFHtd0IS1N/Wdw8GVjdmRsi5OO+lmdQJhOcd bECo+Iz6UYcQ9AQUchNvg8xT06YrSayYsu9pTFOU/seQLtaDlkhLnboCh175gWrRkQ7z U0OO1uCn1oIp8zJi+fzKJBjKZ42GEMOgpsmQuZ1x9ambZwU7zjKdtJQomSTqh9OHF4xc Czqu6tukp7rzGcAQgFq86SxYKbraaEtFR+GDGFwYoemLW3KPcvUNGKApc3Mw6Mp4PPRe IDIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bR+9+GpFE4vGwEqvsZUStL1M5KjgrEiuAOL9+xSOXJo=; b=lkxfvvLbMMi2mLPp1AnYQg84mlKAQfAxT/nMlPrSP4dCEsrSBI/xJLQGm+v+RRTU+H shcl2g6A0rQrj9Eg8HoAHxk/PkhcMQFKPS8P8DRr4ppokiz0mdPctJgfl6Cn3g3/aAKs qjvwM/FsaLJDRu+ze7omkO/wrIpfju1Zl5MlBzbvxL+DCfdD0mZQ70yvf0HwvkDYhNBS VoQjdE9prhb2Hv7aC5KwQS7uWPf/li7Z3Bm06k61ICIl94wfSLert5uJu80TR3cHzpBP v4YFqBwEuqNp4ImXQYKKoWcnOeSgQEJW9iE65Wx/rKbQZ9iNKzCk4Imb6Py2wySIbbu2 R4gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si7536341ejy.106.2019.09.30.16.10.45; Mon, 30 Sep 2019 16:11:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732871AbfI3XJy (ORCPT + 99 others); Mon, 30 Sep 2019 19:09:54 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:19634 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732853AbfI3XJw (ORCPT ); Mon, 30 Sep 2019 19:09:52 -0400 Received: from smtp2.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 19DECA198E; Tue, 1 Oct 2019 01:09:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id ZCXN6-VgIlDY; Tue, 1 Oct 2019 01:09:38 +0200 (CEST) Date: Tue, 1 Oct 2019 09:09:14 +1000 From: Aleksa Sarai To: kbuild test robot Cc: kbuild-all@01.org, Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , David Howells , Shuah Khan , Shuah Khan , Ingo Molnar , Peter Zijlstra , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Alexander Shishkin , Rasmus Villemoes , Alexei Starovoitov , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, sparclinux@vger.kernel.org, Jiri Olsa , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Tycho Andersen , Aleksa Sarai , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-xtensa@linux-xtensa.org, Kees Cook , Jann Horn , linuxppc-dev@lists.ozlabs.org, Andy Lutomirski , Namhyung Kim , David Drysdale , Christian Brauner , libc-alpha@sourceware.org, linux-parisc@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-api@vger.kernel.org, Chanho Min , Oleg Nesterov , Eric Biederman , linux-alpha@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , Linus Torvalds , containers@lists.linux-foundation.org Subject: Re: [PATCH v13 3/9] open: O_EMPTYPATH: procfs-less file descriptor re-opening Message-ID: <20190930230914.qu3lg2rhlesf5myt@yavin.dot.cyphar.com> References: <20190930183316.10190-4-cyphar@cyphar.com> <201910010638.xzk5h4Bt%lkp@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="snekp2kducyfirik" Content-Disposition: inline In-Reply-To: <201910010638.xzk5h4Bt%lkp@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --snekp2kducyfirik Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-10-01, kbuild test robot wrote: > Hi Aleksa, >=20 > Thank you for the patch! Yet something to improve: >=20 > [auto build test ERROR on linus/master] > [cannot apply to v5.4-rc1 next-20190930] > [if your patch is applied to the wrong git tree, please drop us a note to= help > improve the system. BTW, we also suggest to use '--base' option to specif= y the > base tree in git format-patch, please see https://stackoverflow.com/a/374= 06982] >=20 > url: https://github.com/0day-ci/linux/commits/Aleksa-Sarai/namei-opena= t2-2-path-resolution-restrictions/20191001-025628 > config: sparc-allyesconfig (attached as .config) > compiler: sparc64-linux-gcc (GCC) 7.4.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > GCC_VERSION=3D7.4.0 make.cross ARCH=3Dsparc=20 >=20 > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot >=20 > All error/warnings (new ones prefixed by >>): >=20 > In file included from include/linux/kernel.h:11:0, > from include/linux/list.h:9, > from include/linux/wait.h:7, > from include/linux/wait_bit.h:8, > from include/linux/fs.h:6, > from include/uapi/linux/aio_abi.h:31, > from include/linux/syscalls.h:74, > from fs/fcntl.c:8: > fs/fcntl.c: In function 'fcntl_init': > >> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_= 1037' declared with attribute error: BUILD_BUG_ON failed: 22 - 1 !=3D HWEIG= HT32( (VALID_OPEN_FLAGS & ~(O_NONBLOCK | O_NDELAY)) | __FMODE_EXEC | __FMOD= E_NONOTIFY) > _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) > ^ > include/linux/compiler.h:331:4: note: in definition of macro '__compil= etime_assert' > prefix ## suffix(); \ > ^~~~~~ > include/linux/compiler.h:350:2: note: in expansion of macro '_compilet= ime_assert' > _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) > ^~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:39:37: note: in expansion of macro 'compilet= ime_assert' > #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > ^~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG= _ON_MSG' > BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > ^~~~~~~~~~~~~~~~ > >> fs/fcntl.c:1034:2: note: in expansion of macro 'BUILD_BUG_ON' > BUILD_BUG_ON(22 - 1 /* for O_RDONLY being 0 */ !=3D > ^~~~~~~~~~~~ This is because 0x4000000 is used by FMODE_NONOTIFY. The fix is simple, and I'll include it in the next version. > vim +/__compiletime_assert_1037 +350 include/linux/compiler.h >=20 > 9a8ab1c39970a4 Daniel Santos 2013-02-21 336 =20 > 9a8ab1c39970a4 Daniel Santos 2013-02-21 337 #define _compiletime_assert= (condition, msg, prefix, suffix) \ > 9a8ab1c39970a4 Daniel Santos 2013-02-21 338 __compiletime_assert(condi= tion, msg, prefix, suffix) > 9a8ab1c39970a4 Daniel Santos 2013-02-21 339 =20 > 9a8ab1c39970a4 Daniel Santos 2013-02-21 340 /** > 9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * compiletime_assert - bre= ak build and emit msg if condition is false > 9a8ab1c39970a4 Daniel Santos 2013-02-21 342 * @condition: a compile-ti= me constant condition to check > 9a8ab1c39970a4 Daniel Santos 2013-02-21 343 * @msg: a message to= emit if condition is false > 9a8ab1c39970a4 Daniel Santos 2013-02-21 344 * > 9a8ab1c39970a4 Daniel Santos 2013-02-21 345 * In tradition of POSIX as= sert, this macro will break the build if the > 9a8ab1c39970a4 Daniel Santos 2013-02-21 346 * supplied condition is *f= alse*, emitting the supplied error message if the > 9a8ab1c39970a4 Daniel Santos 2013-02-21 347 * compiler has support to = do so. > 9a8ab1c39970a4 Daniel Santos 2013-02-21 348 */ > 9a8ab1c39970a4 Daniel Santos 2013-02-21 349 #define compiletime_assert(= condition, msg) \ > 9a8ab1c39970a4 Daniel Santos 2013-02-21 @350 _compiletime_assert(condit= ion, msg, __compiletime_assert_, __LINE__) > 9a8ab1c39970a4 Daniel Santos 2013-02-21 351 =20 >=20 > :::::: The code at line 350 was first introduced by commit > :::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introd= uce compiletime_assert & BUILD_BUG_ON_MSG >=20 > :::::: TO: Daniel Santos > :::::: CC: Linus Torvalds >=20 > --- > 0-DAY kernel test infrastructure Open Source Technology Ce= nter > https://lists.01.org/pipermail/kbuild-all Intel Corpora= tion --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --snekp2kducyfirik Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSxZm6dtfE8gxLLfYqdlLljIbnQEgUCXZKLFwAKCRCdlLljIbnQ EiFeAP47RjOd95gOdKvsH6iKIsB52GsvABLqpjPMoDsJYICxvQEAqOPS7WukWlsO 68N9mURzwjixbUVZ+5gtkgEiuWzwXA0= =RuGe -----END PGP SIGNATURE----- --snekp2kducyfirik--