[f2fs-dev] [PATCH] Introduce sg_read_buffer

2022-10-26 Thread Randall Huang via Linux-f2fs-devel
Support UFS error history dumping Signed-off-by: Randall Huang --- tools/sg_write_buffer/Android.bp | 19 ++ tools/sg_write_buffer/sg_read_buffer.c | 334 + 2 files changed, 353 insertions(+) create mode 100644 tools/sg_write_buffer/sg_read_buffer.c diff --git a/

[f2fs-dev] [PATCH] f2fs-tools: introduce sg_read_buffer

2022-10-26 Thread Randall Huang via Linux-f2fs-devel
Support UFS error history dumping Signed-off-by: Randall Huang --- tools/sg_write_buffer/Android.bp | 19 ++ tools/sg_write_buffer/sg_read_buffer.c | 334 + 2 files changed, 353 insertions(+) create mode 100644 tools/sg_write_buffer/sg_read_buffer.c diff --git a/

[f2fs-dev] [PATCH v5] f2fs: fix to avoid accessing xattr across the boundary

2019-04-11 Thread Randall Huang via Linux-f2fs-devel
When we traverse xattr entries via __find_xattr(), if the raw filesystem content is faked or any hardware failure occurs, out-of-bound error can be detected by KASAN. Fix the issue by introducing boundary check. [ 38.402878] c7 1827 BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x518/0x68c

Re: [f2fs-dev] [PATCH v3] f2fs: fix to avoid accessing xattr across the boundary

2019-04-10 Thread Randall Huang via Linux-f2fs-devel
On Tue, Apr 09, 2019 at 06:22:55PM +0800, Chao Yu wrote: > On 2019/4/9 16:53, Randall Huang wrote: > > When we traverse xattr entries via __find_xattr(), > > if the raw filesystem content is faked or any hardware failure occurs, > > out-of-bound error can be detected by KASAN. > > Fix the issue by

[f2fs-dev] [PATCH v4] f2fs: fix to avoid accessing xattr across the boundary

2019-04-10 Thread Randall Huang via Linux-f2fs-devel
When we traverse xattr entries via __find_xattr(), if the raw filesystem content is faked or any hardware failure occurs, out-of-bound error can be detected by KASAN. Fix the issue by introducing boundary check. [ 38.402878] c7 1827 BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x518/0x68c

[f2fs-dev] [PATCH v2] f2fs: fix to avoid accessing xattr across the boundary

2019-04-09 Thread Randall Huang via Linux-f2fs-devel
When we traverse xattr entries via __find_xattr(), if the raw filesystem content is faked or any hardware failure occurs, out-of-bound error can be detected by KASAN. Fix the issue by introducing boundary check. [ 38.402878] c7 1827 BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x518/0x68c

[f2fs-dev] [PATCH v3] f2fs: fix to avoid accessing xattr across the boundary

2019-04-09 Thread Randall Huang via Linux-f2fs-devel
When we traverse xattr entries via __find_xattr(), if the raw filesystem content is faked or any hardware failure occurs, out-of-bound error can be detected by KASAN. Fix the issue by introducing boundary check. [ 38.402878] c7 1827 BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x518/0x68c

Re: [f2fs-dev] [PATCH] f2fs: fix to avoid accessing xattr across the boundary

2019-04-09 Thread Randall Huang via Linux-f2fs-devel
On Mon, Apr 08, 2019 at 08:14:43PM +0800, Chao Yu wrote: > On 2019/4/8 20:03, Chao Yu wrote: > > Hi Randall, > > > > On 2019/4/8 16:50, Randall Huang wrote: > >> When we traverse xattr entries via __find_xattr(), > >> if the raw filesystem content is faked or any hardware failure occurs, > >> out-

[f2fs-dev] [PATCH] f2fs: fix to avoid accessing xattr across the boundary

2019-04-08 Thread Randall Huang via Linux-f2fs-devel
When we traverse xattr entries via __find_xattr(), if the raw filesystem content is faked or any hardware failure occurs, out-of-bound error can be detected by KASAN. Fix the issue by introducing boundary check. [ 38.402878] c7 1827 BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x518/0x68c