[PATCH v2] audit: always check the netlink payload length in audit_receive_msg()

2020-02-25 Thread Paul Moore
This patch ensures that we always check the netlink payload length in audit_receive_msg() before we take any action on the payload itself. Cc: sta...@vger.kernel.org Reported-by: syzbot+399c44bf1f43b8747...@syzkaller.appspotmail.com Reported-by: syzbot+e4b12d8d202701f08...@syzkaller.appspotmail.co

Re: [PATCH] audit: fix error handling in audit_data_to_entry()

2020-02-25 Thread Paul Moore
On Mon, Feb 24, 2020 at 4:31 PM Paul Moore wrote: > > Commit 219ca39427bf ("audit: use union for audit_field values since > they are mutually exclusive") combined a number of separate fields in > the audit_field struct into a single union. Generally this worked > just fine because they are genera

Re: [PATCH v2] audit: always check the netlink payload length in audit_receive_msg()

2020-02-25 Thread Paul Moore
On Tue, Feb 25, 2020 at 12:50 PM Paul Moore wrote: > > This patch ensures that we always check the netlink payload length > in audit_receive_msg() before we take any action on the payload > itself. > > Cc: sta...@vger.kernel.org > Reported-by: syzbot+399c44bf1f43b8747...@syzkaller.appspotmail.com