Message ID | cd4caf07-69d1-d194-72f2-fddf55979d7b@kernel.dk (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A625C433DB for <linux-fsdevel@archiver.kernel.org>; Wed, 17 Feb 2021 21:55:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4C21264E15 for <linux-fsdevel@archiver.kernel.org>; Wed, 17 Feb 2021 21:55:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbhBQVzQ (ORCPT <rfc822;linux-fsdevel@archiver.kernel.org>); Wed, 17 Feb 2021 16:55:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231623AbhBQVzP (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 17 Feb 2021 16:55:15 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FEAC061574 for <linux-fsdevel@vger.kernel.org>; Wed, 17 Feb 2021 13:54:35 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id cl8so108841pjb.0 for <linux-fsdevel@vger.kernel.org>; Wed, 17 Feb 2021 13:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ApMAXAcsksn3actd3Y8DLu6EGOAUox/8XdPF11X2X+Q=; b=EiWZmHRjk7694wnJrYFakEzwQ0u+rbhfkvvTK1vbtkXNKPRr9TfK/swDmArF63fubC qkatq5lqY7oHenujIXJj1vXhnKpg8P61vB2U0/H4kS5F7aQpLF3vONeJZGZ150dGVpV+ eibyYDP1QWxnvSVlLwJG/kNkxEM//lFgCf3RZjmhdTeJeczIf57Xd/tWuyR4XjoYhAVp jTGBe94ubcjdHDUhOTWlma3P/qPKazFRqbFbqks3Bg6YeBmcxIobauruYX7l7DG9vg4U dlzAKblBfoNuLNcrggpvBBOwq6RWT8GWgzuAa12MHf6A4holCgZBzsfnM8atsESsqPJB xmGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=ApMAXAcsksn3actd3Y8DLu6EGOAUox/8XdPF11X2X+Q=; b=p9YrU9KNbc+W8V0wTEgInbSReoge4vnEGoIgI1Dq4zJeoUAxeggpANKfseZIlS1vBF b7UY41ZeZIVdhsjU4fZJnm62pjTb3EsX/eiuwodzHaXeYVTTLCQBAViA6MA5Y+MxNSeL NDsUAT98eimNjWky4HCVc/8286YmTWnGM6yOxHEdHqbkTpNj953ZzL7Ht9qXGtjrSJbX CpX7yJHhBcxzKrWxePpAtUpiEGTM0DIx+vY1UQ3CF1SnbGop0Y9EzZf3Y9TE/DrqAZOI Pi2ssJWUMZTeZ+jFKNRvytLrIGByxY7WUMSoBZBqMJbjbVl3LotFxIAObej6UZfBJ5sr 50LQ== X-Gm-Message-State: AOAM531IJme4dNZtsnvpADtZL/qnWgSRX8zRXxn6TabDL8uvgAyJ3xqs oJd7cYcQgyWSKicNNjsPoviGlQvxWI4jDQ== X-Google-Smtp-Source: ABdhPJzWgv9UOD3Gy2U1T6X3M4xheI0aF4J9+ImyGRltokmC5mO6BTDS5LgK54xeUHMZcO11ncOqdg== X-Received: by 2002:a17:90b:1bcf:: with SMTP id oa15mr868738pjb.78.1613598874383; Wed, 17 Feb 2021 13:54:34 -0800 (PST) Received: from ?IPv6:2620:10d:c085:21e1::19db? ([2620:10d:c090:400::5:5c48]) by smtp.gmail.com with ESMTPSA id e12sm2992964pjt.54.2021.02.17.13.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Feb 2021 13:54:33 -0800 (PST) From: Jens Axboe <axboe@kernel.dk> Subject: Suspected leak of 'name' To: Alexander Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org> Message-ID: <cd4caf07-69d1-d194-72f2-fddf55979d7b@kernel.dk> Date: Wed, 17 Feb 2021 14:54:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
Suspected leak of 'name'
|
expand
|
diff --git a/fs/namei.c b/fs/namei.c index 58962569cc20..de74ad2bc6e2 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -631,6 +631,7 @@ static bool legitimize_links(struct nameidata *nd) { int i; if (unlikely(nd->flags & LOOKUP_CACHED)) { + drop_links(nd); nd->depth = 0; return false; }