lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140416.152632.1543291596640945219.davem@davemloft.net>
Date:	Wed, 16 Apr 2014 15:26:32 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	keescook@...omium.org
Cc:	dborkman@...hat.com, ast@...mgrid.com, josh@...htriplett.org,
	eparis@...hat.com, rashika.kheria@...il.com, masami256@...il.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] seccomp: fix memory leak on filter attach

From: Kees Cook <keescook@...omium.org>
Date: Wed, 16 Apr 2014 10:54:34 -0700

> This sets the correct error code when final filter memory is unavailable,
> and frees the raw filter no matter what.
> 
> unreferenced object 0xffff8800d6ea4000 (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 00 c0  !...........>...
>     06 00 00 00 00 00 00 00 21 00 00 00 00 00 00 00  ........!.......
>   backtrace:
>     [<ffffffff8151414e>] kmemleak_alloc+0x4e/0xb0
>     [<ffffffff811a3a40>] __kmalloc+0x280/0x320
>     [<ffffffff8110842e>] prctl_set_seccomp+0x11e/0x3b0
>     [<ffffffff8107bb6b>] SyS_prctl+0x3bb/0x4a0
>     [<ffffffff8152ef2d>] system_call_fastpath+0x1a/0x1f
>     [<ffffffffffffffff>] 0xffffffffffffffff
> 
> Reported-by: Masami Ichikawa <masami256@...il.com>
> Signed-off-by: Kees Cook <keescook@...omium.org>
> Tested-by: Masami Ichikawa <masami256@...il.com>
> Acked-by: Daniel Borkmann <dborkman@...hat.com>
> ---
> David, since you just pushed the a0-a5 fix, can you push this fix as well?

Applied, but please in the future CC: netdev on patches you want me to
apply so that they get properly a) reviewed and b) queued up in patchwork.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ