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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76250C433DB for ; Thu, 4 Mar 2021 13:46:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4DCAB64F47 for ; Thu, 4 Mar 2021 13:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234542AbhCDNpX (ORCPT ); Thu, 4 Mar 2021 08:45:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:54158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238751AbhCDNo6 (ORCPT ); Thu, 4 Mar 2021 08:44:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5687664F39; Thu, 4 Mar 2021 13:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614865457; bh=M+CNzzABx03+XwuPMjUhgAEfV3MnkUoXGG6tO10yYbE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=piJD45auJNCTDzOSziAJkFmbIELMzutt0CYrfZFpC9rR4euFE7ieqVVgXUe1lvf1l +oip08edqbrPFISwqp54IEZmbS9CbakFQjWwXEndOHcIvW4eXFYm0gvwqIV+ZJ36oe Xc0AIeGrXrRAmHbKFW+eBiiCtiYBtyvSiZKdg740= Date: Thu, 4 Mar 2021 14:44:15 +0100 From: Greg KH To: YunQiang Su Cc: stable@vger.kernel.org Subject: Re: backport binfmt_misc: pass binfmt_misc flags to the interpreter Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Mar 02, 2021 at 04:02:22PM +0800, YunQiang Su wrote: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12-rc1&id=2347961b11d4079deace3c81dceed460c08a8fc1 > This patch can be apply to 5.10 and 5.11 directly. > > binfmt_misc: pass binfmt_misc flags to the interpreter > > It can be useful to the interpreter to know which flags are in use. > > For instance, knowing if the preserve-argv[0] is in use would allow to > skip the pathname argument. > > This patch uses an unused auxiliary vector, AT_FLAGS, to add a flag to > inform interpreter if the preserve-argv[0] is enabled. > > Note by Helge Deller: > The real-world user of this patch is qemu-user, which needs to know if > it has to preserve the argv[0]. See Debian bug #970460. > > Signed-off-by: Laurent Vivier > Reviewed-by: YunQiang Su > URL: http://bugs.debian.org/970460 > Signed-off-by: Helge Deller This feels like a new feature, how does it fit with the stable kernel rules? thanks, greg k-h