Message ID | 20200926041924.JrUcL1D_9%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=xNzI=DD=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3654A112C for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 26 Sep 2020 04:19:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EE7D32080A for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 26 Sep 2020 04:19:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ARY3by6I" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE7D32080A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 07F616B0072; Sat, 26 Sep 2020 00:19:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0302A6B0073; Sat, 26 Sep 2020 00:19:26 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EADE36B0074; Sat, 26 Sep 2020 00:19:26 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0208.hostedemail.com [216.40.44.208]) by kanga.kvack.org (Postfix) with ESMTP id D54AC6B0072 for <linux-mm@kvack.org>; Sat, 26 Sep 2020 00:19:26 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 964E65821 for <linux-mm@kvack.org>; Sat, 26 Sep 2020 04:19:26 +0000 (UTC) X-FDA: 77303908332.01.spy63_4a03e7f2716d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 85624100520F1 for <linux-mm@kvack.org>; Sat, 26 Sep 2020 04:19:26 +0000 (UTC) X-Spam-Summary: 1,0,0,baec6da270e413e7,d41d8cd98f00b204,akpm@linux-foundation.org,,RULES_HIT:41:355:379:800:960:967:973:988:989:1260:1345:1359:1381:1431:1437:1534:1541:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3868:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6261:6653:6737:7576:7688:8603:9025:9545:10004:11026:11658:11914:12043:12048:12114:12297:12438:12517:12519:12555:12679:12895:12986:13069:13255:13311:13357:14181:14384:14721:21060:21080:21451:21611:21627:21939:30054:30064:30079:30090,0,RBL:198.145.29.99:@linux-foundation.org:.lbl8.mailshell.net-64.100.201.201 62.2.0.100;04yrh4xfo3i5xsqmugtz5wwdhpzxroceuk396pfmefg6k8efwnc1bgiiwp8zeuo.gkqwg5djj6mtz5ptfx6gaeptnse1u133wgk3umjc48w46gthxwsgbo1an661qmo.k-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0 :0:0,LFt X-HE-Tag: spy63_4a03e7f2716d X-Filterd-Recvd-Size: 3373 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf44.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Sat, 26 Sep 2020 04:19:26 +0000 (UTC) Received: from localhost.localdomain (c-71-198-47-131.hsd1.ca.comcast.net [71.198.47.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF92D207C4; Sat, 26 Sep 2020 04:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601093965; bh=4XYbOkZD/X+maFrZDRd5RAzqJJ9LoJUpJToY3T3h3R0=; h=Date:From:To:Subject:In-Reply-To:From; b=ARY3by6ITqp2ZnsjOsPvXl+rGGDcHv8XbLOpId2hoXAJYDuU33VhrEDACHeGCnZjR 9n91SUl1xCKp3tjXuT8Qf0r7v9lmsrcvsunSEVd4++RIROvmA21hg5jWaBnCAd9vFX cwn6ysHBq1VfNYgqtGTRudh+891wxKG0QhjTznM0= Date: Fri, 25 Sep 2020 21:19:24 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, dan.j.wiilliams@intel.com, hch@lst.de, hpa@zytor.com, jack@suse.cz, jmoyer@redhat.com, linux-mm@kvack.org, mawilcox@microsoft.com, mingo@elte.hu, mingo@redhat.com, mm-commits@vger.kernel.org, mpatocka@redhat.com, ross.zwisler@linux.intel.com, stable@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, toshi.kani@hpe.com, viro@zeniv.linux.org.uk Subject: [patch 7/9] arch/x86/lib/usercopy_64.c: fix __copy_user_flushcache() cache writeback Message-ID: <20200926041924.JrUcL1D_9%akpm@linux-foundation.org> In-Reply-To: <20200925211725.0fea54be9e9715486efea21f@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[1/9] mm, THP, swap: fix allocating cluster for swapfile by mistake
|
expand
|
--- a/arch/x86/lib/usercopy_64.c~arch-x86-lib-usercopy_64c-fix-__copy_user_flushcache-cache-writeback +++ a/arch/x86/lib/usercopy_64.c @@ -120,7 +120,7 @@ long __copy_user_flushcache(void *dst, c */ if (size < 8) { if (!IS_ALIGNED(dest, 4) || size != 4) - clean_cache_range(dst, 1); + clean_cache_range(dst, size); } else { if (!IS_ALIGNED(dest, 8)) { dest = ALIGN(dest, boot_cpu_data.x86_clflush_size);