Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15342488ybl; Tue, 31 Dec 2019 06:07:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzTwSvMWdty0W6/fBOFTA2WAJXAnOAptAPuuRf9mCX4J9iw1XNfMyD+lcuk+Qvclwc6kQ68 X-Received: by 2002:a9d:6516:: with SMTP id i22mr62551930otl.94.1577801237465; Tue, 31 Dec 2019 06:07:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577801237; cv=none; d=google.com; s=arc-20160816; b=ArY9AbO4K8YirO+jhpmMNCaANZRGuEJ52F7nYuT6omowdGb4o1NfAqFzr/bkUX25Yj MzbG4sJvdswKVR2faIq225ygA9QpgOY2hZqJWfiGuCUwU04XU8vO8HPxeQEAylshJYPg ED/vvy7LF3xlPfDI/39xvNHnamX6HdrGFfKwC7GENjx7a0YNSuGsgPkEP4LsXxbc0dkU 0sabZGxhJ8H/RUx8iYYWMs2jiRJSex7kX7NusrY+emal3/fx/86YCOKEcbFkNbXckvbW YosZ878kYH3nj6uPDq2kN4GgvJNNTDFGNQkD6O5IlUqMybqgguOYfwBo18pmrRqyUv+X H2eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=02VEu2CGfyXw3zjj7MQOTg1ljNwRSTHnyWDj6wvfLQc=; b=XOHxQ3U/7wNF2GX0xO6uU6F68/ef80lpZwyFqwku0IUfKU1aud6dkxsRM0VLnUpSO3 ADoPrS6yuXIjVlKpspCTFdIVWySbK+n7CDqHA7aLYqgng8cWJcUOdT7qQ4gO8SYWiQ2O 9Dvh/XYq/PDgVIPcV/rUHLDaXhAGzvaltHc2Y7D8/CZo4WTr5SN4WYzcanymLE3K5lJD EgvidmnEEQzH3y+Dp8JluHcnhrcwbLf0dqVm2vEyDcwhE2U8QR6xupM4UtorBQoTitbi +OFuB5ekYHp4lbKesniuZE38IOZhv0ndHPLLY4cc56XTRMoTSA0ZmtnSD/RFC5QZsbxw V8SA== 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 h13si18382513otk.291.2019.12.31.06.06.52; Tue, 31 Dec 2019 06:07:17 -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 S1727054AbfLaOFB (ORCPT + 99 others); Tue, 31 Dec 2019 09:05:01 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:50430 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfLaOFB (ORCPT ); Tue, 31 Dec 2019 09:05:01 -0500 Received: from [172.58.107.126] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1imI8n-0007rW-Nb; Tue, 31 Dec 2019 14:04:58 +0000 Date: Tue, 31 Dec 2019 15:04:52 +0100 From: Christian Brauner To: Kees Cook Cc: Sargun Dhillon , LKML , Aleksa Sarai , Tycho Andersen Subject: Re: [PATCH] selftests/seccomp: Test kernel catches garbage on SECCOMP_IOCTL_NOTIF_RECV Message-ID: <20191231140451.rcz7lsv7f2npuzuj@wittgenstein> References: <20191230203811.4996-1-sargun@sargun.me> <201912301402.DAA6ED9A0@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201912301402.DAA6ED9A0@keescook> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 02:02:45PM -0800, Kees Cook wrote: > On Mon, Dec 30, 2019 at 12:38:11PM -0800, Sargun Dhillon wrote: > > This adds to the user_notification_basic to set a field of seccomp_notif > > to an invalid value to ensure that the kernel returns EINVAL if any of the > > seccomp_notif fields are set to invalid values. > > > > Signed-off-by: Sargun Dhillon > > Suggested-by: Christian Brauner > > Cc: Kees Cook > > Thanks! Applied. :) Thanks everyone and guten Rutsch ( https://en.wiktionary.org/wiki/guten_Rutsch ) :) Christian