Merge tag 'audit-pr-20200226' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Feb 2020 19:01:22 +0000 (11:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Feb 2020 19:01:22 +0000 (11:01 -0800)
commited5fa5591866f95be1fe75cd267cf9df2c0390f5
treeb483dc1440127f7617925a062dbed0cef143cbcf
parentbfdc6d91a25f4545bcd1b12e3219af4838142ef1
parent756125289285f6e55a03861bf4b6257aa3d19a93
Merge tag 'audit-pr-20200226' of git://git./linux/kernel/git/pcmoore/audit

Pull audit fixes from Paul Moore:
 "Two fixes for problems found by syzbot:

   - Moving audit filter structure fields into a union caused some
     problems in the code which populates that filter structure.

     We keep the union (that idea is a good one), but we are fixing the
     code so that it doesn't needlessly set fields in the union and mess
     up the error handling.

   - The audit_receive_msg() function wasn't validating user input as
     well as it should in all cases, we add the necessary checks"

* tag 'audit-pr-20200226' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
  audit: always check the netlink payload length in audit_receive_msg()
  audit: fix error handling in audit_data_to_entry()