Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3688150imu; Mon, 28 Jan 2019 09:05:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN56FtM5DvWazj1DiWQiwU0wuOMkLnwOabMncNbHCa1aXfhstYu2XcVU5XzOpwqVhQ2ebohJ X-Received: by 2002:a17:902:8541:: with SMTP id d1mr22823492plo.205.1548695105710; Mon, 28 Jan 2019 09:05:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695105; cv=none; d=google.com; s=arc-20160816; b=0XLhJggCkftrV4WiERzYWX4ATd3zqXtePlKzKnlRxfhuoQuuhzfwA1KSUPFbsIEzv9 tTShcYFnXPrE0mTQLWtb/8/MhWpkvCVWFRZ24fXOKdSY+znoz4QJXqTlAkSgO61F9f83 hck7VSsx8JQyJnTRPtU2O+kX8ww4fg/hqavOwp0uDhbtxMXYldb4wrLTLdXt8WL2jaGf dzsq2rWrTHhErI0PlYvbIDLwKxgd/awcgZV08iJJZjEuTJq0aclUjO+v54xfpEsw44/4 vXwSxJVIdPj29nziBfBsgMiSQoRUBktTQ5dXzkken/+PlxoqYkrgLZhyxxR3T4FhpgCs Xbjw== 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=YqFgBFVXsqvHD2BsDExYLYwgCVPZcR0DTqRCICkXj7w=; b=Le9uHmiwR3dHP5s6QZCIxY+k9ne3P2olOuZae9hJsq3Ep5xnYiB8I8hKd1eLujCRrG TTM23l5WTAysK4uHpC/ckPEnJYwJXDMn2YAo0qUVQ8Tcl3QpeKzcJIkj17VCp3Ouy54v CRD5NXBrBuCZtdd5vgA1y9OCr728UkPz9oaDYHNvWYi0lALKnlIzpgszvc+EBRTk5n9J 1P9bXKps6V/aTLNY3OoTZALGp1c6i/B6m1J10c0hK2Fg7ZN8VguSM67vOR6g/D1xQQAi qw6jxFWQNJF8BMhn9y9FtiVze+j/sScaNDU/KA6eVPVlUayI83Z9EZfo1lSGHot2+Eso fO3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dl8Nz5pb; 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 p1si34273951pld.353.2019.01.28.09.04.48; Mon, 28 Jan 2019 09:05:05 -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=dl8Nz5pb; 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 S1730584AbfA1REn (ORCPT + 99 others); Mon, 28 Jan 2019 12:04:43 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36550 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387726AbfA1REj (ORCPT ); Mon, 28 Jan 2019 12:04:39 -0500 Received: by mail-qk1-f196.google.com with SMTP id o125so9804114qkf.3; Mon, 28 Jan 2019 09:04:38 -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=YqFgBFVXsqvHD2BsDExYLYwgCVPZcR0DTqRCICkXj7w=; b=dl8Nz5pbvbf/HRr+O2Y8nfKZ8ulNq9wa79uGnBMsrdK2IEkw8eMhmspnXSlAMCJtET l3ueDFW0ZYNKlVmbCQYu2w0gTZmfZYtf1yODfzd+bwc2v9rsDZPLvhfKRJ1beEARWft1 WZBRK83UB2yLkZDUKKKnUBxCiub21hGeqzotYgvpRchFG/0KpaL5Jn22R4KapVy04kCA 5OzsszwBo1tjyzYTYHmtvTdafJ68U8zPYaEU4ombmtO5ZJ2F2Ic+UbCKg8nyAgLM3z1O msWR5AWT6yWTyNpFRLcayLFYKi49iS6m9j7SeJmlnX0kKmJNLWS384+yV25lXqmYC2J7 19fg== 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=YqFgBFVXsqvHD2BsDExYLYwgCVPZcR0DTqRCICkXj7w=; b=ZtDoX1kWLVULVLJkhkQaWAEVMRVE2aZr3Sb2RyWft7FDEowYqRxtYTN7sqtEkI+JDg +MYRuxgsk1yoPGgmZiruzzcJ1kdf+ZRLVyBVGkwdb0oy+91yoHFrFnPlo4x72dEdc2tD YpYidC7PsXPU7ZJ2+vWBWiILIHxKzHoe9d8/vOJc9dpZSvvXcY+zY2KscnwWPYKKXGl/ NkJSLiApcLClmpSTeZ+Atw/yWNQXz0Jm5KJU/r/+qbGVTp+ks/rvugt73gkVRvuKLWyS fPIoWRAONefL6MCXm0C4RDn09p7M4//7xxn+N2E/GLylCF9vCt/dvYDZc8rpj71evscr JjMw== X-Gm-Message-State: AJcUukfI97NEsiVTs7DHWoL2RslprD7vwBwZgUci3NxAiLYb2zS+BZbv NxCTvjeEGn/u8SIecnraIpA= X-Received: by 2002:a37:b201:: with SMTP id b1mr19602375qkf.306.1548695078186; Mon, 28 Jan 2019 09:04:38 -0800 (PST) Received: from localhost.localdomain ([168.194.160.129]) by smtp.gmail.com with ESMTPSA id q184sm59119244qkb.23.2019.01.28.09.04.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 09:04:37 -0800 (PST) Received: by localhost.localdomain (Postfix, from userid 1000) id CFE9B180CE3; Mon, 28 Jan 2019 15:04:34 -0200 (-02) Date: Mon, 28 Jan 2019 15:04:34 -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 034/258] sctp: Fix SKB list traversal in sctp_intl_store_reasm(). Message-ID: <20190128170434.GA10665@localhost.localdomain> References: <20190128155924.51521-1-sashal@kernel.org> <20190128155924.51521-34-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128155924.51521-34-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:40AM -0500, Sasha Levin wrote: > From: "David S. Miller" > > [ Upstream commit 348bbc25c40844c5efa083a3842c7f53d70a815e ] > > 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. I don't think this patch is really needed for -stable without the SKB queue convertion, but okay. Marcelo