mm: always print RLIMIT_DATA warning
authorDavid Woodhouse <[email protected]>
Thu, 5 Apr 2018 23:22:05 +0000 (16:22 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:24 +0000 (21:36 -0700)
commit57a7702b12bc610393bf7764d25183392344ee92
tree42750a4cda2b123588e2e778e30eb606fc864107
parentc01f0b54efb1519f513089984c163ad3f6fea6eb
mm: always print RLIMIT_DATA warning

The documentation for ignore_rlimit_data says that it will print a
warning at first misuse.  Yet it doesn't seem to do that.

Fix the code to print the warning even when we allow the process to
continue.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: David Woodhouse <[email protected]>
Acked-by: Konstantin Khlebnikov <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mmap.c