Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2230911ybi; Mon, 1 Jul 2019 08:24:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+oAv1k45hO8ed+9bBoDE+ikNYWmOcginP77m90pVApAQbAHjrUV8u9oRmMNjst4FXJFn4 X-Received: by 2002:a17:90a:2041:: with SMTP id n59mr30564063pjc.6.1561994676202; Mon, 01 Jul 2019 08:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994676; cv=none; d=google.com; s=arc-20160816; b=nEW0IVNJnfNLwmVw1YQavGNtbZx7BEDj/QYCOKQE0i03X/zVtRsVWGIkZH1CuyPe05 NKIacJ4UWUhoAwTFWPSVej+oNOCBTE2rtALRaPQvdyUikxuag8O+HoQkbzMAK/4YvTf/ kp1OjxW8jQ4pmWWNib0LqyZCUQkzb2m9ec/fpjVjLxlmYjLIFy63i/A9L1hMfipOe6tH WEpE3j64u6923mhQqXJ2UqhRPM5nGhN8mLG27X3O9XLiuKLCQxtJ9UmkI0eLDf2/ZqqT wQGzDb3Odr7BIHWIGRsTu8IkRiWNv/ZSkMFb7qFmstpj9PbhOHmde10B7hfk3Ym9YiEJ GZXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mTLzSHEBC/4Fb0YvX/BaQpjenyALQQfdmQqtbEqVeC4=; b=y22+rS4OwemUjmjCDRMg+kqx093Hu+v9M6+PAZHvXmf0nZJTCpu/YX+xIOoTOKUOIf 4734IpX5JcIekKVDKK/hGyjSN+JYTtKPt/91DofyTChc2Bhs7pxQdiGG0nAJFh7treLX Umeyi5HdYkcLUiY0ONmKWXiS7MQyE+i1RM+Y9Hhxv/GhRRTdtyGnrGrzZlSBMBlAo0qN PwufNgYIJEiX/iUiFoNQICKDhMIJY1SHXyre8KnXy/GMtToYSaFcblVcrhvWhGWf0Rbj pTZpYYtQdABvaLhaisJsJ4BaBxrVdfWodAIPXDvbQ8uXgqN6KzBSAgZ5+d4ayj5H+F8Q 4PEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KWqT9GUx; 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 q7si10028620pgp.245.2019.07.01.08.24.20; Mon, 01 Jul 2019 08:24:36 -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; dkim=pass header.i=@linaro.org header.s=google header.b=KWqT9GUx; 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 S1729318AbfGAOC2 (ORCPT + 99 others); Mon, 1 Jul 2019 10:02:28 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40646 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbfGAOC2 (ORCPT ); Mon, 1 Jul 2019 10:02:28 -0400 Received: by mail-ot1-f68.google.com with SMTP id e8so13553127otl.7 for ; Mon, 01 Jul 2019 07:02:28 -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:content-transfer-encoding; bh=mTLzSHEBC/4Fb0YvX/BaQpjenyALQQfdmQqtbEqVeC4=; b=KWqT9GUxmh3VafmrfPf/gJWxTiUneXDAFEgnh1s3WOsu746TUNi3d8WApsEUD9fTm0 EXZtypfzYVC9xUjP8bs+L+L4uhe5cmPzQTdzZ+2WTwq5e/2QkLbjt4w5ao+siQd2aKaU aJKGlD4nrBrhcvZKTpEOMs8iHa7RXIG8MVn+9xNrisvrlDDkxjL1ZyxDyevXfkzDKblr YO7cTlY5/Hw+eVSdBynQH+zNWJJvfV49oOS6Ryl3FiRqzuKUn27667vvygggmZpLNtzH U2mFiEdBW20XUC6d1BLh8csqT1oBMF+35J4pCkwaYoecQfAyPOoNBy5p9lHCjS/XVI7e E3GA== 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:content-transfer-encoding; bh=mTLzSHEBC/4Fb0YvX/BaQpjenyALQQfdmQqtbEqVeC4=; b=b0ApsnuztZfufP5F0QOjOCW/FmCoz2j9hucZ3j6ghz+dAJS8cfwt/hGawzRoc8sbTQ ei6mowHvzDq00vbV6NMc5AmrJRT45/MpkR1xgIs5oqPbiBYEUj+Bm/5dt7ObQYKZIREn mqEMB12Kq3oInPA7uYeN3vngETuPnliXNMHz5lQBBiKfYhTwpgOl3cIyeTdlb2wvbN8d xUmzGm+bHCaSqtBDC4X5c7fHff8+4wbySzKFpJ5g6U1HWmufvNxizAMf9K7urwkoIsqh bFxYFgDV50ITyRJx6uugk1zibIFBMGtJbnAJbYNzf26CdSXyGHaH20F3X3Q7KkAK/JXT hD8g== X-Gm-Message-State: APjAAAXUhWsiOTLNiw+SGVMIeSUoWeRxyLdpdMSAh0akqp3jDHhr0pCN Txfwj1cbOTs+wN1E2Ds/TKa5nLGLZ4inPtRrTOd5sf22wU3ChA== X-Received: by 2002:a9d:735a:: with SMTP id l26mr21168394otk.105.1561989747492; Mon, 01 Jul 2019 07:02:27 -0700 (PDT) MIME-Version: 1.0 References: <000000000000a861f6058b2699e0@google.com> <03763360-a7de-de87-eb90-ba7838143930@I-love.SAKURA.ne.jp> In-Reply-To: From: Sumit Semwal Date: Mon, 1 Jul 2019 19:32:16 +0530 Message-ID: Subject: Re: [PATCH] staging: android: ion: Bail out upon SIGKILL when allocating memory. To: Laura Abbott Cc: Tetsuo Handa , Andrew Morton , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Tetsuo, On Mon, 1 Jul 2019 at 17:07, Laura Abbott wrote: > > On 7/1/19 6:55 AM, Tetsuo Handa wrote: > > Andrew, can you pick up this patch? No response from Laura Abbott nor S= umit Semwal. Apologies; it didn't seem to get flitered out for me. I'll re-check my email filters. > > > > On 2019/06/21 18:58, Tetsuo Handa wrote: > >> From e0758655727044753399fb4f7c5f3eb25ac5cccd Mon Sep 17 00:00:00 200= 1 > >> From: Tetsuo Handa > >> Date: Fri, 21 Jun 2019 11:22:51 +0900 > >> Subject: [PATCH] staging: android: ion: Bail out upon SIGKILL when all= ocating memory. > >> > >> syzbot found that a thread can stall for minutes inside > >> ion_system_heap_allocate() after that thread was killed by SIGKILL [1]= . > >> Let's check for SIGKILL before doing memory allocation. > >> > >> [1] https://syzkaller.appspot.com/bug?id=3Da0e3436829698d5824231251fad= 9d8e998f94f5e > >> > >> Signed-off-by: Tetsuo Handa > >> Reported-by: syzbot > >> --- > >> drivers/staging/android/ion/ion_page_pool.c | 3 +++ > >> 1 file changed, 3 insertions(+) > >> > >> diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/sta= ging/android/ion/ion_page_pool.c > >> index fd4995fb676e..f85ec5b16b65 100644 > >> --- a/drivers/staging/android/ion/ion_page_pool.c > >> +++ b/drivers/staging/android/ion/ion_page_pool.c > >> @@ -8,11 +8,14 @@ > >> #include > >> #include > >> #include > >> +#include > >> > >> #include "ion.h" > >> > >> static inline struct page *ion_page_pool_alloc_pages(struct ion_page= _pool *pool) > >> { > >> + if (fatal_signal_pending(current)) > >> + return NULL; > >> return alloc_pages(pool->gfp_mask, pool->order); > >> } > >> > >> > > > > Acked-by: Laura Abbott fwiw, Acked-by: Sumit Semwal --=20 Thanks and regards, Sumit Semwal Linaro Consumer Group - Kernel Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs