[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v4 0/4] lib/uksp: Introduce uksp library


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 4 Feb 2020 14:09:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BOvYsFMcrjY1BSFRc3AoxT0V256k9GMWfAgumSwcPuw=; b=AbHYa/LA8qy7lHWob5kZ3CIhuoUx4ctrxY+2u9FUu4upP2LPU7eDxsxjEsmy91GMZVSKfOuWF08XHCD3ITWUreZwr9dixVrbzCPY4TN3E0DdDi8shi8kvzxjiDKeFkuG/nDSJb82uxjyhDD+FY4L5/TVNoZ4fmZx9D18ID5Q6CzjGhtMXqRwdKEd+vl5lyTePMgGLxYr1FSPsNfdG5w/ZAjnuPF8a+HOkaICPnJMUfHDvvGagWcwnNfApwLtkyEYrArMDSBfk5ou0K62bXAO2hT1O3W5EnuU2NkNp2RYf2IC6ehoGG+NvtlkS3oaKYwmXAdDKI7Cyrs61dIah6htmQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZERu5HlojxJFBEbF4KEio+A3AWuVp3EQhH7BOgHKg8pwOxL6AN3ZkAINjhgzhMjJPmV0NrNslqZFJLH1pvLLK6ZFULBcDnIJAlAeMzj2Eqi/tk9yUfuyeiK2b1PBvphdANs4GofAsJsxd3jBWA2vsFL8lVznZz5IBnjPIrOfIR7g1Z02RfSqXS9gYmJJf5UpqThHpwBu6HV2UcKIVGe3Y8HH5j9BvLRPiEkE5tU2gDz9mq0Z39TC4FooqH3QSGVZboH5L0pPZzCPRgLYe9wDYULekant46lIuKb+MOItNEVEL4kbUjjw6OJJu3EVESOfJnUYKZaaCt0SE5bHRHICTQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "sharan.santhanam@xxxxxxxxx" <sharan.santhanam@xxxxxxxxx>
  • Delivery-date: Tue, 04 Feb 2020 14:10:05 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV22TINFs/WedC00G0hZ+09ARHnQ==
  • Thread-topic: [UNIKRAFT PATCH v4 0/4] lib/uksp: Introduce uksp library

Currently, we provide a basic implementation of stack smashing
protection that
has a global value for all threads. The value is randomly initialized
during the
boot. Finally, this option might help us detect bugs caused by stack
overflows.

Changes since v1:
* We now use a choice based config option for the stack protector level.
* Since
the last version we added the regulat and strong stack protector
options.

Changes since v2:
* Renamed the library to uksp

Changes since v3:
* Added config option for constant value/random source for the canary.
* Updated the config
* Updated library title
* Moved uksp/stackprotector.h to uk/sp.h
* Added current stack pointer to the crash message

Vlad-Andrei Badoiu (2):
  Move UK_SWRAND_CTOR_PRIO to uk/swrand.h
  lib/ukboot: Initialize the canary value at boot

Vlad-Andrei BĂDOIU (78692) (2):
  lib/uksp: Introduce uksp library
  build: Add option to toggle the stack protection

 Makefile.uk                      | 10 ++++--
 lib/Config.uk                    |  4 +++
 lib/Makefile.uk                  |  1 +
 lib/ukboot/boot.c                |  8 +++++
 lib/uksp/Config.uk               | 51 ++++++++++++++++++++++++++++
 lib/uksp/Makefile.uk             | 21 ++++++++++++
 lib/uksp/exportsyms.uk           |  2 ++
 lib/uksp/include/uk/sp.h         | 58 ++++++++++++++++++++++++++++++++
 lib/uksp/ssp.c                   | 50 +++++++++++++++++++++++++++
 lib/ukswrand/include/uk/swrand.h |  2 ++
 lib/ukswrand/swrand.c            |  2 --
 11 files changed, 205 insertions(+), 4 deletions(-)
 create mode 100644 lib/uksp/Config.uk
 create mode 100644 lib/uksp/Makefile.uk
 create mode 100644 lib/uksp/exportsyms.uk
 create mode 100644 lib/uksp/include/uk/sp.h
 create mode 100644 lib/uksp/ssp.c

-- 
2.20.1

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.