From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93E89DF62 for ; Fri, 10 Nov 2023 08:40:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a7GDCKJX" Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0D0F28332A for ; Fri, 10 Nov 2023 08:40:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0D0F28332A Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=a7GDCKJX X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.401 X-Spam-Level: Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kgFAUw1k_J-J for ; Fri, 10 Nov 2023 08:40:30 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp1.osuosl.org (Postfix) with ESMTPS id 95E7C8305A for ; Fri, 10 Nov 2023 08:40:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 95E7C8305A Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5D33B619C4; Fri, 10 Nov 2023 08:40:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F1B02C433C9; Fri, 10 Nov 2023 08:40:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699605629; bh=saabdHyMdvYng2Dm3AITfV8opude96FOgCmZKQQ9Eew=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=a7GDCKJXsxeZRLI4Kdg05bO/fVQCEWG0xKShB+lG5QpJOLheLL9wPxRJvtSaIFCBz xx55YTy6+GYLQXEqALeON+ZnzpFKYRLfpCXK7p9dzuBONrM8gT8TgLJKNWwHltfN1S IQ08kx8R6YYKXktp4anXEQOHrCxp9p9k2NSS9CxA+dkphakXtjGzV1SrDuQZpbfN1a lci16sUuG8TmkCQ88IFXgMZrbMKDKWTFR6HPadG2fNRdLveksmr86MJcIF5Vsg1VLV IVGmoHaop+U2L94HNAfvjJaiIK9liCkHiGR0yKGlaDncsrXEIgCWTUcVg4fxg1iKIa HKoD/N6+2knpw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id D3AA8C4166E; Fri, 10 Nov 2023 08:40:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel-mentees@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH RESEND] ptp: Fixes a null pointer dereference in ptp_ioctl From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169960562886.22093.15188059654948446469.git-patchwork-notify@kernel.org> Date: Fri, 10 Nov 2023 08:40:28 +0000 References: In-Reply-To: To: Yuran Pereira Cc: richardcochran@gmail.com, netdev@vger.kernel.org, eadavis@qq.com, davem@davemloft.net, reibax@gmail.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, syzbot+8a78ecea7ac1a2ea26e5@syzkaller.appspotmail.com Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Wed, 8 Nov 2023 02:18:36 +0530 you wrote: > Syzkaller found a null pointer dereference in ptp_ioctl > originating from the lack of a null check for tsevq. > > ``` > 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 > ... > 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 > ``` > > [...] Here is the summary with links: - [RESEND] ptp: Fixes a null pointer dereference in ptp_ioctl https://git.kernel.org/netdev/net/c/8a4f030dbced You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html