Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp203711ybh; Tue, 17 Mar 2020 21:25:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuxjuK9l5IYBvc13EfOH5FIAwMXzyqXEB8i7HqHPlSaM1LyaGKLNlLY3Xrj/DfAfvorG8Pg X-Received: by 2002:a54:4388:: with SMTP id u8mr1730027oiv.67.1584505513327; Tue, 17 Mar 2020 21:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584505513; cv=none; d=google.com; s=arc-20160816; b=rEiITzKiHD2kaWnroB86+JzMxqNXQE+ifshQcvRj6qSCyJzBw7I/PpOh6Utr1Do9vh vBU/6AmUTxwXSmtv0Jetwyp50ZFAc+l8mJskI3gl+1PkG2TbdBWJMCOTUHjYx/cHZp6B IvFldx1KYqjoQNq1BzT9jCJflYnpf2HWPj5RZavtvwUqEh3PMtWObRLK7dPveKH3AkBa +A+cYCjUN8HT7uzdtkedMngfKWct02tcyrDxBbZEgzagWhBuNtQ4udRfd/KLYLZ8sjek Kf6Nn+9RjxDTmJs2AcSQ7DAlkEPvoqCDrTJdBp7IBUsO5dDi6MBRrEnKYLes0WWg7qD8 aFWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0jhvppohiGdkVH4kDUuCkzpSB1MhlV8OnkUGzMM6rqA=; b=SjxvTvgwLWJcsvbrIdmBCH5O8EMIjwvN2UNBeLi+uXx2dbnqboPGhvQRZTPSP65zrF 9MADolOilBl6GCOjN0IR9P2dxP2vw+Mi1sQvsLM6uZl015Qffvcc2VDgpuTNNvte2I3P 2ho5Sgn82Sk4LtugLhILor3ocdlCeXINZlVFgX0Mvqi5eyslrWuXCnDElSgWyzHjGQtO sQwo+Wor56CvnzFifx0TnNgBqA0j9Hd4rt8kFjlk3yDNP6lVb4iB0Qa5boAwQTbz8xwu JYn++J1ae1B4rJFsoxFLmjjc5dhe+oYwjTxUAnKRG0wb5ViwtT8pGk39PfODwmOAGDfX DnXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RDet+2Z+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k81si2815437oif.105.2020.03.17.21.25.01; Tue, 17 Mar 2020 21:25:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RDet+2Z+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726995AbgCREXO (ORCPT + 99 others); Wed, 18 Mar 2020 00:23:14 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:41129 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgCREXN (ORCPT ); Wed, 18 Mar 2020 00:23:13 -0400 Received: by mail-il1-f195.google.com with SMTP id l14so22347896ilj.8; Tue, 17 Mar 2020 21:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0jhvppohiGdkVH4kDUuCkzpSB1MhlV8OnkUGzMM6rqA=; b=RDet+2Z+Lfi2S7uCJcx3wrx3jgthVPCp1iaSHTRXmtgG/JAFqfO+94wXHET7LnU4SN FExE5CQ2if5LZ5P+8B7OPd67iAOyXKQqYiKOZ94kod+p+QNOaepENep/c+kBg/LQOwpH VFt14LAiWmknu+haC8uUXDw6UGqt2EuTH/4TYDt/5dkFWN83pzTXWm29nKiP7k+/uI/n lgFRN9lk78zxx4dkBHuiLM1Hjhaj33GB7nwDpBE9E3wn1rB8qdxqFISA7piqy8SkSTag 1iDIs6yePatVtKRWexYOf5I47yy8jhzubz4KbvrdZImiTdMAXRzUhifKC/ah0vQCfZXA c0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0jhvppohiGdkVH4kDUuCkzpSB1MhlV8OnkUGzMM6rqA=; b=F1xyAlOnsrZx2+8FR1/cJ5X8sXTtu3cMKjEPWQXj2TDnTeUXPV6RWHVhGNV5jxy84t tHQTnBbC6EZxJ8MXZi6vmOTQIQ306pXDo8SiZy7NVgaE220o1Vsn9GDlvjCfoNWwVBlf 2sRIWZJD0i9iU8AErIqSfJmoAOGPxqQVg3AI1EU54ABfn9AxE8Buhfetav/xcOXtwA5a GLbeatcrjccXhSEBEgn3no/B+/HbKPbYaoqBhEhgJI6ihpO0Vsf+rZcTkJvDQAkxy6H0 BIMnzeYFmcQyeDRfXkRlM6ko0buRt8cPktLb3p3T8xwZzrEKMUMBl9HvDYMm1NXv6x1R LXJA== X-Gm-Message-State: ANhLgQ0BvL+WpEkNAq2KSQ9nm5flO51wxYU455XYssf6oAKlOgGh5l2Y XPSS0z471ATVj1ErlMNQV1LbgtRFYaZUj8u7Bmw= X-Received: by 2002:a92:83ca:: with SMTP id p71mr2017072ilk.278.1584505390662; Tue, 17 Mar 2020 21:23:10 -0700 (PDT) MIME-Version: 1.0 References: <20200317155536.10227-1-hqjagain@gmail.com> <20200317173039.GA3828@localhost.localdomain> <20200318035549.GC3756@localhost.localdomain> In-Reply-To: From: Qiujun Huang Date: Wed, 18 Mar 2020 12:22:59 +0800 Message-ID: Subject: Re: [PATCH v2] sctp: fix refcount bug in sctp_wfree To: Marcelo Ricardo Leitner Cc: "David S. Miller" , vyasevich@gmail.com, nhorman@tuxdriver.com, Jakub Kicinski , linux-sctp@vger.kernel.org, netdev , LKML , anenbupt@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ T8813] [1]put skb 0xffff888099ebbe80 back. sctp_check_transmitted, 1533 [ T8813] [1]put back to queue 0xffff888096b2c280 sctp_check_transmitted, 1683 Something wrong happens here, 0xffff888099ebbe80 not changed to newsk [ T8813] [1]before sk 0xffff88809621e7c0 sctp_sock_migrate, 9592 cause [ T8811] [0]skb 0xffff888099ebbe80 0xffff8880a3bb2800: truesize 131328, sk alloc 296449 sctp_wfree 9101 real sk 0xffff88809621e7c0 it's sk is still oldsk.