commit | aa3a022094fac7f6e48050e139fa8a5a2e3265ce | [log] [tgz] |
---|---|---|
author | Ken-ichirou MATSUZAWA <chamaken@gmail.com> | Fri Jan 29 10:45:50 2016 +0900 |
committer | David S. Miller <davem@davemloft.net> | Fri Jan 29 20:25:17 2016 -0800 |
tree | 71b2557ea8cbafc6f6080614b43f86a15df54b9c | |
parent | 7256eac13b0e6884355cf40f75db05785d18f5da [diff] |
netlink: not trim skb for mmaped socket when dump 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>