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=-5.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 83AC1C433DF for ; Wed, 27 May 2020 19:05:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 606942075A for ; Wed, 27 May 2020 19:05:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="Nd9abdxS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728207AbgE0TFE (ORCPT ); Wed, 27 May 2020 15:05:04 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36922 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbgE0TFD (ORCPT ); Wed, 27 May 2020 15:05:03 -0400 Received: from zn.tnic (p200300ec2f0b8700dda2f727e1b752eb.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:8700:dda2:f727:e1b7:52eb]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DFFDF1EC02B3; Wed, 27 May 2020 21:05:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1590606302; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=/hBQwlO36HqTw7b3/a9y2PU9fbwGlde7Xw6IvZwUL1k=; b=Nd9abdxSIUPRqq0wm4UFeDxDA4cN2klC1VYeab2tmXCHyJBaaQSrgI7P9Te07A4B9DCe9k GlIKjetw2s7t3wlqhp0Au822vwm0MGl1Yc3BqRAY3DAp6mNdo1BOPVDVgbqCLZGoXIh1ld HLDYcv2h+g7BGIYFEqUr9pC6ErZtKRM= Date: Wed, 27 May 2020 21:04:56 +0200 From: Borislav Petkov To: Al Viro Cc: Alexander Potapenko , Kees Cook , Andrew Morton , Alexey Dobriyan , LKML , sunhaoyl@outlook.com, x86@kernel.org Subject: Re: [PATCH] fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info() Message-ID: <20200527190456.GD1721@zn.tnic> References: <20200420153352.6682533e794f591dae7aafbc@linux-foundation.org> <202004201540.01C8F82B@keescook> <20200421034249.GB23230@ZenIV.linux.org.uk> <20200512010901.GQ23230@ZenIV.linux.org.uk> <20200512034400.GA1537486@ZenIV.linux.org.uk> <20200513033349.GR23230@ZenIV.linux.org.uk> <20200524234535.GA23230@ZenIV.linux.org.uk> <20200526223817.GA3819674@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200526223817.GA3819674@ZenIV.linux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 11:38:17PM +0100, Al Viro wrote: > Folks, could you test the following? > > copy_xstate_to_kernel(): don't leave parts of destination uninitialized > > copy the corresponding pieces of init_fpstate into the gaps instead. > > Signed-off-by: Al Viro Am I taking this through tip (would prefer to as there's other FPU stuff pending) or should I ack this so that you can send it upwards? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette