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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3596CCD379F for ; Fri, 15 Sep 2023 19:37:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236959AbjIOTge (ORCPT ); Fri, 15 Sep 2023 15:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237000AbjIOTgJ (ORCPT ); Fri, 15 Sep 2023 15:36:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB81019A9 for ; Fri, 15 Sep 2023 12:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694806527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HVf1V3CzDZ5lP3pmoo5CaMEBLPRoiU7cCml7ReFuTR0=; b=UPRwP413ZZ+lKiN98H0B30IHibGogkBv+A43uLhM8csQA5mHT8in7kRVd3cDSOgxwhb1yY 0McTrDoBwzyQIswIN76OTxPMof3w4Okv19qToNaoFYa/ed0pVhrEEbTxvGqF4YAQEoHftC zCnN/kHBHDE9TZILqi+iQUPytFjC0eM= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-166-Ac7_PRqXOqi-EudI4ZSOqw-1; Fri, 15 Sep 2023 15:35:25 -0400 X-MC-Unique: Ac7_PRqXOqi-EudI4ZSOqw-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-417992ff7d5so12015911cf.3 for ; Fri, 15 Sep 2023 12:35:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694806525; x=1695411325; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HVf1V3CzDZ5lP3pmoo5CaMEBLPRoiU7cCml7ReFuTR0=; b=u18DNfrlxf3maYvUy5jiBGqAKdP65VY9yFAIFk3HYLF1xRWZEXnvQ8ex0dyTwTxjPg OLOYeZePuMpgpVLalKg1ESsAHUSduBGL/f3cRBmjUq34di1dhcP7WHpktQwgc68RUjzN aYWyD4kiPFs3TKqQlSaJwlxPeMUWAfrVT+kYnwdYHGOODje9dIfXF8CxmWajSA3mk//W dcudKURKRsWgakgLsCAIl3fJjxO3KrnE8YH/ssfBFplBQFwSBYPSjULiVaQsDTxkD3v6 0S43Gb57+RbSIG/iOZwe5EpZusDPXvV7AUhaqqe2tCPz8GDO4gOh+ggl+ZJOdhMT2Xsp xvtA== X-Gm-Message-State: AOJu0Yzdh2HhA2SfV75qr2FiVSEmlGu68eebiNy9LSPtpnrDWOciLxre 7wkLr4QdtuvIKI+3ZHYlrMnkQXag4Q5uM/jrwK/gcPYn2Wz1MPjSj3my4DFXWUHriWHfCfOywF2 S64mc53/Hu650mXJ9iJpWn1Ppf8M= X-Received: by 2002:ac8:5bd0:0:b0:412:1e4c:e858 with SMTP id b16-20020ac85bd0000000b004121e4ce858mr2872789qtb.36.1694806525095; Fri, 15 Sep 2023 12:35:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhY+zLilO9nIc2jJlB/O2T5ucpf0omBdswrGZrkcwBBrWmTQQAm72M/bgntZ+AUyYEISgoqw== X-Received: by 2002:ac8:5bd0:0:b0:412:1e4c:e858 with SMTP id b16-20020ac85bd0000000b004121e4ce858mr2872776qtb.36.1694806524860; Fri, 15 Sep 2023 12:35:24 -0700 (PDT) Received: from rh (p200300c93f1ec600a890fb4d684902d4.dip0.t-ipconnect.de. [2003:c9:3f1e:c600:a890:fb4d:6849:2d4]) by smtp.gmail.com with ESMTPSA id h5-20020ac87765000000b0041514d1da65sm1349819qtu.20.2023.09.15.12.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 12:35:24 -0700 (PDT) Date: Fri, 15 Sep 2023 21:35:20 +0200 (CEST) From: Sebastian Ott To: =?ISO-8859-15?Q?Thomas_Wei=DFschuh?= cc: Alexander Viro , Christian Brauner , Eric Biederman , Kees Cook , Mark Brown , Willy Tarreau , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH RFC] binfmt_elf: fully allocate bss pages In-Reply-To: <20230914-bss-alloc-v1-1-78de67d2c6dd@weissschuh.net> Message-ID: <3c0f1acf-b95b-3570-bf51-7716b6209f16@redhat.com> References: <20230914-bss-alloc-v1-1-78de67d2c6dd@weissschuh.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463795790-230173133-1694806524=:4151" Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463795790-230173133-1694806524=:4151 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT Hej Thomas, On Thu, 14 Sep 2023, Thomas Weißschuh wrote: > fs/binfmt_elf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c > index 7b3d2d491407..4008a57d388b 100644 > --- a/fs/binfmt_elf.c > +++ b/fs/binfmt_elf.c > @@ -112,7 +112,7 @@ static struct linux_binfmt elf_format = { > > static int set_brk(unsigned long start, unsigned long end, int prot) > { > - start = ELF_PAGEALIGN(start); > + start = ELF_PAGESTART(start); > end = ELF_PAGEALIGN(end); > if (end > start) { > /* > My arm box failed to boot with that patch applied on top of 6.6-rc1 . There was nothing suspicious on the serial console it just hung somewhere in userspace initialization. Sadly there was also nothing in the system logs. 6.6-rc1 worked fine. Sebastian ---1463795790-230173133-1694806524=:4151--