Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13272498ybl; Sun, 29 Dec 2019 08:12:54 -0800 (PST) X-Google-Smtp-Source: APXvYqw8Rcza0/8uL9muPXVdn+BApOYDmkuNkYM1+ygocAUnhnN02Tfnzp9n6ZRtfh5V4outARWm X-Received: by 2002:a05:6830:1bf8:: with SMTP id k24mr53909263otb.215.1577635974749; Sun, 29 Dec 2019 08:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577635974; cv=none; d=google.com; s=arc-20160816; b=OYcYpQw1XPGmW6x1pDSMRAZcZIPlFt01nwPgtTVJZygpc3M/0jQbKsG8WGDzK/tpP4 ItNSTRQ/kwOyg9VqafncyNViwzusO/NM8KLLq/V7wIeZf7b0XMTH6UcBXoeVkCC1umwE v5RfBUEaqLE3BiAABCkDRFDIJtcJ8R0APy2afR6V/ozIwN3LrrqlZA2eVqnkLYGphhM3 EChrU7pIat0+zcM+See37oVRAtnwKdlrBBX9lERX3S3E6808/hvXPp8aIzOtb+pd2qeT SAZM/Sy8MSyf/9jTskPmIcWP59B//VNwl6OVN7271607Ha+oYwrjgPwehu8VyBrSqLpi U/NA== 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=K3/S7A9MrRTZ1xJZGyH91GBKlCWwcZskyXMsSPxk3A4=; b=EKrzo6Qbw82BzMRIf0b5srWj60xGcTpVCfI68R4TfKStI68blr7CpUxj0XRQEgUumu xZpUNZuA6kC1wWI87OHCkHagsd0LI5uEtEhHSPAtGO7XxjtKn+WAIlXZ6HP9BZkZ8cDQ TVGi3YbmHM1u0lxkeBP/JGe+bmP4Dkijh6jsjSH9EC7FauYeyAHYXQl1a5Yi6Rt89JE5 zn2vjtXHovVMXkzrMBlmW4zqDf1OpqgcCBQOqJBfk16I3VOMPiOWzhxWz9zcXBbVDqUO IYdjk0EXUacZU/zUBsbhMiZMChT2IOm5EuSOI2qoTzGhlwJy4gQp/MFf46Kp/+0CBahO 84ww== 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 3si18469230otz.198.2019.12.29.08.12.42; Sun, 29 Dec 2019 08:12:54 -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 S1726741AbfL2QMF (ORCPT + 99 others); Sun, 29 Dec 2019 11:12:05 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35742 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfL2QMF (ORCPT ); Sun, 29 Dec 2019 11:12:05 -0500 Received: from [172.58.107.62] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ilbAG-00017e-6Q; Sun, 29 Dec 2019 16:11:37 +0000 Date: Sun, 29 Dec 2019 17:11:28 +0100 From: Christian Brauner To: Sargun Dhillon Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Jann Horn , Kees Cook , Aleksa Sarai , Tycho Andersen Subject: Re: [PATCH v3 1/3] samples, selftests/seccomp: Zero out seccomp_notif Message-ID: <20191229161126.xcrnzdqu5frrov6q@wittgenstein> References: <20191229062451.9467-1-sargun@sargun.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191229062451.9467-1-sargun@sargun.me> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 28, 2019 at 10:24:49PM -0800, Sargun Dhillon wrote: > The seccomp_notif structure should be zeroed out prior to calling the > SECCOMP_IOCTL_NOTIF_RECV ioctl. Previously, the kernel did not check > whether these structures were zeroed out or not, so these worked. > > This patch zeroes out the seccomp_notif data structure prior to calling > the ioctl. > > Signed-off-by: Sargun Dhillon > Reviewed-by: Tycho Andersen > Cc: Kees Cook > Cc: Christian Brauner Thanks! Reviewed-by: Christian Brauner