From d40007667c3ab787e9027e07c8548b660ad27ac2 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Thu, 13 Jul 2006 14:46:53 +0000 Subject: [PATCH] Do not report non-safe sys_sdevio calls when the address is 'SELF' --- kernel/system/do_sdevio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/system/do_sdevio.c b/kernel/system/do_sdevio.c index 658d81b0e..4d8c9d3d3 100644 --- a/kernel/system/do_sdevio.c +++ b/kernel/system/do_sdevio.c @@ -28,13 +28,16 @@ register message *m_ptr; /* pointer to request message */ phys_bytes phys_buf; int req_type, req_dir; - if ((m_ptr->DIO_REQUEST & _DIO_SAFEMASK) != _DIO_SAFE) + /* Allow safe copies and accesses to SELF */ + if ((m_ptr->DIO_REQUEST & _DIO_SAFEMASK) != _DIO_SAFE && + proc_nr_e != SELF) { static int first= 1; if (first) { first= 0; - kprintf("do_sdevio: for %d\n", m_ptr->m_source); + kprintf("do_sdevio: for %d, req %d\n", + m_ptr->m_source, m_ptr->DIO_REQUEST); } } -- 2.44.0