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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62CD2C0032E for ; Sat, 28 Oct 2023 08:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbjJ1IIJ (ORCPT ); Sat, 28 Oct 2023 04:08:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjJ1III (ORCPT ); Sat, 28 Oct 2023 04:08:08 -0400 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A07AD for ; Sat, 28 Oct 2023 01:08:06 -0700 (PDT) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3b3f5a58408so3624634b6e.1 for ; Sat, 28 Oct 2023 01:08:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698480485; x=1699085285; 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=XykZH9oTlS4FJRAOYUq4pLgLKfA/FZr66X6JGVrKVpQ=; b=BE0o55rhEXtfNVwOaCZQql/HGaM8HABKD/tjN0DuNJQQv7qMne04P9PEtou8DJhHk4 pVDUszJTm+JRKKoBb7kmnIsT7mcGHHwuSdcibAyF3PZnYOEZ5pFYb5VoM4QYWPO+rWSm 9FtiV17mHg3Gsjbqk2fwcMxjIbhWRzwNjt+mXWwX8gAydoo+jjsle2SejMw1nrwH7Uig EK+ZXuJbop3+BCFHyOnQxRG9FTr6QKmz9Kz8uY2veitTh5P9fAIt8ckWOJNboLVK2aHR +J1Kfy0ccLma6P03qVHWmtkKpDDTGsCcKm+6ubS8YIx+BGratQ5mK0MVf/Ilie2Tju0/ qn0A== X-Gm-Message-State: AOJu0YwurZgXb06eaKnxp1Fw2psM7W3pHePBAnVXbMilA6DBZQZTTHMC Egk2ZZp4HSXuGbQ568gkMWj+XaXOLDgAO566b4l9/SGAm331 X-Google-Smtp-Source: AGHT+IFDjwDfEIgahcZurhdj//VOcAJxU1BcG40SXOfia+QcOf9ESmzzdSaSQNOaGQ/EYiST033HQpWbrvSDIiQVnHPyLBqCov5D MIME-Version: 1.0 X-Received: by 2002:a05:6808:23c1:b0:3a9:d030:5023 with SMTP id bq1-20020a05680823c100b003a9d0305023mr1765756oib.3.1698480485671; Sat, 28 Oct 2023 01:08:05 -0700 (PDT) Date: Sat, 28 Oct 2023 01:08:05 -0700 In-Reply-To: <20231028071018.1016-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000001aa1a0608c24e56@google.com> Subject: Re: [syzbot] [net?] BUG: corrupted list in ptp_open From: syzbot To: hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: BUG: corrupted list in ptp_release list_del corruption. prev->next should be ffff88807bfb5048, but was ffff888065aa5048. (prev=ffff88814b1c1048) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:62! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6347 Comm: syz-executor.4 Not tainted 6.6.0-rc6-next-20231020-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:__list_del_entry_valid_or_report+0x11f/0x1b0 lib/list_debug.c:62 Code: 9f e9 8a e8 a3 a3 3a fd 0f 0b 48 89 ca 48 c7 c7 c0 9f e9 8a e8 92 a3 3a fd 0f 0b 48 89 c2 48 c7 c7 20 a0 e9 8a e8 81 a3 3a fd <0f> 0b 48 89 d1 48 c7 c7 a0 a0 e9 8a 48 89 c2 e8 6d a3 3a fd 0f 0b RSP: 0018:ffffc90004807e00 EFLAGS: 00010082 RAX: 000000000000006d RBX: ffff88807bfb4000 RCX: ffffffff816bb8d9 RDX: 0000000000000000 RSI: ffffffff816c4d42 RDI: 0000000000000005 RBP: ffff88802857b5e0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000001 R12: 0000000000000246 R13: ffff88807bfb5048 R14: ffff88807bfb5008 R15: ffff88807bfb5050 FS: 0000555556c77480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fde0ff98000 CR3: 00000000247f4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del include/linux/list.h:229 [inline] ptp_release+0xc4/0x2b0 drivers/ptp/ptp_chardev.c:147 posix_clock_release+0xbc/0x180 kernel/time/posix-clock.c:158 __fput+0x270/0xbb0 fs/file_table.c:394 __fput_sync+0x47/0x50 fs/file_table.c:475 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __x64_sys_close+0x86/0xf0 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fde0fe7b9da Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffd2031d3e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fde0fe7b9da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000032 R08: 0000001b2e460000 R09: 00007fde0ff9bf8c R10: 00007ffd2031d530 R11: 0000000000000293 R12: 00007fde0fa000a8 R13: ffffffffffffffff R14: 00007fde0fa00000 R15: 0000000000020aa6 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x11f/0x1b0 lib/list_debug.c:62 Code: 9f e9 8a e8 a3 a3 3a fd 0f 0b 48 89 ca 48 c7 c7 c0 9f e9 8a e8 92 a3 3a fd 0f 0b 48 89 c2 48 c7 c7 20 a0 e9 8a e8 81 a3 3a fd <0f> 0b 48 89 d1 48 c7 c7 a0 a0 e9 8a 48 89 c2 e8 6d a3 3a fd 0f 0b RSP: 0018:ffffc90004807e00 EFLAGS: 00010082 RAX: 000000000000006d RBX: ffff88807bfb4000 RCX: ffffffff816bb8d9 RDX: 0000000000000000 RSI: ffffffff816c4d42 RDI: 0000000000000005 RBP: ffff88802857b5e0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000001 R12: 0000000000000246 R13: ffff88807bfb5048 R14: ffff88807bfb5008 R15: ffff88807bfb5050 FS: 0000555556c77480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fde0ff98000 CR3: 00000000247f4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Tested on: commit: 20305791 Add linux-next specific files for 20231020 git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git console output: https://syzkaller.appspot.com/x/log.txt?x=11ea5473680000 kernel config: https://syzkaller.appspot.com/x/.config?x=37404d76b3c8840e dashboard link: https://syzkaller.appspot.com/bug?extid=df3f3ef31f60781fa911 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=174d13fd680000