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=-8.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, T_DKIMWL_WL_MED,USER_IN_DEF_DKIM_WL autolearn=ham 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 9F50EC43141 for ; Fri, 29 Jun 2018 15:20:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58A1428041 for ; Fri, 29 Jun 2018 15:20:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nNr+QTTP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58A1428041 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936526AbeF2PUr (ORCPT ); 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-Google-Smtp-Source: AAOMgpfVJBpHT3x2a1tyCt8DVA3YdC8P50PSL8+Qzt7uUbYO4n4OKR1oN7jA0B//wZVBRrp73gjMty3tUUEee1yrEaA= 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id B86747DF86 for ; Fri, 29 Jun 2018 15:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933062AbeF2PUq (ORCPT ); Fri, 29 Jun 2018 11:20:46 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:38052 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932296AbeF2PUo (ORCPT ); Fri, 29 Jun 2018 11:20:44 -0400 Received: by mail-io0-f194.google.com with SMTP id l19-v6so8788226ioj.5 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=B58Fxjxtw0XOhMy6XStr7qmBd12a2TVFe7DsIMRdLzC2rZ5qXT3EwNakhmb6nB9ql1 cZWlLPZg812to8oO07sXy59/c8yn1wpJmClS3mSnBf2jQ9dsqRg0XuzOZO19e0VdKRms 7xjDEBTEIoYnEOxliUjrGi0quQjNS5A7pbgrtT2MgnQaUPGcz1g8uxW1hz8zSrnTQdnJ wUp20muD6JjSwh+OFZ12C2mPTuerIr0KLJXWSOyOhxwNm9Cd9dN4jeLfcKEn3oN3Ydr5 TU/wa6UdDuG3LyaM/2b1xv/9ADtC/bTI6n++l9QqYFzyR/YFjkr8R70GGTLUcn2F/+ft gBwQ== X-Gm-Message-State: APt69E027VIZlpX0K8II1hNuCtNGVD2Sy7JXgqEaXzbGBkRDtQTlts8u QqXct46KntMWXa+Xfjp++7rmaQ+bZSsxEzdTMjuyDQ== X-Google-Smtp-Source: AAOMgpfVJBpHT3x2a1tyCt8DVA3YdC8P50PSL8+Qzt7uUbYO4n4OKR1oN7jA0B//wZVBRrp73gjMty3tUUEee1yrEaA= 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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: andreyknvl at google.com (Andrey Konovalov) Date: Fri, 29 Jun 2018 17:20:42 +0200 Subject: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel In-Reply-To: References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> Message-ID: 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: andreyknvl@google.com (Andrey Konovalov) Date: Fri, 29 Jun 2018 17:20:42 +0200 Subject: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel In-Reply-To: References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> Message-ID: Content-Type: text/plain; charset="UTF-8" Message-ID: <20180629152042.QZdW3_Q__iyYYI4PkBS-uszMI_nk7p-Wi7sBr97XYEA@z> On Fri, Jun 29, 2018@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. -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Konovalov Subject: Re: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel Date: Fri, 29 Jun 2018 17:20:42 +0200 Message-ID: References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-arch.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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: andreyknvl@google.com (Andrey Konovalov) Date: Fri, 29 Jun 2018 17:20:42 +0200 Subject: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel In-Reply-To: References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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.