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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 2104BC433F5 for ; Thu, 23 Sep 2021 08:10:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E432B61216 for ; Thu, 23 Sep 2021 08:10:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E432B61216 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ptSjDCJWFNi0wjRSJRYxMTua3RgRayG0GPWMTarN2cw=; b=WnmtJcVAcPUKGee+YspyD/ZnbE qC5wHwKlSpeLJEYrVzQE4mV1dkB8i7hDk7vc+OxqRcxRW0RJGDYEoLdU4zSZ1vtU8AXXCRUyPtijb cIIAY3MUIFf2rOECmj2McaS4mGrDRFJ48GiaSfO7+N4+xI8s9S7Xv4j6hx/LuCoc+lYwwoXf9DEVN ocaWCASSATJMpHP7VgF8WxY+YyV62Uaz7uEfLkUvhWGbA7oGkRtyFQSTvxBC1UdO8mhCoPVPVjW6O ja2fCDgpBAYWoRvR590GWS4NFhMhrdUhBzjsncU/0W2EyXwyF71zGyAp9X5osUD6biAg12aCkHP6J asiIDssg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTJma-00Aar0-5R; Thu, 23 Sep 2021 08:08:40 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTJmW-00Aapt-7X for linux-arm-kernel@lists.infradead.org; Thu, 23 Sep 2021 08:08:37 +0000 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-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-528-LtwAFKAkMfCYiLm3iLVr4g-1; Thu, 23 Sep 2021 04:08:33 -0400 X-MC-Unique: LtwAFKAkMfCYiLm3iLVr4g-1 Received: by mail-wr1-f70.google.com with SMTP id r7-20020a5d6947000000b0015e0f68a63bso4416744wrw.22 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=Xx/fSYyBvojVHA+nQ4meeZY13D2NtjutNEPVNR99BJmITLm8u4vMKBS8/ysa6jSQkT Tj6dHujcXaPSvlw887dFDTdSvkNZHtOBJSs2IRX0zC4Ai6YROSbn874uD/6udxaj4BWT rJzNjztMTOebl2Aqu59rvleDqT9CWr0KrrEiMh8u6rVFSMFssOdDD9N0CnjNG/aTPP84 PCGm3fpkdFrI4bF8Tx674gV4p7k0/Pa98oS0p/Zj8USel7TcErxlavq6kXZkMljw8rky JnIcR+7E+wxYtGoj1DjPZ5nHGm4i2phMs7Agtlo7J95Xf/JXgTuKorz8hZB1IVEaFWTr mdfg== X-Gm-Message-State: AOAM531lVjOKJmBst7KnF4mNVsHGwjRNhlSJuuJ/GCrROe0lbTkml0Cv JhTKw26N3JfGRJpZqdcOvR1TOj5F25TnRy08lCf6UUfQ1oBGOwGSyN/lF1WNmWUXUiTBArW+/3W n/ivSwTt/HE7g343tU5erPYqbZIdLfAqm4RU= X-Received: by 2002:adf:fd92:: with SMTP id d18mr3560906wrr.28.1632384512290; Thu, 23 Sep 2021 01:08:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDcD949afA9g54It1Y2+1Z80Jqmwxd9DR7zrgWPacMFIChPfheI9UU8zU/0m9dqiL/OS1hkg== 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> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210923_010836_405519_E17A24D0 X-CRM114-Status: GOOD ( 17.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel