Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4794355imm; Sun, 26 Aug 2018 03:57:53 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda9zAYHXX3PyUu5TYpk/cBM1V143bUulJAmhOhUh+RCJA6ehcLh2c4FSVIjlRcXIeuwBCqJ X-Received: by 2002:a63:4283:: with SMTP id p125-v6mr8457569pga.142.1535281073214; Sun, 26 Aug 2018 03:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535281073; cv=none; d=google.com; s=arc-20160816; b=O4hfHLl7GxMetC0TiLyYR/KW6mibdjJDEgjWEaLkrsMXpHT8cPpNhdoQlq01jQt1iZ NHqmw48AErtTsduHRGIPf5hn0HE6qVxPRQTr4mRYfEl0nDGAeodPtweh5kWKzr84/KsB mMOZ8+7bOcvRHS7dK2XnVFnQ7gzekqgAXRXeLM7h0FFSgHYEmhXPQ6abv3D+swgGg9Om ah1Xqmz5VLywx5afe22DnW/pKGPPiZMnX30F/ge64YxxJ4oAi0ANQs/Zkx35qh0OdF0t /4OMmudakbkKDFa3N4Nw3CpTJy+25RQNdj8esh3YTArkRwE/bpNo3VBL6vUJxcCTERs1 mZzQ== 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:to:from :arc-authentication-results; bh=VwCzXemvEYHErcy7606HJe4GjEUMssN2/TooERPAGlM=; b=CSNmE8t63SOTerooe1n6lTaRHhFo4eU9k+m7Ns9qcrrM28j8O8dgzOHeDv+WJLjv5L QtfwlIYDxzsISUNQm+O5XqHTPqPUGQ4LQv/aBHS2wjDKsbOhRE8Ibw6P/37xINjOaHDA HGTpuoGoa8vc1C2krH8S5MfvdlHMGtxIWJCKohJN/isd6OZXGLcHx6dO42OYFg+NmHKJ lJ3FoobczsnnfP4mabHZ/DKS789i59WOYr5p3ovevfgRWPuLILzuffeKQS20PYFs8aM5 qXjO6JX4GbVoaE33lKAy90NYq/h/q0KlHMcUVd0F+HH5QDtnYuhmWYB//jwoES2QylcD wfXA== 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 b34-v6si11744888plc.170.2018.08.26.03.57.23; Sun, 26 Aug 2018 03:57:53 -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 S1726724AbeHZOhm (ORCPT + 99 others); Sun, 26 Aug 2018 10:37:42 -0400 Received: from mail-oln040092072106.outbound.protection.outlook.com ([40.92.72.106]:20016 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726542AbeHZOhl (ORCPT ); Sun, 26 Aug 2018 10:37:41 -0400 Received: from VE1EUR03FT053.eop-EUR03.prod.protection.outlook.com (10.152.18.51) by VE1EUR03HT082.eop-EUR03.prod.protection.outlook.com (10.152.18.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1080.9; Sun, 26 Aug 2018 10:55:25 +0000 Received: from AM5PR0701MB2657.eurprd07.prod.outlook.com (10.152.18.56) by VE1EUR03FT053.mail.protection.outlook.com (10.152.19.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1101.10 via Frontend Transport; Sun, 26 Aug 2018 10:55:25 +0000 Received: from AM5PR0701MB2657.eurprd07.prod.outlook.com ([fe80::24cf:823c:758c:41b7]) by AM5PR0701MB2657.eurprd07.prod.outlook.com ([fe80::24cf:823c:758c:41b7%7]) with mapi id 15.20.1101.007; Sun, 26 Aug 2018 10:55:24 +0000 From: Bernd Edlinger To: Greg Kroah-Hartman , Tejun Heo , "linux-kernel@vger.kernel.org" Subject: Re: [PATCHv3] Fix range checks in kernfs_get_target_path Thread-Topic: [PATCHv3] Fix range checks in kernfs_get_target_path Thread-Index: AQHUFhtQ75qzmnRLgk6REyo6TeLGGaTSKlsA Date: Sun, 26 Aug 2018 10:55:24 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0701CA0053.eurprd07.prod.outlook.com (2603:10a6:3:9e::21) To AM5PR0701MB2657.eurprd07.prod.outlook.com (2603:10a6:203:75::7) x-incomingtopheadermarker: OriginalChecksum:B02A2BE6024F18A3536F61B306BC0B40DA846F888A9B57E004F7C9A22D59D555;UpperCasedChecksum:C0D57844E4C6C648288F642C416772E2786A57FFCAF3685330E77C0C914BA4BB;SizeAsReceived:7653;Count:49 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [/3qXxaSGLX4lTgKHr3i18ZlCvicBPLak] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VE1EUR03HT082;6:8P2iuZm9T48WVRJULhvDjubbvktwhi95TNXDW4vY1DRgpf1+jR/47o0hqJl55HH8dao6Ymt4UOoPN/KcE2UhfXR4S37WxqamFyTvoqKB4IFM0QC4040L/qHfqheNdRCt3t5R/1xSdr7jz0Xn12gF2MR5iMMnfRCW1UyJ7qvflGnN5ZVPszrYBinscxfsavwT6COddYW4lXXoLX+dKRDtnT9yIfVd6Hw4GSuUbrYvJZsz2W/w3ErhS/fBffHD1TJ9GSrYtQagGzguwnQ+/0kqblIic7/vDIhiOnsyNBCIpgbMjjiNLyRVnwftGJX+t+qXTVhMSbSHYemjnRs4afjWwbBUaB0872Qp+Qzq6WlaotAQcC4PrpSTbihnOD7CD4P5tcoyk8AfslDFYyZ5tZkRTjyJgEzetZfj/UFLR01VQmFFBGBSFdIOC3B1rweykbPtbbU2d/opIXQMIkbJSlT+3g==;5:MEDZAzCsLVSo8hdBtvaUiO+Q2N+2xfUi80rayshmV/pQhUUltCCd3mSn6WxvBUsE0DdDnPSxeDVXstw4tdN2df+EjVLQ3zmF0ACavUtNET4m6jUzjaXiRaEh8Y+oI95cMMdwj4pST2qZD440bZL9LmkJLdUFQThX9J3Te42gp9s=;7:mxnZWS8Pp5Ct9uEQ4gwRMDE1b+3EcdoQ0+18P5mtQYbD1I0R1w5TOl5BqwXRvLEE8z8bFtKiRBlaSE1hHGVRzFr4NAxtYcn0REZq6Z66LB5GbH+P+pHrwQQLhC5lty/77vw0/0x+/Xc1rpq6nWCfCnJ/g7dI9ioQtvlg9TrQKFfYdyXZKu7vRoN6YzIIXL/pEwkeOeMv58igMCtBfOVbOFRpFiEhX6yhzAVECQInjLJIPtU1n3d284ciaslMtOtD x-incomingheadercount: 49 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101475)(1601125500)(1701031045);SRVR:VE1EUR03HT082; x-ms-traffictypediagnostic: VE1EUR03HT082: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:VE1EUR03HT082;BCL:0;PCL:0;RULEID:;SRVR:VE1EUR03HT082; x-forefront-prvs: 0776C39A48 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(189003)(199004)(476003)(6436002)(44832011)(55016002)(26005)(5250100002)(76176011)(53546011)(7696005)(110136005)(68736007)(11346002)(2900100001)(446003)(6346003)(6506007)(106356001)(105586002)(102836004)(386003)(104016004)(99286004)(33656002)(486006)(8936002)(14454004)(5660300001)(56003)(81156014)(14444005)(8676002)(74316002)(256004)(74482002)(82202002)(25786009)(6246003)(229853002)(97736004)(305945005)(86362001)(73972006)(2501003)(9686003)(75402003);DIR:OUT;SFP:1901;SCL:1;SRVR:VE1EUR03HT082;H:AM5PR0701MB2657.eurprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1; 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: Si/ZB+oOZq9kUnvUeqr1M0jx4j5h5IxL0NJhdLinpVj/peuNgKvUPDI2zSXeWUkl9+yM+/xNkOa4IURmKK2ks8dkdhIM1cGlkqRrMmCPHKkdGYafPUVA6kYDLzLAXIGSlvn3wil5tOcCLKlOvOQRF9rqED+j2QSsOc68UFFHEi+QfrjoOlxiJATnpMObbaBLNDjP6Jczy+diETKczy7gXfrRR5C1jb2mybcGtKsLTYY= Content-Type: text/plain; charset="utf-8" Content-ID: <3E48E3FF339A6144A34DC183AF60672A@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: a93407d2-4fbc-432d-0dc5-08d60b426ce6 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: d4d70346-2c10-4f39-8c00-e767963926d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2018 10:55:24.6930 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT082 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mail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