Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4266205ybg; Mon, 8 Jun 2020 03:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz92P8yqP+m6Mkay3OYnZxOZ/UfCanDbEfd5FEfz6vsdw/wlWAj1ivygTIqMEVjefuIR41c X-Received: by 2002:a17:906:2a4d:: with SMTP id k13mr21076057eje.253.1591612398609; Mon, 08 Jun 2020 03:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591612398; cv=none; d=google.com; s=arc-20160816; b=ooQxvS1GOuk4TLPq116aIEBQLdqIdN9lhNkHtV88yF6kYbdbYY6/bbi9/+BAn+scQ8 bhZVtusgbwIhYkgqs5Op5aFhpsdtWu81iy2ORu2KcZPFjPI+vFYmTS4hdLvq1EFYi6zt idt2pF8RZEU9nPTaLqfnXbzPgzEbUZYQLDskuY/VkRbCxiHwjMA55CdSPFqSfHPduCAn D8Abth324uHlvmYk5cHgtph1/qYhlEJO1CufhLvEJF+/CFIU7Qhva7fXuLqZ9GQeNCz1 a2xUQPojkSAU7HnC1vwLTr/TBE7He8TEdplRvWsJMVnYXlEAMgzxXdHwSyYv1rpxZzoo Hxcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OV531Q5+D5zbwhHKo0Mcd1znBI9v6ERFNFGuTsadO+A=; b=C03+k1GEG4yblcVjwGULdPSQalnLXn7ZhCeT7T+gzypNu7Wjn5OvmhAh47VUJyIGOZ IE4eYTSFjarfk+RpmdAtNJU/NCK494/Egnod9cniOBgqIZo7hwACX6XV9zYUG2/wPZU6 iqDYKRga/Wzw7GHbD2204euJTZmy8CQMWxVkHWESb8N5FZQPX32EWwy/ArNRw0XhVdGb ZF5kNrMVbkpdOtyh76poutGPEUg6a1XkDn9EB0/oxHsD4K7fuECidnlAbCJJ94fVURAO +kgoGmwTkEoh7Uk1CIB+r668esEKU6TqUh5qJe4DI01C7mjOmcHQVemwW5Fp7KZ1nRWG 9mtw== 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=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 y3si8661887edt.330.2020.06.08.03.32.55; Mon, 08 Jun 2020 03:33:18 -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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729405AbgFHK21 (ORCPT + 99 others); Mon, 8 Jun 2020 06:28:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57882 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729393AbgFHK2Z (ORCPT ); Mon, 8 Jun 2020 06:28:25 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 058ABstu178122; Mon, 8 Jun 2020 06:28:10 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 31g59r9m0u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 06:28:10 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 058AMoMC010283; Mon, 8 Jun 2020 06:28:09 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 31g59r9kyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 06:28:09 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 058AQ566011235; Mon, 8 Jun 2020 10:28:07 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma05fra.de.ibm.com with ESMTP id 31g2s7sgxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jun 2020 10:28:07 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 058AS5bq6685010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Jun 2020 10:28:05 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F0AF7AE056; Mon, 8 Jun 2020 10:28:04 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 242A6AE053; Mon, 8 Jun 2020 10:28:04 +0000 (GMT) Received: from oc3871087118.ibm.com (unknown [9.145.56.93]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 8 Jun 2020 10:28:04 +0000 (GMT) Date: Mon, 8 Jun 2020 12:28:02 +0200 From: Alexander Gordeev To: Andy Shevchenko 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: <20200608102801.GA22989@oc3871087118.ibm.com> References: <1589798090-11136-1-git-send-email-agordeev@linux.ibm.com> <20200518115059.GA19150@oc3871087118.ibm.com> <20200602102430.GA17703@oc3871087118.ibm.com> <20200605132558.GM2428291@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200605132558.GM2428291@smile.fi.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-08_07:2020-06-08,2020-06-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 clxscore=1015 adultscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 cotscore=-2147483648 bulkscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080073 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 05, 2020 at 04:25:58PM +0300, Andy Shevchenko wrote: > Test case, please. Hi Andy, Below is the output of the runtime kernel test "test_bitmap". I resent the patch with Andrew Morton on CC, but did not include the excessive test output: test_bitmap: parse: 4: input is 1, result is 0x100000000, expected 0x1 test_bitmap: parse: 5: input is deadbeef, result is 0xdeadbeef00000000, expected 0xdeadbeef test_bitmap: parse: 6: input is 1,0, result is 0x1, expected 0x100000000 test_bitmap: parse: 7: input is deadbeef,,0,1, result is 0x1, expected 0xdeadbeef test_bitmap: parse: 8: input is deadbeef,1,0, result is 0x1, expected 0x100000000 test_bitmap: parse: 9: input is baadf00d,deadbeef,1,0, result is 0x1, expected 0x100000000 test_bitmap: parse: 10: input is badf00d,deadbeef,1,0, errno is -75, expected 0 test_bitmap: parse: 11: input is badf00d,deadbeef,1,0, errno is -75, expected 0 test_bitmap: parse: 12: input is badf00d,deadbeef,1,0 , errno is -75, expected 0 test_bitmap: parse: 13: input is , badf00d,deadbeef,1,0 , , errno is -75, expected 0 test_bitmap: parse: 14: input is , badf00d, ,, ,,deadbeef,1,0 , , errno is -75, expected 0 test_bitmap: parse: 16: input is 3,0, errno is 0, expected -75 test_bitmap: parse_user: 4: input is 1, result is 0x100000000, expected 0x1 test_bitmap: parse_user: 5: input is deadbeef, result is 0xdeadbeef00000000, expected 0xdeadbeef test_bitmap: parse_user: 6: input is 1,0, result is 0x1, expected 0x100000000 test_bitmap: parse_user: 7: input is deadbeef,,0,1, result is 0x1, expected 0xdeadbeef test_bitmap: parse_user: 8: input is deadbeef,1,0, result is 0x1, expected 0x100000000 test_bitmap: parse_user: 9: input is baadf00d,deadbeef,1,0, result is 0x1, expected 0x100000000 test_bitmap: parse_user: 10: input is badf00d,deadbeef,1,0, errno is -75, expected 0 test_bitmap: parse_user: 11: input is badf00d,deadbeef,1,0, errno is -75, expected 0 test_bitmap: parse_user: 12: input is badf00d,deadbeef,1,0 , errno is -75, expected 0 test_bitmap: parse_user: 13: input is , badf00d,deadbeef,1,0 , , errno is -75, expected 0 test_bitmap: parse_user: 14: input is , badf00d, ,, ,,deadbeef,1,0 , , errno is -75, expected 0 test_bitmap: parse_user: 16: input is 3,0, errno is 0, expected -75 Thanks! > Yes, you can simulate BE test case on LE platform and vise versa. > > -- > With Best Regards, > Andy Shevchenko > >