Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp663148lqp; Wed, 22 May 2024 16:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbsCk3wzHMx/YZJgS5Lygaaf165y2YnUuhBZLZBMKkVicairNBk5lcQgOJLbykEShMUp1eCuOlgW+Aw+csK50qX7gPd/KjXoxI6lmalA== X-Google-Smtp-Source: AGHT+IHRF6dc1MnSTgZ5Odsv+rjSypdxvRVt8v2DeO/ykUMIHYt3mXCBwgE+NxKnSn6ZhBYl6xb3 X-Received: by 2002:a50:c35c:0:b0:573:4f09:793e with SMTP id 4fb4d7f45d1cf-57843c6f402mr454363a12.1.1716420638265; Wed, 22 May 2024 16:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716420638; cv=pass; d=google.com; s=arc-20160816; b=Kl/zGeU7uQqrgKFs2Y5z4BqTzJrsHi9+dEv1+VI/YsGNF20N0ocZFCU9SmVjfOjM7e IEFus9+BSfzjSsS8Iuv820VtJbfLZj1myVMaiZnairjlWLy1JZv6JVdfEXbQJl6+6ZOd 8MOuk0umb3zFttStn8OCjeQcySn0lKTFxllKt2bsBJLb74ngoOdor5w4WbBkmxppBVmr KEXlPceA2U1MBhPPYb86AaUsoVss7t1RyGQGLd6a5JvFvrEvGwx7H2q35RLwJXTZ2EIu o3T1fduwfughAEqTpRq3igVRshynYXapwO8IikvwCmsgRKiu8ILSqOqExLNJY+l1JzbD 3K7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nPuXLIY7XZzSLBQnb52zbrT42R3ZWYR0floV/T1S5ic=; fh=XcFSO1uMdHMz9pIZY/D3v1MXeAM8C1NR8Hf2/7xPTBA=; b=DirF1DsxT0bZrnZIdqA7b3fNg1BlLzX+h/nIp3JbBU5CMIbKLhUA//n2/S8OAVgSDK IBWBmQpG/i9XSM+DWEWBfjib6GWW+n5CcymIiVff+2w/0pOpm1njGBqU49sXd1009d7H yPUiU6mdU4VCESeIbR4ddzRBlmem6zCMa4mMuwbtC3DxHAjcgOeRWBHrgtj9KgsOigw+ dVLHYLpA0DwVwV10IkXc1NZujmgzIzgSzE7UuCVmzyzSHw/LljPbjEqbmNja2w539ANJ /zEb9XGhg7jXfmS/qwGg5HSYqvreEaIi7/cjxC60PGwRu9BQ5dOF6aeWP13tdfbwly25 0wNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Za3N3c3Q; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-186817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecb9f549si9735327a12.277.2024.05.22.16.30.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Za3N3c3Q; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-186817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C2AB51F22423 for ; Wed, 22 May 2024 23:30:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64B4714C58E; Wed, 22 May 2024 23:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Za3N3c3Q" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DD198060B for ; Wed, 22 May 2024 23:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716420631; cv=none; b=A743rbqn9Q0czaliyaHO1DNW/wdhBTytHBnA60qzmEv7Ufz5zdUDRBZKVLDXah+DR/ux8Gn2rD5AGuPIAYlmofvtaXxl2cXKFvuSLq48ELZqelr2kR/zfDn2XNn6Hsfoi8R7ELk3px0u/egVZOInZ8/+H7VXq7VSDgQVBvCtYSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716420631; c=relaxed/simple; bh=XLd3SbLQ0lWIQ0tSS2Op5+yhUjRp7AmE74qu5m+PuKA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DX4hJsWVvAZK/UDuKk/YcIgdasy6JQWoWT4nIOTtCQr+TA5viFU4E5vHsbEwxuJpTOgDEZOCb36OcFWvXUCU+1bTnJSjAs0yEqcqUFsleb34WnumwO+ZUtVf0dC+d3HQBO4k9QJ6jojmstUBDnUKvQG25z27kLWNaR62nb45b9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Za3N3c3Q; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: syzbot+4e41a25632658c77b441@syzkaller.appspotmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716420625; 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=nPuXLIY7XZzSLBQnb52zbrT42R3ZWYR0floV/T1S5ic=; b=Za3N3c3QN2KhMhE/LKJFq6+QvYLHjkR4lF/peSK3CGsNNibzsBsNoF5NtkuSChWjj6b1N5 LETyXT8hmXTgBD5MEpYi7JTOVvX4dJYn97SG1ilZezpuFddnLSzXSrOUhXdtyAM10Fx6xV lhL9iFGUDWVj6FPlf8JCyorqgguKI1w= X-Envelope-To: bfoster@redhat.com X-Envelope-To: linux-bcachefs@vger.kernel.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: syzkaller-bugs@googlegroups.com X-Envelope-To: dvyukov@google.com Date: Wed, 22 May 2024 19:30:20 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: syzbot Cc: bfoster@redhat.com, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Dmitry Vyukov Subject: Re: [syzbot] [bcachefs?] WARNING in bch2_prt_printf Message-ID: References: <00000000000090ebe40618212a25@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: <00000000000090ebe40618212a25@google.com> X-Migadu-Flow: FLOW_OUT Dmitry, I can't do anything with this one because you're using panic on warn; if it had finished printing the buffer I could see what went haywire. Any chance you could change syzbot to just check for warnings/oopses after the test finishes, like fstests does it? On Fri, May 10, 2024 at 03:36:27PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 75fa778d74b7 Add linux-next specific files for 20240510 > git tree: linux-next > console+strace: https://syzkaller.appspot.com/x/log.txt?x=13cb8b04980000 > kernel config: https://syzkaller.appspot.com/x/.config?x=ccdd3ebd6715749a > dashboard link: https://syzkaller.appspot.com/bug?extid=4e41a25632658c77b441 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15f5ec3f180000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=126cdfc0980000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/ad9391835bcf/disk-75fa778d.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/d827b3da9a26/vmlinux-75fa778d.xz > kernel image: https://storage.googleapis.com/syzbot-assets/8f32f0182388/bzImage-75fa778d.xz > mounted in repro: https://storage.googleapis.com/syzbot-assets/244f301e9090/mount_0.gz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+4e41a25632658c77b441@syzkaller.appspotmail.com > > loop0: detected capacity change from 0 to 32768 > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 5100 at mm/page_alloc.c:4672 __alloc_pages_noprof+0x36a/0x6c0 mm/page_alloc.c:4672 > Modules linked in: > CPU: 1 PID: 5100 Comm: syz-executor185 Not tainted 6.9.0-rc7-next-20240510-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 > RIP: 0010:__alloc_pages_noprof+0x36a/0x6c0 mm/page_alloc.c:4672 > Code: a9 00 00 08 00 0f 85 12 01 00 00 44 89 e9 81 e1 7f ff ff ff a9 00 00 04 00 44 0f 45 e9 e9 02 01 00 00 c6 05 c3 c3 a8 0d 01 90 <0f> 0b 90 83 fb 0a 0f 86 6c fd ff ff 45 31 ed 48 c7 44 24 20 0e 36 > RSP: 0018:ffffc90002dd6940 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: 000000000000000b RCX: 0000000000000000 > RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90002dd69c8 > RBP: ffffc90002dd6a48 R08: ffffc90002dd69c7 R09: 0000000000000000 > R10: ffffc90002dd69a0 R11: fffff520005bad39 R12: 1ffff920005bad30 > R13: 0000000000040cc0 R14: dffffc0000000000 R15: 1ffff920005bad2c > FS: 0000555573a66380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 000055f740571f40 CR3: 0000000022430000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] > alloc_pages_node_noprof include/linux/gfp.h:296 [inline] > __kmalloc_large_node+0x91/0x1f0 mm/slub.c:4066 > __do_kmalloc_node mm/slub.c:4109 [inline] > kmalloc_node_track_caller_noprof+0x2d2/0x450 mm/slub.c:4141 > __do_krealloc mm/slab_common.c:1183 [inline] > krealloc_noprof+0x7d/0x120 mm/slab_common.c:1216 > bch2_printbuf_make_room fs/bcachefs/printbuf.c:52 [inline] > bch2_prt_printf+0x41e/0xa10 fs/bcachefs/printbuf.c:179 > bch2_bkey_to_text+0x124/0x330 fs/bcachefs/bkey_methods.c:288 > bch2_bkey_val_to_text+0x35/0x160 fs/bcachefs/bkey_methods.c:312 > journal_entry_btree_keys_to_text+0x1d7/0x390 fs/bcachefs/journal_io.c:437 > bch2_sb_clean_to_text+0x138/0x240 fs/bcachefs/sb-clean.c:313 > bch2_sb_field_validate+0x201/0x2e0 fs/bcachefs/super-io.c:1234 > bch2_sb_validate+0xa69/0xe00 fs/bcachefs/super-io.c:468 > __bch2_read_super+0xc9a/0x1460 fs/bcachefs/super-io.c:822 > bch2_fs_open+0x246/0xdf0 fs/bcachefs/super.c:2070 > bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1917 > legacy_get_tree+0xee/0x190 fs/fs_context.c:662 > vfs_get_tree+0x90/0x2a0 fs/super.c:1780 > do_new_mount+0x2be/0xb40 fs/namespace.c:3352 > do_mount fs/namespace.c:3692 [inline] > __do_sys_mount fs/namespace.c:3898 [inline] > __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 > do_syscall_x64 arch/x86/entry/common.c:52 [inline] > do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 > entry_SYSCALL_64_after_hwframe+0x77/0x7f > RIP: 0033:0x7fce02323b3a > Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007fffc866b068 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 > RAX: ffffffffffffffda RBX: 00007fffc866b080 RCX: 00007fce02323b3a > RDX: 0000000020000000 RSI: 0000000020011a40 RDI: 00007fffc866b080 > RBP: 0000000000000004 R08: 00007fffc866b0c0 R09: 00000000000119f4 > R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 > R13: 00007fffc866b0c0 R14: 0000000000000003 R15: 0000000001000000 > > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the report is already addressed, let syzbot know by replying with: > #syz fix: exact-commit-title > > If you want syzbot to run the reproducer, reply with: > #syz test: git://repo/address.git branch-or-commit-hash > If you attach or paste a git patch, syzbot will apply it before testing. > > If you want to overwrite report's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the report is a duplicate of another one, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup