Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1380075ybh; Sun, 19 Jul 2020 18:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysV5fl+HPKVHA0kLHxD6Pv+lLDx6EfKZenVBfnCUAFyNz5XxJaHZPVQ9MhY1HHCBel3MWQ X-Received: by 2002:a50:8e53:: with SMTP id 19mr19906975edx.185.1595207459209; Sun, 19 Jul 2020 18:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595207459; cv=none; d=google.com; s=arc-20160816; b=wnNNoIKpP0ZZB2f9K5OHuJd6vt3J+pGlVUaXSoSctF5OV7mbBhmTyB19dJJgn3FvFw Zcz47ySOj+xA/UyiRrnezuYaL7lLk5ADDuACDxPuzRWRXy15B7a8EuyeM7Hf5m3PnpvW o5ZjgKlMX0KSih7EHcL1uzoSzv/6bqeYmc3Q3m2vVrOJSvl4azKOWCYiv7RBHk7DNx/x 5OrJXEkujAXeUZd/gfQm5tnmQpOVAMXd23SEYQo+7L6Gz9hpHnj3jVf+CnJcEV9PDEcH ZiArLtBNHqkuUdx0+IfVOeExszR6czBNY9eAnlXkYAOuDRv/a5Ulj+Wm/lt0rUBz5n5K EkWw== 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=/W5mdxPCN+DiSeSexsZWvrgroNt5pRrvGMhMggVyhDc=; b=0HHzyyqXdl0wkvr2TiLvQXwHOZ0MXAJZq9WtWIQOOQ5NwnDAW8Gp36i0JHQcPfLotk U1L4Ik3iCxlYjNJ6gPabiwBgpwAqUCBe2SZCrhjYKTFIcuff5Zrc87hIhYuhbDFnZMo2 ibmC6lE25hqPzlRLlaZwqj0Hoqi2eyG6gDB7O7io6xfAvd+/97A2/T0ZMg73fho6VoNW yoUTvw76sndi0rRqCr7j+DGfNuED4IRCfecD1ONlL/+unH2X8EyxVAHKLUUdsEguYRnW +FCvXDaJ9YpYygMpcBNaA9nwtXFL1D5QA4I9rxwvxOXx27zgrSXitbj6pVL2LSEp6nEj yNxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si9659537edz.108.2020.07.19.18.10.36; Sun, 19 Jul 2020 18:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbgGTBKF (ORCPT + 99 others); Sun, 19 Jul 2020 21:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgGTBKF (ORCPT ); Sun, 19 Jul 2020 21:10:05 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D855C0619D2 for ; Sun, 19 Jul 2020 18:10:05 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxKJd-00GEh6-6x; Mon, 20 Jul 2020 01:10:01 +0000 Date: Mon, 20 Jul 2020 02:10:01 +0100 From: Al Viro To: Dave Airlie Cc: Kevin Buettner , Linus Torvalds , LKML Subject: Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression Message-ID: <20200720011001.GL2786714@ZenIV.linux.org.uk> References: <20200718002003.6e0a2aef@f32-m1.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 09:40:14AM +1000, Dave Airlie wrote: > Just adding Linus, as Al is oft distracted. Already in vfs.git#fixes, actually: commit 8d95867c8610c515ffab2913b2cb19b2c7f7f6c1 Author: Kevin Buettner Date: Sat Jul 18 00:20:03 2020 -0700 copy_xstate_to_kernel: Fix typo which caused GDB regression This commit fixes a regression encountered while running the gdb.base/corefile.exp test in GDB's test suite. In my testing, the typo prevented the sw_reserved field of struct fxregs_state from being output to the kernel XSAVES area. Thus the correct mask corresponding to XCR0 was not present in the core file for GDB to interrogate, resulting in the following behavior: [kev@f32-1 gdb]$ ./gdb -q testsuite/outputs/gdb.base/corefile/corefile testsuite/outputs/gdb.base/corefile/corefile.core Reading symbols from testsuite/outputs/gdb.base/corefile/corefile... [New LWP 232880] warning: Unexpected size of section `.reg-xstate/232880' in core file. With the typo fixed, the test works again as expected. Fixes: 9e46365459331 ("copy_xstate_to_kernel(): don't leave parts of destination uninitialized") Signed-off-by: Kevin Buettner Signed-off-by: Al Viro