--- zzzz-none-000/linux-4.4.60/kernel/fork.c 2017-04-08 07:53:53.000000000 +0000 +++ hawkeye-5590-729/linux-4.4.60/kernel/fork.c 2022-03-30 14:21:53.000000000 +0000 @@ -75,6 +75,7 @@ #include #include #include +#include #include #include @@ -385,6 +386,8 @@ account_kernel_stack(ti, 1); + kcov_task_init(tsk); + return tsk; free_ti: @@ -644,6 +647,10 @@ for (i = 0; i < NR_MM_COUNTERS; i++) { long x = atomic_long_read(&mm->rss_stat.count[i]); + /* Do not complain, these counters will just grow indefinintly */ + if (i == MM_SWAPOUTS || i == MM_SWAPINS) + continue; + if (unlikely(x)) printk(KERN_ALERT "BUG: Bad rss-counter state " "mm:%p idx:%d val:%ld\n", mm, i, x);