Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp591588imu; Fri, 11 Jan 2019 05:52:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN5B2I13WsGRE2OHKRZ/Ijh21M4ALQJhg5nhbXH9cBNLGEQ+Z2gFbOOM2qMvUdsRf6rl45J5 X-Received: by 2002:a63:6346:: with SMTP id x67mr11213947pgb.183.1547214763808; Fri, 11 Jan 2019 05:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547214763; cv=none; d=google.com; s=arc-20160816; b=HA30v6ns0SgVAXSV7LJ7Ebh9GVaobCFex8KoohnB3FUv7p3pDXMGNS/s0HN9rP2m8N gYlhLhf+RVwgkaGPVfWxsbT2pHYz+jwUN6kYGdyJwFymOsehB1D20uIKOxv29lzoU+jz av6xwxSpBGOKrH3k5TSJpfJUESCOU7ochyFEl3Y6vMMj9PoA9Uefk3LXjtPjRxPSMW/b 0fN5IP0rtG8v9T2Q93ojFH+flugzwNHb9Vd0kOrlVKyCgn6Bk5cNsG1j46MSVdqRqolc QFb5pJDM7kwXPUjLzmPnRhsB78QnYbL4/HOJJJnxzPv/EuXEnFAH/mXdxOl4Rk+RBM+E PFJg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vn61ACmypLyoAiT5mw+oNNr/mH5thxbZ7UfSIRAybw4=; b=bv7ocwW+5V/puPRQeBsSlwY2bXJjvXR2jxRAVGpYXOJDJTsJSWCBVXfFu/rzAamtfp 4M3g0U3HMimzdB+ZBYHEpQ0OfyuLxOB+uG3wtwH0Ga9Z4lh6E24CZW/mRi39q84u77ro mMjNpz4znP7gQ6Q5HNidK87n+sQvmFUMUeDpRC/svXbEOeqbWYlJEii2+8zRCj60k49Z xC2Rwhgr74oqs4VFAOicdgX+4lBWFXPdMAmiRT0yaNjqJC5PtkKUXqcHrqRSBj6MIOz6 pLxelzg1OrR+dwSSMUvWEPRTwMIpu+wusqVS4kSeQr7Gbx/d1MugWhuQ06oxG0xfvr0p h8+g== 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 h1si860362plt.44.2019.01.11.05.52.28; Fri, 11 Jan 2019 05:52:43 -0800 (PST) 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 S1731848AbfAKKif (ORCPT + 99 others); Fri, 11 Jan 2019 05:38:35 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:13374 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729039AbfAKKie (ORCPT ); Fri, 11 Jan 2019 05:38:34 -0500 Received: from fsav110.sakura.ne.jp (fsav110.sakura.ne.jp [27.133.134.237]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x0BAcXig049434; Fri, 11 Jan 2019 19:38:33 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav110.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav110.sakura.ne.jp); Fri, 11 Jan 2019 19:38:33 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav110.sakura.ne.jp) Received: from [192.168.1.8] (softbank126126163036.bbtec.net [126.126.163.36]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x0BAcXpt049430 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Fri, 11 Jan 2019 19:38:33 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: [GIT PULL] blob-stacking updates for security-next To: Kees Cook , James Morris , Casey Schaufler Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, John Johansen , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8?= =?UTF-8?Q?n?= , Salvatore Mesoraca References: <20190108213504.GA32901@beast> From: Tetsuo Handa Message-ID: Date: Fri, 11 Jan 2019 19:38:33 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190108213504.GA32901@beast> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/01/09 6:35, Kees Cook wrote: > Hi James, > > Please pull these blob-stacking changes for security-next. > > Thanks! > > -Kees > > The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: > > Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) > > are available in the Git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/blob-stacking-security-next > > for you to fetch changes up to a5e2fe7ede1268d2f80fe49ca1f717d0e3750995: > > TOMOYO: Update LSM flags to no longer be exclusive (2019-01-08 13:18:45 -0800) > And syzbot already found a bug. This is occurring immediately after memory allocation failure for cred object. We need to be prepared for free() function being called when alloc() function failed. [ 59.992498][ T8010] FAULT_INJECTION: forcing a failure. [ 59.992498][ T8010] name failslab, interval 1, probability 0, space 0, times 1 [ 60.005214][ T8010] CPU: 0 PID: 8010 Comm: syz-executor178 Not tainted 5.0.0-rc1-next-20190111 #10 [ 60.014337][ T8010] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 60.024383][ T8010] Call Trace: [ 60.027657][ T8010] dump_stack+0x1db/0x2d0 [ 60.063731][ T8010] should_fail.cold+0xa/0x14 [ 60.089894][ T8010] __should_failslab+0x121/0x190 [ 60.094810][ T8010] should_failslab+0x9/0x14 [ 60.099411][ T8010] __kmalloc+0x2dc/0x740 [ 60.124293][ T8010] security_prepare_creds+0x123/0x190 [ 60.129644][ T8010] prepare_creds+0x3c4/0x510 [ 60.149852][ T8010] __x64_sys_capset+0x58c/0x9b0 [ 60.185347][ T8010] do_syscall_64+0x1a3/0x800 [ 60.206747][ T8010] entry_SYSCALL_64_after_hwframe+0x49/0xbe