Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp883179imm; Sat, 7 Jul 2018 10:53:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeBdjuEkb/1Bpsz01tv7bY6RTkjiw9IfQrz+hmAQUOCApt+2fF3/ENRUgRqam/jFmt5UBYL X-Received: by 2002:a63:6d8b:: with SMTP id i133-v6mr13631364pgc.215.1530986029629; Sat, 07 Jul 2018 10:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530986029; cv=none; d=google.com; s=arc-20160816; b=Aky1DK5Oi5St1CCWM9FJXWsxs1QtkR2xKXzmolaD7X5L3ihC5cRKmq00DzjK+vp7e4 E9bGExbFac7t/m98TE/LcgvZPB1JtSmRtED04sbnML3rRW72QOIMia80COKl1YZxlulI ZA4FsNhR08fz148VqHquaoDuiJOAPSKt6+wlJplM+QPKE5afmdaC7jxm7+3ewW251QI2 o2Hy7e1Ia8x6grv9Bk4Q7ZDyEzHUloCc3RtD0G6/RZltc+mlRduNs3kv/vIMsMXK80UQ P8WeXYgcPdmja/0aDhQbJCtvYA8YvDRfjRGn7uToK3tvnr8fbJv2hI/hQUQtbgq50fNe UI3w== 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:message-id:date :thread-index:thread-topic:subject:to:from :arc-authentication-results; bh=hjLylRvW2dHWSfK3MXfBNM/4AzotwN9WNntV84d57Ts=; b=cOXqsBRnp4eTi69aZEqcRYbxjePdw8u1LCD21qmVNPrY0pXChd3O5jE5Ls9hBm8FsK dVKLFffZnpU9bFsDor+RNfe3B3bXJ9TrhivCMeROTvlCP/KD0rDsfBl7IfB3DQh2EfqB 5pYuf+V3lLFMxAIeepeQ4kP8CN5P0+nI/X08GIQSoGysysnEHebSkatrN//lprCRDD5F IlqkjZ/8r0KL5p0y99O3or7b6fsdnSZD7ycdA2/yFVXMOi4QlQg/P07o0Bg+cHI4piIK zaAwpYBOHUimWnZyZVyIqV9ndmnbdBJEObW3pM8HOIeD4yE+/46yL+qG/RTUMvPID65g MNNA== 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 b25-v6si2870821pgf.545.2018.07.07.10.53.33; Sat, 07 Jul 2018 10:53:49 -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 S1754301AbeGGRww (ORCPT + 99 others); Sat, 7 Jul 2018 13:52:52 -0400 Received: from mail-oln040092068090.outbound.protection.outlook.com ([40.92.68.90]:50425 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754148AbeGGRwv (ORCPT ); Sat, 7 Jul 2018 13:52:51 -0400 Received: from AM5EUR02FT058.eop-EUR02.prod.protection.outlook.com (10.152.8.51) by AM5EUR02HT087.eop-EUR02.prod.protection.outlook.com (10.152.9.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.906.15; Sat, 7 Jul 2018 17:52:47 +0000 Received: from AM5PR0701MB2657.eurprd07.prod.outlook.com (10.152.8.58) by AM5EUR02FT058.mail.protection.outlook.com (10.152.9.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.906.15 via Frontend Transport; Sat, 7 Jul 2018 17:52:47 +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 17:52:47 +0000 From: Bernd Edlinger To: Greg Kroah-Hartman , Tejun Heo , "linux-kernel@vger.kernel.org" Subject: [PATCHv3] Fix range checks in kernfs_get_target_path Thread-Topic: [PATCHv3] Fix range checks in kernfs_get_target_path Thread-Index: AQHUFhtQ75qzmnRLgk6REyo6TeLGGQ== Date: Sat, 7 Jul 2018 17:52:47 +0000 Message-ID: Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR05CA0162.eurprd05.prod.outlook.com (2603:10a6:7:28::49) To AM5PR0701MB2657.eurprd07.prod.outlook.com (2603:10a6:203:75::7) x-incomingtopheadermarker: OriginalChecksum:8F8313CAB04DA7DE5F6424A804C8F06A3BBC2A6FD906BF30656C5E2AF69E6195;UpperCasedChecksum:2A097830ACF43D25C35B87BDA5D64CE4FA1C22F704655D3FEF0B2103E2E79CF0;SizeAsReceived:7423;Count:47 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [OXWCjx/x0BACxALguRYb2jxwMCT+Gl6r] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM5EUR02HT087;7:vCD9GopMMz38MQ8KQnJlnL/F/cuva2yAYaJ9mOXaZG1+dwXJoGlUtGGYSbGD5dlYCTLT89gk/fzU3eEpQd+cxonYFsIydzkYcrtF3AUflw3+fTFCQapyJGWKXOV1CzEPSKVqtFEGi4+9OPzBuUPyqhmVXqTlOBwQ6p/Y8hK6dNIb+dL/cbTgFccATwhPJa1C2i07M1YSbikBmwU1Wq62LDqzDKD0r77hpB0XU5bg3yrCyOhL/Uzk7mdqVFqwdHIZ x-incomingheadercount: 47 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:AM5EUR02HT087; x-ms-traffictypediagnostic: AM5EUR02HT087: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(82015058);SRVR:AM5EUR02HT087;BCL:0;PCL:0;RULEID:;SRVR:AM5EUR02HT087; x-forefront-prvs: 0726B2D7A6 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(189003)(199004)(81156014)(82202002)(1857600001)(5250100002)(8676002)(8936002)(2501003)(305945005)(26005)(74482002)(14454004)(386003)(99286004)(6506007)(55016002)(102836004)(74316002)(6346003)(7696005)(25786009)(486006)(110136005)(73972006)(5660300001)(104016004)(2900100001)(75402003)(97736004)(68736007)(9686003)(33656002)(105586002)(86362001)(106356001)(476003)(256004)(6436002)(14444005)(44832011);DIR:OUT;SFP:1901;SCL:1;SRVR:AM5EUR02HT087;H:AM5PR0701MB2657.eurprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:3;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: HlPvefZOte2ScvmikH3+xGU01Bn9BbJGE04XsnqDQdkxxJlQW2jOHjLlD/bj6W/UuFhSAbhHcorcSuk9XM1z9AFDD+DOHwP+TRf4yq1QVg2EVJSXQgTpijAP+qYlV0hTTUakk8bSb25G85oPqLi9rF1a1rnte+Ukt6v7K7XT82Uy+gd8NWqOm0nRLOK6nicyqPjeZpjoWWdEvygfdaZh6sQ/pCNeHQyLPhs6lBeZKIU= Content-Type: text/plain; charset="utf-8" Content-ID: <0C9970CE08B55746A95C1DD5971C3DC1@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: 24b162dd-d9a6-46ea-325b-08d5e43272ad X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2018 17:52:47.5619 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIHRlcm1pbmF0aW5nIE5VTCBieXRlIGlzIG9ubHkgdGhlcmUgYmVjYXVzZSB0aGUgYnVmZmVy IGlzDQphbGxvY2F0ZWQgd2l0aCBremFsbG9jKFBBR0VfU0laRSwgR0ZQX0tFUk5FTCksIGJ1dCBz aW5jZSB0aGUNCnJhbmdlLWNoZWNrIGlzIG9mZi1ieS1vbmUsIGFuZCBQQUdFX1NJWkU9PVBBVEhf TUFYLCB0aGUNCnJldHVybmVkIHN0cmluZyBtYXkgbm90IGJlIHplcm8tdGVybWluYXRlZCBpZiBp dCBpcyBleGFjdGx5DQpQQVRIX01BWCBjaGFyYWN0ZXJzIGxvbmcuICBGdXJ0aGVybW9yZSBhbHNv IHRoZSBpbml0aWFsIGxvb3ANCm1heSB0aGVvcmV0aWNhbGx5IGV4Y2VlZCBQQVRIX01BWCBhbmQg Y2F1c2UgYSBmYXVsdC4NCg0KU2lnbmVkLW9mZi1ieTogQmVybmQgRWRsaW5nZXIgPGJlcm5kLmVk bGluZ2VyQGhvdG1haWwuZGU+DQotLS0NCiAgZnMva2VybmZzL3N5bWxpbmsuYyB8IDUgKysrKy0N CiAgMSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ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