Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1548371rwn; Thu, 8 Sep 2022 23:22:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5WO1wu2OkKFqdaPcIsC0Pm0fx179OQ+aCao61X+pbqVmFKl1vHhL0Lluv988Tply3Zj04Y X-Received: by 2002:a17:90a:7e08:b0:200:7cd8:32f6 with SMTP id i8-20020a17090a7e0800b002007cd832f6mr7897953pjl.96.1662704569558; Thu, 08 Sep 2022 23:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662704569; cv=none; d=google.com; s=arc-20160816; b=xQVkSiE1o9yqrgWfTgUlsCdaJWjvgf+GkvEjOy7LH4VatqNoDvx3nUrxIoXUS2PsyN uEy4GWlZmnqzmHdJUAK8YsL0CgJOfCruy8T/i8Ge3rIxRN5D9fLr9kDLfDXlUnSHk7K0 5seatt9xTfeLotbJ/2VAXUYZbLH90AfRfc/Y+6YtXS4J5r4lltVlce8nfmuWRoK+3e9E DBGe9YeO6vv26Lno7b0xvmdgz5MUoTusTcSHLhYXWH+jzS7uW1zBpIQHuh5XRvlKwknR x2UEwZAHM8pFIr58ojtdCHDONT0cfoFut+PvYQSm9gcLjKL4q22C+nwzDy6ImI/0f23a USmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zZ8jJlzfW5ni1oE/+tdYMxOdGoMqiiHVTECd9TNmHoE=; b=oD0VgA+2uBMXTPmYHuxQElkHd8wZJfvLFjbsJ/0qu320Uuc5BU7S6D4DtR1AoIpQsC p9NoQiIMOlOhniF3OxeeyYLKCDlKhos4qrTCPB7mesh70TsKAz2Y8iPTmrI0AFKJy+Pp 5k/S9s4enwmolyVgsmk5h7V6Wbli2CgmHniU1tcLI4atrKBU2daxg3P1XeZe+CJjeJqz mgBQ4ftm0TWEMuOzY91RyPGixHHPNiNObgk7c1fdR/4wzAHZY/zix23iL9WljMWstclf 4H+uJR/95d9AIQd5vpMhYK6NgEWEBVLWet8xWtAZ9T7PosR42LFNUfaWlpxu8Fztkrxz uLrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FOoy81KG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb23-20020a17090b009700b00200a805fbc3si1138040pjb.118.2022.09.08.23.22.37; Thu, 08 Sep 2022 23:22:49 -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=@gmail.com header.s=20210112 header.b=FOoy81KG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiIIGBn (ORCPT + 99 others); Fri, 9 Sep 2022 02:01:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbiIIGBl (ORCPT ); Fri, 9 Sep 2022 02:01:41 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB31EE1A89 for ; Thu, 8 Sep 2022 23:01:40 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id k80so1155159ybk.10 for ; Thu, 08 Sep 2022 23:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=zZ8jJlzfW5ni1oE/+tdYMxOdGoMqiiHVTECd9TNmHoE=; b=FOoy81KGKOz9ngRAqabXhtCs/NZfHJnkIqC2EVX5WUCbNA6e/m5MM/bl4dDmnjTovB Qh4GUC66j8uEF8PnbaaXW15BRIm/CJtYMfTsHdfOIwSUUOc4YnTbbPVnPWDWIFO6IUZB fYCHEpv2rjAe1OFmKkUytJ6lMIbOUyl893yy48m/bDwHC5PVdVQny2wwABqJjE4qamQw xLTMDG+bLO+ZBTNihZ3EFV7nkwsZ0Qne1pZNx9necuBEwZqWA7hRyOzoD6xGJlmg9YM5 /ybdG2yTfXSGvYB+s7WyguKWrlozrtnWlx0aKVmZCnUjdkJVbBwoKDXwxmIyUPylIAdT vw4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=zZ8jJlzfW5ni1oE/+tdYMxOdGoMqiiHVTECd9TNmHoE=; b=cUaFMxFd7R6OwBKJuf6x3UlajHbvh1reKHxBT9ZxSLmFx16iaj8LFxYJfriMTcPemO V/gb52CwTxo5NF/0CQQt2fDThWNievswAdv1mxGwPmoG8XUIJNGYBd6cCQaqzVV/PEcY Bm5cwMPdbwO9cGFVG55Qjxf3M6bsv+4GESJzNQOt5xy2TLUUX6tog6M03GU9FpinRG69 O4sTus25ta7VlICyZB3ufrnkv1jR9xmjg/2IpMvHieMQtgu41XQVPSBGqcIoY6GoRHx8 IFDJSSxHPfDVy4w2zOcY0pJO+uBueuN3qBS5OaYOrtSdO4mTho29lVG+eovxlzCIm4rL 2boA== X-Gm-Message-State: ACgBeo304ZNoei0WiJhuVpr6kUvzUpR1nMQhbzOIboM4qsMeXjjiyYdp wW42QJHBxoPnprDG2pknladVMdgwlu6wvRTW00A= X-Received: by 2002:a25:9a85:0:b0:69b:79d2:7f4e with SMTP id s5-20020a259a85000000b0069b79d27f4emr10449738ybo.379.1662703300042; Thu, 08 Sep 2022 23:01:40 -0700 (PDT) MIME-Version: 1.0 References: <20220909053038.33188-1-namcaov@gmail.com> In-Reply-To: From: Nam Cao Date: Fri, 9 Sep 2022 08:01:29 +0200 Message-ID: Subject: Re: [PATCH] staging: vt6655: fix potential memory conruption bug To: Greg KH Cc: forest@alittletooquiet.net, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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. Patch v2 will come later today or tomorrow. Best regards, Nam On Fri, Sep 9, 2022 at 7:47 AM Greg KH wrote: > > sizeof(unsigned int) is not going to be 8 bytes, so there's no memory > issue here. But your fix is good, so can you please just rewrite this > to be "make it more obvious what is happening" type of patch? > > thanks, > > greg k-h