* [2.6 patch] kernel/auditsc.c: fix an off-by-one
@ 2007-07-23 8:02 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-07-23 8:02 UTC (permalink / raw)
To: Amy Griffis, Al Viro; +Cc: linux-kernel
This patch fixes an off-by-one in a BUG_ON() spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
--- linux-2.6.22-rc6-mm1/kernel/auditsc.c.old 2007-07-23 02:08:09.000000000 +0200
+++ linux-2.6.22-rc6-mm1/kernel/auditsc.c 2007-07-23 02:08:32.000000000 +0200
@@ -2069,7 +2069,7 @@ int __audit_signal_info(int sig, struct
axp->d.next = 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]);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-23 8:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 8:02 [2.6 patch] kernel/auditsc.c: fix an off-by-one Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox