Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp351364pxb; Thu, 23 Sep 2021 01:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn/v2DNl2xgvUwBm14xdJEUc6R930yHJGpB8/T/n/EzxIP7pCGtXq3/rokl0n0nZZahlT4 X-Received: by 2002:a6b:2b97:: with SMTP id r145mr2675543ior.193.1632384695527; Thu, 23 Sep 2021 01:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632384695; cv=none; d=google.com; s=arc-20160816; b=bmqkkPnN2pZ7w7T4Ji/881KAJtQztCx+AP3ZT5Szp8kaMRySDhJxjqFg9MDpM6iwIz lrJEYJqtWwicBS12bz1Gz+TOq+El08bqngrMGinIunacY3SlRJBF5s+tLs5ZJJItR9rh HuMyrmTMazYeRAJCcCoMs185H7eCPM8IROibdPHPpXqfyLOUpaFNFZ1dIWJ3Yc7VLViB nl4o/VYkbe1IAhRnci2DLSa1DB7CShRYYplAaeXlScTAhMb3CuHoSm6P59U9WdwU/w86 Uby0OY12ZtM+/kx67suSR4IQPwjm+bJzkfnLtTN2D3X3MMg+IVlw97Pqbsaa2Aj2AKgt ApiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=xUZgLGtKUz9aDU0USgUsTO5mp3XnVQM8D5e0FyChN6E=; b=h4Uru3fy47stxEIl/zgCKKDgTbaa+4xMFvSRNl00l8Ehnk64pJd1a7W2o0LIWeouar l0Utx+24iUuaFQr7RiJG28sA7hqU+u5pldhr4qV5FTdtxtgPBOocxAHtZ3YKHrfKh9dA HMJV1FATtMAdyT8pjdcWLDla2TUSZFH6hI5Nzb2P/OhXtI75OLhdByLsWnnVx/bYDPxw 28ezI5/ty8x6m5Fo+tPUKFLMqjRrlnaf4Si+V9Z1tRRh/9UGGU4g9d4sTFYa6alcJjVP XkNfe+mV1lWG62CaFqpoxvwi2zaDSlsQCeD4EtAHyCBzntt1JJpTHBkMsL7R627+gVaF nVtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HlchIMrb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si3620966ilu.118.2021.09.23.01.11.23; Thu, 23 Sep 2021 01:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HlchIMrb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239638AbhIWIKH (ORCPT + 99 others); Thu, 23 Sep 2021 04:10:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:42853 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232435AbhIWIKG (ORCPT ); Thu, 23 Sep 2021 04:10:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632384514; 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=xUZgLGtKUz9aDU0USgUsTO5mp3XnVQM8D5e0FyChN6E=; b=HlchIMrbkpEvyQ+WpMpc9EXdCXNTc+vvfg7UCdAEBmX/qIw2nJwuGaL8AVIL+DtG6xD00t eU+dBfvwHCnU2/JSenFiKrbDSjcSNhBvZJN0u7i3lj/9XWvn1oZmbvin2Jn5/see1ZhkYQ hjxiHVV9ZBfDegInG1kKV2EpqEG3nJY= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-571-_JDCvpR4M42-f8Nzv2LY1Q-1; Thu, 23 Sep 2021 04:08:33 -0400 X-MC-Unique: _JDCvpR4M42-f8Nzv2LY1Q-1 Received: by mail-wr1-f72.google.com with SMTP id i4-20020a5d5224000000b0015b14db14deso4393069wra.23 for ; Thu, 23 Sep 2021 01:08:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=xUZgLGtKUz9aDU0USgUsTO5mp3XnVQM8D5e0FyChN6E=; b=mUdNYWoWvyVpoJXVYJ9Es1l0OQd7yd62RL4ai1JZwx2xCgkI6vUHAD26ksRpE6mw6E xKLjjHrhPBMpQBe7WZsh/jadKeISY2bytPynV7a8K2TSQIghpsynmiuE2v7Sv+oNm7os Dgz3GCSCWpA0wmA7Q5ba9NqvMIyaBocBfxUd4K++nqECnC7/27Js5BrMcQNQVBUDwTPM oYpPg6RjV9ce98FlYAj5Jst0aD9P55S4bhWZxFHDbQc97ugOPu64ot49Labn+TbJEx5t FrVF0GPMGIE490FQ+6fFoD0QIRViTaZyEmZUUEbqRgFsppyhKL4QFz93ZNq0/qoulXxT innw== X-Gm-Message-State: AOAM5331yM+vm+Mg10UnEAt+0BjmDKLZn9MCkXzt/C6EisHsTLHR4Sqj TvamO6O8Kr+HJ1ifTPiOEYHbLemwM2Htoxh3v8EOr9+XzROokIt40F95Mpl952475/0BEjXUD1F YjeQj+BSN7C7SmIzjDmg3FFos X-Received: by 2002:adf:fd92:: with SMTP id d18mr3560904wrr.28.1632384512290; Thu, 23 Sep 2021 01:08:32 -0700 (PDT) X-Received: by 2002:adf:fd92:: with SMTP id d18mr3560895wrr.28.1632384512106; Thu, 23 Sep 2021 01:08:32 -0700 (PDT) Received: from [192.168.3.132] (p4ff23e5d.dip0.t-ipconnect.de. [79.242.62.93]) by smtp.gmail.com with ESMTPSA id z7sm4268228wmi.43.2021.09.23.01.08.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 01:08:31 -0700 (PDT) Subject: Re: [PATCH] kernel: introduce prctl(PR_LOG_UACCESS) To: Steven Rostedt Cc: Peter Collingbourne , Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Thomas Gleixner , Andy Lutomirski , Kees Cook , Andrew Morton , Masahiro Yamada , Sami Tolvanen , YiFei Zhu , Colin Ian King , Mark Rutland , Frederic Weisbecker , Viresh Kumar , Andrey Konovalov , Gabriel Krisman Bertazi , Balbir Singh , Chris Hyser , Daniel Vetter , Chris Wilson , Arnd Bergmann , Dmitry Vyukov , Christian Brauner , "Eric W. Biederman" , Alexey Gladkov , Ran Xiaokai , Xiaofeng Cao , Cyrill Gorcunov , Thomas Cedeno , Marco Elver , Alexander Potapenko , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Evgenii Stepanov References: <20210922061809.736124-1-pcc@google.com> <29f1822d-e4cd-eedb-bea8-619db1d56335@redhat.com> <20210922152250.4e7c869a@gandalf.local.home> From: David Hildenbrand Organization: Red Hat Message-ID: <4d70ee3c-ab2a-a0e3-0214-8cc65caf2acd@redhat.com> Date: Thu, 23 Sep 2021 10:08:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210922152250.4e7c869a@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.09.21 21:22, Steven Rostedt wrote: > On Wed, 22 Sep 2021 19:46:47 +0200 > David Hildenbrand wrote: > >>> All signals except SIGKILL and SIGSTOP are masked for the interval >>> between the prctl() and the next syscall in order to prevent handlers >>> for intervening asynchronous signals from issuing syscalls that may >>> cause uaccesses from the wrong syscall to be logged. >> >> Stupid question: can this be exploited from user space to effectively >> disable SIGKILL for a long time ... and do we care? > > I first misread it too, but then caught my mistake reading it a second > time. It says "except SIGKILL". So no, it does not disable SIGKILL. Thanks for pointing out the obvious Steve :) -- Thanks, David / dhildenb