From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIb1L-0000Sp-H9 for qemu-devel@nongnu.org; Tue, 15 May 2018 10:33:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIb1I-0007Re-BV for qemu-devel@nongnu.org; Tue, 15 May 2018 10:33:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43360 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fIb1I-0007RW-6g for qemu-devel@nongnu.org; Tue, 15 May 2018 10:33:40 -0400 From: Markus Armbruster References: <20180514141218.28438-1-pbonzini@redhat.com> <87r2md6sd5.fsf@dusky.pond.sub.org> <38c5dd46-b439-2ac5-22fb-10aca97fb633@redhat.com> Date: Tue, 15 May 2018 16:33:38 +0200 In-Reply-To: <38c5dd46-b439-2ac5-22fb-10aca97fb633@redhat.com> (Paolo Bonzini's message of "Tue, 15 May 2018 14:06:19 +0200") Message-ID: <87sh6t56pp.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] coverity-model: replay data is considered trusted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Pavel Dovgalyuk Paolo Bonzini writes: > On 15/05/2018 14:00, Markus Armbruster wrote: >> Paolo Bonzini writes: >> >>> Replay data is not considered a possible attack vector; add a model that >>> does not use getc so that "tainted data" warnings are suppressed. >>> >>> Signed-off-by: Paolo Bonzini >>> --- >>> scripts/coverity-model.c | 13 +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c >>> index c702804f41..576f48de33 100644 >>> --- a/scripts/coverity-model.c >>> +++ b/scripts/coverity-model.c >>> @@ -103,6 +103,19 @@ static int get_keysym(const name2keysym_t *table, >> /* Tainting */ >> >> typedef struct {} name2keysym_t; >> static int get_keysym(const name2keysym_t *table, >> const char *name) >> { >> int result; >> if (result > 0) { >> __coverity_tainted_string_sanitize_content__(name); >> return result; >> } else { >> return 0; >>> } >>> } >>> >>> + >> >> Does the new model go under /* Tainting */ ? > > Yes, it does. Any chance you can do the change yourself?... Gladly :) Reviewed-by: Markus Armbruster