Received: by 10.223.185.116 with SMTP id b49csp5262030wrg; Wed, 7 Mar 2018 08:52:13 -0800 (PST) X-Google-Smtp-Source: AG47ELu5tGYBZrnnxVgFDg71UVgHzoIP6n3VeprjW1/gAyeJ1B6CeI37SlKGiToIqKD3bko2dXUq X-Received: by 10.167.130.193 with SMTP id f1mr22900699pfn.241.1520441533328; Wed, 07 Mar 2018 08:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520441533; cv=none; d=google.com; s=arc-20160816; b=KtAqiSerzSA927Ra3jKDMvrBkQw1u/Q8/DDZaiKu9gZv9MkJGOPdQSoKXkeuAyRhoc GeHcuNNXi30t4JsB1Jw4EZoSTmXqlPvW9e1Aa9IpXv4+YfCJN+WsxcVdDvAmutuMwESb RrgImu1Ew5erL+4XBLR8cXFrQBECOABX5aYCkMi4lG4VATwBKoBtxdnwUGJj4k4GoWPf j7fm8RdtVjmV4/w0ySmdLjSlo5kQ9pVo7zWAVSaHr3r4W+LDVGGcX7CBGzSZj2sDosQv HgXtzWf4WacB3lxjA3howUmHoKZFKNqvBLrB5Dy1g0UZa+n0ahr6C8AoZo8ownKNI9Hs inwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=7tfe6stUncsa6EdK2v24kFqcmzrGlbVZS0N7YMashTU=; b=eIB1Zq2qtO/CI0DB5O+cCwAMXDCPYP+j1y0DlYTaMj4mZN8l37hMowCNxqy3wqkN4v 8Ob1BcxZUqc8bSz14I+vWi68YCAxgwossZYa0z5EwdBE1yA7AjyeIjDPnZ/jIVtdZ27t oa0YlD0ckyWl/TW5lqB+snWd8aLAbuyVp19X9Mi0RbA4ChqQy6y12B9sb78ajuI3Ico4 ibviYk4C3rimUScIUUmBG1Kcru3WXhdYA9KcLM0OTj+j/0Yj3L56XpFslsGwTaGQWBD6 n9hDrBAX/w4CeZgGY0mEc8aDBfYT7JBS6Vc8ss3UwY0g/Bp6pbfSJjZIiBVyLrXgfbdw PG0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si13079991plt.728.2018.03.07.08.51.57; Wed, 07 Mar 2018 08:52:13 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934040AbeCGQtE (ORCPT + 99 others); Wed, 7 Mar 2018 11:49:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:60776 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933386AbeCGQtB (ORCPT ); Wed, 7 Mar 2018 11:49:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2D63AAED8; Wed, 7 Mar 2018 16:49:00 +0000 (UTC) Date: Wed, 7 Mar 2018 17:48:59 +0100 (CET) From: Jiri Kosina To: Andy Lutomirski cc: Oleg Nesterov , Paul Moore , Andrew Morton , Michal Hocko , LKML Subject: Re: [PATCH] audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Mar 2018, Andy Lutomirski wrote: > Wow, this was a long time ago. Oh yeah; but it now resurfaced on our side, as we are of course receiving a lot of requests with respect to making syscall performance great again :) > From memory and a bit of email diving, there are two reasons. > > 1. The probably was partially solved (by Oleg, IIRC) by making auditctl > -a task,never cause newly spawned tasks to not suck. Yes, it's a > very partial solution. After considerable nagging, I got Fedora to > default to -a task,never. Hm, right; that's a bit inconvenient, because it takes each and every vendor having to realize this option, and put it in. Making kernel do the right thing automatically sounds like a better option to me. > 2. This patch, as is, may be a bit problematic. In particular, if one > task changes the audit rules while another task is in the middle of > the syscall, then it's too late to audit that syscall correctly. > This could be seen as a bug or it could be seen as being just fine. I don't think this should be a problem, given the fact that the whole timing/ordering is not predictable anyway due to scheduling. Paul, what do you think? Thanks, -- Jiri Kosina SUSE Labs