Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1988750pxu; Tue, 24 Nov 2020 14:03:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwslyPj63y6cuC9lD99dOoO61qznUYet+7kCTq2h8Qc8EN38gCGvxUK/vxBX+wIOzVHKvWf X-Received: by 2002:a05:6402:411:: with SMTP id q17mr605442edv.125.1606255400004; Tue, 24 Nov 2020 14:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606255399; cv=none; d=google.com; s=arc-20160816; b=vV8vEE1yCS5kZP+n7KbbBWC7wDeWndzWobaDjnyxvTgn5MMnu1ubgEFEEcJe4/GOkd 8reR1QlLjW9Vb815SpXU0Th6CavJqpuuOaMtzv3F3Kv5SrdBzXiDN8BbG8bbRZ8qE221 gOwAsU3gE+Zq8nAiGGzwbXbYzbV4Op7ZwgGIyJESHmczLKW277QVDzOLRDHnmHEVj4FX 8xAxkmgFUYE3Zpyg1edjuBNNd66BXW7Y0Vg/YK4dQNuRHPA+SYh0lfNjlrmm5jeJGlpC YGIf/UrFNWEA+9LrXs0e12MjO46e2N8Unz+6mPJHQs058ukvENojchOp/8Ew/rriTSEH JyLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zlBpQ+27YRK6TGmwLtPomnVl9/dkYURlu4zjI6nLEqk=; b=VyY7nO916bJBNgMOvetzNdtQymPKEFX+ahZOPDOpCY3LTH5ItslGn7wEfQYthiqc+b wjBqpfGBgDrMSWA/1QooxZhffkCX+CTwIBAa/ezrDjOLrdiGUGCO/9Krq5jg6yIShzQR AmuYWHlxX4vG35U+96EJrrKQLabc8ufU9jJf7gRtH6qmih1zAgstiSLEKB5m69evZszu DsOT5Z+h5qph5hU/qnLCRAI6r6uQddK90sBcbeLmuU/+lFkOXB5A58+tu6nkEcs5Bi9U Y0+VtK5sg5o0L8lPAdVVoVSEuBsJ5tf44wT45sYz9huv8dA6ctdz/FJ4esI+euA3pMcz UgcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=mxICq8+P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si13870edx.432.2020.11.24.14.02.56; Tue, 24 Nov 2020 14:03:19 -0800 (PST) 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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=mxICq8+P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388058AbgKXNfA (ORCPT + 99 others); Tue, 24 Nov 2020 08:35:00 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38554 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgKXNe7 (ORCPT ); Tue, 24 Nov 2020 08:34:59 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AODY6aW063754; Tue, 24 Nov 2020 08:34:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=zlBpQ+27YRK6TGmwLtPomnVl9/dkYURlu4zjI6nLEqk=; b=mxICq8+PxSZ4244sV0/Ihr1YpNi422j5lYYcuxH75An/z4XTykDZYK1SzrbXMPaw3YGi t2/1bhcha/fHGPX9l1F44Nb1vlTWYquhgbQth6eWSwro6zjut3Cl7Mt7SmHocCzPz+kO L7vn7p5gTkdmv24MgX5K2ZDaJy8E6ISIUPwAUZEq4WINOBcT2QQ/qx73UEhHaDF3wVPM Q+i88bh3eQEft7wgFdhwlxz7+8RYfBTl/l1VHGKsOOEt58bRZfYhzWO/W72Rf+NDibeQ JYAazoHtFNRBEXXZ+7SQ2GTyBS1UOfHjXQYra3aQGpXOV9R2/vch+gyublXhUUlq4+27 sA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 350y8jy6kc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 08:34:35 -0500 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0AODYQIe065928; Tue, 24 Nov 2020 08:34:34 -0500 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 350y8jy6j1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 08:34:34 -0500 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AODSAn0022335; Tue, 24 Nov 2020 13:34:32 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma04ams.nl.ibm.com with ESMTP id 34xth8kh4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 13:34:32 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AODYTFh54264072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Nov 2020 13:34:30 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0AC252052; Tue, 24 Nov 2020 13:34:29 +0000 (GMT) Received: from localhost (unknown [9.171.12.143]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 3C0D252051; Tue, 24 Nov 2020 13:34:29 +0000 (GMT) Date: Tue, 24 Nov 2020 14:34:27 +0100 From: Vasily Gorbik To: Josh Poimboeuf , Shile Zhang , Peter Zijlstra , Ingo Molnar Cc: Thomas Gleixner , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Miroslav Benes , Alexandre Chartre , Julien Thierry , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/sorttable: Fix ORC unwind table sorting on big endian Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-24_04:2020-11-24,2020-11-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 spamscore=0 suspectscore=2 clxscore=1015 mlxlogscore=999 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240081 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 14, 2020 at 01:53:10PM +0100, Vasily Gorbik wrote: > Currently when x86_64 kernel is cross compiled on big endian hardware > ORC unwind table is not sorted correctly. Due to missing byte swaps and > treating size as 4-byte value ORC sections sizes end up as 0 and the > problem is silently ignored. > > Make ORC unwind table sorting endianness aware. > > Signed-off-by: Vasily Gorbik > --- > This goes on top of the patch series: > http://lkml.kernel.org/r/cover.thread-1e2854.your-ad-here.call-01605220128-ext-6070@work.hours > > scripts/sorttable.h | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) Friendly ping...