[PATCH] Free skb at error context in auditd_send_unicast_skb().

2017-07-17 Thread Masami Ichikawa
80 [] SyS_sendto+0xe/0x10 [] do_syscall_64+0x67/0x140 [] return_from_SYSCALL_64+0x0/0x6a [] 0x These skb objects have been allocated in audit_replace(). If some error happened in auditd_send_unicast_skb(), skb is needed to be freed. Signed-off-by: Masami Ichikawa ---

Re: 64fa03de33: BUG:Dentry_still_in_use

2017-05-08 Thread Masami Ichikawa
urn size; If ret is set to some error code, e.g. -EINVAL, then jump to out label, this function should return error code, doesn't it? > } > -- > 2.7.4 > > ___ > Containers mailing list > contain...@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/containers -- /** * Masami Ichikawa * email: masami...@gmail.com */

[PATCH] kasan: Set shadow memory is not memory leaked

2015-06-06 Thread Masami Ichikawa
memory is not leaked. Signed-off-by: Masami Ichikawa --- mm/kasan/kasan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c index 6c513a6..0ef75b9 100644 --- a/mm/kasan/kasan.c +++ b/mm/kasan/kasan.c @@ -430,6 +430,7 @@ int kasan_module_alloc(void *addr, s

[PATCH] fbcon: Fix memory leak in con2fb_release_oldinfo()

2014-04-23 Thread Masami Ichikawa
his memory leak cause is, fbcon_ops's cursor_src is allocated in soft_cursor() but not released in con2fb_release_oldinfo(). so, cursor_src is needed to be released when oldinfo is going to be released. Signed-off-by: Masami Ichikawa --- drivers/video/console/fbcon.c | 1 + 1 file chang

Re: [PATCH] seccomp: fix memory leak on filter attach

2014-04-14 Thread Masami Ichikawa
prctl_set_seccomp+0x11e/0x3b0 > [] SyS_prctl+0x3bb/0x4a0 > [] system_call_fastpath+0x1a/0x1f > [] 0x > > Reported-by: Masami Ichikawa > Signed-off-by: Kees Cook > Cc: sta...@vger.kernel.org Tested-by: Masami Ichikawa > --- > kernel/se

Re: [PATCH] seccomp: Release fp pointer when leaving from seccomp_attach_filter().

2014-04-14 Thread Masami Ichikawa
On Tue, Apr 15, 2014 at 2:08 AM, Kees Cook wrote: > On Mon, Apr 14, 2014 at 9:18 AM, Alexei Starovoitov wrote: >> On Mon, Apr 14, 2014 at 9:02 AM, Masami Ichikawa wrote: >>> kmemleak reported some memory leak as below. >> >> grrr. yes. sorry. >> >>>

[PATCH] seccomp: Release fp pointer when leaving from seccomp_attach_filter().

2014-04-14 Thread Masami Ichikawa
he fp pointer was allocated via kzalloc so that it needs to realase memory when leaving from function. This patch changed two things. One is set -ENOMEM to ret, if fp is unable to get memory. The other is removes "return 0" statement, and frees fp pointer before leaving. Signed-

[PATCH] fbcon: Fix memory leak in fbcon_exit().

2013-12-25 Thread Masami Ichikawa
allocated in bit_cursor() but not freed in fbcon_exit(). So, fbcon_exit() needs to free buffer in its process. In the case, fbcon_exit() was called from fbcon_deinit() when driver called remove_conflicting_framebuffers(). Signed-off-by: Masami Ichikawa --- drivers/video/console/fbcon.c | 1 + 1 fi

[PATCH] PM: Fix memory leak in pm_vt_switch_unregister().

2013-12-19 Thread Masami Ichikawa
0xfa/0x1b0 [] kernel_init_freeable+0x17b/0x201 In pm_vt_switch_required(), "entry" variable is allocated via kmalloc(). So, in pm_vt_switch_unregister(), it needs to call kfree() when object is deleted from list. Signed-off-by: Masami Ichikawa --- kernel/power/console.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] rt2x00: Add WLI-UC-G300HP's Product ID

2013-09-03 Thread Masami Ichikawa
Support Bufallo WLI-UC-G300HP. Signed-off-by: Masami Ichikawa --- drivers/net/wireless/rt2x00/rt2800usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 840833b..518277d 100644 --- a/drivers/net

[PATCH] Add WLI-UC-G300HP's Product ID.

2013-08-27 Thread Masami Ichikawa
Support Bufallo WLI-UC-G300HP. Signed-off-by: Masami Ichikawa --- drivers/net/wireless/rt2x00/rt2800usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 840833b..518277d 100644 --- a/drivers/net