Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4405300pxv; Tue, 20 Jul 2021 03:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi2HDvLsSQdRA5rWfKRTSqxVOnSz5voFm/Fivc1i4+0/j0CvoeuqjGLtijlNlFeEuiAFw0 X-Received: by 2002:aa7:d604:: with SMTP id c4mr39601406edr.39.1626775372714; Tue, 20 Jul 2021 03:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626775372; cv=none; d=google.com; s=arc-20160816; b=NPLQTzQu7HeSiUgfDT0qJ9hQQZJh+5YcheRUkAFh5dHRHQ5pDc6S8IjJxXP+em0t1p QGoHyYzgzXPUKNo0CJuwCgHmo3wlyEooFZFr6OQIUszhj1RTSYJaBIrO4A8StqG6t9hV LFxLzHb0Oe1nGpJH2m/vfErMWetFCImsabbuG7IrLqVuyFVeIQCx8HuqjOdE01fpMb9+ T3RUrwdLJ+bsiDhpgzNqxeENVpm32bxnNF+XBc/2B8OItPeBxe+3xgH2l5guHQdMXLf8 7YEzN925zO+UeB5fJhenlbyMZOTn09kn5/oJ35lvIb4iD56p223eu5o7b/RzUjjl88bW gElA== 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=LLm8DnJWH/i+Esqpgpu+JGxACiYjnQmZEeaLSkBy41M=; b=c+k14IHiWA8OzHtQGH+2N36st1yf5Y6NgC9GBa5a1iDCdomTi71qLdW/JRDhLTRSgL k2FX8AbW+5KK3AVz8MBEhPYZPB4/WngWfi0po7dFLp21vuGHYk4oqaV78hkkfixmTEDD PD4cx1N+Pvh0n5J3GJV7fwcYV91Cf59Ik794dOUet/UoZ1J+/9wAv3K0ciYV98hd9Frs /wf7Ynm7vuau//Kz7Tw6JACSIREyej/lJKElYmcd+U3xBthOlQwnWpWee6xRKLCD78Be DCk7iE8Sh+q/YyE2smUgN2YEtgRJBlQzcADm4zVSdr+FICmsnJaCF8RbPRANutUx6TLK mVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNbCh01M; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne15si18133741ejc.339.2021.07.20.03.02.29; Tue, 20 Jul 2021 03:02:52 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNbCh01M; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236032AbhGTJSB (ORCPT + 99 others); Tue, 20 Jul 2021 05:18:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235803AbhGTJRr (ORCPT ); Tue, 20 Jul 2021 05:17:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D23F60FE9; Tue, 20 Jul 2021 09:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626775105; bh=oZ6f/1tQAfo2KzOhKbZADa4GuV34otAXzMk8ZYbNLT4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eNbCh01MWy6I/oDBf8LFUFKfyJ8t2XHccON6nvWsMRWBIGm+bqJwz47+Laljrnl41 oQ9NsZEElRNyTQq+5h4QuF/gzu3JtC1AjpvpfBZ9kRNZ7vhgjcmDfelpmdUteYhUNe 0TLR4LY0SDvZphmAJwrLRcT1Mr4JQZpPAFlpE4BQ= Date: Tue, 20 Jul 2021 11:58:22 +0200 From: Greg KH To: Georgi Valkov Cc: davem@davemloft.net, kuba@kernel.org, mhabets@solarflare.com, luc.vanoostenryck@gmail.com, snelson@pensando.io, mst@redhat.com, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, corsac@corsac.net, matti.vuorela@bitfactor.fi, stable@vger.kernel.org Subject: Re: ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 12:37:43PM +0300, Georgi Valkov wrote: > ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback > https://github.com/openwrt/openwrt/pull/4084 > > > From dd109ded2b526636fff438d33433ab64ffd21583 Mon Sep 17 00:00:00 2001 > From: Georgi Valkov > Date: Fri, 16 Apr 2021 20:44:36 +0300 > Subject: [PATCH] ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback > > When rx_buf is allocated we need to account for IPHETH_IP_ALIGN, > which reduces the usable size by 2 bytes. Otherwise we have 1512 > bytes usable instead of 1514, and if we receive more than 1512 > bytes, ipheth_rcvbulk_callback is called with status -EOVERFLOW, > after which the driver malfunctiones and all communication stops. > > Fixes: ipheth 2-1:4.2: ipheth_rcvbulk_callback: urb status: -75 > > Signed-off-by: Georgi Valkov > --- > drivers/net/usb/ipheth.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.