Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6242932imu; Mon, 21 Jan 2019 05:43:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN63a7hrqpkvdIoOzL/Y/lwCmgYwPb43fnSzraJvKi8anWcNlyo9hg2Y16nPHHc9LrS+IK7U X-Received: by 2002:a63:1b58:: with SMTP id b24mr27740830pgm.247.1548078187828; Mon, 21 Jan 2019 05:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548078187; cv=none; d=google.com; s=arc-20160816; b=G7Qu86LtWi2eUar63UDVEfDDA1MJkirslzlHo/ffis6HAxDVh3wc0Oi4s2c4ENEI6z y0N/wtUdsFDF6eJE6Ht2tv62yFKVPBpBA89URFMJo9KHwK+kQrLvNeJvAVXsDDUrWMG2 XDMgSnf/+TLg3Yxatbqn7jREqx01dxA2846reGt/XkXXhqtO1a1aagU71uDnqJVye3bb Oihl4q0DZS8MCJ1G8CH0fEwlDp3o1v9SbCt8gCdwlsApt0sQ4v+jpa00tIDpSM+7sBBk Sx+QJ01Cs1s09Ghy2EONDUJmDAK5LB2d+zpc5wWdafEdMXZRUSLbqFFoXBPFHuqTZlom OPYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SF4M7AhekxLOzHWpvb8yq1aEWAWnL64H6PmvyFaKAok=; b=BQxrn/WcX2Y+NrRMkO4NW/KuJtuoEJiSnj2wZh1cBsNR1ellpp/M8oxOS60hSY+s4D 8py7hsiN8zOdJJrebrWMyky+GYgk1aAlaTbJURQksw5ugGmFwdp1fmBUl9PvhD9tWcuK w2w/3mX1kSSfmLFQA/i1UVG0hhTXGaTKZL+NmKSVoPqTTw0fK8LW5Bh7QfV3WB4cyZ2r Q4dl/mBwZh3sjeTOZ8389cTO/mdrb4iPMuSAtjU5+vvuFpIe22v22t8nA8lNd6GxeAhS RroEPhUshxZ9Omk/uJv49aKxuSffNv5p7SXqQuGYYnor4A2kX+q3EXhAthz/ODhODPOK JpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OqyfWeGe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si12590430plo.12.2019.01.21.05.42.52; Mon, 21 Jan 2019 05:43:07 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=OqyfWeGe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729060AbfAUNlp (ORCPT + 99 others); Mon, 21 Jan 2019 08:41:45 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:32845 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728975AbfAUNlp (ORCPT ); Mon, 21 Jan 2019 08:41:45 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so15559597lfc.0 for ; Mon, 21 Jan 2019 05:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SF4M7AhekxLOzHWpvb8yq1aEWAWnL64H6PmvyFaKAok=; b=OqyfWeGegB0OedjBiVjJ5WWuEvlf0dltJPq5DwoC65MylV0PL5sENyax/ga9qgST21 pdzWdYH5yoHG6/sDOjGAcX15F/T4+Td6xlzep2f6PYg04qVXLWYMfTavMtB9czI3/3OI 1AzypkOmQ+RNOex8/jsXxMsO/eOY5x5+7s1Fg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SF4M7AhekxLOzHWpvb8yq1aEWAWnL64H6PmvyFaKAok=; b=gRr58Ou+uLhnHT5ZG0aaWIdBa1FoTavU9FeouLQUaX6vwpEi+YhvM84jPd9wTyYOvd 2sszz2nPvuRTg+VApcOZOp4V4bY/UkRbAC9DD+Gwk8wFkzf8ySigOBNeww1jwkfXRgxt 8QBLuORm6XhN/6nctutuBR9XckDsyVCfEuK/sIkH1aF92a8208yKqn0heYLIgnY0fS52 AB38l4UanTzdbqFUinlqPwadgB3r+/EkDVtKQJ7MX5Tpz1oBGd5cgGcbJ32oBU02u48T 2z+eApI8CmrxVgL9xgdPb2B5lc2HrOu4pb7hZYdoKGCpX04ty2CGuYOJDfiAZRfq/q1x eVnA== X-Gm-Message-State: AJcUukcRWXy37vKDeu5iNZ0pfmK2Air8uE8uybuPBN+w/VcL8Fu0ZSl3 +Jg6ZTvI6gg7go32FyryXiE0iQnlAJJx3EuKKkmgrqf6 X-Received: by 2002:a19:4849:: with SMTP id v70mr17874393lfa.62.1548078103250; Mon, 21 Jan 2019 05:41:43 -0800 (PST) MIME-Version: 1.0 References: <20190115024543.12928-1-wens@csie.org> In-Reply-To: <20190115024543.12928-1-wens@csie.org> From: Linus Walleij Date: Mon, 21 Jan 2019 14:41:31 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: sunxi: Correct number of IRQ banks on H6 main pin controller To: Chen-Yu Tsai Cc: Maxime Ripard , Linux ARM , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 3:45 AM Chen-Yu Tsai wrote: > The H6 main pin controller has four banks of interrupt-triggering pins. > The driver as originally submitted only specified three, but had pin > descriptions referencing a fourth bank. This results in a out-of-bounds > access into .irq_array of struct sunxi_pinctrl. This however did not > result in a crash until v4.20, with commit a66d972465d1 ("devres: Align > data[] to ARCH_KMALLOC_MINALIGN"), which changed the alignment of memory > region returned by devm_kcalloc(). The increase likely moved the > out-of-bounds access into the next, unmapped page. Nice work rootcausing this! Patch applied for fixes with the tested-by and ACK. Yours, Linus Walleij