Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17062541rwd; Mon, 26 Jun 2023 20:15:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zlnjr7wqY85ClKPz+jxTkkztCkxSRy5aH3/op0BnVO73zupVttLwaG70xp/XaS/Lpv1Ky X-Received: by 2002:a05:6870:c806:b0:1a3:16af:56e2 with SMTP id ee6-20020a056870c80600b001a316af56e2mr25021233oab.19.1687835754240; Mon, 26 Jun 2023 20:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687835754; cv=none; d=google.com; s=arc-20160816; b=RNDpbGclplC8W9KMybsL4+uAE9T5G2f43Z1IN9pbex0c8JHdXDIuKCfdJIlUhdHB9K eHmw0eIpE1td4cLTd8iU0NFjdZjgsATIc5Uk6Oxnfuupx/3rs+twDEaoFRvTnevn35at pUCLo16kOoqcTSWXBVLsxdwaw1iekwzNNG0ufYWnqnfePGcvfMGeMt2tVTHm0/TTcHXv kKTCdBApwYu+pNv2DpteOlZ1Ub+uLUvU1AxoceJrNBqFYWAUIvNLnWdSgtskBX2uBdiq It97TrwFVt7wTzgts7HQnOffC9YIF+ibSkpso7HX75ZH2keZyISZcnvLO7opJUq5GyXX 6T2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=vmhUBX2ZB02c55g8bPJJRmeg86fh2l+wtqC8zBugzrE=; fh=/s47CaCEDhlW7/xNltsO0ZLgxGiv87pyxqiGY+c1ycs=; b=xlcCRHm6lywqTMpRUccoVyh/SeFHikz+bRBoswR86BVbshnkSd0CjSvBISkn2kxuYh 3SgK1fKZuBnqciyBvc+6RN3pkqnQZamtMu72iZQqWHxwe/eyHWe2i/Ta3JIvJvPrFKN5 EURAsIJhUfgVWWxdJipjgv1DMxXyPdQJHJd8dcCBuQqKzsL5LGumUI8Q973wjDzGcrig mW3Hr12H4xNzXliFqqcu4jSWiT1UhomHIJEXNL2XrxI3KQBWc7eE27pqMcxk7OpuxJro xS/assyq9UJXdA684VZY8gBANNyQoNBZwzGaOIXYU7/PImw1viNdVWHmeWvXmV6xu9k5 Y+QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QK0+2kTQ; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y191-20020a638ac8000000b005538cf8f180si6499394pgd.413.2023.06.26.20.15.42; Mon, 26 Jun 2023 20:15:54 -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=@linux.dev header.s=key1 header.b=QK0+2kTQ; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjF0DK3 (ORCPT + 99 others); Mon, 26 Jun 2023 23:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjF0DK1 (ORCPT ); Mon, 26 Jun 2023 23:10:27 -0400 Received: from out-63.mta0.migadu.com (out-63.mta0.migadu.com [91.218.175.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31C87109 for ; Mon, 26 Jun 2023 20:10:23 -0700 (PDT) Date: Mon, 26 Jun 2023 23:10:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687835422; 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: in-reply-to:in-reply-to:references:references; bh=vmhUBX2ZB02c55g8bPJJRmeg86fh2l+wtqC8zBugzrE=; b=QK0+2kTQHocajlf/RthIsGxma3rgM28r8KUUo1kPstKGHYeKX6ExSJ4iqYg4auuCq71g71 derzIg/bc/Lw6y1rucZSGUvx487a/eBvu7rXXSAjSCBV5K/iijPqmLW/7IYLplpGtbLb/f r62DnMdF2h3Agxa9pN39vI5AG9k+nOM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Jens Axboe Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Christoph Hellwig Subject: Re: [GIT PULL] bcachefs Message-ID: <20230627031017.en6rkwih7ygbfibc@moria.home.lan> References: <20230626214656.hcp4puionmtoloat@moria.home.lan> <20230627000635.43azxbkd2uf3tu6b@moria.home.lan> <91e9064b-84e3-1712-0395-b017c7c4a964@kernel.dk> <20230627020525.2vqnt2pxhtgiddyv@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On Mon, Jun 26, 2023 at 08:59:13PM -0600, Jens Axboe wrote: > On 6/26/23 8:05?PM, Kent Overstreet wrote: > > On Mon, Jun 26, 2023 at 07:13:54PM -0600, Jens Axboe wrote: > >> Doesn't reproduce for me with XFS. The above ktest doesn't work for me > >> either: > > > > It just popped for me on xfs, but it took half an hour or so of looping > > vs. 30 seconds on bcachefs. > > OK, I'll try and leave it running overnight and see if I can get it to > trigger. > > >> ~/git/ktest/build-test-kernel run -ILP ~/git/ktest/tests/bcachefs/xfstests.ktest/generic/388 > >> realpath: /home/axboe/git/ktest/tests/bcachefs/xfstests.ktest/generic/388: Not a directory > >> Error 1 at /home/axboe/git/ktest/build-test-kernel 262 from: ktest_test=$(realpath "$1"), exiting > >> > >> and I suspect that should've been a space, but: > >> > >> ~/git/ktest/build-test-kernel run -ILP ~/git/ktest/tests/bcachefs/xfstests.ktest generic/388 > >> Running test xfstests.ktest on m1max at /home/axboe/git/linux-block > >> No tests found > >> TEST FAILED > > > > doh, this is because we just changed it to pick up the list of tests > > from the test lists that fstests generated. > > > > Go into ktest/tests/xfstests and run make and it'll work. (Doesn't > > matter if make fails due to missing libraries, it'll re-run make inside > > the VM where the dependencies will all be available). > > OK, I'll try that as well. > > BTW, ran into these too. Didn't do anything, it was just a mount and > umount trying to get the test going: > > axboe@m1max-kvm ~/g/k/t/xfstests> sudo cat /sys/kernel/debug/kmemleak > unreferenced object 0xffff000201a5e000 (size 1024): > comm "bch-copygc/nvme", pid 11362, jiffies 4295015821 (age 6863.776s) > hex dump (first 32 bytes): > 40 00 00 00 00 00 00 00 62 aa e8 ee 00 00 00 00 @.......b....... > 10 e0 a5 01 02 00 ff ff 10 e0 a5 01 02 00 ff ff ................ > backtrace: > [<000000002668da56>] slab_post_alloc_hook.isra.0+0xb4/0xbc > [<000000006b0b510c>] __kmem_cache_alloc_node+0xd0/0x178 > [<00000000041cfdde>] __kmalloc_node+0xac/0xd4 > [<00000000e1556d66>] kvmalloc_node+0x54/0xe4 > [<00000000df620afb>] bucket_table_alloc.isra.0+0x44/0x120 > [<000000005d44ce16>] rhashtable_init+0x148/0x1ac > [<00000000fdca7475>] bch2_copygc_thread+0x50/0x2e4 > [<00000000ea76e08f>] kthread+0xc4/0xd4 > [<0000000068107ad6>] ret_from_fork+0x10/0x20 > unreferenced object 0xffff000200eed800 (size 1024): > comm "bch-copygc/nvme", pid 13934, jiffies 4295086192 (age 6582.296s) > hex dump (first 32 bytes): > 40 00 00 00 00 00 00 00 e8 a5 2a bb 00 00 00 00 @.........*..... > 10 d8 ee 00 02 00 ff ff 10 d8 ee 00 02 00 ff ff ................ > backtrace: > [<000000002668da56>] slab_post_alloc_hook.isra.0+0xb4/0xbc > [<000000006b0b510c>] __kmem_cache_alloc_node+0xd0/0x178 > [<00000000041cfdde>] __kmalloc_node+0xac/0xd4 > [<00000000e1556d66>] kvmalloc_node+0x54/0xe4 > [<00000000df620afb>] bucket_table_alloc.isra.0+0x44/0x120 > [<000000005d44ce16>] rhashtable_init+0x148/0x1ac > [<00000000fdca7475>] bch2_copygc_thread+0x50/0x2e4 > [<00000000ea76e08f>] kthread+0xc4/0xd4 > [<0000000068107ad6>] ret_from_fork+0x10/0x20 yup, missing a rhashtable_destroy() call, I'll do some kmemleak testing