From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06462C433E0 for ; Mon, 15 Mar 2021 14:03:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 86C1A64EED for ; Mon, 15 Mar 2021 14:03:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86C1A64EED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KWI22063BYi1nPl6YOPFCVuEOGw3byXKljcqTenyEw4=; b=rJczctRa3YKD1pmHRgCWZbCSi 2lZkFiL+BXebSlr1nUAAvmIdy2pOch8YwcEfCmgzGbVdU9Wl/oKEJGoxiU695wz9tre+8fqcY+y8b gFSKHgY4YIMMRklVkCUu5YzI4k6nQ+pCwmNB0dRU0GyTyNA/x4vuFCweuQcTNsoKnez7DKg1Kn0FX bVNuyZHpnSpmEBqPJ1DMjwbqAyVx5t6jJxKwDYsv0Oc6A7vxem7t8ZgjEXAekzq+v074nl/+ZBhG7 pRyI2+bkHUab+wtgsgFxAeAccdTU7W2sdfDfHkIRzxlMIENE52ySnGagACVyRevPlVF+HbG7E6BeP L/7NjW90Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLnn2-00G2Li-R9; Mon, 15 Mar 2021 14:01:49 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLnmy-00G2Kp-An for linux-arm-kernel@lists.infradead.org; Mon, 15 Mar 2021 14:01:46 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 16so16365323ljc.11 for ; Mon, 15 Mar 2021 07:01:44 -0700 (PDT) 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=s/Ki9/xaCWqRsxv1my3hW6i2nGL/EjMHLbJSOx5wTjQ=; b=w/vPza7ywLRSYSqVWCog0CM+3c+iMpflhMNcILUxaeGcPRRzC1VrwOJWeYbnSwChl/ JQ12b6f7gxlVTiBFZofsJMfDG+JNQ407JQLnXRFRd1tPOb6MFCWXr9aE1Z/WT+ahngGx MDtQt2lbUW/NTMsnWFiddnaB1Em4kFck1NPPCLhvkOnKGdEnUfJ7kg1T0+X9UAgFZT0M rCOxwRJnPwEfQeiO09VGWGF1r0HJSLfkgc/TFjj6HnePNci64HhQLzNReraGe2GWYLBi mfrzIJVm93uR6HNaJw2N90wXRCxv2tOWrrpwutAF3VVl1Dmkctg0/0l7/iKuW+909trK PSXg== 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=s/Ki9/xaCWqRsxv1my3hW6i2nGL/EjMHLbJSOx5wTjQ=; b=JFSpPapAhYEVYVvrJXvVPFu1aJHu3Zmds8Qy7xweJuqbkb/WvpuXfWPdgDRfW3Kfz7 K4Obr3AQxgiDDTzPIK2xKlqwpbf+6HCX5/rxTFmaEyxam0UdyVanfVcrFjHpWb5F9Vh5 cCLwxazMC6Aa5u7Iz8NNocvVqidy1jcYseZxsr/gfUl/ugT5mQ0LlQ9yJ2rFI0xOBoBc GCYTqETeQcl7Bh0xQy3zecgKgJyEGttT/q2K6q4GENrpSTEQP57hx7kCSY0VRTYcFHog xbd+9iOIbGvmBJnn9e7lHQevbGdszcLb9s+4pzk6yqvv86tVWwRpxTt/tPqdSTutWNWS mUkw== X-Gm-Message-State: AOAM531a2kg75RSZFan6h7dfRAaKQ3FTC3/0VEYP8G5A8AaoC0PdDXTf fJg7HH6dK2S3DOJOxsnPhZJWd2e+cV9w8HFNaksnnA== X-Google-Smtp-Source: ABdhPJwU7Z/XK0ZmHNPdHjeW4hZUL1n4sLCrHI8S0LIxgN7JFBJ6sSTTsU3zqb2ZbYEFKcepB9I5pGvpMWtuSmQhN7g= X-Received: by 2002:a2e:9cb:: with SMTP id 194mr10631515ljj.438.1615816903407; Mon, 15 Mar 2021 07:01:43 -0700 (PDT) MIME-Version: 1.0 References: <20210119123659.GJ1551@shell.armlinux.org.uk> <20210119194827.GL1551@shell.armlinux.org.uk> <20210127101911.GL1551@shell.armlinux.org.uk> <20210311140904.GJ1463@shell.armlinux.org.uk> In-Reply-To: From: Linus Walleij Date: Mon, 15 Mar 2021 15:01:32 +0100 Message-ID: Subject: Re: Arm + KASAN + syzbot To: Arnd Bergmann Cc: Russell King - ARM Linux admin , Dmitry Vyukov , Krzysztof Kozlowski , syzkaller , kasan-dev , Hailong Liu , Linux ARM X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_140144_490872_1AF90B0C X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 11, 2021 at 3:55 PM Arnd Bergmann wrote: > If KASAN limits the address space available to user space, there might be > a related issue, even when there is still physical memory available. So in this case with the 2/2 split userspace TASK_SIZE will be (include/asm/memory.h) KASAN_SHADOW_START which in this case is 0x6ee00000. Details in commit c12366ba441da2f6f2b915410aca2b5b39c1651, I'm just puzzled that OOM is not kicking in if the binary runs out of virtual memory (hits 0x6ee00000). It sure occurse when we run out of physical memory, that has happened to me on 16MB systems. What happens if we just use PAGE_OFFSET 0xC0000000 like most platforms? This free:s up a whole bunch of virtual memory for userspace (will be 0xb6e00000). Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel