Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 10 Sep 2020 22:27:35 +0200
From: Jann Horn <>
To: Kees Cook <>
Cc: Kernel Hardening <>, John Wood <>, 
	Matthew Wilcox <>, Jonathan Corbet <>, 
	Alexander Viro <>, Ingo Molnar <>, 
	Peter Zijlstra <>, Juri Lelli <>, 
	Vincent Guittot <>, Dietmar Eggemann <>, 
	Steven Rostedt <>, Ben Segall <>, Mel Gorman <>, 
	Luis Chamberlain <>, Iurii Zaikin <>, James Morris <>, 
	"Serge E. Hallyn" <>,, 
	kernel list <>, 
	linux-fsdevel <>, 
	linux-security-module <>
Subject: Re: [RFC PATCH 3/6] security/fbfam: Use the api to manage statistics

On Thu, Sep 10, 2020 at 10:21 PM Kees Cook <> wrote:
> Use the previous defined api to manage statistics calling it accordingly
> when a task forks, calls execve or exits.

You defined functions that return error codes in the previous patch,
but here you ignore the return values. That's a bad idea.

You should probably check the return value in execve() (and fail the
execution in the case where memory allocation fails), and make it so
that the other functions always succeed.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.