Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1429716AbdDYK5g (ORCPT ); Tue, 25 Apr 2017 06:57:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42404 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1428494AbdDYK52 (ORCPT ); Tue, 25 Apr 2017 06:57:28 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3D20D61B8F Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=honli@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3D20D61B8F Date: Tue, 25 Apr 2017 18:57:25 +0800 From: Honggang LI To: Or Gerlitz Cc: Erez Shitrit , Doug Ledford , "Hefty, Sean" , Hal Rosenstock , Paolo Abeni , "linux-rdma@vger.kernel.org" , Linux Kernel , Linux Netdev List Subject: Re: [PATCH] IB/IPoIB: Check the headroom size Message-ID: <20170425105725.GA14400@dhcp-13-42.nay.redhat.com> References: <1493114155-12101-1-git-send-email-honli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 25 Apr 2017 10:57:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 30 On Tue, Apr 25, 2017 at 01:32:59PM +0300, Or Gerlitz wrote: > On Tue, Apr 25, 2017 at 12:55 PM, Honggang LI wrote: > > From: Honggang Li > > > > Minimal hard_header_len set by bond_compute_features is ETH_HLEN, which > > is smaller than IPOIB_HARD_LEN. ipoib_hard_header should check the > > size of headroom to avoid skb_under_panic. > > sounds terrible, ipoib bonding is supported since ~2007, thanks for > reporting on that. > > > [ 122.871493] ipoib_hard_header: skb->head= ffff8808179d9400, skb->data= ffff8808179d9420, skb_headroom= 0x20 > > [ 123.055400] bond0: Releasing backup interface mthca_ib1 > > [ 123.560529] bond_compute_features:1112 bond0 bond_dev->hard_header_len = 14 > > [ 123.568822] CPU: 0 PID: 12336 Comm: ifdown-ib Not tainted 4.9.0-debug #1 > > did you generate this trace by calling dump_stack or this is existing > kernel code. I inserted dump_stack to print this stack for debug. > > > Fixes: fc791b633515 ('IB/ipoib: move back IB LL address into the hard header') > > this is more of WA to avoid some crash or failure but not fixing the > actual problem > > Erez, can you comment? > > Or.