Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3752946imu; Mon, 28 Jan 2019 10:10:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4NoCmwfqwgPArg+BWGXOcaQgG/QrWQDyKHYF3r0B30KlThm0UnfJMhwZQT+4le9DC6sRcY X-Received: by 2002:a17:902:9006:: with SMTP id a6mr22418454plp.334.1548699014028; Mon, 28 Jan 2019 10:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548699014; cv=none; d=google.com; s=arc-20160816; b=wkgavzts0c2CNhFjsH0t5QKEfQAs5FDz5Qbbb0krCOEqEXt3/ZFLm+1E0wqIB3LmAw nccH/pl10hbyGICpA59fAIh66dsI0w45G2ox/ZXHS5Vl+4CxIS2nshXgxiVgd8axZxp6 BMlHUpVWVM4aR15xlqohE/vkgyymnH+edD3rN2fqQLb1Wc+YezZp2blX2cbwMYSErjQj Wir5b0wIkJAyYBib1glnEkzNbGjXq5ZDRk3lTUFBiTfZ9s39tE/daTtI0RHRCPoB9lC/ cfbXokkVy1nssD+RVPQF08l3UdmkC9yE5nt3QU5A/VlpLo8JDBABSmbVDYj+qsU9KCm0 zqAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G2M+1pmP8ilKUJ3JlBeKSrp0yTnaMWxCdRW4HecWV3Q=; b=az1HmbWACcuBMvKADCd2kuLV34u3R3UKnpjrQHeB2JvVN4HzGDBLJbmCmB53+HWvNe APT4z8PVUiLRyWNgr+bwzqBE6MlF006PxQCeomRD5cNaVRdn7viCEeYj0bkSgMwvB+ox 72Z1rSfPLP4iQDz/jcrUGmL1fwtOeVet1RFmWlFb2GprndggUywMoMIW9tPO+YErMjhL VkCdsRAL+fPwMDMWITquIGl6QPE6c99l53SRwn/UT1nUPX8LpVTPdz3xdTJENwwCc5Uv KKZy2G5MzMoRNJKh38HA9VoIGTckORCfGdgylcBldVZwRPOlFp28qjEiV6BkMDyOrFUk qP6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sirAQja0; 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 9si32905431pgn.524.2019.01.28.10.09.58; Mon, 28 Jan 2019 10:10:13 -0800 (PST) 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=sirAQja0; 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 S1726995AbfA1SJw (ORCPT + 99 others); Mon, 28 Jan 2019 13:09:52 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45143 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfA1SJw (ORCPT ); Mon, 28 Jan 2019 13:09:52 -0500 Received: by mail-qk1-f195.google.com with SMTP id y78so9914865qka.12; Mon, 28 Jan 2019 10:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G2M+1pmP8ilKUJ3JlBeKSrp0yTnaMWxCdRW4HecWV3Q=; b=sirAQja0bDXblwCseCkseMrvlvyR+CENaSTyb/CkuynY1Brn9xxM7EuNSgS9gbOnDZ 3FkdxDB0faczKPna6B8LTzXD9INTGnlchJuY8CvEXDKlgpKZRYLKUXC2xNtmzGytNVZd eW0TC7O/uFGU4I0y+j0BrCl11BOaxtfDNw4jGjAnwaeoWlyWwdyVsRIm1FAzKNni+cON 9PO/TNF9OgV9u1BDTy9sR+HA7mCVdQusnmEo2216LXcPgls2nGDc8jimtHaJ7vkVAKvS gFgDnJPZC9mUtmsB8SWP/eEGUjeFfKtVDUZXMkow2/JUiCyGZoJLRR4NWYpxSXt5q24G WDng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G2M+1pmP8ilKUJ3JlBeKSrp0yTnaMWxCdRW4HecWV3Q=; b=flH5X2GeVBDY65OeqzTAuq+ia8xvYEWWfg+hSYsVL4jS9UR02RV36DAcPqsq+CmLIp GJ3iSHKDfsgcqQvSBaNKdcOjmDRSAZcFBFzBGVsvoF9mdeD6ge3HzacU0+Uzb07iEtDi 7/3D+OtrTtkdp43gv/fAvqgLzyHyzIvVxb09p68ewsiggsUrvnGHTdxT+H1sroJqqZNZ DcPelvGii9sf3alS4z4lw+PQnyORlGNXbZoCiqDoFcp87mRKVndx5Ntsa6hgof0a4BLH ecA+FqhQJF8i7PSuKzhm4fCweUIS6z8k1S/rC6k47hP1hkqOeQVPYgMTfKLjxrPQfiDn Cxiw== X-Gm-Message-State: AJcUukfrfiT/yj3eN1T8fRcMuyQ5L1kBACntXBxo3FzTF7PifcrAJnss ArgJ2SgwsXw7ooqZcI1Jv3+EkcED X-Received: by 2002:a37:5dc3:: with SMTP id r186mr20582944qkb.90.1548698991186; Mon, 28 Jan 2019 10:09:51 -0800 (PST) Received: from localhost.localdomain ([168.194.160.129]) by smtp.gmail.com with ESMTPSA id t40sm90873000qth.46.2019.01.28.10.09.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 10:09:50 -0800 (PST) Received: by localhost.localdomain (Postfix, from userid 1000) id C2510180B6A; Mon, 28 Jan 2019 16:09:47 -0200 (-02) Date: Mon, 28 Jan 2019 16:09:47 -0200 From: Marcelo Ricardo Leitner To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "David S. Miller" , linux-sctp@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.19 033/258] sctp: Fix SKB list traversal in sctp_intl_store_ordered(). Message-ID: <20190128180947.GB10665@localhost.localdomain> References: <20190128155924.51521-1-sashal@kernel.org> <20190128155924.51521-33-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128155924.51521-33-sashal@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 10:55:39AM -0500, Sasha Levin wrote: > From: "David S. Miller" > > [ Upstream commit e15e067d0656625c77c52b4e5f0cfbf0c0c3583f ] > > Same change as made to sctp_intl_store_reasm(). > > To be fully correct, an iterator has an undefined value when something > like skb_queue_walk() naturally terminates. > > This will actually matter when SKB queues are converted over to > list_head. > > Formalize what this code ends up doing with the current > implementation. Hi Sasha, This one too then. Thanks, Marcelo