Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4852544pxv; Tue, 20 Jul 2021 12:58:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoEZT+LuGJLUV1VcL1eHEIgSh1CXkTW0a9aWPUReMCvIbmXb3/VQ1kgjOslgQxYwSIXSbD X-Received: by 2002:a92:2a10:: with SMTP id r16mr21045236ile.223.1626811110393; Tue, 20 Jul 2021 12:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626811110; cv=none; d=google.com; s=arc-20160816; b=Bvl5dmiqClu2A4uu2zKuNTDIr4YksYnobSeuwK9YeAV+D+zC702Iw022RKGd0bKu6Q qq/qCgJaDBx+j5Mxy7K21ASSAbkMWSb9s4XdUjN03CQrpB/lEj0TLVNSfFv6KjEXqjA7 EaeKeOt7syMu598rBl2ppdtbwpCAPKXFNixus+OTQ56GuITLUlIYr/yK/2d+nPW9GR21 SkzzXEpy9wU9US525cJ5VSCtI5Z/vK37JBdSb1YGNHPweL9behal9gPkNm58XvUlmxI8 WS7PlyDBm3yvtznnI/7hWvYTPjNIl1JE/nuv+Glglo8cfBiVFHBRHwOMPoVyaja7+If0 Nk6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3DB/7Fj/IaeliSZQDKbkmJzUxTFFzlMVmYcVBpZWbhU=; b=q2YrmHveBqcg+RXrgPB+BhRuQBpBJyzGhB3T/8yJOktt7LwJ8G7meu/2CA2Kr2njTx 4y4DxF9naF05BoWSFVb4pscWaKtt3qeWUKdhDuuOZwoqk2Qpq7W6z/c4nhS0KCoaYtpD UgoQwQJ6Z2JaE7EZ+weUZmaZB4OWQKxJ4R01TdlKOlu/dYEeF1f0RlZ+bokd5+ceqxLy 3ZKdF0GwoGnNE4JVWG5D7CFWkfxtXum9khzd3DUJYhjiKU/p1CVHD3eCllpSjSM63ZId UPxyYXxOYIPqt1SZBT4VBo4YRMKlO5Zof8/P7AP3y+DET1kMPKJk7hQTOjcKyB1ozn+m 1VZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LEaiS9PH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g4si21173580jat.17.2021.07.20.12.58.18; Tue, 20 Jul 2021 12:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LEaiS9PH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231927AbhGTTPf (ORCPT + 99 others); Tue, 20 Jul 2021 15:15:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbhGTTPO (ORCPT ); Tue, 20 Jul 2021 15:15:14 -0400 Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31254C061574; Tue, 20 Jul 2021 12:55:51 -0700 (PDT) Received: by mail-oo1-xc32.google.com with SMTP id 128-20020a4a11860000b029024b19a4d98eso57387ooc.5; Tue, 20 Jul 2021 12:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3DB/7Fj/IaeliSZQDKbkmJzUxTFFzlMVmYcVBpZWbhU=; b=LEaiS9PHyFQpsX2JEjse16bR9k9zqQgsvlBghDEfnunfk71V6XfJ9K7g81nbS0ybyF h/CXOTRNrNbG0bmMcJmemczBkds3sepHYADQXW217jsDy+MeI/QFEDX30vg2CJ2HFFuG ppFZ1MQ1QUwvAHfcHB1HgHlk/AD9WT+ylWFsjHk6AFY7MK8SRjykzoXyVNg4AggFUpVo JPlWMKWMTPemdwyqNbMUDoSkDRPbnZNqZE50TjPRQsXROnSz0kR+uFvpknsdvKCAp0Jj GSA5GuQDAwlq52gl3FqlVS8sKbQ0kwhtuGGjfLMetQnxeSe7MXXY1IB9nrImlgSZrqz0 +tuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3DB/7Fj/IaeliSZQDKbkmJzUxTFFzlMVmYcVBpZWbhU=; b=gcLhbcQgQ819rgI+vQRwk5YONF8nrJXpOBjTjuU0UrUIfXMZIswOGKXwEwqthBTa1v uCT7zgFKXmCIzYUPJ+rNiWK7kWC0w7C7lI4sCF6mZ04CRejXMhOQHlsYvTORuMDVJiba KvrAKlmkM7io3opKcsS9h58AsSRvhM7yys9SDfRNw3GUdwpnwkIFl01hy0kz2GsFr6j/ lLySIfg3V9mdRXx2L+o3K9MXW9++HdVtpQpclL0QuK/Lj5jnD94xv0z3vQi9bPAgSCVx q7tFuQg5HB/C10gCb8bTEYIAODkfy9XuaYhM98paUHsyqq/pqGEKQ3YFWbHGIBpzT+xP 59/w== X-Gm-Message-State: AOAM530Hr1HNLYmlF/0gHybDsOk1drMaGPBzLBmtD/kKwUFnaNSDq0Rz fz/DDolWdO1lkYk7sYwAaPU= X-Received: by 2002:a4a:2242:: with SMTP id z2mr21967622ooe.90.1626810950218; Tue, 20 Jul 2021 12:55:50 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([8.48.134.38]) by smtp.googlemail.com with ESMTPSA id z3sm4315971otp.32.2021.07.20.12.55.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jul 2021 12:55:49 -0700 (PDT) Subject: Re: [PATCH] net/ipv6: Convert from atomic_t to refcount_t on ip6_flowlabel->users To: Xiyu Yang , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Manivannan Sadhasivam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org Cc: yuanxzhang@fudan.edu.cn, Xin Tan References: <1626683707-64470-1-git-send-email-xiyuyang19@fudan.edu.cn> From: David Ahern Message-ID: Date: Tue, 20 Jul 2021 13:55:47 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1626683707-64470-1-git-send-email-xiyuyang19@fudan.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/21 2:35 AM, Xiyu Yang wrote: > refcount_t type and corresponding API can protect refcounters from > accidental underflow and overflow and further use-after-free situations. > > Signed-off-by: Xiyu Yang > Signed-off-by: Xin Tan > --- > include/net/ipv6.h | 5 +++-- > net/ipv6/ip6_flowlabel.c | 18 +++++++++--------- > 2 files changed, 12 insertions(+), 11 deletions(-) > Reviewed-by: David Ahern