Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22565202rwd; Fri, 30 Jun 2023 09:31:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7u1vTRbgxPFILTVXi8f6YJGEXkA5wUfTD1IpMbm7+bBtTS9NM5fkR36DwK8MQdD81QVKq6 X-Received: by 2002:a9d:754b:0:b0:6b8:9eee:8592 with SMTP id b11-20020a9d754b000000b006b89eee8592mr2578758otl.38.1688142703159; Fri, 30 Jun 2023 09:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688142703; cv=none; d=google.com; s=arc-20160816; b=RKLRZDSqJmynXSWG5T0izsFguEPbs31uRPbTShiQDTh3to5tTiSDXe8YkM5NoYlW8Y NANkXfw4as5NOJLWpufgetZZbFAFYxElC1QIBK0NNGDbhjILEQx0cDJBv5AP1zzF+YTu e+UzCwU8ekVcZEUG4HbqmT1G7IG+OX1e491/QRh1iiIqrz9DjW0Uix9n12e/FMz+00CD ptFpHr+kMTaity/E9DY0VJny+K7jUylt4IOVLEzLlqSu5qufLjkpI9eOZbF2Vme/Il8b 7AyXXyqBqtjMsmzSyYayYUOlFsTGjIs/aFBARRF6TmO7MkoCnWHhnwiI0oRZ7+WyRtKo u+Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=mv9+96IjNnE9RA4/nysPSS6WWMtg0mIxBYV6wh4+uBU=; fh=95yWxVmT0t/KJhTJyiHZDEOlo6BK4D8GUGztALlvte0=; b=hdMMr2hyzsCPJTkaZgAncdcwnKTwPkg9AyAUf+P3t/OIpLsqcgTt+IgKsQKG6tX32N cj+WNLz9b1LFXqTfRYAvB9aCj2zhP/51vCh3v4Zy24Es3+Ayf7s+8L6uGqsYAY6T0kdg ggYYj3GN6jaiWZgKUYRHoaacYX4wn+NWAe5j/nlO70z277j7sgoFYkeHFDzFsu17SylB 2yEt02DMzqGQj/97EanTaquH6L8uvN5wHV74ofzVO9EIKXCqaJqliV6O+BrreNLSeUog L+moiwF9v7eJAwNsTdryRa+y1A3u8HZ2yCMtEtfrg0bRs1CZyBlEFkO0DferiUwFdRrn Ojwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=bcrFWFZc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t28-20020a63535c000000b0054fd9e9b862si12532274pgl.232.2023.06.30.09.31.18; Fri, 30 Jun 2023 09:31:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@yandex.ru header.s=mail header.b=bcrFWFZc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbjF3QXH (ORCPT + 99 others); Fri, 30 Jun 2023 12:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjF3QXG (ORCPT ); Fri, 30 Jun 2023 12:23:06 -0400 X-Greylist: delayed 21256 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 30 Jun 2023 09:23:04 PDT Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7833E5E; Fri, 30 Jun 2023 09:23:04 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:2087:0:640:7bf5:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id F1E235ED70; Fri, 30 Jun 2023 19:22:59 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id vMROMcFDV0U0-m4ZS9JB6; Fri, 30 Jun 2023 19:22:58 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1688142179; bh=mv9+96IjNnE9RA4/nysPSS6WWMtg0mIxBYV6wh4+uBU=; h=Subject:From:In-Reply-To:Cc:Date:References:To:Message-ID; b=bcrFWFZcRIRwHkYq3HuC7SsbemHKohQtnvdSx9krkcuGcRXYbOMmd6balkfw0P/y8 /yz47zIBoxr4V729z9P4mU6tLl/6lVjDGp9vEQcs8/yVAB3S/y8q1w0UVXzQl3jbrg XD9Oyuoj1sbdXtu16LbHPClUPUBennvFjpdNMs+k= Authentication-Results: mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <0ce62702-9a2f-4916-d0eb-4de3896e137b@yandex.ru> Date: Fri, 30 Jun 2023 19:22:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: Dan Carpenter Cc: Trond Myklebust References: <2390fdc8-13fa-4456-ab67-44f0744db412@moroto.mountain> From: Dmitry Antipov Subject: Re: [PATCH] SUNRPC: clean up integer overflow check In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-nfs@vger.kernel.org T24gNi8zMC8yMyAxNToxMywgRGFuIENhcnBlbnRlciB3cm90ZToNCg0KPiBTbyBoZXJlIHdl IGhhdmU6DQo+IA0KPiAJaWYgKHUzMl92YWwgPiBTT01FVEhJTkcpIHsNCj4gDQo+IFRoZSBj b25kaXRpb24gaXMgaW1wb3NzaWJsZSB3aGVuIHRoZSBjb2RlIGlzIGNvbXBpbGVkIG9uIGEg NjQtYml0DQo+IHN5c3RlbQ0KDQpUaGlzIGlzIGV4YWN0bHkgd2hhdCB0aGUgY29tcGlsZXJz IHdhcm5zIGFib3V0Og0KDQokIGNhdCB0ZXN0LmMNCiNpbmNsdWRlIDxzdGRpbnQuaD4NCg0K aW50IGYgKGludCAqcCwgdW5zaWduZWQgbikNCnsNCiAgIHJldHVybiBuID4gU0laRV9NQVgg LyBzaXplb2YgKCpwKTsNCn0NCiQgZ2NjIC1XZXh0cmEgLWMgdGVzdC5jDQp0ZXN0LmM6IElu IGZ1bmN0aW9uIOKAmGbigJk6DQp0ZXN0LmM6NToxMjogd2FybmluZzogY29tcGFyaXNvbiBp cyBhbHdheXMgZmFsc2UgZHVlIHRvIGxpbWl0ZWQgcmFuZ2Ugb2YgZGF0YSB0eXBlIFstV3R5 cGUtbGltaXRzXQ0KICAgICA1IHwgICByZXR1cm4gbiA+IFNJWkVfTUFYIC8gc2l6ZW9mICgq cCk7DQogICAgICAgfCAgICAgICAgICAgIF4NCiQgZ2NjIC1tMzIgLVdleHRyYSAtYyB0ZXN0 LmMNCiQgY2xhbmcgLVdleHRyYSAtYyB0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