syscalls/recvmsg02: Add regresion test.

Add regression test for kernel commit:

commit 197c949e7798fbf28cfadc69d9ca0c2abbf93191
Author: Eric Dumazet <edumazet@google.com>
Date:   Wed Dec 30 08:51:12 2015 -0500

    udp: properly support MSG_PEEK with truncated buffers

    Backport of this upstream commit into stable kernels :
    89c22d8c3b27 ("net: Fix skb csum races when peeking")
    exposed a bug in udp stack vs MSG_PEEK support, when user provides
    a buffer smaller than skb payload.

    ...

NOTE: The test will hang on unpatched stable kernels.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
3 files changed