Re: WARNING: ODEBUG bug in f2fs_fill_super

2019-02-20 Thread Sheng Yong
t lib/debugobjects.c:329 debug_print_object+0x16a/0x210 lib/debugobjects.c:326 Kernel panic - not syncing: panic_on_warn set ... Was this fixed by something? It happened a number of times, but then stopped after Oct 23 2018. Was it: commit 26b5a079197c8cb6725565968b7fd3299bd1877b Author: Sheng

[PATCH v2] staging: erofs: fix memleak of inode's shared xattr array

2019-02-13 Thread Sheng Yong
If it fails to read a shared xattr page, the inode's shared xattr array is not freed. The next time the inode's xattr is accessed, the previously allocated array is leaked. Signed-off-by: Sheng Yong --- v2: * s/node/inode in commit message * add prefix `staging:' to the subje

[PATCH] erofs: fix memleak of node's shared xattr array

2019-02-13 Thread Sheng Yong
If it fails to read a shared xattr page, the node's shared xattr array is not freed. The next time the node's xattr is accessed, the previously allocated array is leaked. Signed-off-by: Sheng Yong --- drivers/staging/erofs/xattr.c | 5 - 1 file changed, 4 insertions(+), 1 deletio

Re: [PATCH] fsck.f2fs: check nid range before use to avoid segmentation fault

2017-12-15 Thread Sheng Yong
On 2017/12/15 14:26, Yunlong Song wrote: Signed-off-by: Yunlong Song --- fsck/fsck.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 11b8b0b..2212aa3 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -14,6 +14,15 @@ char *tree_ma

Re: [PATCH] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-15 Thread Sheng Yong
On 2017/12/15 14:25, Yunlong Song wrote: Signed-off-by: Yunlong Song --- fsck/fsck.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 2212aa3..8ff4e4b 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -643,7 +643,7 @@ void

Re: 答复: [PATCH] mtd: cmdlinepart: allow fill-up partition at any point

2015-10-17 Thread Sheng Yong
On 10/14/2015 1:51 AM, Brian Norris wrote: > Hi, > > First of all, I don't know why this message is in reply to the $subject > thread. Bad block markers have nothing to do with cmdlineparts. > > On Tue, Oct 13, 2015 at 08:53:04AM +, Yanjiantao wrote: >> Hi, >> In linux-3.10 and later kernel

[PATCH] cgroup: return -ESRCH if no tasks get migrated

2015-06-23 Thread Sheng Yong
s OK to skip tasks which are not migrated. So we check if the return value of cgroup_migrate() is -ESRCH, and do not break the procedure if it is so. Fixes: 081aa458c38b ("cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()") Reported-by: Zhang Kui Signed-off-by: Sheng Yong

[RFC PATCH] genksyms: fix segmentation fault when parsing redefinition of typedef

2015-03-03 Thread Sheng Yong
k if the first argument is NULL before using it. Then we could get the gcc error message. Sheng Yong (1): genksyms: fix segmentation fault when parsing redefinition of typedef scripts/genksyms/genksyms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 1.8.3.4 -- To unsubscri

[RFC PATCH] genksyms: fix segmentation fault when parsing redefinition of typedef

2015-03-03 Thread Sheng Yong
Check if name is NULL to avoid segmentation fault when generate crc32 value. Otherwise, it is not easy to find out what is wrong in the code. If name is NULL, just return it and continue, then gcc could find out the incorrect position. Signed-off-by: Sheng Yong --- scripts/genksyms/genksyms.c

[PATCH] memory hotplug: Use macro to switch between section and pfn

2015-02-13 Thread Sheng Yong
Use macro section_nr_to_pfn and pfn_to_section_nr to switch between section and pfn, instead of bit operations, no semantic changes. Signed-off-by: Sheng Yong --- drivers/base/memory.c | 2 +- mm/memory_hotplug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers