Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761003AbcJ1O2O (ORCPT ); Fri, 28 Oct 2016 10:28:14 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:37823 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbcJ1O2M (ORCPT ); Fri, 28 Oct 2016 10:28:12 -0400 Subject: Re: [lkp] [block] b1fa1b67c1: BUG: KASAN: null-ptr-deref on address 0000000000000080 To: kernel test robot References: <20161028021516.GE17497@yexl-desktop> CC: LKML , Jens Axboe , From: Jens Axboe Message-ID: Date: Fri, 28 Oct 2016 08:28:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161028021516.GE17497@yexl-desktop> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [216.160.245.98] X-ClientProxiedBy: DM3PR10CA0027.namprd10.prod.outlook.com (10.164.12.37) To MWHPR15MB1198.namprd15.prod.outlook.com (10.175.2.140) X-MS-Office365-Filtering-Correlation-Id: f669ac32-c109-4ba5-b3f1-08d3ff3ea25b X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1198;2:UJYwqTkkpnaP8T/6U6Tw9IvYp1DjPM4qymC8UCghGR+H3MkbehKkt6zoKk9NhCaNnMH+wP63UyvP9+6ilgDHPtfh1lvoM/W0vsz9rfAzT5wweLJpUxXN/DuQIjp5ODXXZdb0Ym8NcrcRYmaBuRyR16l77O/mDV8M0Qubv68ntlPdI82SeNKwuZBs01qNyUY/I4H/HUXkBRd1ItV2cHebkQ==;3:xF6RD/WshJo2VVfmtXRky02oq9JOlhlmzIa0lQ4yTJS+kaXKY+DPNdpByg6xqZ2EQjbrf1yb/NP4PoD0YdGDPmz9Rn/w9o3t+E0LvHY990Itx1/RSIBQtThDO0ZgGylIlfKSQT29ee9Ukev6NJ1czA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1198; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1198;25:V4izU/al5c7NUr+vDbfV56DkjIIuPNR0bCc+cZAtlrWOWs8YTexU2wgr+S8y7LTihaKyCIgv3R+F01U4unNDXicr/QNl5S/+RC5aM9tEn+BHwXy3qh5ero+UL5QHyIw6qcVhNT3FvjcGxGzmM9F0RYXB4fEfvQ5a3slRyIK9JrgLeoapF0lYNfbWMM2RPJ8SI/4quL85cx00lNi3bBXE0bHWOo7pf9ik9BGxwSbLKNv/iQX1fnNpBV/2UT3SWfgZE7Djs/ZHyI/0UDzM2/VdyXsnDp11nHFvSGMZCD/eNpib2lkW89WACVknYKI+MsSGZsckIGPWNQHAabZ1MwnxHwcvdtsXc6uuBqYVsAlFkhA4wSsqrvMJnsJp+3aYzqoKsRbPRqzily2ehNuSro7w8sxSh47ezKdDjV0J4BimriEfoByBJ2WnuJ/aCmHbGuIYv5Gcsk+Msc6cKjWCoxE0X0BIPRxj/8nwMuULDD/WW7QNO5lOcbcy9whWZysDbx/OHSfvw1joLmAxHJIs6t1yprBaSan+tbx7W9pspfnr+Ze/3CzhoKwJzvqnNegdLrVAHqewICpGpe74fxJ7FdX417P/WppVrP8lzRMDTGGOaP/GyuDBluHTMX42dIfF8ekhc0r7I/Wgw9BEQeodhU67xLif8FRfD5RUbg9jBI3ZcmUMGPL1NNS4g0T50b+uU22UZWK7TGyQ1HrHd3qde9CzM1ETqxbMAEX9hJ8wN5dhACli9CB8239Kc7GQ1wk9p1WsXmRjFlyq7Je1PcgmZR3Ed5lBqMS9DK7fSa/mGOWLwGS1g9n6Bt8DOesbvybVVTHS701uUQpHFTbo4keK5DNrVw== X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1198;31:W9zDZEuD/wcfdr9wU1IraODJ/4fc7VkipgVMscbSMW8NzaZCNF9XReVC+eFomTW6+bBRDmtzqp6nCVXEZ5cF7utHZhxiXphQxxuhqaTet27hyNQUMF3P7S7B/30XfRxuWV7bs+sJQoXRKGzdG44lkk2TwC76km3f+/MipSwk6943fuailnabIWZpvqWYQHYHDB3WKjoqncldi2msHVr0Wg0oqE4TWbXi2/HtK1n2rdzNOd4hvb9De2GoRlC18ktJyetjOejngcUvQ5iT78fthQ==;20:JO1CAID37cUtH/65B2OoafVgiSgBKlhoTHrO1SNWklOCzii4HwMuIAf8w6QOjK4DxfgvkGUjJQo9exKvqAX2NaO0MViDieIw02207LlruCWsykUQ1wbwoMXTfw8SQG4Edp8TBqlh+40K22TErdy4PmHRKDpZdAJJgDlpEhqQtN4=;4:MFdLadCsAjxcKf1fLK75pCsRoJ0xNWqvYUvdQE+vZxqQ1prc4JZ2OfeDhsuGF6ePdI/zwghvyOAWulFnXZP9snFVu4STmqKWzmMWtUKH0u6x//SOELCZa1oi4bimv6pmG5FeaeLTEJ+QIqG0VL1zJHgW9s3CffGoyeY4t7SeklYls3xgY/+YsMJY7cCAIvgQPvgARYSR2S2BOaV4zcDS2O2OvDLWpgBqyXnkNwocQErCw+6rcgGieW9cf69lioZvg6znZhglShruDiM5zoao94ZZgTekvtGowVx884LKCu3uQb5Nl4qSQDiccjwx1zMw2O6sujpN45Wapj9i2zc5H2wwLIBNfEB/oHuJMogGEk24WP8VQERBFyfKUwHcxYJP2o5zgO60aqT8Jq4zxoGlhXwdPdEelC5LLkdIEApVf7jCnmClFCOkNfHxcJDmgezi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(84791874153150); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:MWHPR15MB1198;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1198; X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(979002)(6009001)(6049001)(7916002)(69234005)(24454002)(377454003)(189002)(199003)(4326007)(2906002)(33646002)(68736007)(3846002)(6116002)(5660300001)(101416001)(2950100002)(6916009)(31696002)(4001350100001)(19580395003)(575784001)(77096005)(86362001)(83506001)(97736004)(117156001)(81166006)(8676002)(65826007)(230783001)(305945005)(6666003)(81156014)(36756003)(15975445007)(230700001)(189998001)(47776003)(76176999)(54356999)(7846002)(65956001)(42186005)(92566002)(50986999)(64126003)(66066001)(7736002)(110136003)(31686004)(50466002)(105586002)(23746002)(106356001)(65806001)(586003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1198;H:[192.168.1.153];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR15MB1198;23:ohmNc3E/CwAw5ZHff42yC/B5augHtPE+7jqqu?= =?Windows-1252?Q?D5IXgCebk13YtGxLpW94Zg7VFZ5VGOmqlFpX1ZvWc/xeEuyjXm/HSSJY?= =?Windows-1252?Q?1YzooCXmUcarf9m+H3Vvd78uqAIEjnJKixC/W3WJ6lgWmrLpthLqHZBQ?= =?Windows-1252?Q?buqWeSMVIZ+1kKyws1QdGA+cUl78xmAcMt+hZCYPMQbR43clyWlcp/ZM?= =?Windows-1252?Q?t2SZP/SuHIHEAIeT2JWquBuqfNWyYsLc4fKX2DMRPf4pPDgaLbC2uHqZ?= =?Windows-1252?Q?Di9l5hBcmpF0jzl8J9G5dfaTKjVJh5ojJs+uuPSsvDZJWNMFwaJj7cgP?= =?Windows-1252?Q?0kwiR8FibDi8GOYpqmjBdntUyKQqo+1AGvMw8ROQbGztp7QwtYJlR8Vx?= =?Windows-1252?Q?a2TyWeGZegMbn4H/bejjD8TyEqK/jEPpEFBPhgWGD0tccQbOV8JVAJUU?= =?Windows-1252?Q?SbA/d1Dwt9wsi7LWzTl3plHzMUOkRoLOqsV05aAzEAdjqDT/D/XPEgBf?= =?Windows-1252?Q?TRZ0ZJctZfHDI8NeJNgHJD9RY8wu5aeHTjEkcjFrp+aA2JwVPuxpGGQE?= =?Windows-1252?Q?yLXM8pI875eysumRrhHZKWI8TdUVJ3TbZKJE1fa10g/zK6hDJJKNpcAy?= =?Windows-1252?Q?ez5B+G9ryUkRIaCnzer3di0yvaAT540i9D4SceDsw6r+OUJvZV9QpeP2?= =?Windows-1252?Q?SrrTJ38s520Y1BciPDmeur09+K31XNf/zpubmLPQaX2Wfm5IjDGT0Slo?= =?Windows-1252?Q?e9+R/Sx1L/EpSonVBH8af30sHWNaofhTe+OAhtp9RaczZqbUSOGR7btu?= =?Windows-1252?Q?TmoISFXx9zLqaykrN7XXvQufCbQpBIy5SvpW3UnBj39MB8SUo/Vgjjk7?= =?Windows-1252?Q?HcaMBq3Bv9q213Iwjs7X1k7WBoLdiqziFZb3opq9PdhqLXM2eFYql8xN?= =?Windows-1252?Q?iy9736Zd72agB2rRghW+gdxH3fBLDlbLJNKMbhL3b42+xW7BvYopq5l5?= =?Windows-1252?Q?ezJDjbZnMyDpSKfGao31tZZM38uuK4eRSnva3R3r6Oapffblzg/ShIdN?= =?Windows-1252?Q?W1uizHY0JRF4WsKoRMZ/LGNcNAxV+/UG0btJtAuLtZfivl4FQDYDMQoW?= =?Windows-1252?Q?BOAZSxeySJMZgYrH1Sum7TXpguGn5biExRoJxmj0A20IJJWPnbEI6oJk?= =?Windows-1252?Q?c7gZw0Y75/SdnScwsAjbzKnRQKMc+uUgv/Aq+IKTQRV2uOXHJlHVnnGw?= =?Windows-1252?Q?YNiwy77ga29vlXMwAWLjhXPdIoSpXaFFiz1CQXI9oJEfE9eLsb5qPn+M?= =?Windows-1252?Q?pj1JJcNRr42myAD+/kv1v9YWD9XPB6Tq3HeAAIvftb6kgZpV1PYjrwIP?= =?Windows-1252?Q?arNG1tNVBKEwsv4A/QLbWpVY2YA85AsaQLr/uaGttO9vyMmaQ6Yr/I6j?= =?Windows-1252?Q?8lilo/1MQQbAH8pKusDmt2AfYM7GUa9JAxdD2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wjbZJ3XPn99hSZSpQ3WmvlfK7Szq0v/EJHSekgMDW77Qbnuu+o9aWkX5JfJ6zH2HV1WU6ag7/4R61yTH6XKRf0YxAB75JVsB4wV4zPOpxzD1Pf6P0iUWVB00= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1198;20:BcPZfGzVDF5RbqTzfRMOxPaFjTq0n+LzkSN5bJ5TjyRSQqPpIOs9Sw8MmT/cKdF5aE+GcjDK3YCLlwVvoHAmeTtsAV+37wnbm7P1GNvTuSpX0yPr2gX3yteBSlUVFWg/QftPSzOW1rtStDI5kc7ipdaAFkARs02fC4h+yUEbeqk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 14:28:05.8089 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1198 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-28_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6965 Lines: 115 On 10/27/2016 08:15 PM, kernel test robot wrote: > > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle > commit b1fa1b67c176e41eeae2bfcc7df38117976cd92d ("block: hook up writeback throttling") > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -m 320M > > caused below changes: > > > +------------------------------------------+------------+------------+ > | | 70b2651552 | b1fa1b67c1 | > +------------------------------------------+------------+------------+ > | boot_successes | 6 | 0 | > | boot_failures | 0 | 8 | > | BUG:KASAN:null-ptr-deref_on_address | 0 | 8 | > | calltrace:brd_init | 0 | 8 | > | BUG:unable_to_handle_kernel | 0 | 8 | > | Oops | 0 | 8 | > | RIP:blk_register_queue | 0 | 8 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | > +------------------------------------------+------------+------------+ > > > > [ 5.301507] Failed to find cpu0 device node > [ 5.302217] Unable to detect cache hierarchy from DT for CPU 0 > [ 5.307667] ================================================================== > [ 5.308892] BUG: KASAN: null-ptr-deref on address 0000000000000080 > [ 5.309809] Write of size 8 by task swapper/0/1 > [ 5.310524] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc2-00008-gb1fa1b6 #1 > [ 5.311774] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 > [ 5.313209] ffff88000f177b98 ffffffff8151d919 ffff88000f177c30 ffff88000b8332c0 > [ 5.314683] ffff88000a5fb578 ffff88000a5fb558 ffff88000f177c20 ffffffff8121eaa6 > [ 5.316133] ffff88000f177bc8 ffffffff8174da6a ffff88000a5fb578 0000000000000297 > [ 5.317585] Call Trace: > [ 5.318074] [] dump_stack+0x83/0xba > [ 5.318880] [] kasan_report_error+0x3f6/0x4d0 > [ 5.319804] [] ? dev_uevent_filter+0x2a/0x70 > [ 5.320690] [] ? kobject_uevent_env+0x1bc/0x570 > [ 5.321637] [] kasan_report+0x34/0x40 > [ 5.322453] [] ? blk_register_queue+0x23b/0x250 > [ 5.323363] [] __asan_store8+0x61/0x70 > [ 5.324212] [] blk_register_queue+0x23b/0x250 > [ 5.325124] [] device_add_disk+0x401/0x8c0 > [ 5.325999] [] ? bdget_disk+0x60/0x60 > [ 5.326843] [] ? alloc_disk_node+0x17a/0x210 > [ 5.327750] [] ? brd_alloc+0x266/0x2a0 > [ 5.328608] [] brd_init+0x106/0x22e > [ 5.329407] [] ? ramdisk_size+0x27/0x27 > [ 5.330233] [] do_one_initcall+0xae/0x230 > [ 5.331103] [] ? initcall_blacklisted+0x150/0x150 > [ 5.332074] [] ? parse_args+0x4a2/0x6c0 > [ 5.332916] [] ? set_debug_rodata+0x1f/0x1f > [ 5.333826] [] kernel_init_freeable+0x1fa/0x2ae > [ 5.334740] [] ? rest_init+0xa0/0xa0 > [ 5.335577] [] kernel_init+0x13/0x180 > [ 5.336392] [] ? rest_init+0xa0/0xa0 > [ 5.337214] [] ret_from_fork+0x25/0x30 > [ 5.338054] ================================================================== > [ 5.339219] Disabling lock debugging due to kernel taint > [ 5.340080] BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 > [ 5.341485] IP: [] blk_register_queue+0x23b/0x250 > [ 5.342521] PGD 0 > [ 5.342810] > [ 5.343250] Oops: 0002 [#1] SMP KASAN > [ 5.343877] Modules linked in: > [ 5.344525] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G B 4.9.0-rc2-00008-gb1fa1b6 #1 > [ 5.345863] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 > [ 5.347247] task: ffff88000f11c000 task.stack: ffff88000f170000 > [ 5.348137] RIP: 0010:[] [] blk_register_queue+0x23b/0x250 > [ 5.349571] RSP: 0000:ffff88000f177c78 EFLAGS: 00010282 > [ 5.350408] RAX: 0000000000000000 RBX: ffff88000a5fb110 RCX: 0000000000000000 > [ 5.351437] RDX: 0000000000000000 RSI: 0000000000000297 RDI: 0000000000000297 > [ 5.352447] RBP: ffff88000f177ca8 R08: 1ffffffff04bddfe R09: fffffbfff05359b7 > [ 5.353493] R10: ffff88000f177ad7 R11: fffffbfff05359b8 R12: ffff88000b8332c0 > [ 5.354526] R13: ffff88000a5fb578 R14: ffff88000a5fb558 R15: ffff88000a5fb1a0 > [ 5.355565] FS: 0000000000000000(0000) GS:ffff88000f400000(0000) knlGS:0000000000000000 > [ 5.356850] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 5.357744] CR2: 0000000000000080 CR3: 0000000002418000 CR4: 00000000000006b0 > [ 5.358765] Stack: > [ 5.359213] ffff88000b8332b0 ffff88000b833240 ffff88000b8332c0 0000000000000000 > [ 5.360959] ffff88000f177d60 0000000000000000 ffff88000f177dc8 ffffffff81500f41 > [ 5.363314] ffff88000b833240 ffff88000b8335c0 ffff88000b8332c0 ffff88000a5fb110 > [ 5.365657] Call Trace: > [ 5.366439] [] device_add_disk+0x401/0x8c0 > [ 5.367812] [] ? bdget_disk+0x60/0x60 > [ 5.369090] [] ? alloc_disk_node+0x17a/0x210 > [ 5.370490] [] ? brd_alloc+0x266/0x2a0 > [ 5.371869] [] brd_init+0x106/0x22e > [ 5.373157] [] ? ramdisk_size+0x27/0x27 > [ 5.374463] [] do_one_initcall+0xae/0x230 > [ 5.375778] [] ? initcall_blacklisted+0x150/0x150 > [ 5.377213] [] ? parse_args+0x4a2/0x6c0 > [ 5.396284] [] ? set_debug_rodata+0x1f/0x1f > [ 5.397682] [] kernel_init_freeable+0x1fa/0x2ae > [ 5.399213] [] ? rest_init+0xa0/0xa0 > [ 5.400511] [] kernel_init+0x13/0x180 > [ 5.401773] [] ? rest_init+0xa0/0xa0 > [ 5.403032] [] ret_from_fork+0x25/0x30 > [ 5.404309] Code: be 42 03 00 00 48 c7 c7 20 d8 f2 81 41 bf fa ff ff ff e8 b9 72 bc ff e9 fe fe ff ff e8 af db c9 ff bf 80 00 00 00 e8 a5 74 d3 ff <48> c7 04 25 80 00 00 00 c0 68 78 04 eb 98 0f 1f 80 00 00 00 00 > [ 5.415566] RIP [] blk_register_queue+0x23b/0x250 > [ 5.417261] RSP > [ 5.418228] CR2: 0000000000000080 > [ 5.419143] ---[ end trace dfc7b622ec4895b5 ]--- > [ 5.420284] Kernel panic - not syncing: Fatal exception This was fixed right after the initial push, current branch is fine. -- Jens Axboe