linux-imx/include
Paul Moore 33401ce96a netlabel: fix a problem when setting bits below the previously lowest bit
commit 41c3bd2039 upstream.

The NetLabel category (catmap) functions have a problem in that they
assume categories will be set in an increasing manner, e.g. the next
category set will always be larger than the last.  Unfortunately, this
is not a valid assumption and could result in problems when attempting
to set categories less than the startbit in the lowest catmap node.
In some cases kernel panics and other nasties can result.

This patch corrects the problem by checking for this and allocating a
new catmap node instance and placing it at the front of the list.

Reported-by: Christian Evans <frodox@zoho.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Tested-by: Casey Schaufler <casey@schaufler-ca.com>
[bwh: Backported to 3.2: adjust filename for SMACK]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-09-13 23:41:42 +01:00
..
acpi ACPI: Store SRAT table revision 2012-01-25 16:13:46 -08:00
asm-generic signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer 2013-03-27 02:41:25 +00:00
crypto crypto: scatterwalk - Use sg_chain_ptr on chain entries 2014-01-03 04:33:29 +00:00
drm introduce SIZE_MAX 2014-08-06 18:07:42 +01:00
keys
linux mnt: Change the default remount atime from relatime to the existing value 2014-09-13 23:41:41 +01:00
math-emu
media tuner: Fix numberspace conflict between xc4000 and pti 5nf05 tuners 2012-01-25 16:13:51 -08:00
misc [media] altera-stapl: it is time to move out from staging 2011-09-23 15:00:57 -03:00
mtd mtd: kill old field for `struct mtd_info_user' 2011-09-11 15:57:44 +03:00
net netlabel: fix a problem when setting bits below the previously lowest bit 2014-09-13 23:41:42 +01:00
pcmcia
rdma Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2011-11-01 10:51:38 -07:00
rxrpc
scsi usb-storage/SCSI: Add broken_fua blacklist flag 2014-08-06 18:07:33 +01:00
sound ALSA: control: Protect user controls against concurrent access 2014-07-11 13:33:51 +01:00
target target: Fix lookup of dynamic NodeACLs during cached demo-mode operation 2013-03-06 03:24:03 +00:00
trace tracing: Fix syscall_*regfunc() vs copy_process() race 2014-07-11 13:33:53 +01:00
video OMAPDSS: HDMI: PHY burnout fix 2012-03-12 12:31:38 -07:00
xen xen: install xen/gntdev.h and xen/gntalloc.h 2014-04-02 00:58:50 +01:00
Kbuild