Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp462170pxb; Tue, 14 Sep 2021 01:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBfEPHfoRlrySabOY/owhK0Q4X0kZFJ4mnf/Q0/C4txkvXPevKNnbr1o/rVuQKhDQqR7v9 X-Received: by 2002:a05:6402:1c95:: with SMTP id cy21mr17948775edb.397.1631607353827; Tue, 14 Sep 2021 01:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631607353; cv=none; d=google.com; s=arc-20160816; b=0tnC7WnXJ6KXxWPq/RTw5wgholDlExnAghPV75VNZCexkWz1To4FZvY4Zs4B5hm2qM Kc3b9edssPzPDdwsVHMBnYmhf5NDHlfJbjf7KE8KehKCSS0yfpWEidoHX/5SpqIPvbq6 g/Y3zUmDVdw3pmMt4O7YovYdFqRnQIIcP8F/llVDhSURyhsFJnQu+TEXmc+SEakxdXM5 1jiULyVVt8qAMe3zNTz/W/Wip4DQIEpSlGcrXQC/0oBzsYk0ZpZdWwqlwdzAe3ylNpdm fbtcP3J/mgB6zMMwtCNzbYoQ/PIFBTUNYf/bwTMJFE5RT7KRAEAYPzG+zF+1ad3KjHpk uSOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=SmzuHeMUYCv9pgRRK37sD9qeOCKTVWZPlxgl88tPR5Q=; b=Q5emPzMIoZZbkoFRVI7l1oFvcyl+WNIwbSzVF4kez54bCGLmhCY7lC6Z/4y0FnWqL7 vKDrOKT89wNF19uC3r+N+iuvzI2pJk60A/vZN9grAlKAP91xLcElhu0GVLOGOWeGtf9W kWCQkHg3c0yCqWstbMYh4kjheg/SQaUxXh/X6tvepJDk9CZtO0TGXanD+BWPMyeMBJi2 xsLkvXw72FIjFTIxEtjaJnqg9cc/nwDBx7bprOAaSEU5ljvcCDJbP58yyk4ctoXdw1za kIiVo5bJ1B2hFNeuJF4TxAygkaF7T/JF991FDF2xY5gd/nSbNyhV2fI7O73Uxt6lQaxA /SqA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk36si9996454ejc.207.2021.09.14.01.15.30; Tue, 14 Sep 2021 01:15:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbhINIPc (ORCPT + 99 others); Tue, 14 Sep 2021 04:15:32 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:46132 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhINIPb (ORCPT ); Tue, 14 Sep 2021 04:15:31 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-228-4zbg9E4KPh6_KsOvdYrc_g-1; Tue, 14 Sep 2021 09:14:12 +0100 X-MC-Unique: 4zbg9E4KPh6_KsOvdYrc_g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 14 Sep 2021 09:14:11 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.023; Tue, 14 Sep 2021 09:14:11 +0100 From: David Laight To: "'libaokun (A)'" , Nick Desaulniers , Linus Torvalds CC: Arnd Bergmann , Sedat Dilek , Greg Kroah-Hartman , Naresh Kamboju , Nathan Chancellor , open list , linux-stable , Hulk Robot , Josef Bacik , Jens Axboe , Sasha Levin , clang-built-linux , "lkft-triage@lists.linaro.org" , "llvm@lists.linux.dev" , Kees Cook Subject: RE: [PATCH 5.14 018/334] nbd: add the check to prevent overflow in __nbd_ioctl() Thread-Topic: [PATCH 5.14 018/334] nbd: add the check to prevent overflow in __nbd_ioctl() Thread-Index: AQHXqQ4eXbMSnUIpgkqOMblgrD/eTKujLcBA Date: Tue, 14 Sep 2021 08:14:10 +0000 Message-ID: <27e1c6de36354620aaf8ed5a5fa944de@AcuMS.aculab.com> References: <20210913131113.390368911@linuxfoundation.org> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Li4uDQo+ICDCoMKgwqDCoMKgwqDCoCBjYXNlIE5CRF9TRVRfU0laRToNCj4gIMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoCByZXR1cm4gbmJkX3NldF9zaXplKG5iZCwgYXJnLCBjb25maWct PmJsa3NpemUpOw0KPiAgwqDCoMKgwqDCoMKgwqAgY2FzZSBOQkRfU0VUX1NJWkV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