Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2132134ybg; Fri, 5 Jun 2020 06:28:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzCNEZnr7fNVqxkriVKWbm7EA4zQbClnbfKmmeSQgB8QSDHJGyPU0ZpXo2NPIKv0StLuTU X-Received: by 2002:a17:906:1ed2:: with SMTP id m18mr8461727ejj.529.1591363727475; Fri, 05 Jun 2020 06:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591363727; cv=none; d=google.com; s=arc-20160816; b=l1YQ4s4vjMLx2sfSq2LBBxswOMYrEEeuzMteuc1heuKOcoRE6ymyr/qWvSR4rrUY31 peBRJ80T/4QNu4U3qhe3grgXnBpPYrqJdvWO00TjaVeNA9ptialb6JMb3kR16PjZxaAl hCMhAAX0RT1nZGTGpbcPBxKrKnR6sxWBeTid6cmFmzHj3fxPb4KBfY/WU8OHgV7S+FDe ruAvI9CSA2jpTVony8s2nd2vmBRfIN1WsOCR6F8LvMXEvl7FkX99HHgzOQ3T2myKaCmR co2LM0BM7o+3vCX5RHjszHE77xqhGK+2Pa4u3kN4A2keYq0ELc/e0TS5kZvKckHuDJpY SbeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=B/1FomTUi8xGKyPRFm3RMAuTprVONac+CCnKuwE6Vo0=; b=y5CnTn1N2uMSC3GUdJekNkET2F8XFjmHxi6IQzQB/W3pddQ4SQ91ILNj1nCo4oe/wz m7QV3Z2lxh1apLKzOMNiASx8GYDE2L6d67oSRk8YtKyCuELnsCTj5L7hhI8UGtaZH3e5 DTGESDEDFpYVsrFXev5GuxznyOwzRKmYVr08gRTjUBHLDgfFX6ae/mvcZShyjhypfJSq FGrgJlt6J7D6h/yVv1CYHleS+ieg9QSdg+bDMgjOI514GgjBjCNi0H0e0OhXf+R1wSM2 WibirU9dLYzHW890t5GoEgsO7Ld5urHfTi78sFJ+WZznkO319zbiCaDxCzKKnAQCmspB +zqA== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn1si4736485ejc.638.2020.06.05.06.28.24; Fri, 05 Jun 2020 06:28:47 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgFEN0B (ORCPT + 99 others); Fri, 5 Jun 2020 09:26:01 -0400 Received: from mga02.intel.com ([134.134.136.20]:16169 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726931AbgFEN0A (ORCPT ); Fri, 5 Jun 2020 09:26:00 -0400 IronPort-SDR: sjSG+MwpU7tDcBFJzmoDFNhpoyXMHvgt6gZkmnhYKDcYyaCgnjuQ+uHENMwB/634CgX3Dq+z3F e+nNIYuRzXeQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 06:25:59 -0700 IronPort-SDR: QqxE7vVCy+o4w+yOREYmgWZnFs85Wh6JiXNHvhNhepNpRslwIXDBPaaHax64B+3tgyJr2LBEAt oaWmWd4bnrag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,476,1583222400"; d="scan'208";a="294688917" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004.fm.intel.com with ESMTP; 05 Jun 2020 06:25:56 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jhCMA-00B2K3-BC; Fri, 05 Jun 2020 16:25:58 +0300 Date: Fri, 5 Jun 2020 16:25:58 +0300 From: Andy Shevchenko To: Alexander Gordeev Cc: Linux Kernel Mailing List , linux-s390@vger.kernel.org, Stable , Yury Norov , Amritha Nambiar , Arnaldo Carvalho de Melo , Chris Wilson , Kees Cook , Matthew Wilcox , Miklos Szeredi , Rasmus Villemoes , Steffen Klassert , "Tobin C . Harding" , Vineet Gupta , Will Deacon , Willem de Bruijn Subject: Re: [PATCH RESEND] lib: fix bitmap_parse() on 64-bit big endian archs Message-ID: <20200605132558.GM2428291@smile.fi.intel.com> References: <1589798090-11136-1-git-send-email-agordeev@linux.ibm.com> <20200518115059.GA19150@oc3871087118.ibm.com> <20200602102430.GA17703@oc3871087118.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200602102430.GA17703@oc3871087118.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 12:24:31PM +0200, Alexander Gordeev wrote: > On Mon, May 18, 2020 at 01:50:59PM +0200, Alexander Gordeev wrote: > > On Mon, May 18, 2020 at 02:33:43PM +0300, Andy Shevchenko wrote: > > > On Mon, May 18, 2020 at 1:40 PM Alexander Gordeev > > > wrote: > > > > > > > > Commit 2d6261583be0 ("lib: rework bitmap_parse()") does > > > > not take into account order of halfwords on 64-bit big > > > > endian architectures. > > > > > > Thanks for report and the patch! > > > > > > Did it work before? Can we have a test case for that that we will see > > > the failure? > > > > The test exists and enabled with CONFIG_TEST_BITMAP. > > It does not appear ever passed before on 64 BE. > > It does not fail on 64 LE for me either. > > Hi Andy et al, > > Any feedback on the fix? Does it work on 64 LE for you? Test case, please. Yes, you can simulate BE test case on LE platform and vise versa. -- With Best Regards, Andy Shevchenko