Right. Should have checked the commit history ... this has been brought up
before:
> Peter Zijlstra - May 18, 2016, 5:02 p.m.
>
> > +struct task_struct *task_rcu_dereference(struct task_struct **ptask)
> > +{
> > + struct task_struct *task;
> > + struct sighand_struct *sighand;
>
> I think
Right. Should have checked the commit history ... this has been brought up
before:
> Peter Zijlstra - May 18, 2016, 5:02 p.m.
>
> > +struct task_struct *task_rcu_dereference(struct task_struct **ptask)
> > +{
> > + struct task_struct *task;
> > + struct sighand_struct *sighand;
>
> I think
> On Apr 20, 2015, at 5:10 PM, Andrew Morton wrote:
>
> On Mon, 20 Apr 2015 13:50:38 -0700 Linus Torvalds
> wrote:
>
>> On Sun, Apr 19, 2015 at 8:45 PM, Chengyu Song wrote:
>>>
>>> As suggested in the patch, -19 (-ENODEV) happens when debugfs is
On Apr 20, 2015, at 5:10 PM, Andrew Morton a...@linux-foundation.org wrote:
On Mon, 20 Apr 2015 13:50:38 -0700 Linus Torvalds
torva...@linux-foundation.org wrote:
On Sun, Apr 19, 2015 at 8:45 PM, Chengyu Song cson...@gatech.edu wrote:
As suggested in the patch, -19 (-ENODEV) happens
Hi Ying,
As suggested in the patch, -19 (-ENODEV) happens when debugfs is not
configured (see include/linux/debugfs.h). So if debugfs is necessary for the
functionality, in Kconfig, we should either declare it as a dependency, or auto
select it.
Chengyu
> On Apr 19, 2015, at 11:25 PM, Huang
Hi Ying,
As suggested in the patch, -19 (-ENODEV) happens when debugfs is not
configured (see include/linux/debugfs.h). So if debugfs is necessary for the
functionality, in Kconfig, we should either declare it as a dependency, or auto
select it.
Chengyu
On Apr 19, 2015, at 11:25 PM, Huang
Cool. Sent.
> On Mar 25, 2015, at 4:09 PM, J. Bruce Fields wrote:
>
> On Wed, Mar 25, 2015 at 12:41:29PM -0400, Chengyu Song wrote:
>> There may be a simpler solution, declare NFSD_FAULT_INJECTION has dependency
>> on DEBUG_FS, or automatically select DEBUG_FS.
&g
NFSD_FAULT_INJECTION depends on DEBUG_FS, otherwise the debugfs_create_*
interface may return unexpected error -ENODEV, and cause system crash.
Signed-off-by: Chengyu Song
---
fs/nfsd/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig
> On Mar 24, 2015, at 10:29 PM, Steve French wrote:
>
> On Tue, Mar 24, 2015 at 7:18 PM, Chengyu Song wrote:
>> posix_lock_file_wait may fail under certain circumstances, and its result is
>> usually checked/returned. But given the complexity of cifs, I'm not
interface
may change in the future.
Does this sounds like a solution? If so, I can submit a patch for Kconfig.
Best,
Chengyu
> On Mar 25, 2015, at 11:17 AM, J. Bruce Fields wrote:
>
> On Mon, Mar 23, 2015 at 10:58:05PM -0400, Chengyu Song wrote:
>> debugfs_create_dir and debugfs_create_
On Mar 24, 2015, at 10:29 PM, Steve French smfre...@gmail.com wrote:
On Tue, Mar 24, 2015 at 7:18 PM, Chengyu Song cson...@gatech.edu wrote:
posix_lock_file_wait may fail under certain circumstances, and its result is
usually checked/returned. But given the complexity of cifs, I'm not sure
interface
may change in the future.
Does this sounds like a solution? If so, I can submit a patch for Kconfig.
Best,
Chengyu
On Mar 25, 2015, at 11:17 AM, J. Bruce Fields bfie...@fieldses.org wrote:
On Mon, Mar 23, 2015 at 10:58:05PM -0400, Chengyu Song wrote:
debugfs_create_dir
NFSD_FAULT_INJECTION depends on DEBUG_FS, otherwise the debugfs_create_*
interface may return unexpected error -ENODEV, and cause system crash.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/nfsd/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/Kconfig b
Cool. Sent.
On Mar 25, 2015, at 4:09 PM, J. Bruce Fields bfie...@fieldses.org wrote:
On Wed, Mar 25, 2015 at 12:41:29PM -0400, Chengyu Song wrote:
There may be a simpler solution, declare NFSD_FAULT_INJECTION has dependency
on DEBUG_FS, or automatically select DEBUG_FS.
Oh, I forgot
block_truncate_page may fail under certain circumstances, so its result
should be checked.
Signed-off-by: Chengyu Song
---
fs/ufs/truncate.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c
index f04f89f..8b41f07 100644
--- a/fs/ufs
In case of memory allocation error, the return should be -ENOMEM,
instead of -ENOSPC.
Signed-off-by: Chengyu Song
---
fs/hfsplus/dir.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c
index f0235c1..3074609 100644
--- a/fs/hfsplus/dir.c
In case of memory allocation error, the return should be -ENOMEM,
instead of -ENOSPC.
Signed-off-by: Chengyu Song
---
fs/hfs/dir.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c
index 1455668..36d1a6a 100644
--- a/fs/hfs/dir.c
+++ b/fs/hfs
posix_lock_file_wait may fail under certain circumstances, and its result is
usually checked/returned. But given the complexity of cifs, I'm not sure if
the result is intentially left unchecked and always expected to succeed.
Signed-off-by: Chengyu Song
---
fs/cifs/file.c | 4 ++--
1 file
read_cache_page returns -EIO on error, so the return should be checked
against ERROR_VALUE instead of NULL.
Signed-off-by: Chengyu Song
---
fs/logfs/segment.c | 4 ++--
fs/logfs/super.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/logfs/segment.c b/fs/logfs
fiemap_fill_next_extent returns 0 on success, -errno on error, 1 if this was
the last extent that will fit in user array. If 1 is returned, the return
value may eventually returned to user space, which should not happen, according
to manpage of ioctl.
Signed-off-by: Chengyu Song
---
fs/btrfs
fiemap_fill_next_extent returns 0 on success, -errno on error, 1 if this was
the last extent that will fit in user array. If 1 is returned, the return
value may eventually returned to user space, which should not happen, according
to manpage of ioctl.
Signed-off-by: Chengyu Song cson
read_cache_page returns -EIO on error, so the return should be checked
against ERROR_VALUE instead of NULL.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/logfs/segment.c | 4 ++--
fs/logfs/super.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/logfs
posix_lock_file_wait may fail under certain circumstances, and its result is
usually checked/returned. But given the complexity of cifs, I'm not sure if
the result is intentially left unchecked and always expected to succeed.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/cifs/file.c | 4
block_truncate_page may fail under certain circumstances, so its result
should be checked.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/ufs/truncate.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c
index f04f89f..8b41f07
In case of memory allocation error, the return should be -ENOMEM,
instead of -ENOSPC.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/hfsplus/dir.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c
index f0235c1..3074609 100644
In case of memory allocation error, the return should be -ENOMEM,
instead of -ENOSPC.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/hfs/dir.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c
index 1455668..36d1a6a 100644
--- a/fs/hfs
with the same
#ifdef CONFIG_DEBUG_FS. But I'm not sure if this would break any functionality,
as only OCFS2_FS_STATS declares dependency on DEBUG_FS.
Signed-off-by: Chengyu Song
---
fs/ocfs2/cluster/heartbeat.c | 42 +++---
fs/ocfs2/dlmglue.c | 2 +-
fs
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song
---
fs/nfsd/fault_inject.c
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song
---
fs/gfs2/glock.c | 47
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song
---
fs/dlm/debug_fs.c | 70
with the same
#ifdef CONFIG_DEBUG_FS. But I'm not sure if this would break any functionality,
as only OCFS2_FS_STATS declares dependency on DEBUG_FS.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/ocfs2/cluster/heartbeat.c | 42 +++---
fs/ocfs2/dlmglue.c
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs/dlm
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs
debugfs_create_dir and debugfs_create_file may return -ENODEV when debugfs
is not configured, so the return value should be checked against ERROR_VALUE
as well, otherwise the later dereference of the dentry pointer would crash
the kernel.
Signed-off-by: Chengyu Song cson...@gatech.edu
---
fs
34 matches
Mail list logo