Commit 88ae704c authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

kernel/auditsc.c: fix an off-by-one

This patch fixes an off-by-one in a BUG_ON() spotted by the Coverity
Signed-off-by: default avatarAdrian Bunk <>
Cc: Amy Griffis <>
Cc: Al Viro <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 8e81cc13
......@@ -2023,7 +2023,7 @@ int __audit_signal_info(int sig, struct task_struct *t)
axp-> = ctx->aux_pids;
ctx->aux_pids = (void *)axp;
BUG_ON(axp->pid_count > AUDIT_AUX_PIDS);
BUG_ON(axp->pid_count >= AUDIT_AUX_PIDS);
axp->target_pid[axp->pid_count] = t->tgid;
selinux_get_task_sid(t, &axp->target_sid[axp->pid_count]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment