[systemd-devel] [PATCH] connection: fix kernel oop when conn_name not set

2014-05-12 Thread Jacek Janczyk
e an error on request. Signed-off-by: Jacek Janczyk --- connection.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/connection.c b/connection.c index 40cf133..5ae9d99 100644 --- a/connection.c +++ b/connection.c @@ -1941,12 +1941,10 @@ int kdbus_conn_new(struct kd

[systemd-devel] [PATCH] test-kdbus: fixed unterminated string

2014-05-12 Thread Jacek Janczyk
Unterminated string array is used to populate random bus name in check_prepare_env(). Added proper termination. Signed-off-by: Jacek Janczyk --- test/test-kdbus.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-kdbus.c b/test/test-kdbus.c index e369b4e

Re: [systemd-devel] [PATCH] connection: fix kernel oop when conn_name not set

2014-05-12 Thread Jacek Janczyk
On 05/12/2014 04:20 PM, Kay Sievers wrote: On Mon, May 12, 2014 at 3:24 PM, Jacek Janczyk wrote: kernel oops when connection name (kdbus_conn.name) not set via HELLO message but requested with attach flags KDBUS_ATTACH_CONN_NAME. Hmm, here does it crash? Seems the code that attaches the

[systemd-devel] [PATCH] util.h: KDBUS_ITEM_VALID fixed

2014-06-17 Thread Jacek Janczyk
Missing character leading to wrong variable name restored. Signed-off-by: Jacek Janczyk --- util.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 96170e6..503e546 100644 --- a/util.h +++ b/util.h @@ -39,7 +39,7 @@ #define KDBUS_ITEM_VALID(_i, _is