From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31A31C4167B for ; Fri, 8 Dec 2023 05:49:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F78310E259; Fri, 8 Dec 2023 05:49:32 +0000 (UTC) Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by gabe.freedesktop.org (Postfix) with ESMTPS id D85C110E9D1 for ; Fri, 8 Dec 2023 05:49:30 +0000 (UTC) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3b9e506f794so1435587b6e.0 for ; Thu, 07 Dec 2023 21:49:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702014570; x=1702619370; h=content-transfer-encoding:to:from:subject:message-id:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EBETvfzqD613YhTilF3AjV0DFOJ1h9L9RHJVTqPEc4I=; b=hFtGuf+PqmvYteKqLJiJgHZVK4N6PurMNGrUKbM7Mh9E4VEGcamIx3QqMDozjf8y/Z k2f84jTMcx84Bt9PfwqwwSrPosW7xhOVSC0Fhi9vw+HyJDq7G1hTCbpxUZ+rfCVg31+x l7zMUZ0gpu59zeC6XNTaL25IVQ5aRYVVAL+8BMMMF/QH+V/rMhGQlyegltaLogMsEf6v gSRTPP7xvtgp3qptiq3pnpMg9425QF3ZgqouFMjNYe82Zc+kxedw338OtIB25zQJIJbt chrDVGpFuS8NB9BGJ3IoZPrP2IdWsVmp7q1faQInGzey5mCyezEN6lKpX89Nrq7gIv82 gdgw== X-Gm-Message-State: AOJu0YyjadT0rG27845hrYDMpQqN+rFVl2IXqSLvpctfxzIwnCnKz0D+ 6NAonl64GeBPpy1cu68TgNdhwjHciwMQFb6s4KI1rKPsGL7B X-Google-Smtp-Source: AGHT+IGTXQuNC7u7vqdQYM+6O11D5RpwL6kUUVMO4/Cp2Zrs3PRDYQt67c7BML2ZNrm8Ywr/ErSf0Z3/6BFiJxf71Ij3tT3TspNB MIME-Version: 1.0 X-Received: by 2002:a05:6808:1481:b0:3b9:e51b:d2b5 with SMTP id e1-20020a056808148100b003b9e51bd2b5mr1503281oiw.11.1702014570091; Thu, 07 Dec 2023 21:49:30 -0800 (PST) Date: Thu, 07 Dec 2023 21:49:30 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000da5a60060bf925f0@google.com> Subject: [syzbot] [dri?] WARNING in drm_gem_prime_fd_to_handle From: syzbot To: airlied@gmail.com, christian.koenig@amd.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com, tzimmermann@suse.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello, syzbot found the following issue on: HEAD commit: 33cc938e65a9 Linux 6.7-rc4 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=3D1348e51ce80000 kernel config: https://syzkaller.appspot.com/x/.config?x=3Db50bd31249191be= 8 dashboard link: https://syzkaller.appspot.com/bug?extid=3D268d319a7bfd92f4a= e01 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Deb= ian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D1552cce4e8000= 0 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D1065c954e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/ecc4a2a6bd50/disk-= 33cc938e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/1be71f7cd7b2/vmlinux-= 33cc938e.xz kernel image: https://storage.googleapis.com/syzbot-assets/54de78eb11a7/bzI= mage-33cc938e.xz The issue was bisected to: commit 85e26dd5100a182bf8448050427539c0a66ab793 Author: Christian K=C3=B6nig Date: Thu Jan 26 09:24:26 2023 +0000 drm/client: fix circular reference counting issue bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D12624b4ae800= 00 final oops: https://syzkaller.appspot.com/x/report.txt?x=3D11624b4ae800= 00 console output: https://syzkaller.appspot.com/x/log.txt?x=3D16624b4ae80000 IMPORTANT: if you fix the issue, please add the following tag to the commit= : Reported-by: syzbot+268d319a7bfd92f4ae01@syzkaller.appspotmail.com Fixes: 85e26dd5100a ("drm/client: fix circular reference counting issue") ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5069 at drivers/gpu/drm/drm_prime.c:326 drm_gem_prime_= fd_to_handle+0x4be/0x550 drivers/gpu/drm/drm_prime.c:326 Modules linked in: CPU: 1 PID: 5069 Comm: syz-executor183 Not tainted 6.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Goo= gle 11/10/2023 RIP: 0010:drm_gem_prime_fd_to_handle+0x4be/0x550 drivers/gpu/drm/drm_prime.= c:326 Code: 00 00 48 89 df e8 72 71 6e ff e9 e9 fd ff ff e8 38 01 94 fc 4c 89 ff = 41 89 dc e8 5d cd 8e 05 e9 b8 fe ff ff e8 23 01 94 fc 90 <0f> 0b 90 e9 47 f= d ff ff e8 85 a7 ea fc e9 16 fc ff ff e8 7b a7 ea RSP: 0018:ffffc90003d07c48 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888146686800 RCX: ffffffff84f3861b RDX: ffff88807a279dc0 RSI: ffffffff84f3891d RDI: ffff888146686928 RBP: ffff88801f379c00 R08: 0000000000000007 R09: fffffffffffff000 R10: ffff888146686800 R11: 0000000000000001 R12: ffff88801f378800 R13: ffff888143b66000 R14: ffffc90003d07e10 R15: ffff88801cbd8c10 FS: 00007f772497c6c0(0000) GS:ffff8880b9900000(0000) knlGS:000000000000000= 0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 000000007d240000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_prime_fd_to_handle_ioctl+0xcf/0x100 drivers/gpu/drm/drm_prime.c:375 drm_ioctl_kernel+0x28c/0x4d0 drivers/gpu/drm/drm_ioctl.c:792 drm_ioctl+0x5cb/0xbf0 drivers/gpu/drm/drm_ioctl.c:895 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f77249bd1b9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 f= f 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f772497c218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7724a45408 RCX: 00007f77249bd1b9 RDX: 0000000020000180 RSI: 00000000c00c642e RDI: 0000000000000004 RBP: 00007f7724a45400 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7724a4540c R13: 00007f7724a12018 R14: 0023647261632f69 R15: 6972642f7665642f --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisectio= n 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