Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp734348imm; Sat, 7 Jul 2018 07:35:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgMvbPHJsTIHFRrhLXkfktQG//Su6B5Wwtkovs2WJ+DWf8MfIZIjKvJzz9kD3XZdGWZb/U X-Received: by 2002:a63:f18:: with SMTP id e24-v6mr13025065pgl.320.1530974103003; Sat, 07 Jul 2018 07:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530974102; cv=none; d=google.com; s=arc-20160816; b=Ryzv93Hmsdhh5PKy2K+x7M+o9XKrhgUZIaVGVG38rUve2DJPnn7GK6bOskg2lhsMSm Cxuacxti/y7y4xnOhf50kVhyB0mhor5VO3StqupN7vKuCwn9rQWBp9VNgzdMS92tA7QA g9iqIzYGa9kHbtl8HVG/rOd6kTS67rPPfatJwCyfhf42wW+yLo7foeSRjt/vaDR3UgJP idHaK0vsgfs4N0GPU9krxmab4xqoobBHrNR/9LYyOpmRf3pt0ZH2FEU9e7iHbqUnknh5 i8EOzHi868/k0sfdO6rO2TTUMgpNS2DPH2ZuLkjWwyLRpZji/ykuBylkLvatJfRJ6OMp qutw== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=8of7OIsGnQ7a2Ffuww5c+ANt0sAqeUDVSD0vp5vkfOY=; b=ggL18OBiQYXmHCFnEZVtJnpu20LSXN40vd7KyUFooPzkIBFnJVoboJ5AFY334IT5cn hyM8vJmlinhh5utj1d5Gz08gntm9HQiJFqv5cWXjRlh00A5xs81Uixf0H0XONjpY3rN7 N0AbvtPImARY7KH3/iU1qQcbgdOa0a82OQAHaoIpD3RF4BrhNojaVFY59iX3qyNAWQBu Ms1CGebqOqtDe4dDVXX6Tk6zGgv93MRJC28vaBj1CLQHpuQnSrRvzafYtY7uXmsLDfY+ 9OE2BMPSUql+07JBHj61qf+IKGTTgXoFYsNWek6X64M6rih2SCCPDStcPMS51kZnSiGX +UAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si6796749plr.137.2018.07.07.07.34.47; Sat, 07 Jul 2018 07:35:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686AbeGGOeJ (ORCPT + 99 others); Sat, 7 Jul 2018 10:34:09 -0400 Received: from mail-oln040092064066.outbound.protection.outlook.com ([40.92.64.66]:44590 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752825AbeGGOeI (ORCPT ); Sat, 7 Jul 2018 10:34:08 -0400 Received: from VE1EUR01FT051.eop-EUR01.prod.protection.outlook.com (10.152.2.52) by VE1EUR01HT057.eop-EUR01.prod.protection.outlook.com (10.152.3.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.906.15; Sat, 7 Jul 2018 14:34:05 +0000 Received: from AM5PR0701MB2657.eurprd07.prod.outlook.com (10.152.2.58) by VE1EUR01FT051.mail.protection.outlook.com (10.152.3.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.930.16 via Frontend Transport; Sat, 7 Jul 2018 14:34:05 +0000 Received: from AM5PR0701MB2657.eurprd07.prod.outlook.com ([fe80::b1fe:1b4f:88c3:5243]) by AM5PR0701MB2657.eurprd07.prod.outlook.com ([fe80::b1fe:1b4f:88c3:5243%7]) with mapi id 15.20.0952.008; Sat, 7 Jul 2018 14:34:05 +0000 From: Bernd Edlinger To: Greg Kroah-Hartman CC: Tejun Heo , "linux-kernel@vger.kernel.org" Subject: Re: [PATCHv2] Fix range checks in kernfs_get_target_path Thread-Topic: [PATCHv2] Fix range checks in kernfs_get_target_path Thread-Index: AQHUFdaeLDbdtFgySEW5kU1JCySiEqSDymAAgAAJDYA= Date: Sat, 7 Jul 2018 14:34:05 +0000 Message-ID: References: <20180707140140.GA4941@kroah.com> In-Reply-To: <20180707140140.GA4941@kroah.com> Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:208:3e::47) To AM5PR0701MB2657.eurprd07.prod.outlook.com (2603:10a6:203:75::7) x-incomingtopheadermarker: OriginalChecksum:76B6AE4E645056582D5BCFA3EF9C504EE99242EFE4DFCE15CF2667A5F8FBC4E5;UpperCasedChecksum:612D45B1000AACB5576FEBF75F4FC4884CB742C9759DA9AC680ABEDB2713D696;SizeAsReceived:7632;Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [+EwWp/CgGbqbZEjyqwPxQ9gs0oC2Wa0b] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VE1EUR01HT057;7:im6iOd1CUsN5UGnq8jIe8LpU9eQYaGVR8hIJCHwxxvurJTW568Fyw5iEHHCWdi01phCoLGwsca9ENaKi8vcx6ZOWdEssFgJHaqT0gWLNevYw9PBTvzFF6qY1hIhuCo4Mn0qGsqHOUdMFclKQgq5n3BFMxQOo8UHS2p81Eu2pwT7NNvaYVyzX6EFVoz0DZMrBKpcJ7cAvgQCDaAZ0XfRl7IgSw5DrdV2Yg66SZOsYDMaBH+tK2jE2plSgv/ur4wW5 x-incomingheadercount: 50 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125500)(1603101448)(1701031045);SRVR:VE1EUR01HT057; x-ms-traffictypediagnostic: VE1EUR01HT057: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(82015058);SRVR:VE1EUR01HT057;BCL:0;PCL:0;RULEID:;SRVR:VE1EUR01HT057; x-forefront-prvs: 0726B2D7A6 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(189003)(199004)(97736004)(55016002)(25786009)(14454004)(76176011)(7696005)(74482002)(4326008)(102836004)(14444005)(9686003)(5250100002)(386003)(2900100001)(256004)(6346003)(6506007)(53546011)(26005)(73972006)(82202002)(86362001)(75402003)(106356001)(105586002)(8936002)(6436002)(229853002)(476003)(446003)(486006)(68736007)(104016004)(81156014)(99286004)(8676002)(44832011)(6246003)(33656002)(74316002)(6916009)(54906003)(5660300001)(11346002)(305945005);DIR:OUT;SFP:1901;SCL:1;SRVR:VE1EUR01HT057;H:AM5PR0701MB2657.eurprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:; received-spf: None (protection.outlook.com: hotmail.de does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernd.edlinger@hotmail.de; x-microsoft-antispam-message-info: vRt+f6mQNnVJ9QULdDurYJe/dOM4wW6LWRiI5LlOENucwbyCGYvIxoFOnXFRUihZZjFeYlXA8p2DDWl9krkSj+NeEzWUn+eSIiChVbOA9oZtU+gDW0ZSX7kvOmqv3BFO7pFFbnJa1I55+DVtfoqxzM/zChP5I82ZjDjI7X5j0svT+DgT5vH1VeBW35Wq3Tj+MU2sPkPNNCLdqiyvvPP6DjeMV6voJWPYidUX6bdGLG8= Content-Type: text/plain; charset="utf-8" Content-ID: <0CD4C1250914CC4CAF109BBC4B19D95D@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-Network-Message-Id: f326a944-f326-4303-c15b-08d5e416b0c0 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2018 14:34:05.4879 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT057 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMDcvMDcvMTggMTY6MDEsIEdyZWcgS3JvYWgtSGFydG1hbiB3cm90ZToNCj4gT24gU2F0LCBK dWwgMDcsIDIwMTggYXQgMDk6NDE6MDNBTSArMDAwMCwgQmVybmQgRWRsaW5nZXIgd3JvdGU6DQo+ PiBUaGUgc3RybmNweSBjYXVzZXMgYSB3YXJuaW5nIFstV3N0cmluZ29wLXRydW5jYXRpb25dIGhl cmUsDQo+PiB3aGljaCBpbmRpY2F0ZXMgdGhhdCBpdCBuZXZlciBhcHBlbmRzIGEgTlVMIGJ5dGUg dG8gdGhlIHBhdGguDQo+PiBUaGUgTlVMIGJ5dGUgaXMgb25seSB0aGVyZSBiZWNhdXNlIHRoZSBi dWZmZXIgaXMgYWxsb2NhdGVkDQo+PiB3aXRoIGt6YWxsb2MoUEFHRV9TSVpFLCBHRlBfS0VSTkVM KSwgYnV0IHNpbmNlIHRoZSByYW5nZS1jaGVjaw0KPj4gaXMgYWxzbyBvZmYtYnktb25lLCBhbmQg UEFHR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