Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3402759imw; Mon, 18 Jul 2022 07:31:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujXYNXpRKGtgvIoKpHcsArgBNjt2G7hXzm4DX3pAUlrl73Wcp8eDUKb7rM4oOp8jQ0L4RE X-Received: by 2002:a05:6808:10c8:b0:335:9466:750b with SMTP id s8-20020a05680810c800b003359466750bmr17165751ois.276.1658154673714; Mon, 18 Jul 2022 07:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658154673; cv=none; d=google.com; s=arc-20160816; b=F0ZtvdntJsT4FNLIk9pIxiQ2G6SB2iZ65Zd0MZcpJONeCWMZYY/ogvu4T3aN5Vjv+p PAcaPNXRQG7WU3WXkYkHemNjUPhrJ/kWMaEan0QLIJejWQ2fuFYASMDgZqgSskibyZ1H aM0BSiSygN6oWzEHhneHSTUlu1CUnMu9A4gQePVke72q1yHoCIF5pqjMV4VvrU3y131I 3ZVrErJhVf8vC4ivaZaB5O2s1JiDCLpO38LKs+3zIn1wnjwJ6WzsM2+zz/tCP00zBbEg U1bz5gx5/yMrPgTHez0v/y6dYsS2J+W/W5RpeRIDN3irmaRkoC/Nt9J45iwaSql8aQ0f mwlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RtcmjGXV4czePnEOaU9k1n+wgG1RmX/RhdWW1Odaz3Q=; b=xAjmI1+dqorqbLxS0OiiYGTlLPMiDPzJoM99dOecTjUzrvh56KoHgWpbYIKGLkVQ+E t5Fol+pMkEDD0jQDMapKnBqq5SPRZftIjZ3UoyOTe4oaqI6OWsiZ58Nmzeqs6KGiQOxX YQ2ViHOY1oTWHgU5QJaiJUZcJxz/B/mjdEZ5IdsKiWXRkxVJhuaBqG11ewcj6IpcIqaU GYa7gS8P8KgG86lP8RIohWCXjFe+VWo5Tw6GHcxqMKATWH01Um44ZvJrMhCZsTvKEGLg Jbg/DHxKL4TRzkIg9u/s5Fzqym3bOITRcxazGFSDn9BYzCTkU+4MzrAxgI6/WL2kK3IF IyGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KT8TzByY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w91-20020a9d3664000000b0061c947a0118si5505142otb.225.2022.07.18.07.31.01; Mon, 18 Jul 2022 07:31:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KT8TzByY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbiGRNrX (ORCPT + 99 others); Mon, 18 Jul 2022 09:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235452AbiGRNrI (ORCPT ); Mon, 18 Jul 2022 09:47:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A10B825C6C for ; Mon, 18 Jul 2022 06:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658152026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RtcmjGXV4czePnEOaU9k1n+wgG1RmX/RhdWW1Odaz3Q=; b=KT8TzByYD1CNs5wraTfvzIDDIKvtfBjqc8Yfp6OMWLzo0rBfmF7/veURpBRK81rSBTKVTE ik7Q9TdKC1C+Iy36FOUaviHeqP0nSFKws9zS4oB7Sd4dwRtPpwSGMWzoF8tvkM8EP0wBv7 Z916P1n6Ga+Wqi2ykv3UlUCtbUtR+F8= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-605-fFM0BVWgND-FY1Jjf72TcQ-1; Mon, 18 Jul 2022 09:47:05 -0400 X-MC-Unique: fFM0BVWgND-FY1Jjf72TcQ-1 Received: by mail-vs1-f72.google.com with SMTP id q4-20020a056102100400b003572f6bd5a0so1014569vsp.16 for ; Mon, 18 Jul 2022 06:47:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RtcmjGXV4czePnEOaU9k1n+wgG1RmX/RhdWW1Odaz3Q=; b=bpFunsj5FHIy7XFgO9XjwQ5qXfWgYTlUimRp5QeKwFLFN5OKxXfsbCW8vKLfi7aZGC wKQ2jdBGlKMHf+ojHebgOSbI42z6LkJu/QeA4DLTuZeFUJjfLylECVNqUUOVX/64KAnt 7Wt6CCQmf0/IFfFkrtKjmFfF0OvcOFm6VjUnfsfq3zChVUhwrIZ0jO62HC5gA//26ugF COty6cyRQWqYSua+XRXZ4Z5XVQYYei3n98aVAP/RMdweVCbp+PCJf0VdXjiYhYJF+pCw MMvCMtXM4Nm3CCfCqTg4evDorVpBgIuAUtulObdl15NDRKzoDHzW/6TQD046I719EWIO K7Eg== X-Gm-Message-State: AJIora+us9Cq9PpwFUKVAHICuiE/l6sqlzsQDJRpI/i+SEHmTmt2J4sl 1E3k+ftFBqFnY62rnZetXFbMk4DWkdGviivuBQCKqsKPM+NUc7BBWshhkPTeaKkO7GE4qGfxKxy 1MiWdQFku+o2XkkbCADDQG/6G61W5HN9DFZfxMebf X-Received: by 2002:a67:c894:0:b0:324:c5da:a9b5 with SMTP id v20-20020a67c894000000b00324c5daa9b5mr9160122vsk.33.1658152024942; Mon, 18 Jul 2022 06:47:04 -0700 (PDT) X-Received: by 2002:a67:c894:0:b0:324:c5da:a9b5 with SMTP id v20-20020a67c894000000b00324c5daa9b5mr9160107vsk.33.1658152024680; Mon, 18 Jul 2022 06:47:04 -0700 (PDT) MIME-Version: 1.0 References: <20220715125013.247085-1-mlombard@redhat.com> <62aacb46.a9b1.182110646cf.Coremail.chen45464546@163.com> In-Reply-To: <62aacb46.a9b1.182110646cf.Coremail.chen45464546@163.com> From: Maurizio Lombardi Date: Mon, 18 Jul 2022 15:46:53 +0200 Message-ID: Subject: Re: [PATCH V3] mm: prevent page_frag_alloc() from corrupting the memory To: Chen Lin Cc: Alexander Duyck , Jakub Kicinski , Andrew Morton , linux-mm , linux-kernel , Netdev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org po 18. 7. 2022 v 13:17 odes=C3=ADlatel Chen Lin naps= al: > > Will this lead to memory leak when device driver miss use this interface= muti-times=EF=BC=9F No, I tested it and pagecnt_bias and the page refcnt are always consistent. Maurizio