Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1720137rdf; Sun, 5 Nov 2023 11:11:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlzBl8FOhFzIX7RVSkuk2ZYaHw65iUP9BwIuuncB9TCq74U977R7NS9UleD+QpPecOQH8T X-Received: by 2002:a05:6a20:3d82:b0:16c:b5be:5f6c with SMTP id s2-20020a056a203d8200b0016cb5be5f6cmr23595464pzi.54.1699211492944; Sun, 05 Nov 2023 11:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699211492; cv=none; d=google.com; s=arc-20160816; b=0kAo7LEhuOaY6efBcZy5cA/JT1wEQXj2gXq6Cf03TnzoUGquepd9ZtnSnpALd1JYLO Ina6lUTQk+7qi214JheS2GUbG+cVyaG5IQUbf5e8lGoEQHu+c4cdaTynToMghs/DfgJE +0NUzlRYLlEZnSTtjd9gJVL6Qw0FZoCHdm1QxAzBmBp1RMPlUJ9c6k/kB3ZXUn4/8Gil H0EHBEK4hqHNrrfmLvjbVVLkbg+ktdmvVluQOoCfnVe0Tq58DaUKHD+huS2ZIx/kqy9K sC+P6GYQ1GNFMD4uOlSucIEwGf5gPmMdQJTljkK7a62ETPqe3pWcobPH+Tuty+YMu5Kv rbUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=SW4FutqOjQ1NorsIpGr01f/prHPC0R3lRpLUNI45Wcc=; fh=TTGdJkpJXIsHUBc6dBhPK4TcIAks9xiVV2JJX67H9zc=; b=tgJkjMIvP5v4hZR11nw5VFnDiQw6K8xoBwaDvbvmhMfiwAkcOORwE8Ps3eDdaev/0f 1nzYKbyv25WZ0iWXpDVF4cVv+0XTa2XFzxP9+aRek33HcVGkHYRxcRTux53TpQ8dkMzp 1amIWHnLPQA86AI1+oQ2C3Hl32Pec8oRqIA6aKHlEavGGmz7RMAw1S5kmOgisrAWJr+y +V/sXXsZanfECN6vOp4MirRObJQFvBIUGda2Okg+dJe14teVKPRiiqkcNs5ItOyu6fEW pFc8y8ZoNuyTk64ORZ8qViPUPyr7rFghcsJk3Vw20xSTu0JJJQCGXQzdGEX3NUcjq/4c 1XsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g12-20020a170902740c00b001c9d66601ddsi6201524pll.162.2023.11.05.11.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 11:11:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 37749807F494; Sun, 5 Nov 2023 11:10:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjKETKi (ORCPT + 99 others); Sun, 5 Nov 2023 14:10:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjKETKh (ORCPT ); Sun, 5 Nov 2023 14:10:37 -0500 Received: from mail-oa1-f80.google.com (mail-oa1-f80.google.com [209.85.160.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5DCDE for ; Sun, 5 Nov 2023 11:10:34 -0800 (PST) Received: by mail-oa1-f80.google.com with SMTP id 586e51a60fabf-1e9b6561650so4788007fac.3 for ; Sun, 05 Nov 2023 11:10:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699211433; x=1699816233; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SW4FutqOjQ1NorsIpGr01f/prHPC0R3lRpLUNI45Wcc=; b=UxxXLnZr0th0HSguPuxAZLK+3+JzmjMZeTfcMXajCBbrstsSfRNYuK/fdTWopnVHiu 4o8/7syFpYb7dYcGY988KyuZ9ocSevDiBjlblKK6IXpM0112FsKSjPBL8Yjga2lI5kF1 NvlM7PGS8A/zYLIxqkrNTNSlv3WAJFeMLtZtAirnV/+DRlMSssf4YM1RleUFRpY7G+sc mbqgQKKkrVowA271nGx5CdVM9vJYlxzjZU43iwEd4aix4HqM6xdPB+Es8JQyC2kueWAG X6V2X3m5HoTVwUK0vMpmAAcjf/oPGM6kUQ29zm2usfxayjvaDZCZPspfGj0nEYETCbXE WKjA== X-Gm-Message-State: AOJu0YzbRvvrP+5QsOOikW4Aa7ffGYixCp9XTOWdbLP6NkO0ucHKRAeY SnCiD46h3K0sz4RDzSljEZ4fbtYO2k2MSfpyU5Ga5Q2u0SMY MIME-Version: 1.0 X-Received: by 2002:a05:6870:1cf:b0:1e9:bebf:3813 with SMTP id n15-20020a05687001cf00b001e9bebf3813mr13014161oad.9.1699211433717; Sun, 05 Nov 2023 11:10:33 -0800 (PST) Date: Sun, 05 Nov 2023 11:10:33 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e7b62806096c7d67@google.com> Subject: [syzbot] [net?] general protection fault in ptp_ioctl From: syzbot To: davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, reibax@gmail.com, richardcochran@gmail.com, rrameshbabu@nvidia.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.0 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 05 Nov 2023 11:10:57 -0800 (PST) X-Spam-Level: ** Hello, syzbot found the following issue on: HEAD commit: 4652b8e4f3ff Merge tag '6.7-rc-ksmbd-server-fixes' of git:.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=11aa125f680000 kernel config: https://syzkaller.appspot.com/x/.config?x=423e70610024fd6b dashboard link: https://syzkaller.appspot.com/bug?extid=8a78ecea7ac1a2ea26e5 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16193ef7680000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17e035d7680000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a9cb6d5a8c4b/disk-4652b8e4.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/363795681962/vmlinux-4652b8e4.xz kernel image: https://storage.googleapis.com/syzbot-assets/113d96b73fef/bzImage-4652b8e4.xz The issue was bisected to: commit c5a445b1e9347b14752b01f1a304bd7a2f260acc Author: Xabier Marquiegui Date: Wed Oct 11 22:39:56 2023 +0000 ptp: support event queue reader channel masks bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=122491ef680000 final oops: https://syzkaller.appspot.com/x/report.txt?x=112491ef680000 console output: https://syzkaller.appspot.com/x/log.txt?x=162491ef680000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8a78ecea7ac1a2ea26e5@syzkaller.appspotmail.com Fixes: c5a445b1e934 ("ptp: support event queue reader channel masks") general protection fault, probably for non-canonical address 0xdffffc000000020b: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x0000000000001058-0x000000000000105f] CPU: 0 PID: 5053 Comm: syz-executor353 Not tainted 6.6.0-syzkaller-10396-g4652b8e4f3ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:ptp_ioctl+0xcb7/0x1d10 drivers/ptp/ptp_chardev.c:476 Code: 81 fe 13 3d 00 00 0f 85 9c 02 00 00 e8 c2 83 23 fa 49 8d bc 24 58 10 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 dc 0e 00 00 49 8b bc 24 58 10 00 00 ba 00 01 00 RSP: 0018:ffffc90003a37ba0 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff88814a78a000 RCX: ffffffff8764f81f RDX: 000000000000020b RSI: ffffffff8765028e RDI: 0000000000001058 RBP: ffffc90003a37ec0 R08: 0000000000000005 R09: ffffc90003a37c40 R10: 0000000000003d13 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90003a37c80 R14: 0000000000003d13 R15: ffffffff92ac78e8 FS: 00005555569a9380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 0000000076e09000 CR4: 0000000000350ef0 Call Trace: posix_clock_ioctl+0xf8/0x160 kernel/time/posix-clock.c:86 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+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f710ac4a2a9 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffda288c4c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffda288c698 RCX: 00007f710ac4a2a9 RDX: 0000000000000000 RSI: 0000000000003d13 RDI: 0000000000000003 RBP: 00007f710acbd610 R08: 00007ffda288c698 R09: 00007ffda288c698 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffda288c688 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ptp_ioctl+0xcb7/0x1d10 drivers/ptp/ptp_chardev.c:476 Code: 81 fe 13 3d 00 00 0f 85 9c 02 00 00 e8 c2 83 23 fa 49 8d bc 24 58 10 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 dc 0e 00 00 49 8b bc 24 58 10 00 00 ba 00 01 00 RSP: 0018:ffffc90003a37ba0 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff88814a78a000 RCX: ffffffff8764f81f RDX: 000000000000020b RSI: ffffffff8765028e RDI: 0000000000001058 RBP: ffffc90003a37ec0 R08: 0000000000000005 R09: ffffc90003a37c40 R10: 0000000000003d13 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90003a37c80 R14: 0000000000003d13 R15: ffffffff92ac78e8 FS: 00005555569a9380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005fdeb8 CR3: 0000000076e09000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 81 fe 13 3d 00 00 cmp $0x3d13,%esi 6: 0f 85 9c 02 00 00 jne 0x2a8 c: e8 c2 83 23 fa call 0xfa2383d3 11: 49 8d bc 24 58 10 00 lea 0x1058(%r12),%rdi 18: 00 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 dc 0e 00 00 jne 0xf10 34: 49 8b bc 24 58 10 00 mov 0x1058(%r12),%rdi 3b: 00 3c: ba .byte 0xba 3d: 00 01 add %al,(%rcx) --- 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#bisection 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