Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750868AbeAPHUO (ORCPT + 1 other); Tue, 16 Jan 2018 02:20:14 -0500 Received: from mail-wr0-f174.google.com ([209.85.128.174]:41615 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeAPHUM (ORCPT ); Tue, 16 Jan 2018 02:20:12 -0500 X-Google-Smtp-Source: ACJfBosJj/UpnOkIUWHslak+0j0bWJbwVTHF1qP9JPLVMj3YCyXRCZ//gsx/rkGe6ZaTMnAZKMQsFQ== Date: Tue, 16 Jan 2018 10:20:08 +0300 From: Alexey Dobriyan To: "Kohli, Gaurav" Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: Query: Crash is coming during /prod/PID/stat and do_exit of same task Message-ID: <20180116072008.GA6918@avx2> References: <20180110052017.GB2829@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 16, 2018 at 11:06:47AM +0530, Kohli, Gaurav wrote: > On 1/10/2018 10:50 AM, Alexey Dobriyan wrote: > > >> We are seeing crash in do_task_stat while accessing stack pointer, It > >> seems same task has already completed do_exit call. > >> So it seems a race between them: > > Please, post exact kernel version and struct task_struct::usage if you > > still have that kernel core (or even full task_struct) > > Hi Alexey, > > We are working on 4.9.65 and Please find below usage value and other task_struct value, > please let me know if some other data required as well. Kernel stacks live their own lives nowadays, the code needs try_get_task_stack().