Re: valgrind less than useful on arm?
On 13 June 2014 18:14, Tom Gall tom.g...@linaro.org wrote: Hi Tom, I'm trying to use valgrind on an a15, 32 hf environment obviously. I have -g on with no optimization for all my code that is being run. Command line options for valgrind are: valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --leak-resolution=high --track-origins=yes --num-callers=10 ./matvec I tried this command line on Ubuntu Trusty and got complete looking call stacks. -- Will Newton Toolchain Working Group, Linaro ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
[PATCH] configs: android: Enable SELinux related configs
From: Vishal Bhoj vishal.b...@linaro.org Signed-off-by: Vishal Bhoj vishal.b...@linaro.org --- linaro/configs/android.conf | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linaro/configs/android.conf b/linaro/configs/android.conf index e4fd1ad..50e8ac2 100644 --- a/linaro/configs/android.conf +++ b/linaro/configs/android.conf @@ -40,3 +40,13 @@ CONFIG_ADF_FBDEV=y CONFIG_ADF_MEMBLOCK=y CONFIG_DMA_SHARED_BUFFER=y CONFIG_TUN=y +CONFIG_AUDIT=y +CONFIG_NF_CONNTRACK_SECMARK=y +CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y +CONFIG_NETFILTER_XT_TARGET_SECMARK=y +CONFIG_IP_NF_SECURITY=y +CONFIG_SECURITY=y +CONFIG_SECURITY_NETWORK=y +CONFIG_LSM_MMAP_MIN_ADDR=4096 +CONFIG_SECURITY_SELINUX=y +CONFIG_EXT4_FS_SECURITY=y -- 1.9.1 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
Vishal, 1. against which tree should it be applied? 2. do you want it enabled by default for all android builds? On 17 June 2014 13:57, Vishal Bhoj vishal.b...@linaro.org wrote: From: Vishal Bhoj vishal.b...@linaro.org Signed-off-by: Vishal Bhoj vishal.b...@linaro.org --- linaro/configs/android.conf | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linaro/configs/android.conf b/linaro/configs/android.conf index e4fd1ad..50e8ac2 100644 --- a/linaro/configs/android.conf +++ b/linaro/configs/android.conf @@ -40,3 +40,13 @@ CONFIG_ADF_FBDEV=y CONFIG_ADF_MEMBLOCK=y CONFIG_DMA_SHARED_BUFFER=y CONFIG_TUN=y +CONFIG_AUDIT=y +CONFIG_NF_CONNTRACK_SECMARK=y +CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y +CONFIG_NETFILTER_XT_TARGET_SECMARK=y +CONFIG_IP_NF_SECURITY=y +CONFIG_SECURITY=y +CONFIG_SECURITY_NETWORK=y +CONFIG_LSM_MMAP_MIN_ADDR=4096 +CONFIG_SECURITY_SELINUX=y +CONFIG_EXT4_FS_SECURITY=y -- 1.9.1 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
Hi, On 17 June 2014 16:41, Fathi Boudra fathi.bou...@linaro.org wrote: Vishal, 1. against which tree should it be applied? I have tested it against TC2 with the LSK tree. I was not sure if the patches directly go to LSK. I thought it should first go into config fragment tree. 2. do you want it enabled by default for all android builds? Moving ahead SELinux is mandatory for Android so it needs to be enabled across all the platforms we care for. Linux-linaro and LSK are validated on VExpress platform so I am enabling the userspace bits for VExpress to start with. On 17 June 2014 13:57, Vishal Bhoj vishal.b...@linaro.org wrote: From: Vishal Bhoj vishal.b...@linaro.org Signed-off-by: Vishal Bhoj vishal.b...@linaro.org --- linaro/configs/android.conf | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linaro/configs/android.conf b/linaro/configs/android.conf index e4fd1ad..50e8ac2 100644 --- a/linaro/configs/android.conf +++ b/linaro/configs/android.conf @@ -40,3 +40,13 @@ CONFIG_ADF_FBDEV=y CONFIG_ADF_MEMBLOCK=y CONFIG_DMA_SHARED_BUFFER=y CONFIG_TUN=y +CONFIG_AUDIT=y +CONFIG_NF_CONNTRACK_SECMARK=y +CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y +CONFIG_NETFILTER_XT_TARGET_SECMARK=y +CONFIG_IP_NF_SECURITY=y +CONFIG_SECURITY=y +CONFIG_SECURITY_NETWORK=y +CONFIG_LSM_MMAP_MIN_ADDR=4096 +CONFIG_SECURITY_SELINUX=y +CONFIG_EXT4_FS_SECURITY=y -- 1.9.1 ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On 17 June 2014 12:18, Vishal Bhoj vishal.b...@linaro.org wrote: On 17 June 2014 16:41, Fathi Boudra fathi.bou...@linaro.org wrote: Vishal, 1. against which tree should it be applied? I have tested it against TC2 with the LSK tree. I was not sure if the patches directly go to LSK. I thought it should first go into config fragment tree. I don't know what the config fragment tree is but the LSK doesn't use it and you've not CCed - I guess you should send this to Andrey too for inclusion in linux-linaro? I've added him. 2. do you want it enabled by default for all android builds? Moving ahead SELinux is mandatory for Android so it needs to be enabled across all the platforms we care for. Linux-linaro and LSK are validated on VExpress platform so I am enabling the userspace bits for VExpress to start with. OK, I'll a change to the LSK which enables these options - I can't see any reason to restrict them to Android so I won't just apply this as-is. Please include information like the above in the changelogs for patches, this is just generally good practice and will help people figure out why the change is being made and if it is sensible to apply it. ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On 17 June 2014 14:53, Mark Brown broo...@linaro.org wrote: On 17 June 2014 12:18, Vishal Bhoj vishal.b...@linaro.org wrote: On 17 June 2014 16:41, Fathi Boudra fathi.bou...@linaro.org wrote: Vishal, 1. against which tree should it be applied? I have tested it against TC2 with the LSK tree. I was not sure if the patches directly go to LSK. I thought it should first go into config fragment tree. I don't know what the config fragment tree is but the LSK doesn't use it and you've not CCed - I guess you should send this to Andrey too for inclusion in linux-linaro? I've added him. Applied, thanks. https://git.linaro.org/kernel/configs.git/commitdiff/19fe65531dd49538d568f7726cb71287e7750331 2. do you want it enabled by default for all android builds? Moving ahead SELinux is mandatory for Android so it needs to be enabled across all the platforms we care for. Linux-linaro and LSK are validated on VExpress platform so I am enabling the userspace bits for VExpress to start with. OK, I'll a change to the LSK which enables these options - I can't see any reason to restrict them to Android so I won't just apply this as-is. Please include information like the above in the changelogs for patches, this is just generally good practice and will help people figure out why the change is being made and if it is sensible to apply it. ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On Tue, 2014-06-17 at 12:53 +0100, Mark Brown wrote: On 17 June 2014 12:18, Vishal Bhoj vishal.b...@linaro.org wrote: On 17 June 2014 16:41, Fathi Boudra fathi.bou...@linaro.org wrote: Vishal, 1. against which tree should it be applied? I have tested it against TC2 with the LSK tree. I was not sure if the patches directly go to LSK. I thought it should first go into config fragment tree. I don't know what the config fragment tree is The git repo with all the config fragments in... https://git.linaro.org/kernel/configs.git but the LSK doesn't use it and you've not CCed - I guess you should send this to Andrey too for inclusion in linux-linaro? The 'core' and 'boards' tracking topic branches of the config fragments repo are included in linux-linaro, so updates to the config will automatically find there way into linux-linaro I've added him. You didn't seem to have, unless this more of the Linaro's lists's default behaviour of dropping people from CC who are subscribed? -- Tixy ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: valgrind less than useful on arm?
I'm on 12.04 precise. Bummer. On Tue, Jun 17, 2014 at 2:35 AM, Will Newton will.new...@linaro.org wrote: On 13 June 2014 18:14, Tom Gall tom.g...@linaro.org wrote: Hi Tom, I'm trying to use valgrind on an a15, 32 hf environment obviously. I have -g on with no optimization for all my code that is being run. Command line options for valgrind are: valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --leak-resolution=high --track-origins=yes --num-callers=10 ./matvec I tried this command line on Ubuntu Trusty and got complete looking call stacks. -- Will Newton Toolchain Working Group, Linaro -- Regards, Tom Where's the kaboom!? There was supposed to be an earth-shattering kaboom! Marvin Martian Tech Lead, Graphics Working Group | Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org h) tom_gall att mac.com ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: valgrind less than useful on arm?
On Tue, 17 Jun 2014 08:17:26 -0500 Tom Gall tom.g...@linaro.org wrote: On Tue, Jun 17, 2014 at 2:35 AM, Will Newton will.new...@linaro.org wrote: On 13 June 2014 18:14, Tom Gall tom.g...@linaro.org wrote: Hi Tom, I'm trying to use valgrind on an a15, 32 hf environment obviously. I have -g on with no optimization for all my code that is being run. Command line options for valgrind are: valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --leak-resolution=high --track-origins=yes --num-callers=10 ./matvec I tried this command line on Ubuntu Trusty and got complete looking call stacks. I'm on 12.04 precise. Bummer. Do you have something like libc-dbg installed in your system? Having the glibc debugging symbols is important. -- Best regards, Siarhei Siamashka ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On 17 June 2014 13:16, Jon Medhurst (Tixy) t...@linaro.org wrote: On Tue, 2014-06-17 at 12:53 +0100, Mark Brown wrote: I've added him. You didn't seem to have, unless this more of the Linaro's lists's default behaviour of dropping people from CC who are subscribed? Looks like it. It's really broken, it'd be good if we could get it fixed :/ ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: valgrind less than useful on arm?
Yes I do. I think this might be a debug-file-directory setting issue. The app and one of the libs it's using are in /usr/local/ the debug for libc is in /usr/. Not sure you can have multiple directories in .gdbinit for debug-file-directory. Least it seems to be ignoring it. Figure I'll trying copying the debug libs all over into one place and see what that does. Failing that. Upgrade time. On Tue, Jun 17, 2014 at 8:33 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Tue, 17 Jun 2014 08:17:26 -0500 Tom Gall tom.g...@linaro.org wrote: On Tue, Jun 17, 2014 at 2:35 AM, Will Newton will.new...@linaro.org wrote: On 13 June 2014 18:14, Tom Gall tom.g...@linaro.org wrote: Hi Tom, I'm trying to use valgrind on an a15, 32 hf environment obviously. I have -g on with no optimization for all my code that is being run. Command line options for valgrind are: valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --leak-resolution=high --track-origins=yes --num-callers=10 ./matvec I tried this command line on Ubuntu Trusty and got complete looking call stacks. I'm on 12.04 precise. Bummer. Do you have something like libc-dbg installed in your system? Having the glibc debugging symbols is important. -- Best regards, Siarhei Siamashka -- Regards, Tom Where's the kaboom!? There was supposed to be an earth-shattering kaboom! Marvin Martian Tech Lead, Graphics Working Group | Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org h) tom_gall att mac.com ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On Tue, 2014-06-17 at 14:38 +0100, Mark Brown wrote: On 17 June 2014 13:16, Jon Medhurst (Tixy) t...@linaro.org wrote: On Tue, 2014-06-17 at 12:53 +0100, Mark Brown wrote: I've added him. You didn't seem to have, unless this more of the Linaro's lists's default behaviour of dropping people from CC who are subscribed? Looks like it. It's really broken, it'd be good if we could get it fixed :/ Yes, it's damned annoying as we've found out in the past, but I believe it's a 'feature', a per subscriber option unless I've got mixed up... Avoid duplicate copies of messages? When you are listed explicitly in the To: or Cc: headers of a list message, you can opt to not receive another copy from the mailing list. Select Yes to avoid receiving copies from the mailing list; select No to receive copies. Though reading that help text, you'd think it could still leave the persons name in the CC on the mail sent to the list, just not deliver the list message to that person. So perhaps you could argue it's a bug. -- Tixy ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: [PATCH] configs: android: Enable SELinux related configs
On 17 June 2014 15:07, Jon Medhurst (Tixy) t...@linaro.org wrote: Yes, it's damned annoying as we've found out in the past, but I believe it's a 'feature', a per subscriber option unless I've got mixed up... Avoid duplicate copies of messages? When you are listed explicitly in the To: or Cc: headers of a list message, you can opt to not receive another copy from the mailing list. Select Yes to avoid receiving copies from the mailing list; select No to receive copies. Though reading that help text, you'd think it could still leave the persons name in the CC on the mail sent to the list, just not deliver the list message to that person. So perhaps you could argue it's a bug. Yes, this is a mailman misfeature exascerbated by their misleading help text. IMHO setting that option is never the right thing. thanks -- PMM ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Re: Seeking deb of upstream qemu + patch series
Thanks for the reply! Pranavkumar Sawargaonkar pranavku...@linaro.org writes: Hi, On 17 June 2014 07:03, Michael Hudson-Doyle michael.hud...@linaro.org wrote: Michael Hudson-Doyle michael.hud...@linaro.org writes: Pranavkumar Sawargaonkar pranavku...@linaro.org writes: Hi, On 6 June 2014 08:58, Michael Hudson-Doyle michael.hud...@linaro.org wrote: Hi all, As a bit of a test for myself, I'm trying to run openstack tests on top of the mostly-ready PSCI support the virtualization team has been working on. I've built myself an Ubuntu kernel with the needed patches (actually all of kvm/next) and now need a matching qemu. I fished these patches: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04514.html out of patchwork and applied them on top of the qemu that's in trusty but it fails to build. I guess these patches depends that are in qemu git but not in 2.0.0? In any case, before I dive into trying to fix this myself, does anyone have binaries or even better debs with those patches in? It should get applied on the latest qemu git code. (git:// git.qemu.org/qemu.git) Thanks. Please get the attached binary I build for testing. Even easier :-) Also please make sure your host and guest kernel has PSCI0.2 support (currently it is available in linux-next tree only), if you want to test functions like reset and poweroff of VM. My goal is to run the openstack tests, several of which fail because of the lack of suspend, restart etc. So thanks for the pointers! I had built myself a host kernel (utopic kernel + kvm/next) but had forgotten to prepare that as the guest kernel. My host kernel doesn't appear to have the right drivers to do SATA on mustang so my forgetting the guest hadn't immediately caused problems :-) So, a week or so later, I have a kernel that should support PSCI (3.15 + ubuntu sauce + kvm/next) in both host and guest and a qemu-system-aarch64 that should support PSCI (the binary you gave me). I think things are working to some extent because running reboot inside a VM works, but nova suspend still doesn't work (it just kills the instance). I think you might need migration support for suspend and resume functionality. Ah! In current kvm arm64 migration is not supported and currently work in progress. Yeah, I think I've found the card. Is there a WIP branch for this I can play with while I'm feeling adventurous? Is support required all of host kernel, guest kernel and qemu again? (My instinct would be yes...). Cheers, mwh Can you suggest how I might go about debugging this? Cheers, mwh Thanks, Pranav ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev