Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp913305rdb; Tue, 30 Jan 2024 02:22:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSdc8ljwmDNNNO6N45dE3dBm8O9iwHHyUGDqIxXlYl1AtTCC2ApZlqo8hRXDCPTcc72a9i X-Received: by 2002:a17:906:ad8a:b0:a35:c634:ee93 with SMTP id la10-20020a170906ad8a00b00a35c634ee93mr3439784ejb.68.1706610122460; Tue, 30 Jan 2024 02:22:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706610122; cv=pass; d=google.com; s=arc-20160816; b=WbGjyKbK9uNN6pn0Z1UtybKnnpeg0e3WBuquAfGdyGZl3YWTyeLMNcQNb12yCetocI 2cltfDCAtwvM1IcAhFiYYaVlu9DJeBz2DSdNXAZ/6fmnFPYTGlBCOHxMObPwvaVI0znc POYLq4GCC/NJ7GSOUQxKoAjPFh1QktLV1h0qab4tyxD4r4Ujd9e4dYCOXvbnpIdmp7eF e5M5AjMJrm37Lpr4fCecT+RP+DSyERQCjh4Kgr8Ip+k0dSUFYE1HMXYgla1U2pr6s1Ap qyCwNIs+l+6BblD7hz42OUwf9Vi7ZBcAZ1f3xUOerfJn7DiIj9KaPCIQknXodRhIimCg akgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=/vfDa5JQ/AdHkO4ZL51SEZ9o+lBjrfJ+IPVxYzinO1Y=; fh=ASkzh1hihoqljkDw3HfUYnTGfH8gTlTbXU5VCwnW0rg=; b=dp91fojmoZ+l4SblSd6FTcnOOquPgXgoWIh2cihgDvpEueZhx9x3u7RLStj02S92Sr oeurb/bg848HHH3tqlVQx1hZAzcGn015ohFbAkWeslbJTAuCebxejAiTHwop7G2jkq53 3BEyX4AVThWFklIvz/hzTwXZo4LTHDHa+Q2re7PETGGNSb1dkB0Yj3X3mbenfjEO2ueN 0G+eUI3p00sBO7NiaOmRbWl1vwgSe/yzSjML7BX0kl7phZGlPKimwN4IFAXceAoWG5TG 9Jnth5KtOAN5ELGKYG2g4vr24t/Ed7RrOEzGpl7VqO7VPNDMx4qPWWb7bQnnSmHbQsio /Eig== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-44376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d7-20020a170906344700b00a2cf514f465si4455275ejb.245.2024.01.30.02.22.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 02:22:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44376-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; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-44376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com 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 D92A11F2C4AE for ; Tue, 30 Jan 2024 10:21:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95CE5664C0; Tue, 30 Jan 2024 10:21:06 +0000 (UTC) Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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 5759E65BC9 for ; Tue, 30 Jan 2024 10:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610065; cv=none; b=mZVSV/mwxS91mU28Az/PRYBfwhdaGCpNCYNavrpJHgFyAGm275lpqoUk7RU/sf7pdbfQkB8xaQngYgNwjWtRQ7uWkaAaRX7D4Aj5sZQEwpL5TwA74GPo64qMkTHKqLs43qn7O864h5EAI14S/1ksXJ/mq/NQ4eF+Si+QtF2UPD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610065; c=relaxed/simple; bh=jlMithfBQN2il3NmDRMtmTVMqafgBvkA/hDL4DDaPOo=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=GpvXXMWP0cnzvcL2ZF2j1bdRDA+hynYDrVZsctfLOx08gXn13UpbuGpTKPJmrzpDu7kL9hLXqZnw8MfxBqiupGD2dezEhEmvh7Wq8SzBkHMV0yZoeSXEC18Ujk6Y7eZB61XBSbdQPlFcREQ+3Z0s7dcihT7rPdlasDvUsg8YzE8= 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.200 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-il1-f200.google.com with SMTP id e9e14a558f8ab-3637bd89021so13923915ab.1 for ; Tue, 30 Jan 2024 02:21:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706610063; x=1707214863; 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=/vfDa5JQ/AdHkO4ZL51SEZ9o+lBjrfJ+IPVxYzinO1Y=; b=kv/OL/TM+dH0986VTIIPuhX0CvbWIomABQo7aOT8ElyYhcX24T12VXCMIH3mwlU/fY XxtKVA2+/QlLW/0uQts+eySKEC2qDY5GqvbXQJsR51ZRejztJ5itNcKC67QVQIf7Ar5T LbC4a6aUsxRnajpQYyALKoQqQemr87gDUBjpEqJKCfGG0/5+SYjZA2jwKWpKnNEPz6U/ KhaG4qXFV0H5xqkR2ac4MRz7vioKWsg/o0Mz/6mArT6CeQnwK0VTzmyFFDE08A7WMG5k FmwC9j4NFDJt/wR0bspUS4RK4ZneG63dApoZDHxYhRMNs8YtJO1ChjDNKr8u8/mqlDmd oSRw== X-Gm-Message-State: AOJu0YxCaVLI0TxlANuAZffoku6n87WLw2KPpLf9/A0RqlWD/y8JJ+eR CogLPb5CpFetIIEALFNzeA+p27RePuywk/swejfNFiD4bE3kEZ3F4AYxGekb/7+32Y2PQNfWCQB kWTLN+Ka2v5rDxVoeaivC6QRS3ElLNSfMqC7sUutUqsW7/6pIPc2htlU= 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:6e02:1545:b0:363:9252:ed47 with SMTP id j5-20020a056e02154500b003639252ed47mr21521ilu.1.1706610063546; Tue, 30 Jan 2024 02:21:03 -0800 (PST) Date: Tue, 30 Jan 2024 02:21:03 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009ba03b0610271e68@google.com> Subject: Re: [syzbot] [block?] [trace?] INFO: task hung in blk_trace_remove (2) From: syzbot To: eadavis@qq.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: BUG: sleeping function called from invalid context in put_probe_ref BUG: sleeping function called from invalid context at kernel/locking/mutex.c:585 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 16, name: ksoftirqd/0 preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by ksoftirqd/0/16: #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_do_batch kernel/rcu/tree.c:2184 [inline] #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_core+0x7bd/0x1680 kernel/rcu/tree.c:2465 Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:394 [inline] [] __do_softirq+0x123/0x8de kernel/softirq.c:529 CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-syzkaller-g861c0981648f-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 __might_resched+0x3c3/0x5e0 kernel/sched/core.c:10176 __mutex_lock_common kernel/locking/mutex.c:585 [inline] __mutex_lock+0xe2/0x9d0 kernel/locking/mutex.c:752 put_probe_ref+0x14/0x1b0 kernel/trace/blktrace.c:350 blk_trace_rcu_free+0x71/0x90 kernel/trace/blktrace.c:394 rcu_do_batch kernel/rcu/tree.c:2190 [inline] rcu_core+0x819/0x1680 kernel/rcu/tree.c:2465 __do_softirq+0x21a/0x8de kernel/softirq.c:553 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x660/0xa10 kernel/smpboot.c:164 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 ============================= [ BUG: Invalid wait context ] 6.8.0-rc2-syzkaller-g861c0981648f-dirty #0 Tainted: G W ----------------------------- ksoftirqd/0/16 is trying to lock: ffffffff8d22fa28 (blk_probe_mutex){+.+.}-{3:3}, at: put_probe_ref+0x14/0x1b0 kernel/trace/blktrace.c:350 other info that might help us debug this: context-{2:2} 1 lock held by ksoftirqd/0/16: #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_do_batch kernel/rcu/tree.c:2184 [inline] #0: ffffffff8d1acac0 (rcu_callback){....}-{0:0}, at: rcu_core+0x7bd/0x1680 kernel/rcu/tree.c:2465 stack backtrace: CPU: 0 PID: 16 Comm: ksoftirqd/0 Tainted: G W 6.8.0-rc2-syzkaller-g861c0981648f-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_lock_invalid_wait_context kernel/locking/lockdep.c:4751 [inline] check_wait_context kernel/locking/lockdep.c:4821 [inline] __lock_acquire+0x821/0x3b30 kernel/locking/lockdep.c:5087 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1ae/0x520 kernel/locking/lockdep.c:5719 __mutex_lock_common kernel/locking/mutex.c:608 [inline] __mutex_lock+0x175/0x9d0 kernel/locking/mutex.c:752 put_probe_ref+0x14/0x1b0 kernel/trace/blktrace.c:350 blk_trace_rcu_free+0x71/0x90 kernel/trace/blktrace.c:394 rcu_do_batch kernel/rcu/tree.c:2190 [inline] rcu_core+0x819/0x1680 kernel/rcu/tree.c:2465 __do_softirq+0x21a/0x8de kernel/softirq.c:553 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x660/0xa10 kernel/smpboot.c:164 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 BUG: scheduling while atomic: ksoftirqd/0/16/0x00000101 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:394 [inline] [] __do_softirq+0x123/0x8de kernel/softirq.c:529 Tested on: commit: 861c0981 Merge tag 'jfs-6.8-rc3' of github.com:kleikam.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master console output: https://syzkaller.appspot.com/x/log.txt?x=121ea1fde80000 kernel config: https://syzkaller.appspot.com/x/.config?x=b168fa511db3ca08 dashboard link: https://syzkaller.appspot.com/bug?extid=2373f6be3e6de4f92562 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=13151c40180000