[lxc-devel] [lxc/lxc] b0a507: log: prevent stack smashing

GitHub noreply at github.com
Mon Oct 16 13:40:18 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: b0a507d7b4282dec24ac1576ff4dbd57b57d1bdb
      https://github.com/lxc/lxc/commit/b0a507d7b4282dec24ac1576ff4dbd57b57d1bdb
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M src/lxc/log.c

  Log Message:
  -----------
  log: prevent stack smashing

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a427e2686bd9f99c7c943590c2bec69d99acc340
      https://github.com/lxc/lxc/commit/a427e2686bd9f99c7c943590c2bec69d99acc340
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: error out on too many mappings

The kernel only allows 4k writes to most files in /proc including {g,u}id_map
so let's not try to write partial mappings. (This will obviously become a lot
more relevant when my patch to extend the idmap limit in the kernel is merged.)

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: e485b36cef7ef9d525862a83f1df33245d066254
      https://github.com/lxc/lxc/commit/e485b36cef7ef9d525862a83f1df33245d066254
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/log.c

  Log Message:
  -----------
  Merge pull request #1861 from brauner/2017-10-16/fix_log_stack_smash

log: bugfixes


Compare: https://github.com/lxc/lxc/compare/59262374da3f...e485b36cef7e


More information about the lxc-devel mailing list