[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/2] x86/shadow: address two Coverity issues


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 13 Oct 2021 17:36:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Y9BIJQobaTZEoekm+P0iAA572KdUtOghT3sS1h6RJGc=; b=EQvDwfawRCkll3BiN48nbSDTDahQf2nrGEKr/Skl+3S3OxzvxomyWAYWFsWJsfJLK+lHHeMJ4wuBYt9UPSPAyGEj6E518cMoAblAFaKUX1bE3YUoVfklDUkjoMHMyfpuuMiGeAaFqq5ntyYmeFBqtaSD/zCbrl0a3iYDrY9qrZGQSalpc6mMzw/DxUF2U55OKiYNYnsD59lVm+Jn5P1IEcAAKsIfQ1gLfns4M1JMdWW8k7YaA2Pf+ZvfVo3US+Pzd0ZXsbyvk+ot9ypya+McJHG+F0JpCodSbmSsaDJHV2ikgyO2a2jtMOstm/9IrVp5IP5DZfRtNJibAlZkTF4rQA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fwCpDHyMBfEi1tgf+KwCHOAoz+pituqrb4HyLjC23oJnJPOY12u7xHtNJytesSGxphWkoISq54Jlq2ZxNjfcM9fyv9Fa3roXd+zzz/67K+r+nLhIxSmOK7CT051W+QI6XB0UG0VGIx3WhYoRkYDW3THvmZHV+peC4d6JhoUB4DjfPEpCCb/mIga/KjAahLgV9aq0WfFVR1IrOQpeBupdO/Lg4S4/SAO7sSn2N6feZi523dFSBfFNPO1b0M/X8mAkxb+3WCdSZ2ymsUvHbk60lE8qdL2yE/GBltM7rwLu3RiVV3ghDQmGFxrrI14Cf/umde8SmZIA3s9SlZRflBZYwQ==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Wed, 13 Oct 2021 15:37:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

It's not clear to me why the tool spotted them now and not before,
but this has got to be a subtle side effect of introducing the tiny
wrapper stubs. Anyway, the "fixes" (perhaps rather workarounds) are
pretty straightforward.

1: adjust some shadow_set_l<N>e() callers
2: adjust 2-level case of SHADOW_FOREACH_L2E()

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.