From owner-svn-src-stable@FreeBSD.ORG Fri Feb 3 23:27:07 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3BF8106566C; Fri, 3 Feb 2012 23:27:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D227C8FC0C; Fri, 3 Feb 2012 23:27:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q13NR7hN009254; Fri, 3 Feb 2012 23:27:07 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q13NR7xx009252; Fri, 3 Feb 2012 23:27:07 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201202032327.q13NR7xx009252@svn.freebsd.org> From: Dimitry Andric Date: Fri, 3 Feb 2012 23:27:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230968 - stable/7/sys/contrib/rdma X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 23:27:08 -0000 Author: dim Date: Fri Feb 3 23:27:07 2012 New Revision: 230968 URL: http://svn.freebsd.org/changeset/base/230968 Log: MFC r229753: In sys/contrib/rdma/ib_addr.h, bump MAX_ADDR_LEN to 20 bytes (the same value used in sys/ofed/include/linux/netdevice.h), so there will be no buffer overruns in the rest of the inline functions in this file. Reviewed by: kmacy Modified: stable/7/sys/contrib/rdma/ib_addr.h Directory Properties: stable/7/sys/ (props changed) Modified: stable/7/sys/contrib/rdma/ib_addr.h ============================================================================== --- stable/7/sys/contrib/rdma/ib_addr.h Fri Feb 3 23:08:58 2012 (r230967) +++ stable/7/sys/contrib/rdma/ib_addr.h Fri Feb 3 23:27:07 2012 (r230968) @@ -42,7 +42,7 @@ #include -#define MAX_ADDR_LEN ETHER_ADDR_LEN /* XXX doesn't support IB! */ +#define MAX_ADDR_LEN 20 struct rdma_addr_client { int refcount;