New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 720251 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

ext4crypto migration: Migrated file creation may not be synced to the disk as a directory entry

Project Member Reported by kinaba@chromium.org, May 10 2017

Issue description

https://chromium.git.corp.google.com/chromiumos/platform2/+/b7d12cd87f02305a809f35bc5ca83fc03e0cb96c/cryptohome/dircrypto_data_migrator/migration_helper.cc#346

bool MigrationHelper::MigrateFile(...) {
  ...
  if (!platform_->SyncDirectory(to.DirName()))
    ...
}

|to| here is the root destination directory of the migration,
not the currently migrated file. |to_child| looks to be the one we really wanted.
 
Project Member

Comment 2 by bugdroid1@chromium.org, May 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/0a8b980c1d344fdfbdda5b5e5cb0662d565ddb57

commit 0a8b980c1d344fdfbdda5b5e5cb0662d565ddb57
Author: Kazuhiro Inaba <kinaba@chromium.org>
Date: Thu May 11 01:59:36 2017

cryptohome: Make sure to sync the immediate parent of files newly migrated.

BUG= chromium:720251 
TEST=Migration success (the real failure case is hard to repro and not tested.)

Change-Id: I8df677418515b20325a1d12aa45e40253d21e702
Reviewed-on: https://chromium-review.googlesource.com/501550
Tested-by: Kazuhiro Inaba <kinaba@chromium.org>
Trybot-Ready: Kazuhiro Inaba <kinaba@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org>

[modify] https://crrev.com/0a8b980c1d344fdfbdda5b5e5cb0662d565ddb57/cryptohome/dircrypto_data_migrator/migration_helper.cc

Comment 3 by kinaba@chromium.org, May 11 2017

Labels: Merge-Request-59

Comment 4 by kinaba@chromium.org, May 11 2017

This bug can potentially lead to user-data loss so we highly want this to be in.
The change is pretty small and should be safe to merge.

Comment 5 by gkihumba@google.com, May 11 2017

Labels: Merge-Approved-59
Project Member

Comment 6 by sheriffbot@chromium.org, May 12 2017

Labels: -Merge-Request-59 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M59. Please go ahead and merge the CL to branch 3071 manually. Please contact milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), gkihumba@(ChromeOS), Abdul Syed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 7 by sheriffbot@chromium.org, May 15 2017

Cc: gkihumba@google.com
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by kinaba@chromium.org, May 16 2017

Blocked by a merge conflict until  Bug 722225  is merge-approved (or rejected, in the latter case I'll try manual conflict resolution.)
Project Member

Comment 9 by bugdroid1@chromium.org, May 16 2017

Labels: merge-merged-release-R59-9460.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/290bce23787781b0f2bad7e9424b39a647891c42

commit 290bce23787781b0f2bad7e9424b39a647891c42
Author: Kazuhiro Inaba <kinaba@chromium.org>
Date: Tue May 16 11:29:36 2017

cryptohome: Make sure to sync the immediate parent of files newly migrated.

BUG= chromium:720251 
TEST=Migration success (the real failure case is hard to repro and not tested.)

Change-Id: I8df677418515b20325a1d12aa45e40253d21e702
Reviewed-on: https://chromium-review.googlesource.com/501550
Tested-by: Kazuhiro Inaba <kinaba@chromium.org>
Trybot-Ready: Kazuhiro Inaba <kinaba@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org>
(cherry picked from commit 0a8b980c1d344fdfbdda5b5e5cb0662d565ddb57)
Reviewed-on: https://chromium-review.googlesource.com/505981
Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org>

[modify] https://crrev.com/290bce23787781b0f2bad7e9424b39a647891c42/cryptohome/dircrypto_data_migrator/migration_helper.cc

Labels: -Hotlist-Merge-Approved -Merge-Approved-59 Hotlist-Merge-Approve Merge-Merged
Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verified on Kevin cros:9567.0.0/60.0.3103.0 

Sign in to add a comment