Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2105821iof; Tue, 7 Jun 2022 19:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzur7IN+53YbdEBrcOdcmzqJEvJpkNttqUtbUoLAOqz9s12HCzI/dtSZjX8N73GBVYZRR0Y X-Received: by 2002:a17:90a:fd92:b0:1e2:d731:9ad5 with SMTP id cx18-20020a17090afd9200b001e2d7319ad5mr56403388pjb.199.1654657007522; Tue, 07 Jun 2022 19:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654657007; cv=none; d=google.com; s=arc-20160816; b=m3Kfn046VDqx7oNmBAOan47omyCuz4qkS62eq8cb3GoFV4IYOc92R4tfQ/pFxYNggt 6SQ7XaiVzHnrktkZFrG+18xSvi+tMivAAdG6GSe/BxtW/vKYoHTdwSE7IcbtrLhHcEvw WzwOf44Bgj5RfX2Xh4jPO5Te5MErmBx3+jMnFPb0Nolw1D+wgmcyUCk0GBwH/nG4bcPQ r/bI4vCs1IpZe+ZF1riOvk5Qa4UOpBFQgyHVxEoy1TevByHdCdDCiJQATH+dra5PSpGn LKwtyRcwq/Oh8wDUrxMY5yTG98iMNna9QWfndiwBQ6B/agxbZ1jhgPlhdGsLNm+2g4bK 46LA== 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=+Tl0wetWuVGtyK0A7FsipnD0Tij0lnn9AjFj7MOJ2bM=; b=jZmkynShIvszYBw5td2jIUEKNGlc+4OwXXK/SccOPNEDTCSc3mY3RU+7J3g3ktcB6V ip/SOrwvvoWZD4+TrvPYzp6uhX0k5n1IUrIXXKQ9PphZcucGNuVxCUlLBGlkj7jjK/JR eFDMPXb9vQIG7BRQrA/1uAIumYLX2GWl/Ym8nmHL1gbmDqFFTJpYYWkG2jJUoX59WD1b VJ67p37HgxqHO+4mBF2UUlg2XYoixAFL4E5tL/QWepKDl43Rptkn0bjDtb5qCz9kJnaj bxhlw4a0zZCoxDYDMMtKqSZO4ePhDVXK4rLWAesZwgNyYgTTY87PSMiS7godMw7W+xz9 1JOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TqqOpjWL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t40-20020a056a0013a800b0050cfb4ff72dsi963802pfg.52.2022.06.07.19.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 19:56:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TqqOpjWL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8CF02BE0A9; Tue, 7 Jun 2022 18:46:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344171AbiFGPjv (ORCPT + 99 others); Tue, 7 Jun 2022 11:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245408AbiFGPju (ORCPT ); Tue, 7 Jun 2022 11:39:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E5FC25292 for ; Tue, 7 Jun 2022 08:39:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2871061680 for ; Tue, 7 Jun 2022 15:39:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 068B5C385A5; Tue, 7 Jun 2022 15:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654616388; bh=Ik/OAVT6Fn01MkR8E4IFocJ0hSGK3ciFnvFhNt91FW8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TqqOpjWLog4Xk7j+Ni4gd234Clj/OneHYFMhdZo254lEiJd4BUFqomr4Z0QaAI59n TOO4vHIXrBXrIgyLJfEppFNlUqs3jNWBC3kJbkSqm3cTYCRn0dGxXM7lwkGj2L6X6d XKwhO11OxXi83K//VvYOUJGYIaZJaO0YS3RWSqFI= Date: Tue, 7 Jun 2022 17:39:45 +0200 From: Greg Kroah-Hartman To: Xiaohui Zhang Cc: Ian Abbott , H Hartley Sweeten , Johan Hovold , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/1] comedi: ni_usb6501: fix transfer-buffer overflows Message-ID: References: <20220607134720.6343-1-xiaohuizhang@ruc.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607134720.6343-1-xiaohuizhang@ruc.edu.cn> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, Jun 07, 2022 at 09:47:20PM +0800, Xiaohui Zhang wrote: > Similar to the handling of vmk80xx_alloc_usb_buffers in commit > a23461c47482("comedi: vmk80xx: fix transfer-buffer overflows"), > we thought a patch might be needed here as well. > > The driver uses endpoint-sized USB transfer buffers but up until > recently had no sanity checks on the sizes. > > --- > > Fix the typo in the last bit of the old patch which use the wrong > endpoint to determine the size for usb_tx_buf. > > Signed-off-by: Xiaohui Zhang > --- Please read the documentation links I sent you that say how to properly document this. Please do so and then you can submit a v3. thanks, greg k-h