summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorMike Salvatore <mike.salvatore@canonical.com>2019-06-12 14:55:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-16 08:22:16 +0200
commit17111037fdf07b2468598506229872b8a135f834 (patch)
treed78e0e7500605c225361495ee0fe2b00813ca8d5 /arch/mips
parent90ca4912e55d99de7fea970ec2b2d19e52e6ef54 (diff)
downloadlinux-stable-17111037fdf07b2468598506229872b8a135f834.tar.gz
linux-stable-17111037fdf07b2468598506229872b8a135f834.tar.bz2
linux-stable-17111037fdf07b2468598506229872b8a135f834.zip
apparmor: reset pos on failure to unpack for various functions
[ Upstream commit 156e42996bd84eccb6acf319f19ce0cb140d00e3 ] Each function that manipulates the aa_ext struct should reset it's "pos" member on failure. This ensures that, on failure, no changes are made to the state of the aa_ext struct. There are paths were elements are optional and the error path is used to indicate the optional element is not present. This means instead of just aborting on error the unpack stream can become unsynchronized on optional elements, if using one of the affected functions. Cc: stable@vger.kernel.org Fixes: 736ec752d95e ("AppArmor: policy routines for loading and unpacking policy") Signed-off-by: Mike Salvatore <mike.salvatore@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions