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=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable 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 7E833C433B4 for ; Fri, 14 May 2021 09:40:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49A2261407 for ; Fri, 14 May 2021 09:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232023AbhENJmI (ORCPT ); Fri, 14 May 2021 05:42:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:53071 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbhENJmI (ORCPT ); Fri, 14 May 2021 05:42:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620985256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bvT1h5Dtf95/bClBJ8t/oO4/WMLk+en4nCrG5Kuj0DQ=; b=YHwHH2ihE7MF9kaK0vsik5rPLpZbkAUFbP8cqiMPKL842Jxo4sKcRWxdJaKlQxdLN0ogu5 AhCDbUdwKZBMnFEFSiTR47nPfi/9qV7pOUIxsDX1FeV+S8ay0s+SgT0GdlGvkPlmz0S6Ij yW93BW+P5qecf0Cij/30E7Za6KCFfM8= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-huscNK1OMp6tbYfiGDisEg-1; Fri, 14 May 2021 05:40:55 -0400 X-MC-Unique: huscNK1OMp6tbYfiGDisEg-1 Received: by mail-ed1-f71.google.com with SMTP id k10-20020a50cb8a0000b0290387e0173bf7so16207352edi.8 for ; Fri, 14 May 2021 02:40:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=bvT1h5Dtf95/bClBJ8t/oO4/WMLk+en4nCrG5Kuj0DQ=; b=BSrUi3zzO8cRjQh7fcoeW2glCiqEWESCLm2MwnrfH/+Vquo2OiAeIM9rfHrIVx0ipA S4ByI+BlsMY3JxcEhlsO22u3JRxrKieJ4xL0pDEUqbGyXylQzsv9Y9KMOrPL3wKQCtwB zfvuc3Vdi41e3f5R34pxgJe5H6avHq215q9S3gWo8HODfebSKr0F0oBD6sVJ6/00wnK8 nop6EtoppMpL6B9DTmALqu8JbrMEguGIAde7xmAEMMQhk4HKvIqBlidek+5J7cZLtEgf 65Pnplust2pQOIw8MY8ul+i2RsgF7xtskll8Fr2maVHEMs7MsstCr1CJmoD/xvZci2T8 /7jQ== X-Gm-Message-State: AOAM5323coEv30cFesLJH/xFEit5cT9Ob9XR8gxNrB7ppIEs4mfiKHIG okOuM+Oox1PpHhSEacGmykffFBCXayJs0V8M9P9ZdTgqyWy58gnlekTjeQOe4egfuHwQ0V5czlO xfOctpRCRC4qPTxacY6Lo X-Received: by 2002:a05:6402:2d6:: with SMTP id b22mr55674445edx.274.1620985253913; Fri, 14 May 2021 02:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNzAwSfBkG72zB94sJxDLgDbZ+DEQn4gYm5J85sFFQeIUDMZK27eq70zvt8ZCsSnIvH+CO+w== X-Received: by 2002:a05:6402:2d6:: with SMTP id b22mr55674419edx.274.1620985253764; Fri, 14 May 2021 02:40:53 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6501.dip0.t-ipconnect.de. [91.12.101.1]) by smtp.gmail.com with ESMTPSA id g10sm2885347ejd.109.2021.05.14.02.40.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 02:40:53 -0700 (PDT) To: Mike Rapoport , Andrew Morton Cc: Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , Elena Reshetova , "H. Peter Anvin" , Hagen Paul Pfeifer , Ingo Molnar , James Bottomley , Kees Cook , "Kirill A. Shutemov" , Matthew Wilcox , Matthew Garrett , Mark Rutland , Michal Hocko , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , "Rafael J. Wysocki" , Rick Edgecombe , Roman Gushchin , Shakeel Butt , Shuah Khan , Thomas Gleixner , Tycho Andersen , Will Deacon , Yury Norov , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-riscv@lists.infradead.org, x86@kernel.org References: <20210513184734.29317-1-rppt@kernel.org> <20210513184734.29317-9-rppt@kernel.org> From: David Hildenbrand Organization: Red Hat Subject: Re: [PATCH v19 8/8] secretmem: test: add basic selftest for memfd_secret(2) Message-ID: Date: Fri, 14 May 2021 11:40:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210513184734.29317-9-rppt@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On 13.05.21 20:47, Mike Rapoport wrote: > From: Mike Rapoport > > The test verifies that file descriptor created with memfd_secret does not > allow read/write operations, that secret memory mappings respect > RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and > ptrace() to the secret memory fail. > [...] > @@ -0,0 +1,296 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright IBM Corporation, 2020 2021 ? -- Thanks, David / dhildenb