* [Buildroot] [PATCH] duma: not available on non-MMU platforms
@ 2014-05-18 17:45 Thomas Petazzoni
2014-05-18 21:35 ` Peter Korsgaard
2014-05-18 21:36 ` Yann E. MORIN
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-05-18 17:45 UTC (permalink / raw)
To: buildroot
By design, building duma on Blackfin and other non-MMU platforms is
quite useless: it uses page mappings to detect buffer overrun and
use-after-free programming errors. Therefore, this commit simply marks
duma as not available on non-MMU platforms.
Fixes:
http://autobuild.buildroot.org/results/951/9519d7abb45c6a789874ec6bb84418c31a98916b/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/duma/Config.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/duma/Config.in b/package/duma/Config.in
index e9cc9b2..7679e64 100644
--- a/package/duma/Config.in
+++ b/package/duma/Config.in
@@ -2,6 +2,10 @@ config BR2_PACKAGE_DUMA
bool "duma"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
+ # By design, duma uses page mapping to isolate
+ # allocations. Non-MMU platforms cannot perform such
+ # things.
+ depends on BR2_USE_MMU
help
D.U.M.A. - Detect Unintended Memory Access. A fork of the
Electric Fence library. Detects buffer overflow and
@@ -17,4 +21,5 @@ config BR2_PACKAGE_DUMA_NO_LEAKDETECTION
endif # BR2_PACKAGE_DUMA
comment "duma needs a toolchain w/ C++, threads"
+ depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] duma: not available on non-MMU platforms
2014-05-18 17:45 [Buildroot] [PATCH] duma: not available on non-MMU platforms Thomas Petazzoni
@ 2014-05-18 21:35 ` Peter Korsgaard
2014-05-18 21:36 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-05-18 21:35 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> By design, building duma on Blackfin and other non-MMU platforms is
> quite useless: it uses page mappings to detect buffer overrun and
> use-after-free programming errors. Therefore, this commit simply marks
> duma as not available on non-MMU platforms.
> Fixes:
> http://autobuild.buildroot.org/results/951/9519d7abb45c6a789874ec6bb84418c31a98916b/
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] duma: not available on non-MMU platforms
2014-05-18 17:45 [Buildroot] [PATCH] duma: not available on non-MMU platforms Thomas Petazzoni
2014-05-18 21:35 ` Peter Korsgaard
@ 2014-05-18 21:36 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-05-18 21:36 UTC (permalink / raw)
To: buildroot
Thomas, All,
On 2014-05-18 19:45 +0200, Thomas Petazzoni spake thusly:
> By design, building duma on Blackfin and other non-MMU platforms is
> quite useless: it uses page mappings to detect buffer overrun and
> use-after-free programming errors. Therefore, this commit simply marks
> duma as not available on non-MMU platforms.
>
> Fixes:
>
> http://autobuild.buildroot.org/results/951/9519d7abb45c6a789874ec6bb84418c31a98916b/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> package/duma/Config.in | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/duma/Config.in b/package/duma/Config.in
> index e9cc9b2..7679e64 100644
> --- a/package/duma/Config.in
> +++ b/package/duma/Config.in
> @@ -2,6 +2,10 @@ config BR2_PACKAGE_DUMA
> bool "duma"
> depends on BR2_INSTALL_LIBSTDCPP
> depends on BR2_TOOLCHAIN_HAS_THREADS
> + # By design, duma uses page mapping to isolate
> + # allocations. Non-MMU platforms cannot perform such
> + # things.
> + depends on BR2_USE_MMU
> help
> D.U.M.A. - Detect Unintended Memory Access. A fork of the
> Electric Fence library. Detects buffer overflow and
> @@ -17,4 +21,5 @@ config BR2_PACKAGE_DUMA_NO_LEAKDETECTION
> endif # BR2_PACKAGE_DUMA
>
> comment "duma needs a toolchain w/ C++, threads"
> + depends on BR2_USE_MMU
> depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
> --
> 1.9.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-18 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-18 17:45 [Buildroot] [PATCH] duma: not available on non-MMU platforms Thomas Petazzoni
2014-05-18 21:35 ` Peter Korsgaard
2014-05-18 21:36 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox