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=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 21658C433B4 for ; Sat, 17 Apr 2021 13:13:01 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 788AD611AC for ; Sat, 17 Apr 2021 13:13:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 788AD611AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ACULAB.COM Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x66oQBeWebxlayLKOqwgjVJZlOqy2GYTdUObcIpJkGk=; b=Ye6zwwjes22Bqy8R0QNNTOi7x talrNFWWAOH3BReSxQRQUmizTKV1jDbSutOeYrRcQT/upY8qCKbU6LYrInyOvvJHP5GoCHgxFTZqN Gcr1nEFWoRfbyOpqlZjbfoZIz5afiRK3muzpk0VrTSM0fBfLZ59y2pT5S7zKRDpnClzQjZZ7DNKkT LewrukbZsOxJlzxzbtlmeIQ2JiQ8FSWFKX7l1TqpUaqg67PyshAyUlqNzJYqoMP2vIr7e5OBruZCe MqUUEd+huFHlSFrh/2GUWUM/zOhZ9F/DnQBqFx6rE5tD2tkvxIXLd8wsvLLYm6Aqmsxnnttf0eY/j ugmHsc4tQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXkgw-005NML-Nv; Sat, 17 Apr 2021 13:08:54 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXkgj-005NL8-Qw for linux-arm-kernel@desiato.infradead.org; Sat, 17 Apr 2021 13:08:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:In-Reply-To:References:Message-ID:Date:Subject:CC: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=fwx/uxYr8snaY/9JBVgSY+uE+az+d0gcXhNU9s+CmP4=; b=4bOoudXq+C3mFjbG2zXYV/Hzer tgML0tL5tmM7NxbaXBq37+1FKmkAGZxH5a/Kb01DcCuCvwt79Gy8WQtqhC/dH/OIQyIM+PWovbd+u 7nVLmQsksy4YjJw6jB4EWkguHbL75RNTEvzGcHYgI1SLadINEukUqF+4Vlk2qqC/O8xKzvsVhhLBq n8hYZHfbD7L9JQXs0CEecxkN1rAgrMQMQE66ZXDZmvEyE9zf0rZyp4iMuQQQckAidXsR0tkBBxMLH eVCU97TnQ76jwqPFyolmvWsZvPL2cvo2pQibbr1QybXyLZ0+h3N9O+aKk0qSNywr7ngj6NYvkEJj/ HMCln5MQ==; Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXkge-00A2Vt-44 for linux-arm-kernel@lists.infradead.org; Sat, 17 Apr 2021 13:08:40 +0000 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-40-NxhZsd9HMzmFc3zLPSZr6w-1; Sat, 17 Apr 2021 14:08:31 +0100 X-MC-Unique: NxhZsd9HMzmFc3zLPSZr6w-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Apr 2021 14:08:30 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.015; Sat, 17 Apr 2021 14:08:30 +0100 From: David Laight To: 'Grygorii Strashko' , Ilias Apalodimas , Jesper Dangaard Brouer , Christoph Hellwig CC: Matthew Wilcox , kernel test robot , Linux-MM , "kbuild-all@lists.01.org" , "clang-built-linux@googlegroups.com" , open list , "linux-fsdevel@vger.kernel.org" , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "linuxppc-dev@lists.ozlabs.org" , Linux ARM , "David S. Miller" , Matteo Croce , "netdev@vger.kernel.org" Subject: RE: Bogus struct page layout on 32-bit Thread-Topic: Bogus struct page layout on 32-bit Thread-Index: AQHXMqLVEv6dx6LXIEqsc09GLT7Ydaq4r3RA Date: Sat, 17 Apr 2021 13:08:30 +0000 Message-ID: References: <20210409185105.188284-3-willy@infradead.org> <202104100656.N7EVvkNZ-lkp@intel.com> <20210410024313.GX2531743@casper.infradead.org> <20210410082158.79ad09a6@carbon> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210417_060836_451876_D8ED7FF9 X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Grygorii Strashko > Sent: 16 April 2021 10:27 ... > Sry, for delayed reply. > > The TI platforms am3/4/5 (cpsw) and Keystone 2 (netcp) can do only 32bit DMA even in case of LPAE > (dma-ranges are used). > Originally, as I remember, CONFIG_ARCH_DMA_ADDR_T_64BIT has not been selected for the LPAE case > on TI platforms and the fact that it became set is the result of multi-paltform/allXXXconfig/DMA > optimizations and unification. > (just checked - not set in 4.14) > > Probable commit 4965a68780c5 ("arch: define the ARCH_DMA_ADDR_T_64BIT config symbol in lib/Kconfig"). > > The TI drivers have been updated, finally to accept ARCH_DMA_ADDR_T_64BIT=y by using things like > (__force u32) > for example. Hmmm using (__force u32) is probably wrong. If an address +length >= 2**32 can get passed then the IO request needs to be errored (or a bounce buffer used). Otherwise you can get particularly horrid corruptions. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel