Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4922752ybl; Mon, 26 Aug 2019 18:56:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz883/bUm0SAlhX4AxNgvwJkWB4pZAW+KKrBXjpY55BpfDIm+8jQMYo97UxHM6u2ib7Y4EJ X-Received: by 2002:a17:902:d686:: with SMTP id v6mr9739767ply.134.1566870996804; Mon, 26 Aug 2019 18:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566870996; cv=none; d=google.com; s=arc-20160816; b=GpxTh+mjbSJFvYsv7wlY8cbnTwUTfvYgmpPB8y7U5Sdr0KPK+7l9YITGWQyMCe6R6Z ob9N4DNn+5JtHvm3gGlIbS1MBJxQQBILbvs/cBxQTmiodk3Y93HNasGeKakuukzSmGJD 3ieyy7c68VEhKfRW8A+1unGrf6I5pXyVuEnbTyDMbuWa5LENvpftJsxpzFMboUlrN4q8 6URuQgAoUh44fYA3IbLlRGkNqLK1nR6b9oCxuPcok66x1YfTiAVSf6bfDVuGcP7lMRrz RYNMH661wOI7bOluCqeYGMba04Gb9VktYLBR7iXvBq9cNHtIfnjpCK5hSwmOTpHv7UZ6 d6Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=E6SH4Y97bfZfNbKQRqibft6Lcapr+euRUo/VwJCGrqs=; b=Wo6hMI8ikEvuLfwrgtzwbvMYWgt/gZV4YA36MxIYg6kdA/BgTSzoqpIFVbhK3j8v6m 7fXNIvhndEYZPQ7zpMpZm6NAHxjDZgXbKVB9llZGv9gM3beBwdKRIcupzisWFZgoZJKf 7VPEynvxDsASiuYT1IJX8xMpPLKzHtaVpEmcdqvRQhxXw5RMtF87kq8CRDDjC7KDiHSL FAxOJBCEzhzXBPDa0gnQACz1q9Kty3AuevxU4OYp0N74pVgPlqd7CZ12r5NM0lebiKEM JE7EXDSMTaLOn0cB5KUCgKZNYDGOFF0WL9I2P+RB0raO7VveJ7rtor7l8Wy/QabXxZat 8Hjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8si11142342plb.34.2019.08.26.18.56.21; Mon, 26 Aug 2019 18:56:36 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728723AbfH0BzC (ORCPT + 99 others); Mon, 26 Aug 2019 21:55:02 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:40765 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbfH0BzC (ORCPT ); Mon, 26 Aug 2019 21:55:02 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46HX4f0vmjz9s00; Tue, 27 Aug 2019 11:54:58 +1000 (AEST) From: Michael Ellerman To: David Sterba , Nikolay Borisov Cc: dsterba@suse.cz, Christophe Leroy , erhard_f@mailbox.org, Chris Mason , Josef Bacik , David Sterba , Andrew Morton , linux-mm@kvack.org, stable@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2] btrfs: fix allocation of bitmap pages. In-Reply-To: <20190826164646.GX2752@twin.jikos.cz> References: <20190826153757.GW2752@twin.jikos.cz> <20190826164646.GX2752@twin.jikos.cz> Date: Tue, 27 Aug 2019 11:54:57 +1000 Message-ID: <871rx74bke.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Sterba writes: > On Mon, Aug 26, 2019 at 06:40:24PM +0300, Nikolay Borisov wrote: >> >> Link: https://bugzilla.kernel.org/show_bug.cgi?id=204371 >> >> Fixes: 69d2480456d1 ("btrfs: use copy_page for copying pages instead of memcpy") >> >> Cc: stable@vger.kernel.org >> >> Signed-off-by: Christophe Leroy >> >> --- >> >> v2: Using kmem_cache instead of get_zeroed_page() in order to benefit from SLAB debugging features like redzone. >> > >> > I'll take this version, thanks. Though I'm not happy about the allocator >> > behaviour. The kmem cache based fix can be backported independently to >> > 4.19 regardless of the SL*B fixes. >> > >> >> +extern struct kmem_cache *btrfs_bitmap_cachep; >> > >> > I've renamed the cache to btrfs_free_space_bitmap_cachep >> > >> > Reviewed-by: David Sterba >> >> Isn't this obsoleted by >> >> '[PATCH v2 0/2] guarantee natural alignment for kmalloc()' ? > > Yeah, but this would add maybe another whole dev cycle to merge and > release. The reporters of the bug seem to care enough to identify the > problem and propose the fix so I feel like adding the btrfs-specific fix > now is a little favor we can afford. > > The bug is reproduced on an architecture that's not widely tested so > from practical POV I think this adds more coverage which is desirable. Thanks. cheers