1. 01 9月, 2020 1 次提交
    • J
      netlink: policy: correct validation type check · c30a3c95
      Johannes Berg 提交于
      In the policy export for binary attributes I erroneously used
      a != NLA_VALIDATE_NONE comparison instead of checking for the
      two possible values, which meant that if a validation function
      pointer ended up aliasing the min/max as negatives, we'd hit
      a warning in nla_get_range_unsigned().
      
      Fix this to correctly check for only the two types that should
      be handled here, i.e. range with or without warn-too-long.
      
      Reported-by: syzbot+353df1490da781637624@syzkaller.appspotmail.com
      Fixes: 8aa26c57 ("netlink: make NLA_BINARY validation more flexible")
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c30a3c95
  2. 29 8月, 2020 1 次提交
  3. 28 8月, 2020 22 次提交
  4. 27 8月, 2020 16 次提交