Received: by 10.213.65.68 with SMTP id h4csp1687185imn; Mon, 19 Mar 2018 10:33:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELvcRqUJQlPzGW/WW747XchYNccSP9N3n/24h8N0p/lBY34GBRiSUUV4Djv9Ak2rM3mQV8xj X-Received: by 10.99.109.198 with SMTP id i189mr9671400pgc.328.1521480823710; Mon, 19 Mar 2018 10:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521480823; cv=none; d=google.com; s=arc-20160816; b=r2I5ctDFmzbhALuZ3ZdlurT+66wJ9ae6blymmO1MPJ5yzCuVGuLrijh4dClxhuHj22 ojnATryy9TOFJ//+o2ZSetSio2ClqSzZUvDO+DkAZ2L8eAbEbmTQK3DRN3jf3f902Njb RqRMj8uONyyI+GSICqKkS+LUR0ekFji9l4/0A6TxB+9TPrAUUg0hdEqbYlTee22DJp8R mQEswZ5tz05OTcsLljWMqZf3pjWuOwFJu0k+yGOYu4sOND0t8yMlifDn1dCCBvS+gNDi uCtzaBxE+P0vDhZwcmoG8S6e1owgQM/3ZRBdhaiKBmGasAzVh1U2WuW/aBckDp0sylCo kmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=cphkncD1lcgj4EdgHsrcp+s+Q9ohWmAVPhrzM04hkak=; b=Ep7IUk+9erWMjBGGca49xH/dbLYqYrCM4BD7deRyaVY+i7Lwix4mt96Gl8uW1CYV9S coJAr06rZCc5RND7gTEkhyBuy4965hezq7ZncGjSbNub+tiB4UrGScaBPTuoQHMsWd6j C9X02sDj2d1Sm3ek1Hw3OHAxa9RnJQByZGCfk0ufxLa+4pDg5vDC1ard6ESjdSCqtQFj rDt/DKTmyuxmV8/hU5tIVYpkXmS7RA07k1k0LMz7UyuyiBnwtQP83xqaaFziAm1q3wWy L0MAFd93IXQ5/IKaCGYaMRl3MX/eJy4PARuRRpeda7O1nDTD8eCWjM8PAyxOopeVRCDQ iDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=dntMHbZ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si255328pgr.546.2018.03.19.10.33.29; Mon, 19 Mar 2018 10:33:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=dntMHbZ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966368AbeCSRbO (ORCPT + 99 others); Mon, 19 Mar 2018 13:31:14 -0400 Received: from mail-co1nam03on0114.outbound.protection.outlook.com ([104.47.40.114]:10656 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966052AbeCSQHC (ORCPT ); Mon, 19 Mar 2018 12:07:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cphkncD1lcgj4EdgHsrcp+s+Q9ohWmAVPhrzM04hkak=; b=dntMHbZ4N/1HjdlCXOBYlm48Y8PTEdgtQRzROvUtdun6voYguYoO4YVpJ8r70JHtrtj0JlkJayPIXrud3SB21ANWh08keWADYYcG8jgQaP5Otl8sAou2hCVxrPnbnrQvhn2kx0AOom07veB82+8YGmrMMDLmfvuBeFZ0OEWgX9Q= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1093.namprd21.prod.outlook.com (52.132.130.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:06:54 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:06:54 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Paul Mackerras , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 027/167] KVM: PPC: Book3S PR: Check copy_to/from_user return values Thread-Topic: [PATCH AUTOSEL for 4.4 027/167] KVM: PPC: Book3S PR: Check copy_to/from_user return values Thread-Index: AQHTv5wpMByh9Oar+Em1ELT2zWO8HA== Date: Mon, 19 Mar 2018 16:05:55 +0000 Message-ID: <20180319160513.16384-27-alexander.levin@microsoft.com> References: <20180319160513.16384-1-alexander.levin@microsoft.com> In-Reply-To: <20180319160513.16384-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1093;7:oF9M93M0z6ci/5Sl4L6sH7JtrQiCkpsFNvyyWDWOmDjxa0//YDvke9bNzxX8JvLkdVsewVSulunLxsPelZNr0iwOqFBnYM6IzfxhAmffxxT0WAox/ikmvs/QqfdgRuBup2vBLjsdVGcVMiBKOpYLVb3qG9hMpZWy2viM7lp5eL/I/QtN6OgY4nmMadGKx474naogqI0Zz9NDTQXmb/xYhDrV/BHYw4wca16hvxPyA10ZU0HKnTgxRjiDy8qirwz6;20:mGls0Xzsx0pPqRqe13shwOS6fn5HTBYVRANMWJvUeQkdqwddg52l9eVrzaMwDef6q6pjc0s1Tlxw31WGzy1YWhblP1EKVWmfflEDGzTE8CYBogZJsqAj5cNA2ZarHEbK66DYX9meXQKrbl/bIaJ1yORDfxW1owDBxLym2PWfHqo= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 11d932ae-b8f9-4090-1285-08d58db36ee2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1093; x-ms-traffictypediagnostic: DM5PR2101MB1093: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1093;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1093; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(39380400002)(366004)(39860400002)(346002)(189003)(199004)(10290500003)(68736007)(478600001)(110136005)(72206003)(36756003)(99286004)(97736004)(10090500001)(305945005)(7736002)(76176011)(107886003)(2950100002)(6436002)(86612001)(6486002)(4326008)(54906003)(186003)(3660700001)(25786009)(26005)(2906002)(53936002)(5250100002)(2501003)(81166006)(81156014)(2900100001)(86362001)(5660300001)(8936002)(1076002)(8676002)(3846002)(3280700002)(6116002)(66066001)(316002)(59450400001)(6506007)(14454004)(106356001)(6512007)(22452003)(105586002)(102836004)(22906009)(32563001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1093;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 1GSCDDSrn9WHCg3MucsXQR0dgjqnBp+GnRa7S8iGwcbMynNRoPumCM26gWNb52bfXrzySn1Zfn+iTaPNdJ8x7Ht9GS+2LvGjcN0jMTgPYCcCgC+Er30Ths7dq7Nzo2w72fKJ53kzH3z8gEA3QaOIrnakuL3UBwAwZTx+Hwy/AQqfIXbHk++vp3C5kDZTnAPbhov4L9GZ1EN2QyWXsf5gfdtqjJAMKmK5mUwg+9OUgtQS/cb5nP5Otfv59rKoelhBV7J/DWy9A5eVuYIHX8gzM4qkP0KJp3K94WLZjAcLfUM6OdZme3tKvFtq7F7rgcX39obURzaIHGYabmTij/uzWw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <481BD3AF026A154487788908322A7C57@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d932ae-b8f9-4090-1285-08d58db36ee2 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:05:55.0556 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kern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