Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp499734ybg; Sun, 26 Jul 2020 11:15:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvj6co3tTSFwDoH2IeAy9g3gx1v18BBmB+uvQCR4s7yARqnnw5mVIHCqP0t5lMKR8yK7rh X-Received: by 2002:a50:ee07:: with SMTP id g7mr18648609eds.320.1595787326884; Sun, 26 Jul 2020 11:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595787326; cv=none; d=google.com; s=arc-20160816; b=kl2rr3AosX2krd3ckTvNdbMGQvEqmD7DWzu4h16zmvK+wFsDdSVvhoUGV6RVdQagZS emu2oUmAK4RyvfTraT+qULmqH7TKvJwkdWrdp6FS66m3JSUrmXqphoRixZKUa8dBadka rRMFYbRznsWDc1lMaGHPP7Z9Djuh/kGqik4wPGvXD6/NDLEtwzXDxBQ/79oTU6Y5Vayj n/bUAUR0fL9A08BwhC+DmbDuiqI7Wvb3A4x5DAjOg/NKz7p7y+GVPeh0xI1H8I15AHRV ZM6nQKTPX9FR0gQuBgAwLHSVCWKlKNC12U/L0qzfLdA6d8hUWT3WyCRe+x4S+9rD5s6V vZeQ== 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=sWvoytYgdWuVZpnsHNqepIQUSxkaD87xtrtLEKkqxWY=; b=nYlr8CJm8uWoflQvKHSN5nF1/xtnWSAn+XjJTEk6rV6cedyasYsBxEbQRSaeFs3Flp 7IkgLwF/gG4nEvhEfITBPXQCLnBTzP/tQvnyPByuO2xwqciltHRSgeLvbI8i000JkMf1 5foZ776RXSeNJSmGopSs+AOLrsn/ixKnOkp2rdqovPxvf+gyh2KoUEoEwvn5m411aOM9 pAw0uAfpfcebm9COfB2OvR60gYRhYhHDqI9pFsZ8QUbI73IZyxKGxf1rxyVAmOUzvsga 3v8WShQ7eo9kwWYjNbBjtxjgUcvxx3JyqLv1LFBAUL7mbtHSLQQ5jxwhTHAEn66AKh3M 49ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MVyeUEfb; 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 x27si4348327edi.182.2020.07.26.11.15.04; Sun, 26 Jul 2020 11:15:26 -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=MVyeUEfb; 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 S1726717AbgGZSMZ (ORCPT + 99 others); Sun, 26 Jul 2020 14:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgGZSMZ (ORCPT ); Sun, 26 Jul 2020 14:12:25 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600FBC0619D2; Sun, 26 Jul 2020 11:12:25 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id 6so10647751qtt.0; Sun, 26 Jul 2020 11:12:25 -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=sWvoytYgdWuVZpnsHNqepIQUSxkaD87xtrtLEKkqxWY=; b=MVyeUEfbyS3VZjAkUDRUL1xOAzcfaQcd8KU7aoJ4z62BDQBGfr8iG0+ajJoqOZqJIK YQRZOu53+llVUz4LPxfdqQUWLZ4umPzuU+Djvnfx4znXYIT5DI2j1IKfxzS/3z8AcSMV g/kTOEIb7fqZm0t6iOpgttv1EM7rot3vi9eH2Y+dZcLgljzLwP++VjViuQ5QslcR0EnW sdKyWU9FBJW8VyZZPjrOnb1cjzh6zu6GCN6fhCaFCxpVFK/x3DXLYTGGdQLcb3d7/kGA B5EUJmrLgMbxDNeJJ1J5FqDy/nchpFM56Z7LLHFhRmJQuS7oBhaOW83FWcB4PvteEm5/ fdqg== 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=sWvoytYgdWuVZpnsHNqepIQUSxkaD87xtrtLEKkqxWY=; b=YfI8RN0/upf6yFN+KqEBIUGvhZZVNqnom9VpbR2YTnuoF9q/KlOkx4QCfhPN5Pz9D1 /SkRHs6xbgNMGjM7G4YUIF4huPHdFXWxQGP/sBgjMgO61c4EyNOOP3mR516H8Ps5KuOJ zFr2J0cneYtuIJyvxTSRMfsjy3RtBTN8c3lu9hCMAYSQFjbYmvPPfVksclXN1/bHHd+B FxN+uak4ouPndnj4aLcbwIBtB+o47gGw+MidOubvJX4Rdl9oukaA0GravsrmuAuySFu3 a1p8CgPzlnLInAhGo5jG4POx9Cs/ACzNzteMqDms4XSDFAhoPyFj2j0M1Q7Jmfv2L287 b3CA== X-Gm-Message-State: AOAM531MMIgTfEAKshn5xvnytmTWt/1cnNRgSOCu0IDQFUPAeRjf2q7f 9WDH4G+b7rYNF0d8Vmhgjg== X-Received: by 2002:ac8:6793:: with SMTP id b19mr9261706qtp.333.1595787144680; Sun, 26 Jul 2020 11:12:24 -0700 (PDT) Received: from PWN (c-76-119-149-155.hsd1.ma.comcast.net. [76.119.149.155]) by smtp.gmail.com with ESMTPSA id j15sm1885535qkl.63.2020.07.26.11.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 11:12:24 -0700 (PDT) Date: Sun, 26 Jul 2020 14:12:22 -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] media/v4l2-core: Fix kernel-infoleak in video_put_user() Message-ID: <20200726181222.GB49356@PWN> References: <20200726164439.48973-1-yepeilin.cs@gmail.com> <20200726173044.GA14755@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200726173044.GA14755@pendragon.ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, by this code example: char *p = (char *)&vb32; int i; for (i = 0; i < sizeof(struct vb32); i++, p++) printk("*(p + i): %d", *(p + i)); actually I meant: char *p = (char *)&vb32; int i; for (i = 0; i < sizeof(struct vb32); i++) printk("*(p + i): %d", *(p + i)); But the idea is the same. Thank you, Peilin Ye