Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3370164rdb; Tue, 6 Feb 2024 16:08:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFP8B0X4uKRCxJBy9ipP059lvkvTh0E09TmsEceW7XYqdJPdPcPOEHYdFpNOnATtipSnP+ X-Received: by 2002:a17:90a:6f23:b0:295:e149:a0d8 with SMTP id d32-20020a17090a6f2300b00295e149a0d8mr1188697pjk.29.1707264484312; Tue, 06 Feb 2024 16:08:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707264484; cv=pass; d=google.com; s=arc-20160816; b=msYn5c/fR4Pv3lflpG8AHpzIb0kcr5Bx1IYeJWYDL77BLKDkuG1LVzCXxCIlZiwSdG g2eQp0Y/dml5eoj7fIgt2qMgPxDZy6U7O46VOKuXlvMKKh6OHNeiN1y90ubysn8qXoK9 AUBOQnjA89QDDsPVJ83Z1RgeIKghaoa781g7r2yrQLA/p7yNQ0bFhF8r+R2xrbcA5SFg /91aiTbFqZlrT38E6hphRIi4wXh6jQoHVC5IU3CtuxkTlWVT/O4J6eYLuUQiu5S2Bl+c tCcGXFVt7rc8aSnBukUmu+M3v5iP+I7CXS+2bWMvZPICzIzsE5yyrr0qSDtAnLlLRg+u /JvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=OEF1tKQoR2J3woTag73sOwwH7baxXxEr34WqP9038pg=; fh=Bi4GlBPN7kcQOH1RYDZurHhvZO9+JjpGm682YZfj348=; b=o3wTSl087MBJXxgaz1EwYmmCDu40cwQrB+6VSNudSCEGmNKbJ09uhyxLwvVr4Fvru/ 6Vk4iJrZ5f05LHBIc09Wn1XFQVaLf9Ij1ExFqJK13Wl51xkUh+d1pVeVPP3MqpVb1aYf ZPWogj6xGDiBq1J15rNAVxqiqlkPMH0EmqnZUQX1ixqo9kZvG9bu3TVj51sFYRkj1FvO 5vGMhG7LlCgDv3aaCGIFlF1sWLK5a1jx7kduNWeimKLGeTALKJdpIaXu9UoiUJ96R64G aliBvatwIp/odnmJ5x5Uildez1sr74u2w1LUk5FMwxkNQNRHTFful+/q6gNmb8JIRLQ/ 1/3g==; dara=google.com 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-55751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com X-Forwarded-Encrypted: i=2; AJvYcCWWzhNehjoKbKNgW8pSHT9WfLdIO/6IfNKS1bpH2cIzJq4GiAtXoYHFcUjHugat0qC9w3X3xfYkqdHUA6C4ucoVbURX+GoRHhwvdY2sjg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ne15-20020a17090b374f00b00290260542c3si1897298pjb.184.2024.02.06.16.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 16:08:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-55751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55751-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 98247B24614 for ; Wed, 7 Feb 2024 00:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75F6C3FEC; Wed, 7 Feb 2024 00:07:32 +0000 (UTC) Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (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 154EE28E8 for ; Wed, 7 Feb 2024 00:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707264451; cv=none; b=R0RbQkySTkwxVZ9hR9SyjUGS6SaVitGsb+SKGdwk3/5ByGt5RdpnnFKxQp/8MPiDy/SCULU5tJPB5/Oqdo+5wYz45zMwsYCSHxKdauSqcybM933cb9esDL1h1sPQLbgq9yMRl9aWevB+W+5ZjKPKWcZ8FvMU1GNnbXrbVVyArpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707264451; c=relaxed/simple; bh=fzBMwjP3R+a5R2HdhiIMhtmDSAFyjPs7cnyLs+nLCOU=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=PYwnPX6l3Xog3RAuvSFrhmoCEnM7diOagg5LzzSocAV2kcQDGwa85wPc6uHOH/M5USAyMOVOng8GJOPLCDpREMTrpYx3gPWr1Qn2uXW814PjQGG5afRhPTA8Rr74Mlrp2TOfunfJ47gaFKZ7CanQPZMuIBFc4WNcFIU4f90Qw1g= 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.72 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-f72.google.com with SMTP id ca18e2360f4ac-7becfc75cd4so5886239f.3 for ; Tue, 06 Feb 2024 16:07:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707264449; x=1707869249; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OEF1tKQoR2J3woTag73sOwwH7baxXxEr34WqP9038pg=; b=NsA+8Btwyldq72koh2qXCH0twbpQje5DF4wbMftlXRG2AlPggdXzk+ZyMzRx0Ya/Qh 6CyeL+5sdjGGjSbCO93rPKfon+4y9nkaw/pwQOBx2JTngMgx2OsbYu7KgyDRBMsUMTJS VEDaq3GYkDDPZBs2pVKs2bgEUPN27nWg+AII8L0tigjtEePDXUAC9t5F2+k0dej+rGG/ Sh6/71aZErTzHng3PhWr0i8gOD6YJ6peEw8ETSAFrC6SGOTARcEu7PRlNLGD3Dgom9fx kgdU+Y4DntFqbJMDDusJaWqaztc7NxsA9XNTVHq8shhmtcA6VRj+vnCdeX3ZyfhmPyCU 0YAg== X-Gm-Message-State: AOJu0Yy67EzDYxANaesDhiF3CEYNfa0QbHZL4Obne3EqKdOSHvBWOfUT 1MnhqHzZ2AfHYDETyYFeOp0+tNwFOahsT5Edzs6tNlFKJ5m52O4lxT/h6zrzRgIwTenacZk0bag 3fkQD+SJhUvoLBg1T9ZQbUJKh9Xr2gLIUPTKxlOQKyerS2b2pVU7xsZI= 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:6638:35ac:b0:471:cde:78e with SMTP id v44-20020a05663835ac00b004710cde078emr75269jal.3.1707264449265; Tue, 06 Feb 2024 16:07:29 -0800 (PST) Date: Tue, 06 Feb 2024 16:07:29 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000946190610bf7bd5@google.com> Subject: [syzbot] [dri?] [media?] inconsistent lock state in valid_state (2) From: syzbot To: christian.koenig@amd.com, dri-devel@lists.freedesktop.org, gustavo@padovan.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 021533194476 Kconfig: Disable -Wstringop-overflow for GCC .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10a82db0180000 kernel config: https://syzkaller.appspot.com/x/.config?x=457249c250b93697 dashboard link: https://syzkaller.appspot.com/bug?extid=a225ee3df7e7f9372dbe compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/da8c6426660d/disk-02153319.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/a866aaa09be9/vmlinux-02153319.xz kernel image: https://storage.googleapis.com/syzbot-assets/4a5680d805d7/bzImage-02153319.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a225ee3df7e7f9372dbe@syzkaller.appspotmail.com ================================ WARNING: inconsistent lock state 6.8.0-rc2-syzkaller-00199-g021533194476 #0 Not tainted -------------------------------- inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage. syz-executor.4/9508 [HC0[0]:SC0[0]:HE0:SE1] takes: ffffffff8ea8c5d8 (sync_timeline_list_lock){?...}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] ffffffff8ea8c5d8 (sync_timeline_list_lock){?...}-{2:2}, at: sync_info_debugfs_show+0x94/0x4d0 drivers/dma-buf/sync_debug.c:147 {IN-HARDIRQ-W} state was registered at: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 sync_timeline_debug_remove+0x2c/0x150 drivers/dma-buf/sync_debug.c:31 sync_timeline_free drivers/dma-buf/sw_sync.c:125 [inline] kref_put include/linux/kref.h:65 [inline] sync_timeline_put drivers/dma-buf/sw_sync.c:137 [inline] timeline_fence_release+0x204/0x250 drivers/dma-buf/sw_sync.c:165 kref_put include/linux/kref.h:65 [inline] dma_fence_put include/linux/dma-fence.h:297 [inline] dma_fence_array_release+0x13e/0x240 drivers/dma-buf/dma-fence-array.c:120 irq_work_single+0xe1/0x240 kernel/irq_work.c:221 irq_work_run_list kernel/irq_work.c:252 [inline] irq_work_run+0x18b/0x350 kernel/irq_work.c:261 __sysvec_irq_work+0xa8/0x3e0 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8f/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] sw_sync_debugfs_release+0x14b/0x1d0 drivers/dma-buf/sw_sync.c:359 __fput+0x429/0x8a0 fs/file_table.c:376 task_work_run+0x24e/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa2c/0x2740 kernel/exit.c:871 do_group_exit+0x206/0x2c0 kernel/exit.c:1020 __do_sys_exit_group kernel/exit.c:1031 [inline] __se_sys_exit_group kernel/exit.c:1029 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1029 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 irq event stamp: 364 hardirqs last enabled at (363): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (363): [] _raw_spin_unlock_irqrestore+0x8f/0x140 kernel/locking/spinlock.c:194 hardirqs last disabled at (364): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline] hardirqs last disabled at (364): [] _raw_spin_lock_irq+0xad/0x120 kernel/locking/spinlock.c:170 softirqs last enabled at (0): [] rcu_lock_acquire include/linux/rcupdate.h:298 [inline] softirqs last enabled at (0): [] rcu_read_lock include/linux/rcupdate.h:750 [inline] softirqs last enabled at (0): [] copy_process+0x9c3/0x3fc0 kernel/fork.c:2366 softirqs last disabled at (0): [<0000000000000000>] 0x0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sync_timeline_list_lock); lock(sync_timeline_list_lock); *** DEADLOCK *** 3 locks held by syz-executor.4/9508: #0: ffff888086cd7748 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x258/0x320 fs/file.c:1191 #1: ffff88801f9c8448 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xb7/0xd60 fs/seq_file.c:182 #2: ffffffff8ea8c5d8 (sync_timeline_list_lock){?...}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] #2: ffffffff8ea8c5d8 (sync_timeline_list_lock){?...}-{2:2}, at: sync_info_debugfs_show+0x94/0x4d0 drivers/dma-buf/sync_debug.c:147 stack backtrace: CPU: 0 PID: 9508 Comm: syz-executor.4 Not tainted 6.8.0-rc2-syzkaller-00199-g021533194476 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 valid_state+0x13a/0x1c0 kernel/locking/lockdep.c:4013 mark_lock_irq+0xbb/0xc20 kernel/locking/lockdep.c:4216 mark_lock+0x223/0x350 kernel/locking/lockdep.c:4678 mark_held_locks kernel/locking/lockdep.c:4274 [inline] __trace_hardirqs_on_caller kernel/locking/lockdep.c:4292 [inline] lockdep_hardirqs_on_prepare+0x281/0x780 kernel/locking/lockdep.c:4359 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] sync_print_obj drivers/dma-buf/sync_debug.c:118 [inline] sync_info_debugfs_show+0x158/0x4d0 drivers/dma-buf/sync_debug.c:153 seq_read_iter+0x445/0xd60 fs/seq_file.c:230 seq_read+0x3a3/0x4f0 fs/seq_file.c:162 vfs_read+0x204/0xb70 fs/read_write.c:474 ksys_read+0x1a0/0x2c0 fs/read_write.c:619 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fc881e7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc882b390c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fc881fabf80 RCX: 00007fc881e7dda9 RDX: 0000000000002020 RSI: 0000000020001b00 RDI: 0000000000000006 RBP: 00007fc881eca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc881fabf80 R15: 00007fc8820cfa48 --- 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 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