Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp88608lqo; Wed, 15 May 2024 08:28:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsi08uCflz2FlpxKkBVuifYOVY8qvtbel+uM/XdNP1vpRn+3vgLjVO4P0+FjIxLlu1uytrOyc0sIJiaeBEPfe65cjbUCMcyS1fCYL1mg== X-Google-Smtp-Source: AGHT+IF58C47Gp1nax8BcsLL/pESPU0TeL5aNX5kqOvTh4hZ+H+EAQQ7qToSBvYrp1m3TS4afzq4 X-Received: by 2002:a05:6102:41a9:b0:47b:b2f7:2006 with SMTP id ada2fe7eead31-48077dcd5a0mr16312131137.3.1715786889874; Wed, 15 May 2024 08:28:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715786889; cv=pass; d=google.com; s=arc-20160816; b=K6JLSkT1qOMWLR58qPKm2BeXjR9ZPV4Q9bCP3uT5TRNC5XSY3nn8OVlWzOIEVID56y ker0axFtfI645b38mvhUhvEf2fcI2zqVy97N2aXefISI4ob2BuiC6Zm+atgxcxfVdjIk 7XWScfLLCZXPfKMv7nTPa+LmLxJLa542hBox/SsOR7MwueLOV1nPBhmv74+kpkXFUsOx GDpjqog0NxmJudga/PMGFOep6iQRytxXSjcohR3F2b960SGiI/swSglrZ6lsyF1XDeFY y990jhFNB7KqqHK7NB7a8UFwQeR7nhidqTikhyLNk/cHvRQKOWCsN/uLmBdSAna8aEkg fWjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :reply-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=t134jEfnBj2jr8XB1K6GdCjxt6Dl3/mJ1ThDTNYqYBA=; fh=NUcGGXzy+CBiQ2PKQU8+tILruskFIdVJH6R+bApHLW4=; b=aHAIqWQ1s8W9NErOCfd2U2xyMelYzRr1/nwuTCxSNf6WHGpZ9mV6qS4InsaUtjDTyN NRBTsx5EV4NoiaYwiOzjGoLitbc6Ze8m3gpKg7zal30bePqVWt0yOspSfAqGWrHmfkeD JUVP0GVbf9BFi3Yn3pkr3ILHXUDuwCdVXHQVFu2jq+3ftfBNe/SHS80febIiD95LF+h5 Wms+aOyYj2MoSWw2wU/nwjeIOuJu4LA+XVDb70g/j1XTatWSm+0t37h/KyMRjLXob6k+ PVrS4FjygIXhgi6PiGN8/anxJA+Lftt4r0YQEWAv/ft69M9LfTk40pppiSum/8kmRdGJ igOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KH3fKfAn; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ommtw1sL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-180065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180065-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1e0cc1a2514c-7f8ff9ebae8si2462889241.9.2024.05.15.08.28.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KH3fKfAn; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ommtw1sL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-180065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180065-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D7001C20EEA for ; Wed, 15 May 2024 15:28:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB430155A56; Wed, 15 May 2024 15:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="KH3fKfAn"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="iasrH6Zg"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Ommtw1sL"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="4OBcsZ8q" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C067155752; Wed, 15 May 2024 15:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715786880; cv=none; b=UW2KwscL0dG6rl2DNLzb5V+m1zoWxFdmJOjcWnvVMtw+AMRrOlcdfQP4T7nUimwVMfyme7wF6lcvK1Q7EH6/WJqVN5wk+vkYPz47XnFPKW9Xd3t14J8SYQDpVHlZVM60c0kRVOf5VPQnVy/v8H/KB5x7rlz41GfN67f+cfK0wSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715786880; c=relaxed/simple; bh=g1lVgGrmRqhqbAzR7xXGynSAR7VP0f5zUHajn+I4RV4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KupwPDNhLf20osNAV1QZi9E8nhZAVwlVxI+atz9q1WhSW+PxfWMSSPFDVJOc6/d2a/rnw2btQasn+llxfgLo3Anr2pQYPj9/olmy/+QHVQMtlo30Z0QiAtugBev7ekdjCvK4+3tD63q1gbkPUsdN3NEK3sV43QxbxfM1uH24+CA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=KH3fKfAn; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=iasrH6Zg; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Ommtw1sL; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=4OBcsZ8q; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 778552084F; Wed, 15 May 2024 15:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1715786870; h=from:from:reply-to:reply-to: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=t134jEfnBj2jr8XB1K6GdCjxt6Dl3/mJ1ThDTNYqYBA=; b=KH3fKfAnXVyJoPnin9E/o6QmbEItEcNCtKtaezQ5hnwhjVSnWlUwoM+KeS72MPUgqkf9OM +CNTOY+ASyXP6cpbNc96QLaQavSX8TD+qLcjR2JCC7I1z5KY31/HnuuZB4HWVlmuw1GqS1 EIwgF+cN9ZbUJFl1iMG+OUq+Hma3vYI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1715786870; h=from:from:reply-to:reply-to: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=t134jEfnBj2jr8XB1K6GdCjxt6Dl3/mJ1ThDTNYqYBA=; b=iasrH6Zgyi4ZolvQOwIaRAiHF42kARzVvsB/UfuNE+5ycs+lcbkAlR/GGX33yYu5TVVhVg SPwZH+Nmfp/fOXDA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1715786869; h=from:from:reply-to:reply-to: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=t134jEfnBj2jr8XB1K6GdCjxt6Dl3/mJ1ThDTNYqYBA=; b=Ommtw1sLkW83hf03hNwsIDnKfwdFjjBbhxcr15mpZ0wi3/Xr5FsHJe/E3ZN8Xp0NSrJdz4 7V2COIVVie3coYMM/LDI2cFk9TbbWM6DOlaO5ba+IXaZ0wqitRBmHnKdXyZB1QFJUCqc9V zgRcUmd34YwcveEOt9+0Ys/21bstvbA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1715786869; h=from:from:reply-to:reply-to: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=t134jEfnBj2jr8XB1K6GdCjxt6Dl3/mJ1ThDTNYqYBA=; b=4OBcsZ8qOK+TuPtbKPczVjbx3NFXxGyvOP16yqldCMo8qmvCb6Jh8FsSRaQBOo3LGFxMIx kckznFfvESJETRBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 585C2136A8; Wed, 15 May 2024 15:27:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id xX7gFHXURGYcDwAAD6G6ig (envelope-from ); Wed, 15 May 2024 15:27:49 +0000 Date: Wed, 15 May 2024 17:27:47 +0200 From: David Sterba To: syzbot Cc: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [btrfs?] possible deadlock in join_transaction Message-ID: <20240515152747.GM4449@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <0000000000001ac5ea061835f021@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0000000000001ac5ea061835f021@google.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Flag: NO X-Spam-Score: 1.23 X-Spam-Level: * X-Spamd-Result: default: False [1.23 / 50.00]; SUSPICIOUS_RECIPS(1.50)[]; URI_HIDDEN_PATH(1.00)[https://syzkaller.appspot.com/x/.config?x=a450595960709c8]; NEURAL_HAM_LONG(-1.00)[-1.000]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; BAYES_HAM(-0.27)[73.86%]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_DN_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; RCVD_TLS_ALL(0.00)[]; TAGGED_RCPT(0.00)[f7a41568dd5872d6ad52]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_COUNT_TWO(0.00)[2]; SUBJECT_HAS_QUESTION(0.00)[] On Sat, May 11, 2024 at 04:23:20PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: dccb07f2914c Merge tag 'for-6.9-rc7-tag' of git://git.kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17ad432f180000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a450595960709c8 > dashboard link: https://syzkaller.appspot.com/bug?extid=f7a41568dd5872d6ad52 > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 > userspace arch: i386 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-dccb07f2.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/987455e5cf13/vmlinux-dccb07f2.xz > kernel image: https://storage.googleapis.com/syzbot-assets/327c390f753b/bzImage-dccb07f2.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+f7a41568dd5872d6ad52@syzkaller.appspotmail.com > > ====================================================== > WARNING: possible circular locking dependency detected > 6.9.0-rc7-syzkaller-00012-gdccb07f2914c #0 Not tainted > ------------------------------------------------------ > kswapd0/110 is trying to acquire lock: > ffff888000c76380 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x430/0xf40 fs/btrfs/transaction.c:290 > > but task is already holding lock: > ffff88805a236610 (sb_internal#2){.+.+}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x110/0x330 fs/btrfs/delayed-inode.c:1275 > > which lock already depends on the new lock. Looks valid, though I haven't went through all the traces, there are some usual suspects like shrinkers, evict, iput, and in two threads (#4 and #0). Also this is on 6.9, so the recent addition of shrinker for extent_map is not relevant here.