Hello,syzbot has tested the proposed patch and the reproducer did not trigger crash:
Reported-and-tested-by: [email protected]
Tested on: commit: 22dad84baabf apparmor: fix apparmor_secid_to_secctx incorr..git tree: git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor.git/4.18-syzbot-secid
kernel config: https://syzkaller.appspot.com/x/.config?x=a7c5a36688323465 compiler: gcc (GCC) 8.0.1 20180413 (experimental) Note: testing is done by a robot and is best-effort only.

