Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1597449ybp; Fri, 11 Oct 2019 17:17:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv3kgYTXD89c4izNGkvaYhP2pzBYxGppCtuYQkMGBqm2M9WbELfouW0IAL5b605KVikNdD X-Received: by 2002:a17:906:5292:: with SMTP id c18mr16524856ejm.129.1570839459468; Fri, 11 Oct 2019 17:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570839459; cv=none; d=google.com; s=arc-20160816; b=i5GVjefejfjEadiWuBg685YRcnIdIhPHuc7aZw/ApLF0hjGzQRgC2c4BEMpQ3TcWJU vmRsGh2iEOU9PVvchIdP/gWj46QAVwzo6EyrPfYd+gmBn6+0LR50ab0mpvuBe5xkTst4 M0DaYaZiaOBN2GXLIbweVbgL+kDyIRUNb20TNFwy+RJiB/9kQH94XH7xWbygwxbXCRC1 5eWUT8afhtHOueDobkdysY98ZK2MKylpVgkGUPGTw/lKcuYmaaX6vTxTGDCqNig9Q56J KJvKks/Efgk2+9VqadL8q0Ui5pfMVI3LQzWP0X2oA4fhbu1PaptyBNDU2VvB9g1ChM+v VErA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DP/pIZ7Dk1r0Q1hAF8O62ASZwsVKnOksJciqBlvU9ik=; b=THNJx/Iwwst0WVSKU7nEpAqdBOHiLan8JkBcDsuHTGRUCEMFoP21H4jqzN9RBER+cu IHwG3u50tvRUMQjynaVxzxSq6BSeh80/kyZQzmEWjwWfKK/iPMW59wuRk2vad7lDItzF Ocvs5L/uUix+tX2BYjMoRagjE5HGLxnpbfb+m3m1YrV5GnmrOa8vuH5RpoNOicmWe+rx VUZNP8ZBI2sOXoluaFgss5LdjRJgqgtU9dBHSWRUzkf0Mlyr+oBo/Gr2m+1aF+JPdS7C VM4YqcHBGP2Md67aAX9YONNUEtXKUbBhO+VG2+8puNMpF/P0Yi/TFbawVFVjeXJQH93H F7gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q7kTfk7M; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si6934445ejj.108.2019.10.11.17.17.15; Fri, 11 Oct 2019 17:17:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q7kTfk7M; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728496AbfJLAH3 (ORCPT + 99 others); Fri, 11 Oct 2019 20:07:29 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39447 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfJLAH3 (ORCPT ); Fri, 11 Oct 2019 20:07:29 -0400 Received: by mail-lj1-f194.google.com with SMTP id y3so11408879ljj.6 for ; Fri, 11 Oct 2019 17:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DP/pIZ7Dk1r0Q1hAF8O62ASZwsVKnOksJciqBlvU9ik=; b=Q7kTfk7MSE6QawaFDXeSSzLymvp4F8fw5HDlXIrhbSMRYSOL2Bs/kBZY6CvwwBktap pQEhlW3IqjqiVmd9yzYIUpEPMypBT5AIhmcsnyYzd1ZBaah/uVjt9FmJN3wQ6Y/mu1vV 9cmWtcLBuoMIKagHz3hrlORigpkYyNJnx+bND7R/O9A2GdkTli3uLg+/6QnDihRTKqTK vZ7cYwZjqkZlG4JDUb1aG4D2sSZZ4Fqc0m0BzMvbhDV3BUTeT8qeO6oSDJ+wyP/0lGp8 tMVmz33GbIh6e7WFkI2cjOubo4mVEG3jul7rs0ZFkn1wPFtS1bGqsXjIMuDVzXCanSfa KKhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DP/pIZ7Dk1r0Q1hAF8O62ASZwsVKnOksJciqBlvU9ik=; b=N2Y8tMneBvo7FmbMWj92p2xnvBKDSp8Wn9X88CdHISKwv9WxDgDQ1u5NfdqxJ7sarh Wu0eAiP8B7OJObr2rrMcm0oP0Db/Cz92SqZBgLJOfguYvwiArehmIgYKu+eoebJtM8KF 2UMgJdUB89JyBTKQksZR9y7ny/Aq38A4gDoJOlGp0KIuHRUSu6Ishb6jph3WPoZrNI52 UTj+pPVo5Xgen84/bQ2AEwC8jz81s8MqNy8VupvnboFXWyGktEDjELnk71lXBTWYW7Xs vM+UkHB+ghOQu2+VjjYwDl+7XSXwn+7RPV/uF5wuZ4M0Wuoa5yJklubT9euLrRXIU8Ap fgVA== X-Gm-Message-State: APjAAAV8/vNsW+bpV6QhklQ6GxJ1tr1vlmhFn6SSIV03n8e00WiCBWVw mKSb+/P3Cw1MA909Moyb7Kc= X-Received: by 2002:a05:651c:1b9:: with SMTP id c25mr10299063ljn.163.1570838847064; Fri, 11 Oct 2019 17:07:27 -0700 (PDT) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id x17sm2215705lji.62.2019.10.11.17.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 17:07:25 -0700 (PDT) From: Max Filippov To: linux-xtensa@linux-xtensa.org, Al Viro Cc: Chris Zankel , linux-kernel@vger.kernel.org, Max Filippov Subject: [PATCH 0/3] xtensa: fix {get,put}_user() for 64bit values Date: Fri, 11 Oct 2019 17:07:08 -0700 Message-Id: <20191012000711.3775-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this series fixes return value, out-of-bound stack access and value truncation in xtensa implementation of {get,put}_user() for 64bit values. It also cleans up naming of assembly parameters in __{get,put}_user_asm and __check_align_{1,2,4}. Al Viro (1): xtensa: fix {get,put}_user() for 64bit values Max Filippov (2): xtensa: clean up assembly arguments in uaccess macros xtensa: fix type conversion in __get_user_[no]check arch/xtensa/include/asm/uaccess.h | 93 +++++++++++++++++-------------- 1 file changed, 52 insertions(+), 41 deletions(-) -- 2.20.1