Displaying 7 results from an estimated 7 matches for "xenbus_dev_frontend".
2011 Dec 19
1
linux-next: Tree for Dec 19 (xen)
On 12/18/2011 11:55 PM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20111216:
drivers/xen/xenbus/xenbus_dev_frontend.c: In function 'xenbus_init':
drivers/xen/xenbus/xenbus_dev_frontend.c:609:2: error: implicit declaration of function 'xen_domain'
Full randconfig file is attached.
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-------------- next part ---...
2011 Dec 19
1
linux-next: Tree for Dec 19 (xen)
On 12/18/2011 11:55 PM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20111216:
drivers/xen/xenbus/xenbus_dev_frontend.c: In function 'xenbus_init':
drivers/xen/xenbus/xenbus_dev_frontend.c:609:2: error: implicit declaration of function 'xen_domain'
Full randconfig file is attached.
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-------------- next part ---...
2012 Sep 13
2
potential integer overflow in xenbus_file_write()
Hi,
I was reading some code and had a question in xenbus_file_write()
drivers/xen/xenbus/xenbus_dev_frontend.c
461 if ((len + u->len) > sizeof(u->u.buffer)) {
^^^^^^^^^^^^
Can this addition overflow? Should the test be something like:
if (len > sizeof(u->u.buffer) || len + u->len > sizeof(u->u.buffer)) {
462 /* On error, dump...
2012 Sep 13
2
potential integer overflow in xenbus_file_write()
Hi,
I was reading some code and had a question in xenbus_file_write()
drivers/xen/xenbus/xenbus_dev_frontend.c
461 if ((len + u->len) > sizeof(u->u.buffer)) {
^^^^^^^^^^^^
Can this addition overflow? Should the test be something like:
if (len > sizeof(u->u.buffer) || len + u->len > sizeof(u->u.buffer)) {
462 /* On error, dump...
2012 Jan 24
0
[PATCH] xenbus_dev: add missing error check to watch handling
So far only the watch path was checked to be zero terminated, while
the watch token was merely assumed to be.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
drivers/xen/xenbus/xenbus_dev_frontend.c | 4 ++++
1 file changed, 4 insertions(+)
--- 3.3-rc1/drivers/xen/xenbus/xenbus_dev_frontend.c
+++ 3.3-rc1-xenbus-dev-write-watch/drivers/xen/xenbus/xenbus_dev_frontend.c
@@ -369,6 +369,10 @@ static int xenbus_write_watch(unsigned m
goto out;
}
token++;
+ if (memchr(token, 0, u->u.m...
2012 Sep 13
2
potential integer overflow in xenbus_file_write()
Hi,
I was reading some code and had a question in xenbus_file_write()
drivers/xen/xenbus/xenbus_dev_frontend.c
461 if ((len + u->len) > sizeof(u->u.buffer)) {
^^^^^^^^^^^^
Can this addition overflow? Should the test be something like:
if (len > sizeof(u->u.buffer) || len + u->len > sizeof(u->u.buffer)) {
462 /* On error, dump...
2013 May 15
6
xenfs: race condition on xenstore watch
...e the opportunity to cause the watch_fired to
run (and briefly grab the reply_mutex for itself) before the fake "OK"
message is sent.
Below, I''ve included a putative patch for pre-3.3 xenfs that fixes this
problem. (It looks like the patch would also apply cleanly to
3.3-onwards xenbus_dev_frontend.c, but I haven''t tried.) Any comments
about whether this is a reasonable approach?
A cursory glance at drivers/xen/xenbus/xenbus_dev.c suggests that it
suffers from the same problem. Although I haven''t haven''t tested this,
I''d expect that it requires a very simi...