summaryrefslogtreecommitdiffstats
path: root/net/core/scm.c
diff options
context:
space:
mode:
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>2016-01-29 10:45:50 +0900
committerLuis Henriques <luis.henriques@canonical.com>2016-02-25 10:50:59 +0000
commitc501d329b2d8052184cd63b2b7e86088f2f33187 (patch)
tree9116747d4a10f97fc187b648a509f582bc7137d1 /net/core/scm.c
parent9e4e69cbeebc2a1259094c645510e2fccc7e1ac8 (diff)
downloadlinux-stable-c501d329b2d8052184cd63b2b7e86088f2f33187.tar.gz
linux-stable-c501d329b2d8052184cd63b2b7e86088f2f33187.tar.bz2
linux-stable-c501d329b2d8052184cd63b2b7e86088f2f33187.zip
netlink: not trim skb for mmaped socket when dump
commit aa3a022094fac7f6e48050e139fa8a5a2e3265ce upstream. We should not trim skb for mmaped socket since its buf size is fixed and userspace will read as frame which data equals head. mmaped socket will not call recvmsg, means max_recvmsg_len is 0, skb_reserve was not called before commit: db65a3aaf29e. Fixes: db65a3aaf29e (netlink: Trim skb to alloc size to avoid MSG_TRUNC) Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'net/core/scm.c')
0 files changed, 0 insertions, 0 deletions