Received: by 10.213.65.68 with SMTP id h4csp963326imn; Thu, 22 Mar 2018 12:15:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELsK2SDj9Pg3IGa2lV1EzrsO27wfkpnAkDvc1TZOlO1ZUIWTytvYutYE5nhIL6rU+1M3J1t0 X-Received: by 10.99.119.129 with SMTP id s123mr5377058pgc.137.1521746138215; Thu, 22 Mar 2018 12:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521746138; cv=none; d=google.com; s=arc-20160816; b=CgEleLpFeyivw4yOU64rTlD2pKC/CaEitxNqT5HFkoCx6IALJWiKgFGb/deG050oMM n1HN0DVfNkdYERODeAGSCRc4y5oUGtMtGVmHMPE0BCpNw9Fv9HfcYX0TdD72kYGlwJu7 8l+WvhuFjAWJJfB3+whe32AEjcNL/R6ro6CYmdpqIcPtDUwbc+9ZjsZZJSD7QiI3P88M K30Zwq7lAX+fFk8r7pv37lo5vLhsNqwkYlW41bUJWWMCVUGRuyvJCA/7O3hdwodtOEZ9 Bo2mN4oOk4SlRc5P1PA0tbK1kHa5P0+OvITEwTvLASYG0Az/xh2GelxweXEw4g4WRlpu QjEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:message-id:date:subject:cc:to :from:arc-authentication-results; bh=7hgHh5MbGRayFuJjUowziA5/2Y8LHn1i1OtV0JCSLBw=; b=l0GDfxQO5nCPX33CvwiOiUd9IfM62rrikY0gtGfAfvQA5P3dz7IhPXSadIs6jCSAZ7 XkoX6kj9ylmSXAoLFjNXBCzYVwsRHkq0oDlKyf2FRM1ISPXYDZ/US5kKBdoVTyR5qfir WgrkdlINwXkP8Pu0FYnSApTqzYa15KrqYApd7vqRffyyM2tCPgQl36XWZE9VCc9PSqlZ HDHQ7IEM9VvURaMAW4UbQM5uIxqqlRf/1cctWWcWR1gd7R5bp6ZIvjvNTeZ0xhRAe3j2 uGl1SwXxYWwRPinQn4BkN36y7070tmxQ7DSOgs8KTOzPTBRMWo1RFOgFrJ3nfy6OV4JC G6og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si6733912ple.654.2018.03.22.12.15.23; Thu, 22 Mar 2018 12:15:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbeCVTNt (ORCPT + 99 others); Thu, 22 Mar 2018 15:13:49 -0400 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:35506 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbeCVTNr (ORCPT ); Thu, 22 Mar 2018 15:13:47 -0400 X-Greylist: delayed 675 seconds by postgrey-1.27 at vger.kernel.org; Thu, 22 Mar 2018 15:13:47 EDT Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id z5SteJoPcZVTdz5Ster86C; Thu, 22 Mar 2018 12:01:31 -0700 x-originating-ip: 107.180.71.197 Received: from haiyangz by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.89_1) (envelope-from ) id 1ez5St-0006fu-CW; Thu, 22 Mar 2018 12:01:31 -0700 From: Haiyang Zhang To: davem@davemloft.net, netdev@vger.kernel.org Cc: haiyangz@microsoft.com, kys@microsoft.com, sthemmin@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next,0/2] hv_netvsc: Fix/improve RX path error handling Date: Thu, 22 Mar 2018 12:01:12 -0700 Message-Id: <20180322190114.25596-1-haiyangz@linuxonhyperv.com> X-Mailer: git-send-email 2.15.1 Reply-To: haiyangz@microsoft.com X-CMAE-Envelope: MS4wfECRHunTMOghbmsaSE0PXQQbPMUkFMbA8nFRctntofYTitMuzQZlSlnai1FinctEnZI0ObyGMLU09KQCJGzAn7PSkyPBHL0hRt/9aUB562xpfTYz3fe2 DFRH1ybfQ+WsimRy/zuOocgMqiElD/Bf2lLX0PHdAZL13ifwIRxduNtpQXnsKcxLCB/gO53YZSVI+2du4eA5WplqOdOF2/7RQ0Q4XDVeDSf/wdf4RlcVjp01 jKKEYF2y49dv2H8cun5vsgaOdvSKdHcyaoHW+kZ0rd9JdZfMgL5B3mxMRWmOs1jl9WjHjP2YzgClgL0CFfufOernn3TdHCQQQ2EwRzYArR8feRFkZo1fn3wd mBdqI9fg6ZMr7qSP1flKiOG1/yiShbGoi0BaBwZw0jc3w8P969yT+FKi1C4qlTGbbu8kgm+BImV26psyA7goxEAt1Bs0A70M+Ifu9SshjQ0xMRue9wOEcgbx vFyXnpyiq0A+glWXNLazLP4tHpVjIz0HJyYbcw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haiyang Zhang Fix the status code returned to the host. Also add range check for rx packet offset and length. Haiyang Zhang (2): hv_netvsc: Fix the return status in RX path hv_netvsc: Add range checking for rx packet offset and length drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc.c | 25 +++++++++++++++++++++---- drivers/net/hyperv/netvsc_drv.c | 2 +- drivers/net/hyperv/rndis_filter.c | 4 ++-- 4 files changed, 25 insertions(+), 7 deletions(-) -- 2.15.1