[PATCH net] RDS: Check cmsg_len before dereferencing CMSG_DATA

2017-12-21 Thread Avinash Repaka
read, before proceeding further. Reported-by: syzbot Signed-off-by: Avinash Repaka --- net/rds/send.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/rds/send.c b/net/rds/send.c index b52cdc8..f72466c 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -1009,6 +1009,9 @@ stati

[PATCH net v2] RDS: IB: Initialize max_items based on underlying device attributes

2017-10-04 Thread Avinash Repaka
Use max_1m_mrs/max_8k_mrs while setting max_items, as the former variables are set based on the underlying device attributes. Signed-off-by: Avinash Repaka Acked-by: Santosh Shilimkar --- v1->v2 Fixed a typo in commit description net/rds/ib_rdma.c | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH net v2] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-04 Thread Avinash Repaka
This patch fixes the scope of has_fr and has_fmr variables as they are needed only in rds_ib_add_one(). Signed-off-by: Avinash Repaka Acked-by: Santosh Shilimkar --- net/rds/ib.c | 11 ++- net/rds/ib.h | 2 -- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net/rds

[PATCH net] RDS: IB: Initialize max_items based on underlying device attributes

2017-10-03 Thread Avinash Repaka
Use max_1m_mrs/max_8k_mrs while setting max_items, as the former variables are set based on the underlying device attricutes. Signed-off-by: Avinash Repaka --- net/rds/ib_rdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index

[PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-09-29 Thread Avinash Repaka
This patch fixes the scope of has_fr and has_fmr variables as they are needed only in rds_ib_add_one(). Signed-off-by: Avinash Repaka --- net/rds/ib.c | 11 ++- net/rds/ib.h | 2 -- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net/rds/ib.c b/net/rds/ib.c index a0954ac