From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] tcp repair: Fix unaligned access when repairing options Date: Wed, 25 Apr 2012 14:09:46 -0400 (EDT) Message-ID: <20120425.140946.205898008058818096.davem@davemloft.net> References: <4F97EFA9.2080903@parallels.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: xemul@parallels.com, netdev@vger.kernel.org To: David.Laight@ACULAB.COM Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:52642 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930Ab2DYSJx (ORCPT ); Wed, 25 Apr 2012 14:09:53 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: "David Laight" Date: Wed, 25 Apr 2012 15:11:30 +0100 > >> +struct tcp_repair_opt { >> + __u8 opt_code; >> + __u16 opt_val; >> +}; > > That structure has an implied pad field, probably best to > either make it explicit or change the types. Agreed.