Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp486150imm; Sat, 7 Jul 2018 01:33:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfXOnNH2dAJuU/QsZQtEGIRhR6bYYpcQvwLqzcO+CSLPifEWCV5qTB9kCfO2DamJ6F2f5e+ X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr11941574pgn.415.1530952400692; Sat, 07 Jul 2018 01:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530952400; cv=none; d=google.com; s=arc-20160816; b=N6v9mblXeredq5d3pL+ylzJIcZm2iGqRoa+Sv3CaUZTLQHoPrikeuIh0ZlltwPJsLy cOKDZsdpvS0e/N7FhWhgkoG/ZaPOZItPa4KztX8kykwb6etNuk+VJ+fIAsJb4bkqMbdr 7pW72iOjs828z4A4AHkABtroC1o/l+vTbdkFoYvrxJMcAKW5bDhlzwvHX+WWD67ht5HL widVKzTf87o+wuFi4pkT7Njg8Zez6tY6rvZ7oPCGNkQY8xLT4cEFHRInaRko/dnwdWxo T+JgsCFy9zawMOhjQIi821IN006A16unkcjZCv6hzyOSUp50k0q1/Far/GTUz5RuRfk5 JJxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=/AslRk4ko5wjoQ8/cT3c1apLjbuCvOLorNJ3G/BqzTM=; b=iBwoZoytu9EcBI4h9EFniAod65P0nuXXDtmnx83Yx0gzf/AIbSVfDMeZ3D3S4axeyH 4kjLGC87mlBZ8S21N4QVb02e5jaxHGWSxxFN17HUvh211LHBsEkDHvHrF7yZ5Ked8Dd0 njIrPGGtTOwhS87e9G3jWUuWcNIrGLxuRx3+S8bIPK+eMMaS8RYZ4M60F+Pz0eBlimNf FYayH4BAiKXNRRLYlfsvh8gXZXHsGh+z4aTDfLsvmduhrN1ba55EcgcLwUvvB3Cct1Sb qiMF890ME1HiLO2d1T85Eeaqvvv5UGETcRjRKSyX0iura2OesBJkH6gPA7i1k2hDG22l 85vQ== 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 a9-v6si9480686pgf.380.2018.07.07.01.33.06; Sat, 07 Jul 2018 01:33:20 -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 S1753647AbeGGIcZ (ORCPT + 99 others); Sat, 7 Jul 2018 04:32:25 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:56252 "EHLO hera.aquilenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752809AbeGGIcW (ORCPT ); Sat, 7 Jul 2018 04:32:22 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A085FC14; Sat, 7 Jul 2018 10:32:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4UBKo4cM8-s8; Sat, 7 Jul 2018 10:32:21 +0200 (CEST) Received: from var.youpi.perso.aquilenet.fr (dhcp-64-205.ens-lyon.fr [140.77.64.205]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D9D1473E; Sat, 7 Jul 2018 10:32:20 +0200 (CEST) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.91) (envelope-from ) id 1fbidf-0001bS-Vc; Sat, 07 Jul 2018 10:32:19 +0200 Date: Sat, 7 Jul 2018 10:32:19 +0200 From: Samuel Thibault To: Jann Horn Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, Greg Kroah-Hartman , kernel list , speakup@linux-speakup.org, devel@driverdev.osuosl.org Subject: Re: [PATCH] staging: speakup: fix wraparound in uaccess length check Message-ID: <20180707083219.pbxqsfe4duxueepv@var.youpi.perso.aquilenet.fr> Mail-Followup-To: Samuel Thibault , Jann Horn , w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, Greg Kroah-Hartman , kernel list , speakup@linux-speakup.org, devel@driverdev.osuosl.org References: <20180707015344.146672-1-jannh@google.com> <20180707081347.czde44j6rjepjpkf@var.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jann Horn, le sam. 07 juil. 2018 10:22:52 +0200, a ecrit: > Or should I rewrite the > patch to be simple and just bail out on `count < 3`? Our mails have crossed :) I believe what I sent is correct: for softsynth it does not make sense to have room for less than 1 (non-unicode) or 3 (unicode) bytes. Samuel