Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1835347rdf; Sun, 5 Nov 2023 16:47:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN4gYIl2EGgsvLt2zmmyGapJmFbVHohfBsS/8cjjNgFMrwoClKagEaeQpye48eZxNA3nMi X-Received: by 2002:a05:6a00:4501:b0:6c2:c8d2:94f6 with SMTP id cw1-20020a056a00450100b006c2c8d294f6mr14582521pfb.7.1699231630467; Sun, 05 Nov 2023 16:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699231630; cv=none; d=google.com; s=arc-20160816; b=KaHyzdF6GUJO1jnccbwkcxGPD0nZKMmlO/c13J47eXZcaS9wcpgj9rHvVgxuV4amKe bkcnkjTiy6n7JOQX2PKWQrfg77+LNI3u9kJNIGeHuXq5KgpujjrieeYPAFxSlIuA90Ys PpedPeXBUg15zGxe/pMK8Pvyg5jGBfsBgU84FCdbMwbXXEByhxvQaYUUuw6BM3LmU9P0 Idi30PM5WEX+RQyxbC2w7t4wGU6MpjL6cuzJSyGr3bW6gSDny2upiaL/5tikoo6oOpz8 XQ2LnfSDLmRQ+9rFB0VEXFw+Q7n4HaCgPQsyY7D/BiTAWcuWTcW+sbKqEz82azmDiy5P hY1w== 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:in-reply-to:date :mime-version; bh=F4W4Upbl8FU1dF7PItwMQ7LkcwTM/nTnOvVDdq+SYns=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=bT9olmiTAoshqbCPMDqBaFvF7lD8X2MBlSJ6Io9ZkEdbsgxCis+1p5Xm0aJJdq82NG sNbRSFCCyZb7aTh2hhs3OsI+VKPEiuuLo79MeSiiqsCAZZIzhau/EERBzmblAj2iyCf6 Fbfmu156JA7e0OvFQu6trwMkRi5mG+g3n11g5/5QRRB/YE+nMIBgaTzdgTrhdV/DD7oG 1LEugNTsrvysrfCLo1tRtc4kY4/PNekwAui+LCgQqa+nJmr7Gjqwi4RVQbOx1mHEJp6L XXjvUNZTAYLsl5gLpuPDD7WdbVrJfNpY5uTBdABl5OYzxCsn30ozPFAxAbSPzPiu1kGt Bw1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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. [23.128.96.38]) by mx.google.com with ESMTPS id f14-20020a056a00238e00b006be3c302801si1127799pfc.397.2023.11.05.16.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 16:47:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 26986805CD9B; Sun, 5 Nov 2023 16:47:08 -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 S229740AbjKFAq6 (ORCPT + 99 others); Sun, 5 Nov 2023 19:46:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKFAq5 (ORCPT ); Sun, 5 Nov 2023 19:46:57 -0500 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073D1A2 for ; Sun, 5 Nov 2023 16:46:55 -0800 (PST) Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3b40b5f2274so4829995b6e.1 for ; Sun, 05 Nov 2023 16:46:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699231614; x=1699836414; 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=F4W4Upbl8FU1dF7PItwMQ7LkcwTM/nTnOvVDdq+SYns=; b=Aw2lSTYFWR0PcJL/tpjgD1jaB1d6EFo3g72blLT4kmM1O5akaIpqs7NPzEQfpF6mtz psuYinY/j394WKnuTq5dkP70/3KVMQYA0umebWzFghmeQrEN8KoBAzeyMcIrSawA6a5t HlzX6Ai4WhwgJ+lu1sf6MdxEMRSeJ3IySJDnHxCX/tRVp0MG1cAP69O4RHnesgTHWqiT ONv+qp+SOnvRDenUK84eGnK5QguzNMiUyAKD+WwhuuKc5I1MBl++0A9FDL8mKC3ifQht Opjj2fDe/EFWCInsgLxGBZNg+x+kFE7oAuypE0YEpJOY1JJgk0hqffpEHiqbm5bZbv3P VUAQ== X-Gm-Message-State: AOJu0YxW2Dy9KYh4ibjDRATgmL0kcbDlZrsXL8r/k5Faw/NRU+n6isUM zm0pUbERfZLFMgPk4DzhyI1Hm1Be9akwKnvpFFE9cpf5IWTzJVE= MIME-Version: 1.0 X-Received: by 2002:a05:6808:360a:b0:3ad:29a4:f542 with SMTP id ct10-20020a056808360a00b003ad29a4f542mr2685197oib.5.1699231614457; Sun, 05 Nov 2023 16:46:54 -0800 (PST) Date: Sun, 05 Nov 2023 16:46:54 -0800 In-Reply-To: <000000000000e7b62806096c7d67@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c55bd50609713078@google.com> Subject: Re: [syzbot] test general protection fault in ptp_ioctl From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 16:47:08 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: test general protection fault in ptp_ioctl Author: lizhi.xu@windriver.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4652b8e4f3ff diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index 282cd7d24077..27c1ef493617 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -585,7 +585,5 @@ ssize_t ptp_read(struct posix_clock_context *pccontext, uint rdflags, free_event: kfree(event); exit: - if (result < 0) - ptp_release(pccontext); return result; }