OSDN Git Service

Explain why we have a test that FALLOC_FL_PUNCH_HOLE is missing.
authorJosh Gao <jmgao@google.com>
Fri, 2 Jun 2017 21:57:49 +0000 (14:57 -0700)
committerJosh Gao <jmgao@google.com>
Fri, 2 Jun 2017 21:58:44 +0000 (14:58 -0700)
Change-Id: I7388f2e0bc419f195247a1d3e73195cb4d199d5c
Test: none

tests/fcntl_test.cpp

index 275a5da..1bef0f4 100644 (file)
@@ -277,9 +277,10 @@ static bool parse_kernel_release(long* const major, long* const minor) {
 }
 
 /*
- * Kernels less than 4.1 are affected.
- * Devices that fail this test should include change id from Nexus:
- * Commit: 9b431291a1fadbdbcca1485711b5bab145112293
+ * b/28760453:
+ * Kernels older than 4.1 should have ext4 FALLOC_FL_PUNCH_HOLE disabled due to CVE-2015-8839.
+ * Devices that fail this test should cherry-pick the following commit:
+ * https://android.googlesource.com/kernel/msm/+/bdba352e898cbf57c8620ad68c8abf749c784d1f
  */
 TEST(fcntl, falloc_punch) {
   long major = 0, minor = 0;