From: Wei Wei Subject: Re: [PATCH V2 net] tuntap: properly align skb->head before building skb Date: Sat, 28 Oct 2017 18:20:54 -0400 Message-ID: <06D9B61F-5C89-47C4-A060-B63FE5A8F922@gmail.com> References: <1509073544-4474-1-git-send-email-jasowang@redhat.com> <20171028.190615.1780763141354795593.davem@redhat.com> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: jasowang@redhat.com, netdev , LKML , Eric Dumazet , Willem de Bruijn , Dmitry Vyukov , Mark Rutland To: David Miller Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:53897 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbdJ1WVB (ORCPT ); Sat, 28 Oct 2017 18:21:01 -0400 In-Reply-To: <20171028.190615.1780763141354795593.davem@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: With this patch, the crash can=E2=80=99t be reproduced with the = syz-repro and crash log0/log1. The auto-generated reproducers are here:=20 https://github.com/dotweiba/skb_clone_atomic_inc_bug Thanks, Wei > On 28 Oct 2017, at 6:06 AM, David Miller wrote: >=20 > From: Jason Wang > Date: Fri, 27 Oct 2017 11:05:44 +0800 >=20 >> 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. >>=20 >> 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 >=20 > Applied and queued up for -stable, thanks Jason.