Re: [net-next PATCH] netlabel: fix problems with mapping removal

2020-08-21 Thread Paul Moore
On Fri, Aug 21, 2020 at 2:38 PM David Miller wrote: > From: Paul Moore > Date: Thu, 20 Aug 2020 21:46:14 -0400 > > > This patch fixes two main problems seen when removing NetLabel > > mappings: memory leaks and potentially extra audit noise. > > These are bug fixes therefore this needs to target

Re: [net-next PATCH] netlabel: fix problems with mapping removal

2020-08-21 Thread David Miller
From: Paul Moore Date: Thu, 20 Aug 2020 21:46:14 -0400 > This patch fixes two main problems seen when removing NetLabel > mappings: memory leaks and potentially extra audit noise. These are bug fixes therefore this needs to target the 'net' tree and you must also provide appropriate "Fixes:" tag

[net-next PATCH] netlabel: fix problems with mapping removal

2020-08-20 Thread Paul Moore
This patch fixes two main problems seen when removing NetLabel mappings: memory leaks and potentially extra audit noise. The memory leaks are caused by not properly free'ing the mapping's address selector struct when free'ing the entire entry as well as not properly cleaning up a temporary mapping