Received: by 10.213.65.68 with SMTP id h4csp688480imn; Wed, 28 Mar 2018 10:56:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ZbwpEJslg2dO//4+xqY1EnslZeUbgr1CqsrcCdJGmEQ0sba9VPT3Jwq6pw5+Qa7qymnoV X-Received: by 10.98.133.86 with SMTP id u83mr3754091pfd.172.1522259779290; Wed, 28 Mar 2018 10:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522259779; cv=none; d=google.com; s=arc-20160816; b=abdlCGgKZZk21fDo6BqPFcU5azoDxCSOKvxb/Ynj2vwzypZ1mecjH1JvM0+QvqCodb +Wgi7WeWFTZzsMpt6UqijG4VDHQ7IF2cX453TPS7lkh7fPhSB1Xd2b/wWl6EI8uAkxJK WbMxFn3CZV4392Og6YCIgQJHtYKH1GV4n92HTmMJA9od5CVrCA6BZd5AHyIPknXPoyPR QrXSD83/YmXxslas31vGNv6KThq5NYg9sM7uQmAW7osLaDuLoMw/igfoNabEBDwvoet3 +cDZyt9lfCYuGEQ1MjeqLoNIp/Akff6WmIq/sEhxJGoZBn4cS0DNxbAgb10AQqxVlSqg aXSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:message-id:in-reply-to:date:references:cc :to:from:arc-authentication-results; bh=7x4JYxYTgraGZiqUFzmfZZjaP74+0XNrwayX4xB4HP0=; b=QF144WXBd8P6DECJIqpIqNIALDF8us21pdcljv2BDUVLs07pA+xHt/Wo0noWOGYqXa 6dP5k4fXg+2N8fnSBQXie/T2fcygUQt2pJB7Ev1tgCZHt28t1vKzZuHtwGzIMyHBwoZd 1qh7Uj//7O8aS4FvLwb5i3VBLO+V5oE0oRu3JYllJS6HxuP39jxtLp8BxZ3JhuMjBul2 RkMm5v2Ooh6wYPPZq2kdfnggRkpHoNpDXrMrU/IqiA8ft+rjPhR0N0EDAaon1/o2VEtt 2HHyeRMNp3rM9rk5QBhKr9bm8IkU+I0txuQCbzIo07jLrl2hX47vcrCTm1/oLPcVO4YG wvCA== 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 b59-v6si3996872plb.530.2018.03.28.10.56.05; Wed, 28 Mar 2018 10:56:19 -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 S1753458AbeC1Ry4 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Mar 2018 13:54:56 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:45075 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbeC1Ryu (ORCPT ); Wed, 28 Mar 2018 13:54:50 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f1FHb-0006J7-Tx; Wed, 28 Mar 2018 11:54:47 -0600 Received: from 67-3-145-25.omah.qwest.net ([67.3.145.25] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f1FHM-0007kI-Hr; Wed, 28 Mar 2018 11:54:47 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Nagarathnam Muthusamy Cc: kernel test robot , LKP , linux-kernel@vger.kernel.org, wfg@linux.intel.com References: <5abb446e.XtEK088UbWSHCPaF%fengguang.wu@intel.com> Date: Wed, 28 Mar 2018 12:53:31 -0500 In-Reply-To: (Nagarathnam Muthusamy's message of "Wed, 28 Mar 2018 10:22:16 -0700") Message-ID: <87o9j8axyc.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-SPF: eid=1f1FHM-0007kI-Hr;;;mid=<87o9j8axyc.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.145.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/iJFowUQietkLQi1XIs4CIBN3mqGydUak= X-SA-Exim-Connect-IP: 67.3.145.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.6 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, T_TooManySym_02,T_TooManySym_03,T_TooManySym_04,T_TooManySym_05,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4997] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_05 8+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_04 7+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Nagarathnam Muthusamy X-Spam-Relay-Country: X-Spam-Timing: total 15026 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 2.9 (0.0%), b_tie_ro: 1.95 (0.0%), parse: 1.05 (0.0%), extract_message_metadata: 12 (0.1%), get_uri_detail_list: 1.25 (0.0%), tests_pri_-1000: 2.8 (0.0%), tests_pri_-950: 1.21 (0.0%), tests_pri_-900: 0.95 (0.0%), tests_pri_-400: 17 (0.1%), check_bayes: 16 (0.1%), b_tokenize: 4.7 (0.0%), b_tok_get_all: 5 (0.0%), b_comp_prob: 1.61 (0.0%), b_tok_touch_all: 3.0 (0.0%), b_finish: 0.62 (0.0%), tests_pri_0: 96 (0.6%), check_dkim_signature: 0.53 (0.0%), check_dkim_adsp: 2.8 (0.0%), tests_pri_500: 14888 (99.1%), poll_dns_idle: 14878 (99.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: 98f929b1bd ("ipc/shm: Fix shmctl(..., IPC_STAT, ...) between .."): Oops: 0000 [#1] X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nagarathnam Muthusamy writes: > Hi Eric, > >     From > https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git/tree/ipc/shm.c?h=for-next > > It looks like if the following condition in Line 616 succeeds > > error = PTR_ERR(file); > if (IS_ERR(file)) >     goto no_file; > > we get to no_file with garbage value in shm_cprid. An attempt to > put_pid on this garbage value might be causing panic. > > We could initialize shm_cprid to NULL as soon as it was created. Yes. I misread the kvmalloc as a kvzalloc. I am planning on placing the pid freeing under the no_id label instead of the no_file label. Which should also avoid the issue. It is a rare enough issue an incremental patch should be fine. Eric