Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4476014imm; Mon, 8 Oct 2018 23:36:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV61lwC1CsLP+pV4XcfgI0OosK8AyVimJKk8FEuAthgiLF4J2J/DMIiVfJLw51PpU4geq4J6f X-Received: by 2002:a63:a40a:: with SMTP id c10-v6mr24616954pgf.140.1539066960276; Mon, 08 Oct 2018 23:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539066960; cv=none; d=google.com; s=arc-20160816; b=vUkQ1TavcMcD1FMdzGkZmEFiiwR1HvliUWHpu8eH2U3CNtb6L/iCUbrLny3k5cDSQS NbudnoEAcnK9kVQuTkVRelTGD0x6R5lgmazwRtjgnSCOX+AvKOaCJqQ4LSxNObR5RllQ CIKjjRxk7f0oFCi/REw02K83fnxLb0TpdB1AU49O88mXTafIbRKZX+jaM8MeM1Xq0TsN xI07N21MMeagznwHzFq5yr/3VgubewXWO/phrOHT9eWsGYNlLly/uCyAxKBBC7U7bOgC gb6WioWXJw4sDr6ktMOjLuBpVc7M/ewnn6jK/vmAN+JciBGSWfdYQ1DEUrmV2oRP2tqV aGqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-disposition:message-id:subject:cc:to:from:date; bh=2cja+xnQZHLqyLAHlAg1VRBGhAsQodhRfIIMBipKjIk=; b=t3hU6xPYeto1N+QA2NtAKCHCpzy9qVBAyOsUiyCApDmyv881RDy0Yz7y3SSMmu40aq zfeC7MUsU5Mh0nACz1/wp4qUOF/l96XaxCvz3FdKj2MVX+jkhjwy9DReS2ZMf4Mep7zQ E6JClKNJrosj3JmO2dAtoj8+9PAfdLrb0/b6UiEG37DG/98/bxwgNVBsxAryYp7wnjKD or1UEmSFertbKIbwWdfa9ICl3pGtxx5sBKcAZ9uWeU+CHBhz0BMX98P/Sj8LiJV71xgJ B6A1AYnHCQDgPKoKTm2nBn6QhQCrRBtXqL850/M4pHlcY5dqFaYKuEZFbhUP2+NBYWEY /wuw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k29-v6si21261290pfk.194.2018.10.08.23.35.45; Mon, 08 Oct 2018 23:36:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbeJINuc convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Oct 2018 09:50:32 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36016 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbeJINuc (ORCPT ); Tue, 9 Oct 2018 09:50:32 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w996XwY5053283 for ; Tue, 9 Oct 2018 02:35:09 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2n0hmkatxw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 09 Oct 2018 02:35:09 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 9 Oct 2018 07:35:06 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 9 Oct 2018 07:35:03 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w996Z2O663504558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Oct 2018 06:35:02 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E78542047; Tue, 9 Oct 2018 09:34:39 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2DEB742041; Tue, 9 Oct 2018 09:34:39 +0100 (BST) Received: from osiris (unknown [9.152.212.171]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 9 Oct 2018 09:34:39 +0100 (BST) Date: Tue, 9 Oct 2018 08:35:00 +0200 From: Heiko Carstens To: Pingfan Liu Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-next@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [BUG -next 20181008] list corruption with "mm/slub: remove useless condition in deactivate_slab" X-TM-AS-GCONF: 00 x-cbid: 18100906-0016-0000-0000-000002105F59 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18100906-0017-0000-0000-00003267C348 Message-Id: <20181009063500.GB3555@osiris> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-09_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=762 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810090069 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, with linux-next for 20181008 I can reliably crash my system with lot's of debugging options enabled on s390. List debugging triggers the list corruption below, which I could bisect down to this commit: fde06e07750477f049f12d7d471ffa505338a3e7 is the first bad commit commit fde06e07750477f049f12d7d471ffa505338a3e7 Author: Pingfan Liu Date: Thu Oct 4 07:43:01 2018 +1000 mm/slub: remove useless condition in deactivate_slab The var l should be used to reflect the original list, on which the page should be. But c->page is not on any list. Furthermore, the current code does not update the value of l. Hence remove the related logic Link: http://lkml.kernel.org/r/1537941430-16217-1-git-send-email-kernelfans@gmail.com Signed-off-by: Pingfan Liu Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell list_add double add: new=000003d1029ecc08, prev=000000008ff846d0,next=000003d1029ecc08. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:31! illegal operation: 0001 ilc:1 [#1] PREEMPT SMP Modules linked in: CPU: 3 PID: 106 Comm: (sd-executor) Not tainted 4.19.0-rc6-00291-gfde06e077504 #21 Hardware name: IBM 2964 NC9 702 (z/VM 6.4.0) Krnl PSW : (____ptrval____) (____ptrval____) (__list_add_valid+0x98/0xa8) R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:1 PM:0 RI:0 EA:3 Krnl GPRS: 0000000074311fdf 0000000080000001 0000000000000058 0000000000e7b8b2 0000000000000000 0000000075438c64 00000000a7b31928 001c007b00000000 000000008fe99d00 00000000a7b31b40 000003d1029ecc08 00000000a7c03a80 000003d1029ecc08 000000008ff84680 00000000007b5674 00000000a7c03960 Krnl Code: 00000000007b5668: c0200034734a larl %r2,e43cfc 00000000007b566e: c0e5ffd0cf51 brasl %r14,1cf510 #00000000007b5674: a7f40001 brc 15,7b5676 >00000000007b5678: a7290001 lghi %r2,1 00000000007b567c: ebcff0a00004 lmg %r12,%r15,160(%r15) 00000000007b5682: 07fe bcr 15,%r14 00000000007b5684: 0707 bcr 0,%r7 00000000007b5686: 0707 bcr 0,%r7 Call Trace: ([<00000000007b5674>] __list_add_valid+0x94/0xa8) [<000000000037d30e>] deactivate_slab.isra.15+0x45e/0x810 [<000000000037ede4>] ___slab_alloc+0x76c/0x7c0 [<000000000037eeb0>] __slab_alloc.isra.16+0x78/0xa8 [<00000000003808c8>] kmem_cache_alloc+0x160/0x458 [<0000000000141a3a>] vm_area_dup+0x3a/0x60 [<0000000000142f0a>] copy_process+0xd72/0x2100 [<000000000014449a>] _do_fork+0xba/0x688 [<0000000000144bb0>] sys_clone+0x48/0x50 [<0000000000b8faf0>] system_call+0xd8/0x2d0 INFO: lockdep is turned off. Last Breaking-Event-Address: [<00000000007b5674>] __list_add_valid+0x94/0xa8 Kernel panic - not syncing: Fatal exception: panic_on_oops