1. 29 1月, 2018 1 次提交
  2. 28 1月, 2018 1 次提交
  3. 26 1月, 2018 2 次提交
  4. 25 1月, 2018 1 次提交
  5. 24 1月, 2018 2 次提交
  6. 23 1月, 2018 18 次提交
  7. 22 1月, 2018 1 次提交
    • E
      NFS: reject request for id_legacy key without auxdata · 49686cbb
      Eric Biggers 提交于
      nfs_idmap_legacy_upcall() is supposed to be called with 'aux' pointing
      to a 'struct idmap', via the call to request_key_with_auxdata() in
      nfs_idmap_request_key().
      
      However it can also be reached via the request_key() system call in
      which case 'aux' will be NULL, causing a NULL pointer dereference in
      nfs_idmap_prepare_pipe_upcall(), assuming that the key description is
      valid enough to get that far.
      
      Fix this by making nfs_idmap_legacy_upcall() negate the key if no
      auxdata is provided.
      
      As usual, this bug was found by syzkaller.  A simple reproducer using
      the command-line keyctl program is:
      
          keyctl request2 id_legacy uid:0 '' @s
      
      Fixes: 57e62324 ("NFS: Store the legacy idmapper result in the keyring")
      Reported-by: syzbot+5dfdbcf7b3eb5912abbb@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org> # v3.4+
      Signed-off-by: NEric Biggers <ebiggers@google.com>
      Signed-off-by: NTrond Myklebust <trondmy@gmail.com>
      49686cbb
  8. 19 1月, 2018 3 次提交
  9. 17 1月, 2018 11 次提交