From patchwork Tue Feb 25 07:56:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 3713351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 059BF9F2F7 for ; Tue, 25 Feb 2014 07:57:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22C6F20149 for ; Tue, 25 Feb 2014 07:57:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3410920115 for ; Tue, 25 Feb 2014 07:57:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WICsv-0004Qt-Fv; Tue, 25 Feb 2014 07:57:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WICst-00070E-55; Tue, 25 Feb 2014 07:56:59 +0000 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WICsq-0006zt-Jn for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2014 07:56:57 +0000 Received: by mail-ee0-f44.google.com with SMTP id d49so1410810eek.17 for ; Mon, 24 Feb 2014 23:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cEXbsBpBKEb/LOxY+8RlnOvOBLYoiP+0NjmizC5QDig=; b=Ds7GSjB8eoKX1OFduqqHgZXHTrj38g2XZT/c6fv8h5nfm5cr10eMsXhx7xvIwJHhK8 6Lt1G07cloi2dekmsPtedboOiIKNYioE+iLG01pflUf81/4g4zomOF3mPjBZEHBjVGcB t9wxPhMGm14Cz0/SmyLW8vDgQ9cfiCxhjZv3951djIIWalxpTpPoVF6BSiAy3gOpQvWw gghPdaA+wDRotO9v5AH8Kxbbn/y+qPiv06v1vI3m8UIkvu2cby5dx4+k8P77roEERH6c iFtfigFyanOnGK+EhNhYDH4WIqK/v1V6QK7/xcxGPCo9k1LLsoz4Z9JBSpb+Oyk2Velb 5qIw== X-Received: by 10.14.88.131 with SMTP id a3mr29906172eef.64.1393314977406; Mon, 24 Feb 2014 23:56:17 -0800 (PST) Received: from [192.168.1.10] ([46.249.74.23]) by mx.google.com with ESMTPSA id f45sm73374014eeg.5.2014.02.24.23.56.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 23:56:16 -0800 (PST) Message-ID: <530C4C9B.7050104@gmail.com> Date: Tue, 25 Feb 2014 09:56:11 +0200 From: Ivaylo Dimitrov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Will Deacon Subject: Re: [BISECTED] ssh - Received disconnect from x.x.x.x: 2: Bad packet length 3149594624 References: <52FD08D1.3030405@gmail.com> <20140213182105.GN13576@mudshark.cambridge.arm.com> <52FD1243.9040706@gmail.com> <20140213192909.GO13576@mudshark.cambridge.arm.com> <52FE407C.3080002@gmail.com> <20140214162458.GF21986@mudshark.cambridge.arm.com> In-Reply-To: <20140214162458.GF21986@mudshark.cambridge.arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140225_025656_817912_3CF7DBF8 X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: 0.2 (/) Cc: "linux@arm.linux.org.uk" , LKML , linville@tuxdriver.com, Sebastian Reichel , kvalo@qca.qualcomm.com, Pavel Machek , =?ISO-8859-1?Q?Pali_Roh=E1r?= , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, GAPPY_SUBJECT, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, On 14.02.2014 18:24, Will Deacon wrote: > You could try putting back the UNALIGNED_ACCESS in net/mac80211/rx.c and > commenting out the skb->len = desc->length - PLCP_HEADER_LENGTH; line > above. > the following patch seems to fix the issue, including those "corrupt probe response" messages in dmesg log (I took that 'skb_trim' from the original Nokia kernel). Will send a properly formatted patch shortly. Thanks, Ivo diff --git a/drivers/net/wireless/ti/wl1251/rx.c b/drivers/net/wireless/ti/wl1251/rx.c index 123c4bb..cde0eaf 100644 --- a/drivers/net/wireless/ti/wl1251/rx.c +++ b/drivers/net/wireless/ti/wl1251/rx.c @@ -180,7 +180,7 @@ static void wl1251_rx_body(struct wl1251 *wl, wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length); /* The actual length doesn't include the target's alignment */ - skb->len = desc->length - PLCP_HEADER_LENGTH; + skb_trim(skb, desc->length - PLCP_HEADER_LENGTH); fc = (u16 *)skb->data;