Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1573020rwn; Thu, 8 Sep 2022 23:59:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR77RlL1lCmcz5+v1t+8qJfEVyXqqf7KRt3BdTax80yLU3xC90rMHGhtA1E6cTZkDRJhOHiL X-Received: by 2002:a05:651c:54b:b0:268:a2ad:b8e3 with SMTP id q11-20020a05651c054b00b00268a2adb8e3mr3491171ljp.281.1662706786952; Thu, 08 Sep 2022 23:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662706786; cv=none; d=google.com; s=arc-20160816; b=jK5yG9867rSRWXOqRSn2XeWWfxfcG5ssThp/v+zOkNJh64S8K6KO63j9uLztPpIhFo 0Dd1EphM6KrHcXT/x2i2ftXOu7gvdVwb4HGQag8BaOiwqflpt3BfkMlq51mek4pe+ECa EKP/FHjAnZ2e+BnJ5E9Ph0uSNt8DrC5SoCqSq7gefkCmMvzf+Y/4/mOTV/zrsmaiIrqE J7EuZnlpvHMvuDIQ/Wem55zDm9/Qsyw1zNd17j+KQO1sNtLSQgQen+fEUiQPRw10B1uq Q7VYoKg3bZaHKSmgaiGNixrOyUiPz07RmzUvp7F3JMbmg3EZZWV4PS7E/jzFu0ceG4SY Aqiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+KPVhZmPHg6Q9gXNMhmlljFM1cD1QQyMu8GAplFBY1U=; b=SzuCJFvGgKlPymrvSUMt02rFjBlbcFQLs1jsfr8UCcZ5N3zpdXm3dfShoKI95XDHNx o9+963/bAiqSlqvhN5xo5z2KGQqIzSpcdjOS02Q4QOWwLrqQuhsUh1ETg5mE8XOwIlRm FdCkQdOntgYWoScc656S+1P0eHcr7N0zIoPN5ngcbdono5qyeT1bK9hyIXs5XbzUo6bc 8QeAZZu/eXoQ4sVEpZdR0fyZOfzgDBAGr5lCyKtd4f4LDfhvUz1ghkJtN+U6OUxpYd+C GnhId1DkY960y//fdVL+yLd7JR0KwHHCCJS/YRqfXTJM8nehYimOoqTMqouvXJVXlh6h 4Oyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HwlFn8Vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r26-20020a2eb61a000000b00261d001eaeasi462675ljn.478.2022.09.08.23.59.18; Thu, 08 Sep 2022 23:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HwlFn8Vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbiIIGGv (ORCPT + 99 others); Fri, 9 Sep 2022 02:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbiIIGGt (ORCPT ); Fri, 9 Sep 2022 02:06:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22152F7774 for ; Thu, 8 Sep 2022 23:06:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BE85BB822BD for ; Fri, 9 Sep 2022 06:06:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13DCCC433D6; Fri, 9 Sep 2022 06:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662703605; bh=7zGDU3BdHmCGK+cAAZcKUbBNWba3iuCoLKqtyl2YkKs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HwlFn8Vc8k1c3GicNVCJM6ZPQ4AEPqwnGqALd3wmuCXlNKSX/UtK3udbFz0MP0FU8 nlq1VsEHpyM1DW68cppLDGeDxBsuH1s/a9L0xibzksW1W/Pyan4h0Tbck1HAnPvB2L CATfE0rcSPnvgY1dMU5AyhjuV1+SU+xHspm7nlXg= Date: Fri, 9 Sep 2022 08:06:42 +0200 From: Greg KH To: Nam Cao Cc: forest@alittletooquiet.net, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH] staging: vt6655: fix potential memory conruption bug Message-ID: References: <20220909053038.33188-1-namcaov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Fri, Sep 09, 2022 at 08:01:29AM +0200, Nam Cao wrote: > Hi Greg, > > Just out of curiosity, how can we be sure that sizeof(unsigned int) > is never 8 bytes? The C standard doesn't say anything about this, as > far as I know. Do you know of a Linux architecture that this is true? Linux has a few more requirements than C does (i.e. an unsigned long has to hold a pointer) so don't go by the C requirements please. thanks, greg k-h