From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f79.google.com (mail-io1-f79.google.com [209.85.166.79]) (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 D84A9249EB for ; Thu, 5 Jun 2025 01:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.79 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749086429; cv=none; b=PRKMCkdtLoiOhvRWyUxH/Di8ymKzW+y0J/NAPmat8hjvFzvvH966VmC4ouJf1m9Nwjz9YgogdX2tJsyngf5+IA6qfh9ykazwWTIDuFqp4f9/yN/NzwAqveqYcN/I5sUbGxWKxhPR6h3t7no7ckAGb3Zk26SqXXH9Y1VACmvDlEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749086429; c=relaxed/simple; bh=d+xucXxPx3xfV0G2wxo/jwhxS7EXAOl+Z177Pznz07Y=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=teedIES2Am8aje2qfgutt1q8XJk98tuvXxB4vHt0yMQrBTArDh29hYUXCOeK5ZIGptwvJgNculxPBWEqwjqx9Ar2EoSf8tlUJ/TvUREX7WNFbxfTqE27s1NILW8P+1psgAyjCPRezCowdrClf/RuZpNShTDghATiPJVxWjgc25Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f79.google.com with SMTP id ca18e2360f4ac-86463467dddso36619439f.3 for ; Wed, 04 Jun 2025 18:20:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749086427; x=1749691227; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IdD7R5O0M+X7sO3b8kxAiJoxLP+EiFOyGu7pNuWNUnk=; b=fmmREQPouqIepoD37EjZV4Ep1ZQB+rsfEp/icLRVvsj0Fb1jfXqm2BeljQT+a693QJ xXbqftPskT9Ln2LI4KweTCLe1TsXw70gvlJf1mVFl1yVvaJlIq105wkX+gglgvZCwmGE 3C8iEVSJSOew963NDk3WMwvgepngCI29m/98RXJ6x7ZRQUQIs/eTVHhpERYLrZET1NjQ 6no5Zf1b8VSlNcX9X+08RjAViWP88S4cmHi8ur+XUQfaMiqZtyUca5ri/H8IPPmPwpYl 4EAw2c/zpqZ545/3yzg8GebM+cqFRFKTgfNlMi9Ez94F9oIlb00duR467Hcvyjs3OeQP MYCA== X-Forwarded-Encrypted: i=1; AJvYcCX13s84YgtHUA2mOMN3oVGgdzhcCerNrYdIhDGRv2XAuMd4CXZcxVcpkywQe0e4W1ha45BxRAZoZlhdxH7SoA==@vger.kernel.org X-Gm-Message-State: AOJu0YyWu5Sykrx2q7akj6dokrt5zmZSimx05uqV6DC3RQ8cakG/mQZl 63+rL7MwjXMpBmDN8Uzo9ZnE4fy7uhbNNtUHZQZ4MDl2TSoTObxPp44FgWi2oK0NBg2VQXLQOjt 9np9g53oHLXGUkAw/NhbJgn/zw96PUUQoBzNtnIu25+6UY+FCpJBSZsBTVng= X-Google-Smtp-Source: AGHT+IFN1khhK/RpvjQTqsh/pUsx5ffpB7iH61Acp/k77rrsyK6dwxXlif1jXs3Kypd6O/KAGvKDYhnUKTBHCsCnu43D66auaCg6 Precedence: bulk X-Mailing-List: linux-bcachefs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2169:b0:3dd:a13c:b663 with SMTP id e9e14a558f8ab-3ddbee3d73dmr51177315ab.14.1749086426900; Wed, 04 Jun 2025 18:20:26 -0700 (PDT) Date: Wed, 04 Jun 2025 18:20:26 -0700 In-Reply-To: <6813ed5a.050a0220.53db9.0002.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6840f0da.a00a0220.d4325.0011.GAE@google.com> Subject: Re: [syzbot] [bcachefs?] WARNING in bch2_writepage_io_done (3) From: syzbot To: kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: d7fa1af5b33e Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=15e45282580000 kernel config: https://syzkaller.appspot.com/x/.config?x=89c13de706fbf07a dashboard link: https://syzkaller.appspot.com/bug?extid=0652cd10dc5ea0a2eb6f compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d0cc0c580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=163a6570580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/da97ad659b2c/disk-d7fa1af5.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/659e123552a8/vmlinux-d7fa1af5.xz kernel image: https://storage.googleapis.com/syzbot-assets/6ec5dbf4643e/Image-d7fa1af5.gz.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/f4a821c168d9/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0652cd10dc5ea0a2eb6f@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6501 at fs/bcachefs/fs-io-buffered.c:464 bch2_writepage_io_done+0x6fc/0x7b4 fs/bcachefs/fs-io-buffered.c:464 Modules linked in: CPU: 1 UID: 0 PID: 6501 Comm: kworker/u9:2 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: bcachefs bch2_write_point_do_index_updates pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_writepage_io_done+0x6fc/0x7b4 fs/bcachefs/fs-io-buffered.c:464 lr : bch2_writepage_io_done+0x6fc/0x7b4 fs/bcachefs/fs-io-buffered.c:464 sp : ffff8000a4b178d0 x29: ffff8000a4b17940 x28: dfff800000000000 x27: 0000000000000003 x26: ffff0000c9b8d7c8 x25: ffff0000c9b8d7c8 x24: ffff0000ddb80000 x23: ffff0000c9b8d920 x22: 0000000000000008 x21: ffff0000c9b8d940 x20: 1fffe00019371b24 x19: 0000000000000c00 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff80008ad27e48 x15: 0000000000000006 x14: 1ffff00014962f21 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700014962f27 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d7f55b80 x7 : 0000000000000000 x6 : 0000000000000000 x5 : ffff80009308cef8 x4 : 0000000000000008 x3 : 0000000000000020 x2 : 0000000000000008 x1 : 0000000000000008 x0 : 0000000000000000 Call trace: bch2_writepage_io_done+0x6fc/0x7b4 fs/bcachefs/fs-io-buffered.c:464 (P) bch2_write_done+0x2a4/0x914 fs/bcachefs/io_write.c:542 bch2_write_point_do_index_updates+0x7c/0x4f0 fs/bcachefs/io_write.c:708 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 irq event stamp: 824 hardirqs last enabled at (823): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (823): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (824): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (0): [] copy_process+0x112c/0x318c kernel/fork.c:2375 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]--- --- 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.