Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbbBYH3g (ORCPT ); Wed, 25 Feb 2015 02:29:36 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:51660 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbbBYH3e (ORCPT ); Wed, 25 Feb 2015 02:29:34 -0500 From: Sudip JAIN To: "linux-media@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" Date: Wed, 25 Feb 2015 15:29:22 +0800 Subject: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch Thread-Topic: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch Thread-Index: AQHQUMq3Cp7vnWb/VE+8gzXLceL8jQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_002_AE3729EDFAD6D548827A31E3191F1E5B0138E8D7EAPEX1MAIL1stco_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-02-25_01:2015-02-25,2015-02-25,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3320 Lines: 59 --_002_AE3729EDFAD6D548827A31E3191F1E5B0138E8D7EAPEX1MAIL1stco_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Dear Maintainer, PFA attached patch that prevents user from being returned garbage bytesused= value from vb2 framework. Regards, Sudip Jain = --_002_AE3729EDFAD6D548827A31E3191F1E5B0138E8D7EAPEX1MAIL1stco_ Content-Type: text/x-patch; name="0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch" Content-Description: 0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch Content-Disposition: attachment; filename="0001-media-vb2-Fill-vb2_buffer-with-bytesused-from-user.patch"; size=1634; creation-date="Wed, 25 Feb 2015 07:15:19 GMT"; modification-date="Wed, 25 Feb 2015 07:15:19 GMT" Content-Transfer-Encoding: base64 RnJvbSA4MDRlNzZmODlkNzNkMTBiOWZkN2IyNWE0OGE2ZWRjMzFmYWE0MGE5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdWRpcCBKYWluIDxzdWRpcC5qYWluQHN0LmNvbT4KRGF0ZTog V2VkLCAyNSBGZWIgMjAxNSAxMjoyNDo1MyArMDUzMApTdWJqZWN0OiBbUEFUQ0hdIG1lZGlhOiB2 YjI6IEZpbGwgdmIyX2J1ZmZlciB3aXRoIGJ5dGVzdXNlZCBmcm9tIHVzZXIKCkluIHZiMl9xYnVm IGZvciBkbWFidWYgbWVtb3J5IHR5cGUsIHVzZXJzaWRlIGJ5dGVzdXNlZCBpcyBub3QgY29waWVk IGluCnZiMiBidWZmZXIuIFRoaXMgbGVhZHMgdG8gZ2FyYmFnZSB2YWx1ZSBiZWluZyBjb3BpZWQg ZnJvbSBfX3FidWZfZG1hYnVmKCkKYmFjayB0byB1c2VyIGluIF9fZmlsbF92NGwyX2J1ZmZlcigp LgoKQXMgYSBkZWZhdWx0IGNhc2UsIHRoZSB2YjIgZnJhbWV3b3JrIG11c3QgcmV0dXJuIHRoZSBk ZWZhdWx0IHZhbHVlIHRvIHRoZSB1c2VyLAppZiB0aGUgZHJpdmVyJ3MgYnVmZmVyIHByZXBhcmUg ZnVuY3Rpb24gcHJlZmVycyBub3QgdG8gbW9kaWZ5L3VwZGF0ZS4KCkNoYW5nZS1JZDogSWVkYTM4 OTQwMzg5ODkzNWY1OWMyZTI5OTQxMDZmM2U1MjM4Y2ZlZmQKU2lnbmVkLW9mZi1ieTogU3VkaXAg SmFpbiA8c3VkaXAuamFpbkBzdC5jb20+Ci0tLQogZHJpdmVycy9tZWRpYS92NGwyLWNvcmUvdmlk ZW9idWYyLWNvcmUuYyB8ICAgIDM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sKIAkJCXY0bDJfcGxhbmVzWzBdLmxlbmd0aCA9IGItPmxlbmd0aDsKKwkJCXY0 bDJfcGxhbmVzWzBdLmJ5dGVzdXNlZCA9IGItPmJ5dGVzdXNlZDsKIAkJCXY0bDJfcGxhbmVzWzBd LmRhdGFfb2Zmc2V0ID0gMDsKIAkJfQogCi0tIAoxLjcuOS41Cgo= --_002_AE3729EDFAD6D548827A31E3191F1E5B0138E8D7EAPEX1MAIL1stco_-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/