SMB Write File leaks file descriptors |
|||||
Issue descriptionAfter writing ~4GB worth of files, Chrome OOMs and crashes. This can be reproduced by mounting an SMB Share, and copying 4GB worth of files (either one file or many) to the share. The cause is that DBus::MessageWriter::AppendFileDescriptor duplicates file descriptors so it should be called with base::ScopedFD.get() rather than base::ScopedFD.release()
,
Sep 7
,
Sep 9
,
Sep 10
Your change meets the bar and is auto-approved for M70. Please go ahead and merge the CL to branch 3538 manually. Please contact milestone owner if you have questions. Owners: benmason@(Android), kariahda@(iOS), geohsu@(ChromeOS), abdulsyed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/edeb51dfe44199494e4fde5b70a09f54f34493d8 commit edeb51dfe44199494e4fde5b70a09f54f34493d8 Author: Bailey Berro <baileyberro@chromium.org> Date: Mon Sep 10 20:26:43 2018 Do not duplicate FD in SmbProviderClient This change fixes an issue where FileDescriptors were being duplicated, and as a result leaked, when writing them into a proto to send over D-Bus Bug: chromium:881615 Change-Id: I6e7e7abce34a537c3d9228cf9baa6d1d9074625f Reviewed-on: https://chromium-review.googlesource.com/1211877 Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org> Commit-Queue: Zentaro Kavanagh <zentaro@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#589378}(cherry picked from commit 6a2d75839379aad2c471871e2b0ab30bb3041b95) Reviewed-on: https://chromium-review.googlesource.com/1217442 Cr-Commit-Position: refs/branch-heads/3538@{#244} Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811} [modify] https://crrev.com/edeb51dfe44199494e4fde5b70a09f54f34493d8/chromeos/dbus/smb_provider_client.cc |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by bugdroid1@chromium.org
, Sep 7