tmp_suning_uos_patched/security/smack
Tetsuo Handa 3780348c1a smackfs: restrict bytes count in smk_set_cipso()
commit 49ec114a6e62d8d320037ce71c1aaf9650b3cafd upstream.

Oops, I failed to update subject line.

From 07571157c91b98ce1a4aa70967531e64b78e8346 Mon Sep 17 00:00:00 2001
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Mon, 12 Apr 2021 22:25:06 +0900
Subject: smackfs: restrict bytes count in smk_set_cipso()

Commit 7ef4c19d245f3dc2 ("smackfs: restrict bytes count in smackfs write
functions") missed that count > SMK_CIPSOMAX check applies to only
format == SMK_FIXED24_FMT case.

Reported-by: syzbot <syzbot+77c53db50c9fff774e8e@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-19 09:45:03 +02:00
..
Kconfig
Makefile
smack_access.c Smack: Handle io_uring kernel thread privileges 2020-12-30 11:54:02 +01:00
smack_lsm.c Smack LSM changes for Linux 5.10 2020-10-13 16:18:51 -07:00
smack_netfilter.c
smack.h Smack: Use the netlabel cache 2020-09-11 15:31:31 -07:00
smackfs.c smackfs: restrict bytes count in smk_set_cipso() 2021-07-19 09:45:03 +02:00