Received: by 10.213.65.68 with SMTP id h4csp201695imn; Tue, 13 Mar 2018 01:05:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELvmeq7+pUumTfP0DtGEDUFKE5YZadp8ebfH7YU/WzO8yGw0nNmlde6/rgPy4p7tXcOtE5m1 X-Received: by 10.99.125.75 with SMTP id m11mr4322529pgn.391.1520928349880; Tue, 13 Mar 2018 01:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520928349; cv=none; d=google.com; s=arc-20160816; b=qMCTZjFGDYYo5setmdatwamB+ObMguB4j/sfPzVWREWx2faAdKax7FaojHryZ/UjbS QBFYS/1dLGCl1dDaidwve47g3u/8JHF44G9meR3fMgZswKsIYmLZ8O4DIodoBmGvR7++ P2bStElpsCojCc5M01E0uHKc5e9n7URXwZJfbbXUR+hlduiDUrImm4wyUO4DSKjdgMk2 Pol36nEEKAppktqPl5pcjhZCew/2993o2anY3X5KmYJI7rGy3ibeg3sbEONt4Khxgf1V DQHRlNJt6s6P0oZpq4hsYGGnoLDoNisewWDMFs6JEwZ7qxuykfMv7gFwcEpsedS55z/8 Y/ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oEZ4qfUznu006WDet0UIG5WuONFLStBJFJbCY6KOl0Q=; b=Jl3ObT9MS59A5xCQhRccrEbO+LEDfcc2Aqn1S+21vBcfpApNMQYFJWX3y/WQqpoRvH 8OKUMkPIriIIf9vcykUS3mE8UUW0I4LrWwen62kH1C+qClCdhEVSh++CzPfjsEP0Q6Tc j2a8pQaQTFgIpTdo8U+D0QNNuEaCOOvTGd2N3eRy+0izCqZPs96+BFqZZMx0s+R/NFGz GtkY0Yxeyn4q7yhooyAogGzZNI04PAcwBmrUrApOmc+76pBwHgw92y4IUcRoX3is72nq 4PecRW/vuZzj4TM8MmtNHzDh69UPvcjztLGuMkeskQKuxDmwS0mqLa+8TgZfx0MKX/SM 4dig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dAg+Mm8G; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si6256149pgb.64.2018.03.13.01.05.34; Tue, 13 Mar 2018 01:05:49 -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=@google.com header.s=20161025 header.b=dAg+Mm8G; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752136AbeCMIEl (ORCPT + 99 others); Tue, 13 Mar 2018 04:04:41 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:47050 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbeCMIEj (ORCPT ); Tue, 13 Mar 2018 04:04:39 -0400 Received: by mail-pf0-f193.google.com with SMTP id z10so5531835pfh.13 for ; Tue, 13 Mar 2018 01:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oEZ4qfUznu006WDet0UIG5WuONFLStBJFJbCY6KOl0Q=; b=dAg+Mm8Ge67BGl07zODKLfV/HcX8B/LbcitXz+x7GEcB1r1N+xz2qfSDNH+dOb+fv6 9CwFS0HHllfs+9DNjH3pZbrXP68shE679RxRcKqmmmw5td4lVrX68kffvX/NSI9jxEya K8wWK7CdJniDJNfDPhTLelUSqZokUhA2b6b3j5MBfZhRv+gtNSpy7SRD7xDiLcBIuJpd xHC6FAGUU+3Cxa2KQ7jusHNWeCg+MQesCV3DzP9fgQ62vZZC9Js37nuR0kHMG0xxfP0z f+dZ9l/ekILbfnbLnwvPLS1udQk/A9ML9UbYtIw9+jd99YO5fdC+G26jXCExOxc7ja9x uT6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oEZ4qfUznu006WDet0UIG5WuONFLStBJFJbCY6KOl0Q=; b=ce/DTNLlB2nTKyDjJM8MTseHfupyWjH5n/rUehTTch1nVt9WE0giR9O184pYGj8s4q lhqQIF9+926MOf0idlaR6TUxEQTH+YjLFMC8xe9h+7K7fdI23IzMlFEydnBWiueg7jEN lCS4/BTiEJVYykKSZDz4/0KqAVTmBPZ5Pr/sDl0myhUaak+Y0Pba6mhHb9dhREU7kPt0 7K6gkHijRjhlkwEuzXMdDq+IIUYDFXeZz6711B1Xp3i1E150qV2PtqJ43slDXLQrUpvl WgbidCqKMPyWjtnOEldEZKg9yH6eTwhq164GZSNlKNsRhw/wnbo5DtnkUFmJz4Zdy/L9 CRVg== X-Gm-Message-State: AElRT7Hy0F4thWD6Dz5iHGLEyMqY8a/5hy5Q81tUt3i7dH9l6ijmBozw +Qt95Dab1t4KZoZy35jyePGA5r8CsAwdxETti90FEQ== X-Received: by 10.99.106.202 with SMTP id f193mr6710182pgc.334.1520928278541; Tue, 13 Mar 2018 01:04:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.141.12 with HTTP; Tue, 13 Mar 2018 01:04:18 -0700 (PDT) In-Reply-To: <20180313075143.b3ymdpt3nj3vnz77@gauss3.secunet.de> References: <001a114214fac20a80056746440a@google.com> <20180313075143.b3ymdpt3nj3vnz77@gauss3.secunet.de> From: Dmitry Vyukov Date: Tue, 13 Mar 2018 11:04:18 +0300 Message-ID: Subject: Re: WARNING in kmalloc_slab (4) To: Steffen Klassert Cc: syzbot , David Miller , Herbert Xu , LKML , netdev , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 10:51 AM, Steffen Klassert wrote: > On Tue, Mar 13, 2018 at 12:33:02AM -0700, syzbot wrote: >> Hello, >> >> syzbot hit the following crash on net-next commit >> f44b1886a5f876c87b5889df463ad7b97834ba37 (Fri Mar 9 18:10:06 2018 +0000) >> Merge branch 's390-qeth-next' >> >> Unfortunately, I don't have any reproducer for this crash yet. >> Raw console output is attached. >> compiler: gcc (GCC) 7.1.1 20170620 >> .config is attached. >> >> IMPORTANT: if you fix the bug, please add the following tag to the commit: >> Reported-by: syzbot+6a7e7ed886bde43469c4@syzkaller.appspotmail.com >> It will help syzbot understand when the bug is fixed. See footer for >> details. >> If you forward the report, please keep this part and the footer. >> >> WARNING: CPU: 1 PID: 27333 at mm/slab_common.c:1012 kmalloc_slab+0x5d/0x70 >> mm/slab_common.c:1012 >> Kernel panic - not syncing: panic_on_warn set ... >> >> syz-executor0: vmalloc: allocation failure: 17045651456 bytes, >> mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) >> CPU: 1 PID: 27333 Comm: syz-executor2 Not tainted 4.16.0-rc4+ #260 >> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS >> Google 01/01/2011 >> Call Trace: >> __dump_stack lib/dump_stack.c:17 [inline] >> dump_stack+0x194/0x24d lib/dump_stack.c:53 >> panic+0x1e4/0x41c kernel/panic.c:183 >> syz-executor0 cpuset= >> __warn+0x1dc/0x200 kernel/panic.c:547 >> / >> mems_allowed=0 >> report_bug+0x211/0x2d0 lib/bug.c:184 >> fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178 >> fixup_bug arch/x86/kernel/traps.c:247 [inline] >> do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296 >> do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315 >> invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:986 >> RIP: 0010:kmalloc_slab+0x5d/0x70 mm/slab_common.c:1012 >> RSP: 0018:ffff8801ccfc72f0 EFLAGS: 00010246 >> RAX: 0000000000000000 RBX: 0000000010000018 RCX: ffffffff84ec4fc8 >> RDX: 0000000000000ba7 RSI: 0000000000000000 RDI: 0000000010000018 >> RBP: ffff8801ccfc72f0 R08: 0000000000000000 R09: 1ffff100399f8e21 >> R10: ffff8801ccfc7040 R11: 0000000000000001 R12: 0000000000000018 >> R13: ffff8801ccfc7598 R14: 00000000014080c0 R15: ffff8801aebaad80 >> __do_kmalloc mm/slab.c:3700 [inline] >> __kmalloc+0x25/0x760 mm/slab.c:3714 >> kmalloc include/linux/slab.h:517 [inline] >> kzalloc include/linux/slab.h:701 [inline] >> xfrm_alloc_replay_state_esn net/xfrm/xfrm_user.c:442 [inline] > > This is likely fixed with: > > commit d97ca5d714a5334aecadadf696875da40f1fbf3e > xfrm_user: uncoditionally validate esn replay attribute struct > > The patch is included in the ipsec pull request for the net > tree I've sent this morning. Let's tell syzbot: #syz fix: xfrm_user: uncoditionally validate esn replay attribute struct