How to get creatior PID information for the local tcp connection

2016-04-07 Thread Vishnu Pratap Singh
Hi, Issue - How to get PID information for the local tcp connection i want to get the creator PID for each socket in user space for local tcp connection, i see in kernel there is support for returing PID with "SO_PEERCRED" ioctl to work across namespaces. it uses struct pid and struct cred

How to get creatior PID information for the local tcp connection

2016-04-07 Thread Vishnu Pratap Singh
Hi, Issue - How to get PID information for the local tcp connection i want to get the creator PID for each socket in user space for local tcp connection, i see in kernel there is support for returing PID with "SO_PEERCRED" ioctl to work across namespaces. it uses struct pid and struct cred

[PATCH v2] block/floppy.c: handle blk_register_region() return value

2015-11-09 Thread Vishnu Pratap Singh
This patch handles blk_register_region() return value. Earlier blk_register_region() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Signed-off-by: Vishnu Pratap Singh --- - Verfied on X86 based ubuntu machine. - This patch depends

[PATCH v2] block/floppy.c: handle blk_register_region() return value

2015-11-09 Thread Vishnu Pratap Singh
This patch handles blk_register_region() return value. Earlier blk_register_region() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- - Verfied on X86 based ubuntu m

[PATCH 2/8] mmc: handle add_disk() return value

2015-11-08 Thread Vishnu Pratap Singh
This patch handles add_disk() return value. Earlier add_disk() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Signed-off-by: Vishnu Pratap Singh --- Verfied on X86 based ubuntu machine. --- This patch depends on [PATCH 1/8] block

[PATCH 3/8] block/floppy.c: handle blk_register_region() return value

2015-11-08 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh --- drivers/block/floppy.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 331363e..50802a6 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -4219,8

[PATCH 3/8] block/floppy.c: handle blk_register_region() return value

2015-11-08 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/block/floppy.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 331363e..50802a6 100644 --- a/drivers/block/floppy.c +++ b/drivers

[PATCH 2/8] mmc: handle add_disk() return value

2015-11-08 Thread Vishnu Pratap Singh
This patch handles add_disk() return value. Earlier add_disk() function doesn't handle error cases, now it is added, so the callers of this function should also handle it. Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- Verfied on X86 based ubuntu machine. --- This patch d

[PATCH 8/8] ide/ide-probe.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh --- drivers/ide/ide-probe.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 0b63fac..651eb05 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -917,9

[PATCH 7/8] cdrom/gdrom.c: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
-by: Vishnu Pratap Singh --- drivers/cdrom/gdrom.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 584bc31..38ca43a 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c @@ -817,9 +817,14 @@ static int probe_gdrom

[PATCH 6/8] md/md.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh --- drivers/md/md.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index a71b36f..244bb26 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8940,10 +8940,12 @@ static int __init

[PATCH 5/8] zram: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
ling Signed-off-by: Vishnu Pratap Singh --- drivers/block/z2ram.c | 12 ++-- drivers/block/zram/zram_drv.c | 9 ++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index 968f9e5..85e841f 100644 --- a/drivers/b

[PATCH 4/8] block/loop.c: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
ling Signed-off-by: Vishnu Pratap Singh --- drivers/block/loop.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 423f4ca..22e6fd0 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1794,10 +179

[PATCH 3/8] block/floppy.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh --- drivers/block/floppy.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 331363e..50802a6 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -4219,8

[PATCH 2/8] mmc: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
-by: Vishnu Pratap Singh --- drivers/mmc/card/block.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 23b6c8e..543c670 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2432,7 +2432,10 @@ static int

[PATCH 1/8] block/genhd.c: Add error handling

2015-11-06 Thread Vishnu Pratap Singh
no error handling and it may cause stability issues also. Verfied on X86 based ubuntu machine. Signed-off-by: Vishnu Pratap Singh --- block/genhd.c | 89 +++ include/linux/genhd.h | 4 +-- 2 files changed, 64 insertions(+), 29 deletions(-) di

[PATCH 1/8] block/genhd.c: Add error handling

2015-11-06 Thread Vishnu Pratap Singh
no error handling and it may cause stability issues also. Verfied on X86 based ubuntu machine. Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- block/genhd.c | 89 +++ include/linux/genhd.h | 4 +-- 2 files changed, 64 ins

[PATCH 3/8] block/floppy.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/block/floppy.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 331363e..50802a6 100644 --- a/drivers/block/floppy.c +++ b/drivers

[PATCH 7/8] cdrom/gdrom.c: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/cdrom/gdrom.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 584bc31..38ca43a 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c @@ -817,9 +

[PATCH 5/8] zram: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
ling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/block/z2ram.c | 12 ++-- drivers/block/zram/zram_drv.c | 9 ++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index 968f9e5..85e8

[PATCH 4/8] block/loop.c: handle add_disk() & blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
ling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/block/loop.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 423f4ca..22e6fd0 100644 --- a/drivers/block/loop.c +++ b/drivers/bl

[PATCH 6/8] md/md.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/md/md.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index a71b36f..244bb26 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8940,10 +8

[PATCH 8/8] ide/ide-probe.c: handle blk_register_region() return value

2015-11-06 Thread Vishnu Pratap Singh
handling Signed-off-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/ide/ide-probe.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 0b63fac..651eb05 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/i

[PATCH 2/8] mmc: handle add_disk() return value

2015-11-06 Thread Vishnu Pratap Singh
-by: Vishnu Pratap Singh <vishnu...@samsung.com> --- drivers/mmc/card/block.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 23b6c8e..543c670 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -

[PATCH] block/genhd.c: Add error handling

2015-07-26 Thread Vishnu Pratap Singh
no error handling and it may cause stability issues also. Verfied on X86 based ubuntu machine. Signed-off-by: Vishnu Pratap Singh --- block/genhd.c | 92 ++--- include/linux/genhd.h |4 +-- 2 files changed, 67 insertions(+), 29 deletions(

[PATCH] block/genhd.c: Add error handling

2015-07-26 Thread Vishnu Pratap Singh
handling and it may cause stability issues also. Verfied on X86 based ubuntu machine. Signed-off-by: Vishnu Pratap Singh vishnu...@samsung.com --- block/genhd.c | 92 ++--- include/linux/genhd.h |4 +-- 2 files changed, 67 insertions(+), 29

[PATCH] lib/show_mem.c: correct reserved memory calculation

2015-07-20 Thread Vishnu Pratap Singh
ages cma reserved Also this patch change printk to pr_info. Signed-off-by: Vishnu Pratap Singh --- lib/show_mem.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/show_mem.c b/lib/show_mem.c index adc98e18..0af5ede 100644 --- a/lib/show_mem.c +++ b/lib/sh

[PATCH] lib/show_mem.c: correct reserved memory calculation

2015-07-20 Thread Vishnu Pratap Singh
reserved Also this patch change printk to pr_info. Signed-off-by: Vishnu Pratap Singh vishnu...@samsung.com --- lib/show_mem.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/show_mem.c b/lib/show_mem.c index adc98e18..0af5ede 100644 --- a/lib/show_mem.c

[PATCHv2] init/do_mounts: Add create_dev() failure log

2015-05-26 Thread Vishnu Pratap Singh
Pratap Singh --- As per the review comment. init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..f742250 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init mount_root(void

[PATCHv2] init/do_mounts: Add create_dev() failure log

2015-05-26 Thread Vishnu Pratap Singh
Pratap Singh vishnu...@samsung.com --- As per the review comment. init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..f742250 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-25 Thread Vishnu Pratap Singh
Pratap Singh --- init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..a68aaf6 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init mount_root(void) } #endif #ifdef

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-25 Thread Vishnu Pratap Singh
Pratap Singh vishnu...@samsung.com --- init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..a68aaf6 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init mount_root(void

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-24 Thread Vishnu Pratap Singh
Pratap Singh --- init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..a68aaf6 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init mount_root(void) } #endif #ifdef

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-24 Thread Vishnu Pratap Singh
Pratap Singh vishnu...@samsung.com --- init/do_mounts.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 8369ffa..a68aaf6 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -532,7 +532,8 @@ void __init mount_root(void

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-22 Thread Vishnu Pratap Singh
Pratap Singh --- init/do_mounts.h |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.h b/init/do_mounts.h index f5b978a..40c85e9 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -15,8 +15,12 @@ extern int root_mountflags; static inline int create_dev

[PATCH] init/do_mounts: Add create_dev() failure log

2015-05-22 Thread Vishnu Pratap Singh
Pratap Singh vishnu...@samsung.com --- init/do_mounts.h |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.h b/init/do_mounts.h index f5b978a..40c85e9 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -15,8 +15,12 @@ extern int root_mountflags; static

[PATCH] lib: show_mem: This patch adds cma reserved infromation

2014-10-22 Thread Vishnu Pratap Singh
This patch adds cma reserved information which is currently shown as a part of total reserved only. This patch is continuation of our previos cma patches related to this. https://lkml.org/lkml/2014/10/20/64 https://lkml.org/lkml/2014/10/22/383 Signed-off-by: Vishnu Pratap Singh --- lib

[PATCH] lib: show_mem: This patch adds cma reserved infromation

2014-10-22 Thread Vishnu Pratap Singh
This patch adds cma reserved information which is currently shown as a part of total reserved only. This patch is continuation of our previos cma patches related to this. https://lkml.org/lkml/2014/10/20/64 https://lkml.org/lkml/2014/10/22/383 Signed-off-by: Vishnu Pratap Singh vishnu

[PATCH] [kernel]: process: replace printk with pr_err

2014-10-15 Thread Vishnu Pratap Singh
This patch replaces printk(KERN_ERR...) with pr_err found. Signed-off-by: Vishnu Pratap Singh --- kernel/power/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/process.c b/kernel/power/process.c index 7b32322..401f7ee 100644 --- a/kernel/power/process.c

[PATCH] [kernel]: process: replace printk with pr_err

2014-10-15 Thread Vishnu Pratap Singh
This patch replaces printk(KERN_ERR...) with pr_err found. Signed-off-by: Vishnu Pratap Singh vishnu...@samsung.com --- kernel/power/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/process.c b/kernel/power/process.c index 7b32322..401f7ee 100644

[PATCH] kernel/signal.c: whitespace fixes

2014-09-02 Thread Vishnu Pratap Singh
xO) - 11 ERROR: space prohibited after that '~' (ctx:OxW) - 11 ERROR: trailing whitespace - 4 ERROR: space required after that ',' (ctx:VxV) - 4 ERROR: trailing statements should be on next line - 3 ERROR: "foo * bar" should be "foo *bar" - 1 total 52 errors fixed. Signed-off-by

[PATCH] kernel/signal.c: whitespace fixes

2014-09-02 Thread Vishnu Pratap Singh
'' (ctx:WxO) - 11 ERROR: space prohibited after that '~' (ctx:OxW) - 11 ERROR: trailing whitespace - 4 ERROR: space required after that ',' (ctx:VxV) - 4 ERROR: trailing statements should be on next line - 3 ERROR: foo * bar should be foo *bar - 1 total 52 errors fixed. Signed-off-by: Vishnu Pratap Singh