Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp151324imm; Fri, 3 Aug 2018 00:54:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKN8TE3aiXFg/jbPSulKOiaFYnSMgmXKXv8S65uCO2ty2AoLubkAYF7Y7SqzQ8OT0uujay X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr2478389plv.342.1533282898059; Fri, 03 Aug 2018 00:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533282898; cv=none; d=google.com; s=arc-20160816; b=JWLfe1aY9TRZpTzWJZsAyb9/Z01E9apmd68VJOmOvElTG5/KeXAwrgfLRthYrcCLfj kXPhFqMBKyuzseyqZ3P2Z67DBpmUxcI/l1H2XnptpKf8TsHXb518QnqDvE0xufZ/1sJw xgVjYSsOo7k7lCgttZJyjv4SYO+EG1WZHYiWORehbPR6nYVHpwOrzJcL90o8XMY/PqyE yIDnzGKJPfSqme26XOnhGsfIY6jIy3W6aGLuL+cW2Em1r4kXta8eHDvTh8tLjpBn5b2W 6V7r0KquD0Ay3qRDDF2eTo1W/YWRNUICb0IL452wBfRptEe/pAXKt4J/uOrewLlAeFJr U3ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=R0L7qhbEg5XzvxWxJDnv1P5FDFPlQH8qVnGeHE5Qm68=; b=LgIf2Ch6FA6mEtaBtiaNZhwwWrA955BrjSu7k13UXQLQY3SwJcrj4YM50XuTt4fVvr /h6uwBv+DwcdahQlxysyYJyKDQ1RECZ6xa62SaQmYEeP8+CNSPxSHr5FBEzXzkL+a3ct 7VnOultx6/xCeXhC7iwdHi1oUUctns+jWCxiJNAOe+koF9K5K1vyxJZPHp5+UZEHl0GY x3DOm4aC7Kr/wea18ZoP2jdv8QLA3eBPwD+cOc1cnD3cf3YSdv0sYDWEDVPikFyTMotq lBeAMc0U9azyGJCcra1mVX2UgiXjzul94bDMD+gi60ENFf9h0rEVlpj05RhqxLf655vu Jq3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8-v6si5325214pfc.136.2018.08.03.00.54.43; Fri, 03 Aug 2018 00:54:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730783AbeHCJs6 (ORCPT + 99 others); Fri, 3 Aug 2018 05:48:58 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33626 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727594AbeHCJs6 (ORCPT ); Fri, 3 Aug 2018 05:48:58 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2591F40216F4; Fri, 3 Aug 2018 07:53:53 +0000 (UTC) Received: from oldenburg.str.redhat.com (dhcp-192-212.str.redhat.com [10.33.192.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BDD272026D65; Fri, 3 Aug 2018 07:53:50 +0000 (UTC) Subject: Re: framebuffer corruption due to overlapping stp instructions on arm64 To: Andrew Pinski , mpatocka@redhat.com Cc: Catalin Marinas , Will Deacon , linux@armlinux.org.uk, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, LKML , GNU C Library References: From: Florian Weimer Message-ID: <9acdacdb-3bd5-b71a-3003-e48132ee1371@redhat.com> Date: Fri, 3 Aug 2018 09:53:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 03 Aug 2018 07:53:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 03 Aug 2018 07:53:53 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'fweimer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2018 09:11 AM, Andrew Pinski wrote: > Yes fix Links not to use memcpy on the framebuffer. > It is undefined behavior to use device memory with memcpy. Some (de facto) ABIs require that it is supported, though. For example, the POWER string functions avoid unaligned loads and stores for this reason because the platform has the same issue with device memory. And yes, GCC will expand memcpy on POWER to something that is incompatible with device memory. 8-( If we don't want people to use memcpy, we probably need to provide a credible alternative. Thanks, Florian