[PATCH 1/1] arm/mach-vexpress: array accessed out of bounds

2014-04-13 Thread xypron . glpk
From: Heinrich Schuchardt dcscb_allcpus_mask is an array of size 2. The index variable cluster has to be checked against this limit before accessing the array. Signed-off-by: Heinrich Schuchardt --- arch/arm/mach-vexpress/dcscb.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)

[PATCH 1/1] fanotify: create FAN_ACCESS event for readdir

2014-04-13 Thread xypron . glpk
From: Heinrich Schuchardt Before the patch, read creates FAN_ACCESS_PERM and FAN_ACCESS events, readdir creates only FAN_ACCESS_PERM events. This is inconsistent. After the patch, readdir creates FAN_ACCESS_PERM and FAN_ACCESS events. Signed-off-by: Heinrich Schuchardt --- fs/readdir.c |

[PATCH 1/1] Avoid having to provide a fake/invalid fd and path

2014-03-26 Thread xypron . glpk
From: Heinrich Schuchardt https://lkml.org/lkml/2011/1/12/112 holds a patch by Tvrtko Ursulin Avoid having to provide a fake/invalid fd and path when flushing marks Currently for a group to flush marks it has set it needs to provide a fake or invalid (but resolvable) file descriptor and

[PATCH 1/1] Fanotify: make default values visible

2014-03-14 Thread xypron . glpk
From: Heinrich Schuchardt The fanotify API imposes limits on number of queue entries number of queues number of listeners. Opaque limits lead to unnecessary redefinitions in user coding. Limits should therefore be visible in includes or should be removed. Signed-off-by: Heinrich Schuchard

[PATCH 1/1] Update source code location for dtc in manual.txt

2014-03-02 Thread xypron . glpk
From: Heinrich Schuchardt The information about the location of the source code of the device tree compiler was inaccurate. Signed-off-by: Heinrich Schuchardt --- Documentation/manual.txt | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Documentation

[PATCH 1/1] Remove duplicate assignment

2014-03-02 Thread xypron . glpk
From: Heinrich Schuchardt Signed-off-by: Heinrich Schuchardt --- tests/testutils.c |1 - 1 file changed, 1 deletion(-) diff --git a/tests/testutils.c b/tests/testutils.c index f185133..521f4f1 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -144,7 +144,6 @@ int nodename_eq(const

[PATCH 1/1] Consistently use xrealloc instead of realloc

2014-03-02 Thread xypron . glpk
From: Heinrich Schuchardt fdtput.c: Replace the remaining call to realloc by xrealloc. Some redundant lines in encode_value can be saved. Signed-off-by: Heinrich Schuchardt --- fdtput.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fdtput.c b/fdtput.c index 5226a

[PATCH 1/1] Remove dead code in util.c

2014-03-01 Thread xypron . glpk
From: Heinrich Schuchardt xrealloc never returns null Signed-off-by: Heinrich Schuchardt --- util.c |4 1 file changed, 4 deletions(-) diff --git a/util.c b/util.c index be67836..1ce8b97 100644 --- a/util.c +++ b/util.c @@ -219,10 +219,6 @@ int utilfdt_read_err_len(const char *filena

[PATCH 1/1] Memory leak in scripts/dtc/util.c

2014-02-27 Thread xypron . glpk
From: Heinrich Schuchardt buf was leaked if out of memory Signed-off-by: Heinrich Schuchardt --- scripts/dtc/util.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dtc/util.c b/scripts/dtc/util.c index 2422c34..a1e2e59 100644 --- a/scripts/dtc/util.c +++ b/scripts/dtc/util.c @

[PATCH] Remove redundant if clause

2014-02-27 Thread xypron . glpk
From: Heinrich Schuchardt Signed-off-by: Heinrich Schuchardt --- drivers/net/wireless/rtlwifi/rtl8192se/rf.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/rf.c b/drivers/net/wireless/rtlwifi/rtl8192se/rf.c index 92d38ab..78a81c1 1

[PATCH 1/1] Reading array out of bound in ds3000_read_snr

2014-02-27 Thread xypron . glpk
From: Heinrich Schuchardt An attempt was made to read dvbs2_snr_tab[80], though dvbs2_snr_tab has only 80 elements. Signed-off-by: Heinrich Schuchardt --- drivers/media/dvb-frontends/ds3000.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/ds3

[PATCH] Memory leak in nouveau_sgdma_create_ttm

2014-02-27 Thread xypron . glpk
From: Heinrich Schuchardt In case of failure memory was not freed. Signed-off-by: Heinrich Schuchardt --- drivers/gpu/drm/nouveau/nouveau_sgdma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau

[PATCH 1/1] Memory leak in usbip_exported_device_new

2014-02-27 Thread xypron . glpk
From: Heinrich Schuchardt Memory was leaked and a device not closed. Signed-off-by: Heinrich Schuchardt --- drivers/staging/usbip/userspace/libsrc/usbip_host_driver.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/usbip/userspace/libsrc/usbip_host_driver.c b/drivers

[PATCH 1/1] usbip/userspace/libsrc/names.c: memory leak

2014-01-28 Thread xypron . glpk
From: Heinrich Schuchardt revised patch p is freed if NULL. p is leaked if second calloc fails. Signed-off-by: Heinrich Schuchardt --- drivers/staging/usbip/userspace/libsrc/names.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/usbip/userspace/

[PATCH 1/1] usbip/userspace/libsrc/names.c: memory leak

2014-01-27 Thread xypron . glpk
From: Heinrich Schuchardt p is freed if NULL. p is leaked if second calloc fails. Signed-off-by: Heinrich Schuchardt --- drivers/staging/usbip/userspace/libsrc/names.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/libsrc/names.c b/drive

[PATCH 1/1] __init setup_early_printk: missing initialization

2014-01-27 Thread xypron . glpk
From: Heinrich Schuchardt If is based on uninitialized value keep_early. This leads to unpredictable result. Signed-off-by: Heinrich Schuchardt --- arch/unicore32/kernel/early_printk.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/unicore32/kernel/early_printk.c

[PATCH 1/1] Enable fanotify API by default.

2013-06-15 Thread xypron . glpk
From: Heinrich Schuchardt The fanotify interface is the basis for on access malware detection in the Linux kernel. The development of a prior solution (DazukoFS) has been stopped therefore. Both free (ClamAV) as well as commercial viurs scanners (Sophos Anti-Virus, AVG) using this interface exis