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 50E372356CF for ; Mon, 4 Aug 2025 16:28:32 +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=1754324913; cv=none; b=Civ5G9L7CHgHb6v9nPK0sP4B8qqme30w6KtTHNAlszqbMKyMlPho23aF05FTLCJ8Pn2wQUzK/RWWCYFwbvDCALmHA6ufPsJL8KgVypT8DSF6fQ/zospF+y5xR8UEp0Exns7mLpFdLHrQgCtZcxPvkL3kx1/ILuot7Gl2ELFZfiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754324913; c=relaxed/simple; bh=bqUrQkX1+lLsk9vJJ/j9wJoBXsBggMGZpodKwZ2Sfwc=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=muGtb3ZbC9g/U4SoRvVA5/JCB5Sz92x8z/5jb+XjDSZlEF729s72dqCNuEM1xxtrzP9AsZN0uGDaluPM79xZ5thoDD7oFQ+Mz96GoXeTh4Ne9Nd6qqBgWmETKQO2cCAbpC3klAGD5JJ/SKu4lBW3jVetHZXUDzuJFPp4S+/5em0= 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-8817e84e92aso97979639f.2 for ; Mon, 04 Aug 2025 09:28:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754324911; x=1754929711; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/N8dsWnLrIdTjV8pp4G03KsPmUmFCpDXD/E9F4O7TeE=; b=JT9ojNiCSDz27Trcoidpf4qAPxh4H4c35uHrSc8+dcIa89l3vfTV4SsDYGvMz1dYxB re8YbQgeWj8gOh7Spx3xJjeyAUO9iNaHeHmJ3uYRBYBag/oA3GgXO8ZXWv0OjdH8svjE sCMZPUW+CjjvvhnEP7rgT/kY/i09liowzdIwg7R3Qeq1T70AM4iVVy1xDNqL3VATXKuY g7qHYbYu8FHXlYpHD1OrBoOy2ml4fllhhzXiBA1Xgt5ikZmmGK2vzX4LM79zz6ZwFU8N 0Bkhm0Huo2YbrNUG+MNYVN/HmFJufmmmbf5S4Wiqs0/hLTi9n1HFrol9XPl5aSDvVWwx 8l6Q== X-Gm-Message-State: AOJu0Yww/umjpNdSPXiQYebmI5WIS8p3zk7FppL1GpFpDaSIzRvqC4lW eOukFDFnv1W4bDasgNmeIkp+43s/eMDRYbjC75vMSDR6pWkvZCFhpivrFCyUBpqlnVthW46hgDL 8xUifHwaQVW9FHWCecwVwFvnhbSclS6LXRBm3Cp9CaYFhIFvh2MFm4Ree3RYlRg== X-Google-Smtp-Source: AGHT+IGeNLJLgFud6/LGiHWw1plpg4GnmIcYPGZNMlDNkHs+oY/NT3HTBKAk/cX0ArB1DBS5uBRjRH1Si1+BRYsk9kjIQ1u1JOcI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6602:2c0e:b0:879:66fe:8d1e with SMTP id ca18e2360f4ac-88168352f76mr1682656739f.8.1754324911486; Mon, 04 Aug 2025 09:28:31 -0700 (PDT) Date: Mon, 04 Aug 2025 09:28:31 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6890dfaf.050a0220.7f033.000c.GAE@google.com> Subject: [syzbot] [raid?] WARNING: refcount bug in trace_suspend_resume From: syzbot To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, syzkaller-bugs@googlegroups.com, yukuai3@huawei.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 186f3edfdd41 Merge tag 'pinctrl-v6.17-1' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=173f0042580000 kernel config: https://syzkaller.appspot.com/x/.config?x=2830738f4a5181eb dashboard link: https://syzkaller.appspot.com/bug?extid=60bcc1e0853c7179dfc8 compiler: arm-linux-gnueabi-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: arm syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1748f834580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14c8fcf0580000 Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/98a89b9f34e4/non_bootable_disk-186f3edf.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/85e73a28f18d/vmlinux-186f3edf.xz kernel image: https://storage.googleapis.com/syzbot-assets/1cb9a6c732ea/zImage-186f3edf.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+60bcc1e0853c7179dfc8@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3065 at lib/refcount.c:28 refcount_warn_saturate+0x13c/0x174 lib/refcount.c:28 refcount_t: underflow; use-after-free. Modules linked in: Kernel panic - not syncing: kernel: panic_on_warn set ... CPU: 0 UID: 0 PID: 3065 Comm: kworker/0:3 Not tainted 6.16.0-syzkaller #0 PREEMPT Hardware name: ARM-Versatile Express Workqueue: md_misc mddev_delayed_delete Call trace: [<80201a24>] (dump_backtrace) from [<80201b20>] (show_stack+0x18/0x1c arch/arm/kernel/traps.c:257) r7:00000000 r6:8281f77c r5:00000000 r4:82260f18 [<80201b08>] (show_stack) from [<8021fbf4>] (__dump_stack lib/dump_stack.c:94 [inline]) [<80201b08>] (show_stack) from [<8021fbf4>] (dump_stack_lvl+0x54/0x7c lib/dump_stack.c:120) [<8021fba0>] (dump_stack_lvl) from [<8021fc34>] (dump_stack+0x18/0x1c lib/dump_stack.c:129) r5:00000000 r4:82a77d18 [<8021fc1c>] (dump_stack) from [<80202624>] (vpanic+0x10c/0x360 kernel/panic.c:440) [<80202518>] (vpanic) from [<802028ac>] (trace_suspend_resume+0x0/0xd8 kernel/panic.c:574) r7:808bb0e8 [<80202878>] (panic) from [<802548cc>] (check_panic_on_warn kernel/panic.c:333 [inline]) [<80202878>] (panic) from [<802548cc>] (get_taint+0x0/0x1c kernel/panic.c:328) r3:8280c684 r2:00000001 r1:822479f0 r0:8224f3b8 [<80254858>] (check_panic_on_warn) from [<80254a30>] (__warn+0x80/0x188 kernel/panic.c:845) [<802549b0>] (__warn) from [<80254d20>] (warn_slowpath_fmt+0x1e8/0x1f4 kernel/panic.c:880) r8:00000009 r7:822b98e4 r6:ec1cde54 r5:848eec00 r4:00000000 [<80254b3c>] (warn_slowpath_fmt) from [<808bb0e8>] (refcount_warn_saturate+0x13c/0x174 lib/refcount.c:28) r10:83811e70 r9:8339f225 r8:848eec00 r7:dddced40 r6:8339f200 r5:84ccfa1c r4:84ccf850 [<808bafac>] (refcount_warn_saturate) from [<81a11768>] (__refcount_sub_and_test include/linux/refcount.h:400 [inline]) [<808bafac>] (refcount_warn_saturate) from [<81a11768>] (__refcount_dec_and_test include/linux/refcount.h:432 [inline]) [<808bafac>] (refcount_warn_saturate) from [<81a11768>] (refcount_dec_and_test include/linux/refcount.h:450 [inline]) [<808bafac>] (refcount_warn_saturate) from [<81a11768>] (kref_put include/linux/kref.h:64 [inline]) [<808bafac>] (refcount_warn_saturate) from [<81a11768>] (kobject_put+0x158/0x1f4 lib/kobject.c:737) [<81a11610>] (kobject_put) from [<81169718>] (mddev_delayed_delete+0x14/0x18 drivers/md/md.c:5893) r7:dddced40 r6:8339f200 r5:84ccfa1c r4:84b39d00 [<81169704>] (mddev_delayed_delete) from [<8027a32c>] (process_one_work+0x1b4/0x4f4 kernel/workqueue.c:3236) [<8027a178>] (process_one_work) from [<8027af74>] (process_scheduled_works kernel/workqueue.c:3319 [inline]) [<8027a178>] (process_one_work) from [<8027af74>] (worker_thread+0x1fc/0x3d8 kernel/workqueue.c:3400) r10:61c88647 r9:848eec00 r8:84b39d2c r7:82804d40 r6:dddced40 r5:dddced60 r4:84b39d00 [<8027ad78>] (worker_thread) from [<80281f5c>] (kthread+0x12c/0x280 kernel/kthread.c:464) r10:00000000 r9:84b39d00 r8:8027ad78 r7:df83de60 r6:84ae1980 r5:848eec00 r4:00000001 [<80281e30>] (kthread) from [<80200114>] (ret_from_fork+0x14/0x20 arch/arm/kernel/entry-common.S:137) Exception stack(0xec1cdfb0 to 0xec1cdff8) dfa0: 00000000 00000000 00000000 00000000 dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:80281e30 r4:84b57fc0 Rebooting in 86400 seconds.. --- 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