Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp606052ybg; Sun, 26 Jul 2020 15:18:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmuq1hVL7HE8sx5djbymETtsU6kMuwQXPY/ZW4AdpBbnZSV2dkYyz1qkqaWAHTRqTgRC16 X-Received: by 2002:aa7:d155:: with SMTP id r21mr16818072edo.87.1595801905347; Sun, 26 Jul 2020 15:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595801905; cv=none; d=google.com; s=arc-20160816; b=q11axBvgUBpqFTbg4baDfIK4zTmBrLPnYMzaOPo+RHRoX65jKOhabZ/aSBpM5Jwq6h mN9eAGGJYhn//u524hwPSkmh98RaAkkLh0htknFSY6eA9Jt8pDEa9UrOQwtFgdIjVnjy QDcGBrmbK4gXPrEvwcKfdMMg6rXX7Vy0LaLr+tEauFSKGuZMKDB1XbHzpXeECv8uQECl dyuM8uvu/sN3nLUE4sV/7KVUjlSaY2fpIQV2EFO0wWpdoMZX9L1CnSxBQq2wDBxt1yUI K6FSjvAH/A8ED8rL67kHZAJOBW6HLeuX/qh2xCia9g9tZW62nvlomYDsXOZS1D1ZtJK1 wjng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6Po5jgD/fTz0bRHehR/lWSrKrlH1nrDPT2JvC+xllTY=; b=QlYqvAUlvLIOLy+Ts1QqBTuyq5AqezAcmwx+vZO8zM34DfsV0U3oLYlidiW+mS8Mr1 yexSMf1X87FauTRBZ1O9p78pobX1moqeAAEoG1yhHFjz0XMbymJRdqEOyklVJ1rfPhlW aYLM/rTG5Z9fR2TCNYGkdFWegwaUlTeKNdeM2gHOlrpMRYR8IWnumsH06LfL9b0yB5cg IC/Pa6nlSAnTJ6zyeK969TcJlaClnxig8XVX8A47bWLFTQA2/n8digl4uYKykWdjCz2V gHg2ierbcpwZ+0BFu0wc2eiJg+mAJHJZdr4K2mQnglPSZ26Gj9jb48sQzDooEpNDGkw8 AsEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lx4HT5NI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si4364186ejg.734.2020.07.26.15.18.02; Sun, 26 Jul 2020 15:18:25 -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=@gmail.com header.s=20161025 header.b=Lx4HT5NI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbgGZWRD (ORCPT + 99 others); Sun, 26 Jul 2020 18:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726253AbgGZWRD (ORCPT ); Sun, 26 Jul 2020 18:17:03 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F8AC0619D2; Sun, 26 Jul 2020 15:17:01 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id 2so9575324qkf.10; Sun, 26 Jul 2020 15:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6Po5jgD/fTz0bRHehR/lWSrKrlH1nrDPT2JvC+xllTY=; b=Lx4HT5NID57037yokxvkZPUjrE/D90unh+sBukejVAmsIq7RoqYVpY0WwIokIWNyMw CQxqKXt8a4bfHf3Sx5qfEvXWUidDR1hAN3RT2jx+5BK4Agb93fzf3HGT9NhxX3zNcIsb e+PGMYXqBMEitk7OqxzkbvwEspBjp9c05jbSuOOt9+XREApVDHwwMt4+TNRDK3b+UyWj qZ/TQRhsB7llNg+QjqyyNGS3fjrf4IY0J+X1f8TAYSV1vuOI9osOMOZIL+v4x0VDaARz akj+B+PvQRRLUURVw5eArC8o7cPVk1CJua7U8tib/CcpGvK5GajxewWWzRv3CY3WlwB0 1fXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6Po5jgD/fTz0bRHehR/lWSrKrlH1nrDPT2JvC+xllTY=; b=cgHwD1UZOW6F0tdg3ckW4qqrDboH3z0uE7VIsqLj6UA9/PTNiU2IcgzbFRbGsmAmDI MeVDip84fDMhSYBs2419dcIR3fOAYDDU04g3Huvx7Xu2qubEqVG3U+MnXE9j7ufmjmBs sueHo8u9Snc3OOAcZ2tp0ttgF+R0x3kw8NLnNkVAJmrhcZ0zHV7XGl2R3aciOdj25iY0 IAZXxJajDMqspkitghuv3XbN+N2nXGlS7ubwlnPeAIeM6W+ve4IW46bVxcKMDRcP5B5E 5/YNBYCtI95ZCRUGzcWrjDIWJgxmpfEoOM2fzXYI1wEgnyeT8gEN/akBPahQfU/X/hE8 ecsQ== X-Gm-Message-State: AOAM530unnVIitFPYTnsMxyb2fCNDJI5R0YfWZdRoOCQaW3V52Ve1pxa sXv8pz8tJkSp/mOVFpK7eg== X-Received: by 2002:a37:4cd4:: with SMTP id z203mr20156401qka.399.1595801821047; Sun, 26 Jul 2020 15:17:01 -0700 (PDT) Received: from PWN ([209.94.141.207]) by smtp.gmail.com with ESMTPSA id i65sm1780394qkf.126.2020.07.26.15.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 15:17:00 -0700 (PDT) Date: Sun, 26 Jul 2020 18:16:58 -0400 From: Peilin Ye To: Laurent Pinchart Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , syzkaller-bugs@googlegroups.com, Hans Verkuil , Sakari Ailus , Arnd Bergmann , Vandana BN , Ezequiel Garcia , Niklas =?iso-8859-1?Q?S=F6derlund?= , linux-kernel-mentees@lists.linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH v2] media/v4l2-core: Fix kernel-infoleak in video_put_user() Message-ID: <20200726221658.GB102357@PWN> References: <20200726164439.48973-1-yepeilin.cs@gmail.com> <20200726220557.102300-1-yepeilin.cs@gmail.com> <20200726221056.GJ28704@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200726221056.GJ28704@pendragon.ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 01:10:56AM +0300, Laurent Pinchart wrote: > Hi Peilin, > > Thank you for the patch. > > On Sun, Jul 26, 2020 at 06:05:57PM -0400, Peilin Ye wrote: > > video_put_user() is copying uninitialized stack memory to userspace. Fix > > it by initializing `ev32` and `vb32` using memset(). > > How about mentioning that this is caused by the compiler not > initializing the holes ? Maybe something along the lines of > > video_put_user() is copying uninitialized stack memory to userspace due > to the compiler not initializing holes in the structures declared on the > stack. Fix it by initializing the structures using memset(). > > Reviewed-by: Laurent Pinchart I see, that makes sense. I will send a v3. Thank you, Peilin Ye