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

2014-04-14 Thread Masami Ichikawa
On Tue, Apr 15, 2014 at 2:11 AM, Kees Cook wrote: > This sets the correct error code when final filter memory is unavailable, > and frees the raw filter no matter what. > > unreferenced object 0x8800d6ea4000 (size 512): > comm "sshd", pid 278, jiffies 4294898315 (age 46.653s) > hex dump (f

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

2014-04-14 Thread Daniel Borkmann
On 04/14/2014 07:11 PM, Kees Cook wrote: This sets the correct error code when final filter memory is unavailable, and frees the raw filter no matter what. unreferenced object 0x8800d6ea4000 (size 512): comm "sshd", pid 278, jiffies 4294898315 (age 46.653s) hex dump (first 32 bytes):

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

2014-04-14 Thread Kees Cook
On Mon, Apr 14, 2014 at 10:35 AM, Alexei Starovoitov wrote: > On Mon, Apr 14, 2014 at 10:26 AM, Kees Cook wrote: >> On Mon, Apr 14, 2014 at 10:17 AM, Alexei Starovoitov >> wrote: >>> On Mon, Apr 14, 2014 at 10:11 AM, Kees Cook wrote: This sets the correct error code when final filter memo

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

2014-04-14 Thread Alexei Starovoitov
On Mon, Apr 14, 2014 at 10:26 AM, Kees Cook wrote: > On Mon, Apr 14, 2014 at 10:17 AM, Alexei Starovoitov > wrote: >> On Mon, Apr 14, 2014 at 10:11 AM, Kees Cook wrote: >>> This sets the correct error code when final filter memory is unavailable, >>> and frees the raw filter no matter what. >>>

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

2014-04-14 Thread Kees Cook
On Mon, Apr 14, 2014 at 10:17 AM, Alexei Starovoitov wrote: > On Mon, Apr 14, 2014 at 10:11 AM, Kees Cook wrote: >> This sets the correct error code when final filter memory is unavailable, >> and frees the raw filter no matter what. >> >> unreferenced object 0x8800d6ea4000 (size 512): >> c

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

2014-04-14 Thread Alexei Starovoitov
On Mon, Apr 14, 2014 at 10:11 AM, Kees Cook wrote: > This sets the correct error code when final filter memory is unavailable, > and frees the raw filter no matter what. > > unreferenced object 0x8800d6ea4000 (size 512): > comm "sshd", pid 278, jiffies 4294898315 (age 46.653s) > hex dump (

[PATCH] seccomp: fix memory leak on filter attach

2014-04-14 Thread Kees Cook
This sets the correct error code when final filter memory is unavailable, and frees the raw filter no matter what. unreferenced object 0x8800d6ea4000 (size 512): comm "sshd", pid 278, jiffies 4294898315 (age 46.653s) hex dump (first 32 bytes): 21 00 00 00 04 00 00 00 15 00 01 00 3e 00