Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1844422rdh; Sat, 25 Nov 2023 05:10:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjHVqvMJXL5OCxOTVLdo7vsf207TG3Ds6pFDihK7k/xvhHrZ4yDgZpn+1tRFf93abYijsL X-Received: by 2002:a17:902:9a02:b0:1cf:6967:ec70 with SMTP id v2-20020a1709029a0200b001cf6967ec70mr5923912plp.31.1700917851820; Sat, 25 Nov 2023 05:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700917851; cv=none; d=google.com; s=arc-20160816; b=aR1ANXvWbmS2VI7+YXRSuIoCBJiUvHcxPo+mhll8Ik/UfeRRN1JaoJTyaGvyPRGsYl PvFuYLhgSlHG8K0hQvr6EYxDr1V1ClrOg+p1hhBIxrxn2oxnUVLUyGB1mhl324gQ0+Wx r2L9geSu2HTIM58llh7h6l+RVqcDNdJStL7MMEuuKZT2MOWITtGrz8h3SlLt70aSeP/w Si0aMeJ0nRtcAZDABo0GVDpUAmFtUNQOxNTf3i6OKP9hdBkVMeuU+zpX7tS+D7Oe6REu eJnjTkHA3tUjibyYElSXanHHv3Si6rlJJxvcjFmIqZaGBC7EJLzY8Py1lEeWTX70rGQz eEzA== 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=2x57+4D+SJs7wSbCC7T2hfTUa0WP/L6d0DTYOeJG0Nc=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=u9ZbZT4dihI31vyL78UGWcPghiH9+exDuphyoomxgv4U+Gsjm2z/81HEM6GYWCazFN GeZzGYoQ+l0FtAq4YUYpIWKLsr0ajDcVl48jD69fz1TVve3WdAGzGm4yHC7sIM9axfvh RtIJGn1rOhlhMI7N+ouFasorm1V98mNk1JlCyElspkcECe0cx5vITQvHEAt67qAx8Nox wat4xQFH3/0hKUAH2jULzJQKQo84dzoSiakKXnGNMNAt3N/wqGD5xpfUHoHue3UAyS7u xZ4OhwppxdMZs4A+Cp4ZYSVhO0/Ai3L6BNrxW+BGBr5/mbhTFDElRKgTSg2XogQi+dCe CS4Q== 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b14-20020a170902b60e00b001cf5c99a61csi5482775pls.180.2023.11.25.05.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 05:10:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id E5BC98047474; Sat, 25 Nov 2023 05:10:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbjKYNKd (ORCPT + 99 others); Sat, 25 Nov 2023 08:10:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbjKYNKc (ORCPT ); Sat, 25 Nov 2023 08:10:32 -0500 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E98BA1 for ; Sat, 25 Nov 2023 05:10:39 -0800 (PST) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1cfb2811203so5357785ad.1 for ; Sat, 25 Nov 2023 05:10:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700917838; x=1701522638; 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=2x57+4D+SJs7wSbCC7T2hfTUa0WP/L6d0DTYOeJG0Nc=; b=IchKyD6owVnX9d4WuGVTjAqknEdginmU/aC3pl9n9+bhJo+moaiwAFviOOANqoaszH 6dPEVML4ytr0liBpVevR/7vOpfvAt5Wz0baB88d/dH49x1+JrQjdgIvwAPkMldiB7rrj VLrsuUb88fW4qwxAXvcp+6OI9EGU/cpeeep+Q5kl8HkhdnXjD4wJ3lwpzp2w076K2LF1 OTrSCQAdvwUKoJtXN8kJ2WdsSodn+ADTvJpSwCt2ku9nStMx69LE0Cl5+zMkhCzNiJjd vptnfZZ21IkpkPc4WoN96OAXH+t/AMUX6UB8oQLE7D8za3iI7MHL8ulukaaZXibYVzXS bzsQ== X-Gm-Message-State: AOJu0Yw6AzejPahky45BhCH8+po65mgxbaYNwYEpMWlrT3qyFbJwMpk2 IaKsbTIZua+jJrrLQu7gniqEWrQNFU00wLMar7zt5ooQB61K288= MIME-Version: 1.0 X-Received: by 2002:a17:902:c944:b0:1cf:a2e7:f849 with SMTP id i4-20020a170902c94400b001cfa2e7f849mr1243657pla.4.1700917838750; Sat, 25 Nov 2023 05:10:38 -0800 (PST) Date: Sat, 25 Nov 2023 05:10:38 -0800 In-Reply-To: <000000000000d40c3c05fdc05cd1@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000922bec060af9cbc2@google.com> Subject: Re: [syzbot] [udf?] KASAN: slab-use-after-free Read in udf_free_blocks 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 25 Nov 2023 05:10:48 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [udf?] KASAN: slab-use-after-free Read in udf_free_blocks Author: eadavis@qq.com please test uaf in udf_free_blocks #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 123212f53f3e diff --git a/fs/open.c b/fs/open.c index 02dc608d40d8..bc2d1db2fcba 100644 --- a/fs/open.c +++ b/fs/open.c @@ -1441,11 +1441,11 @@ static long do_sys_openat2(int dfd, const char __user *filename, if (IS_ERR(f)) { put_unused_fd(fd); fd = PTR_ERR(f); + putname(tmp); } else { fd_install(fd, f); } } - putname(tmp); return fd; }