[PATCH v3] Documentation: boards: sandbox: some extra steps requires for DHCP network configuration for sandbox on the host OS

2021-05-08 Thread Neeraj Pal
Signed-off-by: Neeraj Pal --- Documentation/boards/sandbox.rst | 65 1 file changed, 65 insertions(+) diff --git a/Documentation/boards/sandbox.rst b/Documentation/boards/sandbox.rst index e9e518365..2272dc32c 100644 --- a/Documentation/boards/sandbox.rst +++ b

[PATCH] Removed Unreachable code: net/net.c: net_handle_arp()

2021-05-08 Thread Neeraj Pal
Signed-off-by: Neeraj Pal --- net/net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/net.c b/net/net.c index 4dffc1bd5..fdb9ab826 100644 --- a/net/net.c +++ b/net/net.c @@ -577,8 +577,6 @@ static int net_handle_arp(struct eth_device *edev, unsigned char *pkt, int len

Re: [BUG] Stack buffer overflow WRITE of size 1 in nfs_start function

2021-05-10 Thread Neeraj Pal
May 10, 2021 at 4:38 PM Neeraj Pal wrote: > > Hi Sascha, > > Thank you for the patches. > > I have confirmed it and observed no crashes as reported earlier but I > think there is a small typo in the nfs_start() function in > net/nfs.c#L677. > > 672static int nfs_s

Re: [BUG] Out of bound read of size 1 in __d_alloc function which further leads to __default_memcpy function

2021-05-10 Thread Neeraj Pal
e know for further information. Thanks & Regards, Neeraj On Mon, May 10, 2021 at 3:48 PM Jules Maselbas wrote: > > Hi, > > On Fri, May 07, 2021 at 12:58:30PM +0200, Sascha Hauer wrote: > > Hi, > > > > On Sun, Apr 18, 2021 at 01:10:10AM +0530, Neeraj Pal wrote

Re: [BUG] Stack buffer overflow WRITE of size 1 in nfs_start function

2021-05-10 Thread Neeraj Pal
se confirm and also sending a small patch. Thanks and regards, Neeraj On Fri, May 7, 2021 at 2:11 PM Sascha Hauer wrote: > > Hi, > > On Sun, Apr 18, 2021 at 12:22:30AM +0530, Neeraj Pal wrote: > > Hi, > > > > While reviewing the

Re: [BUG] Stack buffer overflow WRITE of size 1 in nfs_start function

2021-05-11 Thread Neeraj Pal
On Tue, May 11, 2021 at 2:28 PM Sascha Hauer wrote: > Ok, so my patch doesn't resolve the whole issue. I just tried the nfs > command once after a long time now and this really seems to be broken > in other ways as well. I tend to entirely remove the command instead > of further trying to fix it.

Re: network configuration setup - dhcp

2021-04-19 Thread Neeraj Pal
-device-configuration as 1.3.1.1. or if you want in other places then please let me know. Thank you Kind regards, Neeraj On Mon, Apr 19, 2021 at 1:16 PM Ahmad Fatoum wrote: > > Hello Neeraj, > > On 17.04.21 06:41, Neeraj Pal wrote: > > Hi, > > > > I successfully config

network configuration setup - dhcp

2021-04-13 Thread Neeraj Pal
Hi all, I read the readme but not able to configure the barebox DHCP network. Tried setting up some environment variables like nameserver, server.ip, etc but not successful. I have compiled and executed the barebox binary with or without root (through sudo) on Ubuntu 20.04 focal LTS I was

[PATCH] Documentation: sandbox.rst: added dhcp network configuration

2021-04-20 Thread Neeraj Pal
Hello Ahmad, I have added the DHCP network configuration as discussed (http://lists.infradead.org/pipermail/barebox/2021-April/035795.html) Please confirm and let me know if needs any modifications. Thanks, Neeraj diff --git a/Documentation/boards/sandbox.rst b/Documentation/boards/sandbox.rst

Re: network configuration setup - dhcp

2021-04-20 Thread Neeraj Pal
wrote: > > Hello Neeraj, > > On 19.04.21 20:09, Neeraj Pal wrote: > > Hello Ahmad, > > > > Yes, it would be very helpful and straightforward for future users to > > set up DHCP networking. > > Sure, I will submit a patch to add it in Documentation. > >

[BUG] Stack buffer overflow WRITE of size 1 in nfs_start function

2021-04-17 Thread Neeraj Pal
Hi, While reviewing the code of barebox-2021.04.0 and git commit af0f068a6edad45b033e772056ac0352e1ba3613 I found a stack buffer overflow WRITE of size 1 in nfs_start() net/nfs.c L664 through strcpy call which furthers crashes at function strcpy in lib/string.c L96. Host information:

[BUG] Stack buffer overflow WRITE of size 1 in barebox_printf function

2021-04-17 Thread Neeraj Pal
Hi, I have found the stack buffer overflow issue with WRITE of size 1 in barebox_printf function common/console_common.c:240 which further goes and crashes into a call vsnprintf lib/vsprintf.c:440 Tested on: - barebox-2021.04.0 - git commit af0f068a6edad45b033e772056ac0352e1ba3613 Host

[BUG] Out of bound read of size 1 in __d_alloc function which further leads to __default_memcpy function

2021-04-17 Thread Neeraj Pal
Hi, I have found the Out of bound read issue of size 1 when argv[2] is "" in __d_alloc function fs/fs.c:1254 which further goes and crashes into __default_memcpy call lib/string.c:562 Tested on: - barebox-2021.04.0 - git commit af0f068a6edad45b033e772056ac0352e1ba3613 Host information:

Re: network configuration setup - dhcp

2021-04-16 Thread Neeraj Pal
Hi, On Wed, Apr 14, 2021 at 12:37 AM Ahmad Fatoum wrote: > > There is more documentation besides the README. For networking see > https://barebox.org/doc/latest/user/networking.html Thank you for the documentation. I read them and configured the values but it is not working, so it may be

Re: network configuration setup - dhcp

2021-04-16 Thread Neeraj Pal
barebox@Sandbox:/ ping google.com ERROR: dns: no nameserver specified in $net.nameserver T T T T T ping failed: Connection timed out It seems like it is not able to get the IP from DHCP so I am trying to set up static, once. On Fri, Apr 16, 2021 at 11:28 PM Neeraj Pal wrote: >

Re: network configuration setup - dhcp

2021-04-16 Thread Neeraj Pal
17.166.238) host google.com is alive barebox@Sandbox:/ Thanks and regards, Neeraj On Fri, Apr 16, 2021 at 11:37 PM Neeraj Pal wrote: > > Sorry missed, Network info: > > barebox@Sandbox:/ devinfo eth0 > Parent: tap0 > Parameters: > ethaddr: 9e:47:e0:0b:cb:ab (type:

[PATCH v2] Documentation: some extra steps requires for DHCP network configuration for sandbox on the host OS

2021-04-21 Thread Neeraj Pal
Signed-off-by: Neeraj Pal --- Documentation/boards/sandbox.rst | 66 1 file changed, 66 insertions(+) diff --git a/Documentation/boards/sandbox.rst b/Documentation/boards/sandbox.rst index e9e518365..925dfc808 100644 --- a/Documentation/boards/sandbox.rst +++ b

Re: network configuration setup - dhcp

2021-04-21 Thread Neeraj Pal
Hello Ahmad, Thank you for reviewing it and I have shared it again as per your suggestions through git send-email with signed off option. Please confirm. Thanks and regards, Neeraj On Wed, Apr 21, 2021 at 5:03 PM Ahmad Fatoum wrote: > > Hello Neeraj, > > On 21.04.21 12:22, Neer

Re: [PATCH] Documentation: sandbox.rst: added dhcp network configuration

2021-04-21 Thread Neeraj Pal
Hello Ahmad, On Wed, Apr 21, 2021 at 5:02 PM Ahmad Fatoum wrote: > Please send this as Git patch, i.e. with a commit message. This is most > easily done, by using git send-email. Write something in the commit message > that explains the change, e.g.: > > Network configuration on sandbox

Re: [PATCH v2] Documentation: some extra steps requires for DHCP network configuration for sandbox on the host OS

2021-04-22 Thread Neeraj Pal
to configure manually without Qemu so I can also document them in the docs. Thanks and regards, Neeraj On Thu, Apr 22, 2021 at 10:06 AM Oleksij Rempel wrote: > > Hi, > > thank you for your patch! > > Am 21.04.21 um 20:08 schrieb Neeraj Pal: > > S