Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3822318pxb; Wed, 13 Oct 2021 13:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwff6hikrU+o/ZGmoemeCINMgrNOBG//qdJww4Ggw5J+bf/zT6QHhrn1gig3wf+ziwtzjKm X-Received: by 2002:a17:906:2505:: with SMTP id i5mr1759412ejb.450.1634158027149; Wed, 13 Oct 2021 13:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634158027; cv=none; d=google.com; s=arc-20160816; b=dna4DdYhexryarN29w9LxLHU2nD4D4/yUiuihW6ob4m3h93cJS4cCnS5wPs3GaZq5Y p7qN+HrYLdl/zm76t9YeDW1qbcbh9SJPTXoXVz3TebNDrLVr4invfU2KnilbUSqamRBp g9Hf5nnzH6+41ih8x1Y4Ysbyh4E35SbvkzAy1arvUgLtpJfzLVyNx/mEt7+9YW/guQDW 9w01kdmG+YiYfbG+4PiUlZHxmVUZw3ZyZCd6GsaHtynrgBkKRIFPW3GBlLeeak/RHGjL 1fYVlg5hyARIYnoahnwZUzsPU9I8Gxv1HpYMKGkdVWt6cGSIdBteMhMGV/T6Qhatlc4r Ihhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uoH2GdEnZcZ++qbENm9gN8uRN4RtFrpqkTiQPBvD7e4=; b=RwO6uuk6NCYapxFlv1N8IR+JZWpq6HEkw8u1/MuelOWbS5c0mR9CYFU+ltvoIY8h6y obClm6w0i6bGnUJtScxBBJl3h+kKDhPxH+bPSNN48V07kkVqysBcp++MDyBDxSqWXyMC QD8m5NJUOKOz9sfdXa1Ip3AT5BTF9mcXvKvJ4bxEFm30ms+yYc2tdN9T/cxCFRIJcaVe tH1ApXhJDqAWlfPO1Pn1qnL8NUVJta9fYtXxy3ns0cGNdjXxpVmB5EvC6KUpJ1r3b9DF 2+/h3tfgV4wY2dpk9k90uNcMv+ldPqpzKIZTcQDmZCXH3SoZAM+l0CNRbu+csMnbmNlu VN8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji21si1187331ejc.604.2021.10.13.13.46.37; Wed, 13 Oct 2021 13:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbhJMUsg (ORCPT + 99 others); Wed, 13 Oct 2021 16:48:36 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:59876 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229496AbhJMUsf (ORCPT ); Wed, 13 Oct 2021 16:48:35 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 19DKkM9b003484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Oct 2021 16:46:22 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 230C115C00CA; Wed, 13 Oct 2021 16:46:22 -0400 (EDT) From: "Theodore Ts'o" To: Xiyu Yang , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Theodore Ts'o" , Xin Tan , yuanxzhang@fudan.edu.cn Subject: Re: [PATCH] ext4: Convert from atomic_t to refcount_t on ext4_io_end->count Date: Wed, 13 Oct 2021 16:46:15 -0400 Message-Id: <163415796177.214938.11748904502433521688.b4-ty@mit.edu> X-Mailer: git-send-email 2.31.0 In-Reply-To: <1626674355-55795-1-git-send-email-xiyuyang19@fudan.edu.cn> References: <1626674355-55795-1-git-send-email-xiyuyang19@fudan.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, 19 Jul 2021 13:59:14 +0800, Xiyu Yang wrote: > refcount_t type and corresponding API can protect refcounters from > accidental underflow and overflow and further use-after-free situations. > > Applied, thanks! [1/1] ext4: Convert from atomic_t to refcount_t on ext4_io_end->count commit: 6333c4e6167b01a27a6d13bd7bbeb9451d4067c1 Best regards, -- Theodore Ts'o