From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751446AbdJ1KGd (ORCPT ); Sat, 28 Oct 2017 06:06:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38824 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbdJ1KG3 (ORCPT ); Sat, 28 Oct 2017 06:06:29 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BE6073A266 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=davem@redhat.com Date: Sat, 28 Oct 2017 19:06:15 +0900 (KST) Message-Id: <20171028.190615.1780763141354795593.davem@redhat.com> To: jasowang@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dotweiba@gmail.com, edumazet@google.com, willemdebruijn.kernel@gmail.com, dvyukov@google.com, mark.rutland@arm.com Subject: Re: [PATCH V2 net] tuntap: properly align skb->head before building skb From: David Miller In-Reply-To: <1509073544-4474-1-git-send-email-jasowang@redhat.com> References: <1509073544-4474-1-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sat, 28 Oct 2017 10:06:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Wang Date: Fri, 27 Oct 2017 11:05:44 +0800 > An unaligned alloc_frag->offset caused by previous allocation will > result an unaligned skb->head. This will lead unaligned > skb_shared_info and then unaligned dataref which requires to be > aligned for accessing on some architecture. Fix this by aligning > alloc_frag->offset before the frag refilling. > > Fixes: 0bbd7dad34f8 ("tun: make tun_build_skb() thread safe") > Cc: Eric Dumazet > Cc: Willem de Bruijn > Cc: Wei Wei > Cc: Dmitry Vyukov > Cc: Mark Rutland > Reported-by: Wei Wei > Signed-off-by: Jason Wang Applied and queued up for -stable, thanks Jason.