Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1187409ybg; Tue, 2 Jun 2020 03:41:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLrU/cvBHfccGRFGaiQVudrbY6FlZRwtlyzn/mr6ZWnU8YlgBNOrtZzUZp4qPbizfUjnIA X-Received: by 2002:a17:906:2c10:: with SMTP id e16mr13741278ejh.189.1591094468668; Tue, 02 Jun 2020 03:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591094468; cv=none; d=google.com; s=arc-20160816; b=N5UIWaKsD+9InnGCXfFP2BeFnEDXF4C5U0OlCSfZxJWgfSQrlLl7+jcNkQshCUFpDu fLV31ah7E/HjSCCy3YPUcOL7Sza5Qsl/EpgIy9ANSxYQyx97Ov0+7zUwamlcwd5l1nBO dD+UVx53LO3A8mkTAlc5yRMACj/TJgZIkf0VrNUruNAjRbaohic9Pooxjgb85zADrD09 eZMfDZWVvlhxAZiqS/OlFhNe8oljZGD4unuXo2x+OFSN+CJlBfG6NXpEZTLobtjwNotg hduclv5ohcNbz6Oamvjlgpf0Glx7nsI4f4xiPutCN4EynPWZFoz6A5lX0jAV/fk3VaDy 5gEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:subject:from:dkim-signature :dkim-filter; bh=srJNMlN35yPx2wBufa1+xyUmNboKPt4b/fJgTaYJwj0=; b=iEF7qk+ucboDh+JPOjPMkljQUlHvQJqBzvnv/77Phzv4WLxVH7vn1b0I86Tw4FfdZw lLnAzvDAfJFMu93ur57U7XSbsThCpkXQP2tDnjyFs5GWT/ry2T0VP6XDHxDuiXxWBf0Q HqX9ZEfGryceoZ0nIENJ2qS0PSkMQfHrLaqZaiQ+b6U4AYIqO23zR4wJzkH7AsR6DDjf rUMogtTr4Jb0HsPhMGbl3b4LZHs4384kwStN7v+a40uSOPK7HIJJNZJbE21d5LPcH3aC 5hTj7Y0dF3IdRxV+/xmH+egsjXQePoaMmHL6cZNeuCaRva9UIestGZvTyYrMmDmmfj2u qydg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=HTQ6BOEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox12si1287177ejb.565.2020.06.02.03.40.46; Tue, 02 Jun 2020 03:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=HTQ6BOEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbgFBKiW (ORCPT + 99 others); Tue, 2 Jun 2020 06:38:22 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58701 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbgFBKiU (ORCPT ); Tue, 2 Jun 2020 06:38:20 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200602103819euoutp01946f793968a21b8c4226f59b78ed9e0a~Us9XrXWDr0290602906euoutp013 for ; Tue, 2 Jun 2020 10:38:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200602103819euoutp01946f793968a21b8c4226f59b78ed9e0a~Us9XrXWDr0290602906euoutp013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591094299; bh=srJNMlN35yPx2wBufa1+xyUmNboKPt4b/fJgTaYJwj0=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=HTQ6BOEfhJHzUPwFhSeT4t9bbPokCsqZl9PeMbsDCpRaH0Hp5L6227Uxb9m6wvwOc cVT2Q6IjaXJwpQdKMZgvn9K+aG6ICbrktt1HOicRKed2k56zS6ri1h6ptRbO1F9ZSJ TTG7cxSDiVqkw206eaksVvJeaw/54km0/uI58zdk= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200602103819eucas1p1c7c078d397114df8c40cc227b64cf65a~Us9XjvqQt1569715697eucas1p1i; Tue, 2 Jun 2020 10:38:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E3.6D.61286.B1C26DE5; Tue, 2 Jun 2020 11:38:19 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200602103819eucas1p1613484842ec2169440d9597557b1c740~Us9XTovJY1306513065eucas1p1l; Tue, 2 Jun 2020 10:38:19 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200602103819eusmtrp29f4bef2776ab5dcdb45cdb0d40edd7a5~Us9XS8WIG1507115071eusmtrp2v; Tue, 2 Jun 2020 10:38:19 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-b5-5ed62c1b625a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C6.49.07950.B1C26DE5; Tue, 2 Jun 2020 11:38:19 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200602103818eusmtip1e7b600b92b20ab441ca5277343e72794~Us9W4WQcS2246822468eusmtip1f; Tue, 2 Jun 2020 10:38:18 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] video: fbdev: amifb: add FIXMEs about {put,get}_user() failures To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, linux-m68k , Al Viro , Geert Uytterhoeven Message-ID: Date: Tue, 2 Jun 2020 12:38:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGKsWRmVeSWpSXmKPExsWy7djPc7rSOtfiDA6dU7S48vU9m8WzW3uZ LE70fWC1uLxrDpvF8idrmS3O/z3O6sDmcehwB6PH/e7jTB4nW7+xeHzeJOex6clbpgDWKC6b lNSczLLUIn27BK6Mle+WMBac46w42b6DrYHxCnsXIyeHhICJxI3JUxi7GLk4hARWMEpM3tPA DOF8YZSYP2cWVOYzo8TJL7vYYFrmfW9gArGFBJYzSvzZwwFR9JZR4t7VUywgCTYBK4mJ7asY QWxhgTCJBS/vgDWICDhITLkxAWw3s8ACRokth5xBbF4BO4kZc7rAelkEVCSmrG4BqxcViJD4 9OAwK0SNoMTJmU/AajgFPCV29F5mgpgjLnHryXwoW15i+9s5YC9ICKxjl7j9aDYTxNUuEle2 r2eBsIUlXh3fAg0AGYn/O0GawRoYJf52vIDq3s4osXzyP6ifrSXunPsFZHMArdCUWL9LHyLs KHHmwksmkLCEAJ/EjbeCEEfwSUzaNp0ZIswr0dEmBFGtJrFh2QY2mLVdO1cyT2BUmoXktVlI 3pmF5J1ZCHsXMLKsYhRPLS3OTU8tNsxLLdcrTswtLs1L10vOz93ECEw9p/8d/7SD8eulpEOM AhyMSj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L65a+SOkvyyWdbIvoyy/lWwt j1jRU/Neq/7Q6Ftt16/d1tOaLaRV4hKb6C10ybrL6NEpIRbGTp7ils0WTGcWyX13VGIpzkg0 1GIuKk4EAGB0mu3MAgAA X-CMS-MailID: 20200602103819eucas1p1613484842ec2169440d9597557b1c740 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200504232908eucas1p296927bc7c736ad924cefaea9a546459d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200504232908eucas1p296927bc7c736ad924cefaea9a546459d References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we lack the hardware (or proper emulator setup) for testing needed changes add FIXMEs to document the issues (so at least they are not forgotten). Cc: Al Viro Cc: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/amifb.c | 2 ++ 1 file changed, 2 insertions(+) Index: b/drivers/video/fbdev/amifb.c =================================================================== --- a/drivers/video/fbdev/amifb.c +++ b/drivers/video/fbdev/amifb.c @@ -1866,6 +1866,7 @@ static int ami_get_var_cursorinfo(struct "clrb %0 ; swap %1 ; lslw #1,%1 ; roxlb #1,%0 ; " "swap %1 ; lslw #1,%1 ; roxlb #1,%0" : "=d" (color), "=d" (datawords) : "1" (datawords)); + /* FIXME: check the return value + test the change */ put_user(color, data++); } if (bits > 0) { @@ -1923,6 +1924,7 @@ static int ami_set_var_cursorinfo(struct bits = 16; words = delta; datawords = 0; for (width = (short)var->width - 1; width >= 0; width--) { unsigned long tdata = 0; + /* FIXME: check the return value + test the change */ get_user(tdata, data); data++; asm volatile (