Bug 23295

Summary: validate input
Product: [Retired] eCos Reporter: Jesper Skov <jskov>
Component: GDB stubsAssignee: ecc-bugs-int
Status: CLOSED WONTFIX QA Contact: ecc-bugs-int
Severity: medium Docs Contact:
Priority: medium    
Version: CVS   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-10 05:43:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jesper Skov 2001-01-04 13:56:41 UTC
Stubs should check that the user is not trying to load application on
top of the piece of RAM reserved for the stubs.

Comment 1 George Thomas 2001-09-10 05:43:11 UTC
I'm not sure that the generic stub can really do this, certainly not
easily as the load process is just GDB sending some memory write commands.

RedBoot does try to accomplish this though.

Comment 2 Jesper Skov 2001-09-10 12:43:32 UTC
I opened this as a Bug mostly because I didn't want to muck anymore with the
stubs code until we know what code to use in the future. The actual fix is
fairly simple, I think; __write_mem_safe() should simply fail if attempts are
made at writing between some magic limits (.text start and .bss end or something
close to that).

Must be careful to allow (interactive) writes to various tables though.


Of course, the goal here would be to prevent users getting stuck and ask
silly questions when they try to download ROM apps, or RAM apps on top of
a RAM RedBoot. Dunno if it happens so often that it's worth protecting for
though (just give 'em the rope)... Nah, I'm closing the bug.