“0bed3b568b68e5835ef5da888a372b9beabf7544”上不存在“arch/x86/include/asm/vmx.h”
  • R
    IB/umad: make sure write()s have sufficient data · eabc7793
    Roland Dreier 提交于
    Make sure that userspace passes in enough data when sending a MAD.  We
    always copy at least sizeof (struct ib_user_mad) + IB_MGMT_RMPP_HDR
    bytes from userspace, so anything less is definitely invalid.  Also,
    if the length is less than this limit, it's possible for the second
    copy_from_user() to get a negative length and trigger a BUG().
    Signed-off-by: NRoland Dreier <rolandd@cisco.com>
    eabc7793
user_mad.c 24.8 KB