seccomp: audit abnormal end to a process due to seccomp
[deliverable/linux.git] / kernel / exit.c
index d9eab2e4b430a08a33a13e93f31a6d37a5d15794..94ed6e20bb532840e69070f3d623568e17cbe0c1 100644 (file)
@@ -51,6 +51,7 @@
 #include <trace/events/sched.h>
 #include <linux/hw_breakpoint.h>
 #include <linux/oom.h>
+#include <linux/writeback.h>
 
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
@@ -1035,6 +1036,8 @@ NORET_TYPE void do_exit(long code)
        validate_creds_for_do_exit(tsk);
 
        preempt_disable();
+       if (tsk->nr_dirtied)
+               __this_cpu_add(dirty_throttle_leaks, tsk->nr_dirtied);
        exit_rcu();
        /* causes final put_task_struct in finish_task_switch(). */
        tsk->state = TASK_DEAD;
This page took 0.024638 seconds and 5 git commands to generate.