From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbbEJJow (ORCPT ); Sun, 10 May 2015 05:44:52 -0400 Received: from a.ns.miles-group.at ([95.130.255.143]:65275 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbbEJJos (ORCPT ); Sun, 10 May 2015 05:44:48 -0400 Message-ID: <554F288C.3000300@nod.at> Date: Sun, 10 May 2015 11:44:44 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Linux-Arch CC: "linux-kernel@vger.kernel.org" , Linus Torvalds , Arnd Bergmann Subject: VERIFY_READ/WRITE in uaccess.h? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! While cleaning up UML's uaccess code I've noticed that not a single architecture is using VERIFY_READ/WRITE in access_ok(). One exception is UML, it uses the access type in one check which is in vain anyways. Also asm-generic/uaccess.h drops the type parameter silently. Why do we still carry it around? Is it because we want it for some future architecture which can benefit from it or just because nobody cared enough to do a tree-wide cleanup? I fear it is the latter... ;) Thanks, //richard