aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-21release-request-8aff77ce-b1d4-44c8-abb8-c39db5d1e998-for-git_oc-dr1-release- ↵android-8.0.0_r34android-8.0.0_r33android-8.0.0_r27android-8.0.0_r26android-8.0.0_r25android-8.0.0_r24android-8.0.0_r23android-8.0.0_r22android-8.0.0_r21oreo-dr3-releaseoreo-dr2-releaseoreo-dr1-releaseandroid-build-team Robot
4029936 snap-temp-L09300000066301094 Change-Id: I56f23154b27039b44daaa0a0cdcbc70b56225562
2017-05-19Adjust f2fs makefile to cope with <sys/sysmacros.h> split. am: 6bd9b2940d ↵oreo-dr1-devElliott Hughes
am: b8d5850d6b am: f34e8f421d am: e8b99cf64c Change-Id: I188e40b18739e4ec6d4f5af0ef48d5aee3147963
2017-05-19Adjust f2fs makefile to cope with <sys/sysmacros.h> split. am: 6bd9b2940d ↵Elliott Hughes
am: b8d5850d6b am: f34e8f421d Change-Id: I5c855cf49ad5632720aeacfd2423a6d8a4ef2d93
2017-05-19Adjust f2fs makefile to cope with <sys/sysmacros.h> split. am: 6bd9b2940dElliott Hughes
am: b8d5850d6b Change-Id: I126ebc7432f42720dbd1a553f280f1b8449171a7
2017-05-19Adjust f2fs makefile to cope with <sys/sysmacros.h> split.Elliott Hughes
am: 6bd9b2940d Change-Id: Id01010a15769672c5cbdd01ee88fb0c23fbe0190
2017-05-18Adjust f2fs makefile to cope with <sys/sysmacros.h> split.Elliott Hughes
Bug: https://github.com/android-ndk/ndk/issues/398 Test: builds Change-Id: Ifc4892f09a32bda246bdf60cd9864d43f06028d4
2017-05-10release-request-70e541de-d91e-4004-8c17-3147135eff42-for-git_oc-dr1-release- ↵android-build-team Robot
3993143 snap-temp-L23100000062404817 Change-Id: I51d421e2d75254c8daf7f6f6bc7d708d0e9bb550
2017-05-09release-request-66ee9889-2756-44aa-9b4c-91e7b5c1058c-for-git_oc-dr1-release- ↵android-build-team Robot
3988462 snap-temp-L14700000061937187 Change-Id: I282cb8edd90e3f7eb9b807eb2f8d8894a6c9867e
2017-05-08fsck.f2fs: sanity check segno and blk_off when building curseg arrayJin Qian
segno and blk_off were read from input image without sanity check. This could lead to buffer overflow when accessing internal arrays like SIT sentries and seg_entry cur_valid_map. Bug: 36266023 Change-Id: I09a54c61707ec40607bb8314276875ce7ab4c22a Signed-off-by: Jin Qian <jinqian@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-05-08fsck.f2fs: sanity check cp_payload before reading checkpointJin Qian
cp_payload is not sanity checked from input image. A invalid size can cause buffer overflow when reading checkpoint blks into memory. Bug: 36493182 Change-Id: I3ee62cbd6817e267de607454dd7223a4f0fd2c4d Signed-off-by: Jin Qian <jinqian@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-05-08fsck.f2fs: sanity check blk_off for summary block entriesJin Qian
crafted malicious f2fs partition can fill an out of bound blk_off, which cause overflow when accessing summary block entries. Bug: 36394556 Change-Id: Icf0dfa7803a377c140b7d30cd7037c6058a4f8ea Signed-off-by: Jin Qian <jinqian@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-05-08f2fs-tools: sanity check segment countJin Qian
make sure segment count in super block doesn't exceed F2FS_MAX_SEGMENT. Bug: 36392513 Bug: 36815012 Change-Id: I0f699f58fb6bab27008a7ab956a87fe241bb0169 Signed-off-by: Jin Qian <jinqian@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-05-08fsck.f2fs: fix cur_valid_map buffer overflowJin Qian
blk_off is read from image. Attacker can construct an image with big blk_off that trigger overflow on se->cur_valid_map. Bug: 36277742 Change-Id: I913f30d3b6389bf93cf211f6fb3510a37075d618 Signed-off-by: Jin Qian <jinqian@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-05-08f2fs-tools: update android makefile after upgrading to 1.8.0 am: cb1d44227d ↵Jin Qian
am: 9c708503ba am: cef78a95c1 am: 6f4b7b6b15 Change-Id: I97a7c68c80acfa9762791ff468b5287d179f317f
2017-05-08Merge branch 'remotes/goog/upstream-master' into master am: 0254bdb9e1 am: ↵Jin Qian
5bf5839828 am: f4bfa40f51 am: 93f3f63159 Change-Id: Id4b459557ea7a6a32c576aa4914ef95f6df1366b
2017-05-08f2fs-tools: update android makefile after upgrading to 1.8.0 am: cb1d44227d ↵Jin Qian
am: 9c708503ba am: cef78a95c1 Change-Id: If8c9e5d6e5d0b7ad3881d49576207079b3aa418c
2017-05-08Merge branch 'remotes/goog/upstream-master' into master am: 0254bdb9e1 am: ↵Jin Qian
5bf5839828 am: f4bfa40f51 Change-Id: I2e56540d25d730f5261a26ecd190233c64c80bd6
2017-05-08f2fs-tools: update android makefile after upgrading to 1.8.0 am: cb1d44227dJin Qian
am: 9c708503ba Change-Id: Idb96b619f6901e8f08c8df3d0038244579b296c6
2017-05-08Merge branch 'remotes/goog/upstream-master' into master am: 0254bdb9e1Jin Qian
am: 5bf5839828 Change-Id: Icdeb9668d82ad8eea318065879fa32e4126275ce
2017-05-08f2fs-tools: update android makefile after upgrading to 1.8.0Jin Qian
am: cb1d44227d Change-Id: Ibd48efee95a47f766784e11f9671cd990f20f2f9
2017-05-08Merge branch 'remotes/goog/upstream-master' into masterJin Qian
am: 0254bdb9e1 Change-Id: Ib680dd7a999cad7f605e2cb28dd7d68340a98bba
2017-05-04f2fs-tools: update android makefile after upgrading to 1.8.0Jin Qian
Test: format userdata to f2fs and boot Bug: 37758867 Change-Id: I0bdb7c4235d454094ff37182b2ef8e817b74dbc4
2017-05-04Merge branch 'remotes/goog/upstream-master' into masterJin Qian
upgrade f2fs-tools from 1.4.1 to 1.8.0 Test: format userdata to f2fs and boot Bug: 37758867 Change-Id: I969cae118b88111cdbcecb00dbb1575b17f03f5a
2017-04-05LOCAL_EXPORT_CFLAGS doesn't exist am: a32b1b9703Dan Willemsen
am: 657b6bc2be Change-Id: I7ab1e888f9189ba53613519938cbd3e0c7e1f7ff
2017-04-05LOCAL_EXPORT_CFLAGS doesn't existDan Willemsen
am: a32b1b9703 Change-Id: Icf87ed5fbf263e4227e3f5d319f9dddbded0750f
2017-04-05LOCAL_EXPORT_CFLAGS doesn't existandroid-wear-o-preview-4android-wear-o-preview-3android-vts-8.0_r9android-vts-8.0_r8android-vts-8.0_r7android-vts-8.0_r6android-vts-8.0_r2android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10android-vts-8.0_r1android-o-preview-4android-o-preview-3android-o-preview-2android-o-iot-preview-5android-cts-8.0_r9android-cts-8.0_r8android-cts-8.0_r7android-cts-8.0_r6android-cts-8.0_r5android-cts-8.0_r4android-cts-8.0_r3android-cts-8.0_r26android-cts-8.0_r25android-cts-8.0_r24android-cts-8.0_r23android-cts-8.0_r22android-cts-8.0_r21android-cts-8.0_r20android-cts-8.0_r2android-cts-8.0_r19android-cts-8.0_r18android-cts-8.0_r17android-cts-8.0_r16android-cts-8.0_r15android-cts-8.0_r14android-cts-8.0_r13android-cts-8.0_r12android-cts-8.0_r11android-cts-8.0_r10android-cts-8.0_r1android-8.0.0_r9android-8.0.0_r7android-8.0.0_r4android-8.0.0_r36android-8.0.0_r35android-8.0.0_r32android-8.0.0_r31android-8.0.0_r30android-8.0.0_r3android-8.0.0_r29android-8.0.0_r28android-8.0.0_r2android-8.0.0_r17android-8.0.0_r16android-8.0.0_r15android-8.0.0_r13android-8.0.0_r12android-8.0.0_r11android-8.0.0_r10android-8.0.0_r1oreo-vts-releaseoreo-releaseoreo-r6-releaseoreo-r5-releaseoreo-r4-releaseoreo-r3-releaseoreo-r2-releaseoreo-devoreo-cts-releaseo-preview-4o-preview-3o-preview-2o-iot-preview-5Dan Willemsen
It's about to exist, but it will be an error to use in normal Android.mk files. Test: none, this is a no-op Change-Id: Id6ed07061a28caf83a54bc06be916446a09b939a
2017-04-04Merge "LOCAL_EXPORT_CFLAGS doesn't exist" am: ff6619b739 am: 0b45c15ecc am: ↵android-wear-8.0.0_r2android-wear-8.0.0_r1Dan Willemsen
d035d7af83 am: b3d61c3e76 Change-Id: Ief66af95ace881fb6213d483bd50d040cf7a962c
2017-04-04Merge "LOCAL_EXPORT_CFLAGS doesn't exist" am: ff6619b739 am: 0b45c15eccDan Willemsen
am: d035d7af83 Change-Id: I11b05beac2219da6cc03c1b54e5555a082b6d195
2017-04-04Merge "LOCAL_EXPORT_CFLAGS doesn't exist" am: ff6619b739Dan Willemsen
am: 0b45c15ecc Change-Id: I4659b076a0629cc67ee8a6b4d3021d70331729f1
2017-04-04Merge "LOCAL_EXPORT_CFLAGS doesn't exist"Dan Willemsen
am: ff6619b739 Change-Id: I66e6ef3cd9ada87e475d17f2460ca15286c2b5c1
2017-04-04Merge "LOCAL_EXPORT_CFLAGS doesn't exist"Treehugger Robot
2017-04-04LOCAL_EXPORT_CFLAGS doesn't existDan Willemsen
It's about to exist, but it will be an error to use in normal Android.mk files. Test: none, this is a no-op Change-Id: Id6ed07061a28caf83a54bc06be916446a09b939a
2017-02-03f2fs-tools: release 1.8.0Jaegeuk Kim
This release includes: - enhance fsck.f2fs mostly. - retrieve lost files from dump.f2fs. - support zoned device and multiple devices. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-02-03mkfs.f2fs: fix bad assignment of total_sectors for f2fs_configurationKinglong Mee
wanted_total_sectors is introduced instead total_sectors, so that, the initialize is a fault, drop it. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-02-01fsck.f2fs: remove wrong dentry due to hash conversionJaegeuk Kim
This patch removes stale dentries remained by hash conversion issue which happened long time ago. Fixes: aafe2ca3dc72 ("fsck.f2fs: fix wrong hash_code made by previous buggy code") Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-26Remove "-host" suffix from libext2* references. am: 52a2cdcb1a am: ↵android-o-preview-1o-previewAlex Deymo
cd957bfe94 am: efe9697e68 am: 3f26d468d9 Change-Id: I6e6d89e2dac616bdb29921838de7f6cd96c04306
2017-01-25Remove "-host" suffix from libext2* references. am: 52a2cdcb1a am: cd957bfe94Alex Deymo
am: efe9697e68 Change-Id: Ib6113b1fc48b908c07dd8462af44abc38faef304
2017-01-25Remove "-host" suffix from libext2* references. am: 52a2cdcb1aAlex Deymo
am: cd957bfe94 Change-Id: Ib9c1352c15acfd2ef4bc9c97ad3ebfb08af5d049
2017-01-25Remove "-host" suffix from libext2* references.Alex Deymo
am: 52a2cdcb1a Change-Id: I6cc3c8b1d502d75d122545e0803e9a6e052d67ea
2017-01-24fsck.f2fs: always fix seg entry type if it is not DATALiu Xue
If the segment type and sum footer type are node, but its sit type is corrupted as cold data, this will always trigger type error crash in do_garbage_collect but not get fixed by fsck, so fix seg entry type when it is not DATA. Reported-by: KARBOWSKI Piotr <piotr.karbowski@gmail.com> Signed-off-by: Liu Xue <liuxueliu.liu@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-24mkfs.f2fs: fix a segfault when setting more than 7 devicesKinglong Mee
[root@localhost f2fs-tools]# mkfs.f2fs -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 -c /dev/sdb1 /dev/sdb1 kernel: mkfs.f2fs[9047]: segfault at 2b78a60f ip 0000000000401356 sp 00007fffde05c9c0 error 6 in mkfs.f2fs[400000+5000] Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-21fsck.f2fs: show parse errors neatlyJaegeuk Kim
This patch is just to clean up. Cc: Sheng Yong <shengyong1@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-21fsck.f2fs: support -p without argumentJaegeuk Kim
This patch allows fsck run -p without argument. So we could use -p as -p, -p 0, -p 1. '-p' and '-p 0' have the same meaning as '-a'. '-p 1' check more meta data than '-a'. Reported-by: KARBOWSKI Piotr <piotr.karbowski@gmail.com> Signed-off-by: Sheng Yong <shengyong1@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-19f2fs-tools: correct endiannessSheng Yong
It is reported that fsck.f2fs behaves abnormally when running on MIPS32 rel 2 big endian cpu, since incorrect endianness. So let's correct all endianess issues of f2fs-tools. Reported-by: <k@vodka.home.kg> Signed-off-by: Sheng Yong <shengyong1@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-13Remove "-host" suffix from libext2* references.Alex Deymo
Bug: 34220783 Test: make checkbuild Change-Id: I16b5969da75cc58297c35c34a698a5a5aa80f683
2017-01-13Add a configure option for SELinux supportSergey Kvachonok
./configure --without-selinux :: unconditionally disable SELinux support ./configure --with-selinux :: enable SELinux support and abort if libselinux is not found When no configure option is specified the current libselinux autodetection behaviour is preserved. Signed-off-by: Sergey Kvachonok <ravenexp@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-01-12Remote "_host" and "_static" suffix from libsparse. am: b54dc047e6 am: ↵Alex Deymo
4690bb2996 am: 365f4cdb6b am: 46a72c5e17 Change-Id: Ib27fe08a05d75840b30d13b0057886c334720f56
2017-01-12Remote "_host" and "_static" suffix from libsparse. am: b54dc047e6 am: ↵Alex Deymo
4690bb2996 am: 365f4cdb6b Change-Id: Idb4f4a642f70b44b5ace926ed27a16497407fa3c
2017-01-12Remote "_host" and "_static" suffix from libsparse. am: b54dc047e6Alex Deymo
am: 4690bb2996 Change-Id: I84d765449d0b4c79a0ee5e3019c84d4a3294825e
2017-01-12Remote "_host" and "_static" suffix from libsparse.Alex Deymo
am: b54dc047e6 Change-Id: Iaf9375511455071ab36107ebd5a9807785311c56