Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1010144imm; Fri, 29 Jun 2018 09:51:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexBrSTmQ5UULgY6C8Jht+2RW1t9HRNf0eXf+jgDu+laos+VElRNEcbGDNNxoDM49AiYDwR X-Received: by 2002:a62:23d5:: with SMTP id q82-v6mr10792395pfj.158.1530291101807; Fri, 29 Jun 2018 09:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530291101; cv=none; d=google.com; s=arc-20160816; b=JUtZifQUqYgKNxMRl44c8tKvyXQE87wVN+LxxxYLBs7rB31rYAwvH4M5EFYP2xpfW0 ELnxmW7xdQ7UAvFxWiEUjdzcK5V9ZQ8xEhD5tIKRJ71JswPLcckFSBnthPWWeRA4UBwG TfA1P/8txoVGj3IMhZ4YXrNWsTvOwKxfmb33V/iczuUm8HyHYHqNMR4pbyn0HqjkuEvI pjbRgxUTdV15OBeeq0Qg+l/zJCcVqKVMOwVSp7B5ay5UsY6ItRN/UCcgbf9v2YXzPioV RSqhcpN+DUx+a1xbwOK8Kq0JPsiXEKbZIaQfjWEnKabd0OJ9m6FU1nxIHMyeYULKA5Yk lIRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=aohNzgrJXBl0ZatvDWqPC2Ou5sYGXyt0QkujjAcpxVQ=; b=bj/DQ8VcTFR3PD9puK3CMa4au+Lc0kekbpDaD3T/njG/g7/COkO+otx6orj4/a5GCo y6tbLOVWvHgQe60D6IxnusnBMgkxk85sZS6uzLafVijb660S8eyVWKJU1ZTAyAJmtnMr HEeLbh9skrOqG7UwCH91cN9+/odXVKzmPLNDjEllJ0p1yoxFFgzKs5hDjQchm4FKWemR 9b3+vcqFpS5CjSwr9Voyn6XrHCwBeGwiEW0ypP3O8AtIRdfEgpgW0eAIFczVwKdhCZce IXCIT8nHTDDkGIR2wvixdI3t4IMo9jtYn40yzHQtxT/gQon9t/ukuQbiR4j9y4N+JCBT sD5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nNr+QTTP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d129-v6si2525682pfg.142.2018.06.29.09.51.27; Fri, 29 Jun 2018 09:51:41 -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=@google.com header.s=20161025 header.b=nNr+QTTP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936515AbeF2PUr (ORCPT + 99 others); Fri, 29 Jun 2018 11:20:47 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:39985 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932529AbeF2PUo (ORCPT ); Fri, 29 Jun 2018 11:20:44 -0400 Received: by mail-io0-f194.google.com with SMTP id t135-v6so8782792iof.7 for ; Fri, 29 Jun 2018 08:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aohNzgrJXBl0ZatvDWqPC2Ou5sYGXyt0QkujjAcpxVQ=; b=nNr+QTTPy8TPD0niDZbYy3WzUs+SAf596/xMsRbeKjKXDYzQz+QfZV/I3AsBe0g412 66I+nmir7/uQD3X8gMUwyOHqN10UiTSzp5vptrJ1kjYpy+0c0vFBkQZZx/0bjFot36GC 7fGmo4DcjUR0pgI2+NLLYhWWfBTH/cCVKqkOZzE6Mu5Pv4gsSPbMhQzbEvS/XDEqT1Ie xRdXDXoRHITpZKaamfspNLSmQyef/J0MKinljGwZq2KSDmtl95tuEn++utaFDUl+el6L YJRbGwtxUs0gfJX0ErzvmWyZdnurfATWScqVIMmHCtChAYgzZ1lSCFv0GCAMVIIB3e/7 Htaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aohNzgrJXBl0ZatvDWqPC2Ou5sYGXyt0QkujjAcpxVQ=; b=pi+RAOQWD5mckdpm+UuA8VNfTpYsvFNXTkcQACX9gyd+4HFjECsjmioXi+Jt701zx9 ZIWn+Y7LhBwlkfNn9n1k+NMnvz44pyEyEzfZztGQkTt8/KAKWef+HuB4mCKXso53MPHG eiGpP90fGUjvAp2Xn4J1cH8mjsVu+hvF+rYuDVZBa3aA5f5qhC4zjW5NO+Z3yeK2JF3S KqFQLSwq04Qkkvw2FycHj4FVa9MumcfrHgprS991PmqIqJ2UbkGJoKxphdKIifyO8is0 ou5lycHdY6nBb6qGthZfVhz3QPx5+lyJAix1UM2AWRQSW10MUj8dNmNftgz4BnX1RzjY d4eA== X-Gm-Message-State: APt69E3S/HeiR+1h+LKavnQlYQW/2S8K4sRi+QJXkvWtaZ1aHXqprBTh o0OKpi89MGbqyWCBlLPqKbojPfIWBwfXbAyYMGZn0g== X-Received: by 2002:a6b:5002:: with SMTP id e2-v6mr13070944iob.31.1530285643558; Fri, 29 Jun 2018 08:20:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:9082:0:0:0:0:0 with HTTP; Fri, 29 Jun 2018 08:20:42 -0700 (PDT) In-Reply-To: References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> From: Andrey Konovalov Date: Fri, 29 Jun 2018 17:20:42 +0200 Message-ID: Subject: Re: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel To: Catalin Marinas Cc: Will Deacon , Mark Rutland , Robin Murphy , Al Viro , Kees Cook , Kate Stewart , Greg Kroah-Hartman , Andrew Morton , Ingo Molnar , "Kirill A . Shutemov" , Shuah Khan , Linux ARM , linux-doc@vger.kernel.org, Linux Memory Management List , linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, LKML , Chintan Pandya , Jacob Bramley , Ruben Ayrapetyan , Lee Smith , Kostya Serebryany , Dmitry Vyukov , Ramana Radhakrishnan , Evgeniy Stepanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 5:19 PM, Andrey Konovalov wrote: > a bunch of compat > a bunch of ioctl that use ptr to stored ints > > ipc/shm.c:1355 > ipc/shm.c:1566 > > mm/process_vm_access.c:178:20 > mm/process_vm_access.c:180:19 > substraction => harmless > > mm/process_vm_access.c:221:4 > ? > > mm/memory.c:4679:14 > should be __user pointer > > fs/fuse/file.c:1256:9 > ? > > kernel/kthread.c:73:9 > ? > > mm/migrate.c:1586:10 > mm/migrate.c:1660:24 > > lib/iov_iter.c > ??? > > kernel/futex.c:502 > uses user addr as key > > kernel/futex.c:730 > gup, fixed > > lib/strncpy_from_user.c:110:13 > fixed? > > lib/strnlen_user.c:112 > fixed? > > fs/readdir.c:369 > ??? Started looking at the results and accidentally posted my notes. Ignore this for now, will post when done.