Received: by 10.223.176.5 with SMTP id f5csp680598wra; Sat, 27 Jan 2018 07:46:33 -0800 (PST) X-Google-Smtp-Source: AH8x226y4iDBQo3oSdpnvdhRx0fdCkWHlR22BiTMufunW6ohWfFwO0sWxkkv/Gjph66IxttVtqFi X-Received: by 10.98.63.214 with SMTP id z83mr21834526pfj.95.1517067992942; Sat, 27 Jan 2018 07:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517067992; cv=none; d=google.com; s=arc-20160816; b=GlpejfuBzKVEWdK2+T8xGy3SRQAmwwBf1pHETAbxdTz797JmTH5iaulDaMri6SlmmB YUid7RvbxWPCD5yKiSkHor2Mh968ZMLBbIEwALNSfOF7JaDkOR3G4oQKSvZ4bXC+8Au4 a/48/pvbjS22LoiNd7RndnwU0AbaenDJdc564tLaEXB0u00xmGTYhmVBCt081k3dIyWx RqifDkSRVeRA8MIc6d/agtxNkFmRqh1X2/ye8ZmLYnkbShJAL5u2BKf9vIebEnt2XCVU G0xLiqnwss47DsZ5wGgG2sKXwsNzdlqlJAYrk3pcOmvDmcy4y+3A66r0+ecAij0osfX/ +Iyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=VUfWFU+b+Lv/Ljh3DpG92A2hsUQFcN4bUwB9ykAae4Q=; b=OYPkrTkzes1IplyzrYZaVp/+8iDQOgu5zvRKLhi92mp5g7SvmQQevPHSCWhSDuhvyX dRd8IfQUAk0DlR3btmd167iTRxpiwsXjmrKccVjS9gNusKVo0DV6xm/MeQeXSqV9gnni qhOCdoz59hxVBO1LRcOP8iSbgjeFZqUa3EITcje1YOw1UTfodcdYLtdLjDI7fA2keZqy H4nMt7ILg1gqsXuwtcc5g9S6OlkQcuPBZTn/eacG43C6ibQYX9yWBGy9ERQsVKcUDLdo e2798T05IwuxseyFsHlS9cCDx6lvWgzP7whWymsxuasvhMF9XxyxOkVIXWJGFNHVPYeq 7CfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=RVmisOqr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jtgaMBL7; 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=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si5513620plk.533.2018.01.27.07.46.16; Sat, 27 Jan 2018 07:46:32 -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; dkim=pass header.i=@fb.com header.s=facebook header.b=RVmisOqr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jtgaMBL7; 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=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753001AbeA0Ppt (ORCPT + 99 others); Sat, 27 Jan 2018 10:45:49 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:38560 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbeA0Ppr (ORCPT ); Sat, 27 Jan 2018 10:45:47 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0RFjAIR014939; Sat, 27 Jan 2018 07:45:23 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=VUfWFU+b+Lv/Ljh3DpG92A2hsUQFcN4bUwB9ykAae4Q=; b=RVmisOqrZUrZfpz8OVZbosQEmm/+1MAzaKgnyfXDAVXx6QPPtVWyUgUqWYTq5hpP48Vi TSu2B9KnGKv4n5vqpN2opCgBIdEwS97vTy7ZY4iNdO1b5hQ3n3Ug0Q3lq7eF+EHSIn/s Bo9aR2Z4U+0VBVKZ/Hi4jhUUwKOZeo4mRA4= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2frr1rr9yr-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 27 Jan 2018 07:45:23 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.11) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sat, 27 Jan 2018 07:45:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VUfWFU+b+Lv/Ljh3DpG92A2hsUQFcN4bUwB9ykAae4Q=; b=jtgaMBL7mEJsnOJSVRJER71pvSBgk/k5UuxBp1nJnq1jdGI8RVgQ1YU/i6uzHkjQxQsmdLXSiM8y6lj+VUfPxois7H00iQHS9YdM0JPPqyJTsxpSfbU+rX+iyroky7mFG4x0K+nYeGUr1KVnRq8bwBG2FC8fCDvtbSCSjDgWApw= Received: from MacBook-Pro-52.local (2620:10d:c090:180::3961) by MWHPR15MB1840.namprd15.prod.outlook.com (10.174.255.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Sat, 27 Jan 2018 15:45:02 +0000 Subject: Re: [lkp-robot] [tools/bpf] 8c417dc15f: BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h To: kernel test robot CC: Daniel Borkmann , LKML , Stephen Rothwell , References: <20180127080436.GB10097@yexl-desktop> From: Yonghong Song Message-ID: Date: Sat, 27 Jan 2018 07:44:45 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180127080436.GB10097@yexl-desktop> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:180::3961] X-ClientProxiedBy: MWHPR20CA0006.namprd20.prod.outlook.com (10.171.151.144) To MWHPR15MB1840.namprd15.prod.outlook.com (10.174.255.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c757b6f4-960e-4c2a-447b-08d5659cee22 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:MWHPR15MB1840; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1840;3:77h5ROQmx+/ySxHBblqnIxmH+RLB28hBPTRtK22HeJ6MpJVEimKXt2HzvBHZf4LR1W6yIPx8n+76hrzr6CD2xPQLLgeNJBctDIwtmuBrAmU11KCNMdLfjBYS6xzG/hZZ6ueQAguuWRz7wWhRDEEJwmbFBrEzMNVsFqB1P1eLlWxF3/jEbqezG2y0GSrDQ+05R/Uj/lOv6A6+kC66v//c0zXu1mDt8GuB3Jy6zJCnHhIGqgVrV6SlBjNmls3XHalF;25:svEM6PHqNsniBWZR53wvf7jqzyq54yY8DCqSaGJHxON8tLOpjYkhsML+h1gFCcpSdHNWsPCAH277elMNUrdMTiKfAyj/2NTYr/koAnOZBABWx1oSzLrDvLXhv3BWjW7szNZjg1O41DbVz3dcTQiA/+rJJiiJtDmf3jGP1ViKdbftdfAhs/TpFzpF/upSkyOs0TQz86vkZgEgg5ZCRN53wscqSSKXJZ0I0okF400xr2LbOrX+FOgsfDGFfaLvf7hbiEKQF+qccTr8uRSjcJZQECPRn+zGTBpIJN/VokHZGSvBaxxk4tvFG8MGscCV1l69vFESKrt0kU5oVPTWYOQlxQ==;31:uut5cUDnbuuPxigpPVktBslVhbT2mj9JWQaQyw/W1OBKtCkfPFH5ZsLmzGhytU0E6sYVGXsp2KwRL3F9Ia9rvQWbqaqC8nlWdYVKDZAmSToxFXWXcoZnOVoE3Cluq+nPLsNt/h8tkD7NJ8imOp4vtugLICpvupmuDp7uae4wpkwKRkjhG/TuRY/D9MELz1D+rImtwnBVbu0cYDbyJ6Fw+h0p7DaAh7vf3W8gyRvAPx8= X-MS-TrafficTypeDiagnostic: MWHPR15MB1840: X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1840;20:PHvHoFNKz8vh001I3Hrg8wCW32e7xbW8eXsvEgeZE1kQvSSh4H0EqNKNPmYaOoaxYDDxbjCP9iWl/VlbxmOWVIMDvRIKnSWcIxETcskgdT8kgySnJ35yYTz6wOG3KoS8BoWyyja0QZAPwchHDBdX6j3paMFXOWPRu2oqTvi3pT37CN2wEcOkkkHERQF013eH8kZL2wJ9G+d+0mvyTsqYHhmSvtO0wA+CEH/1eS1+J9AJmC31PL7SAYljE+eFExDa6vPIl81FzuQuWpdOmUHDad25NFPjU0eN4di5vK8f5E5e0j6sH1q7LUxo1OjNsxLw7w5DxR3nEf5uHSwuqJei6Naxdmzx/6CouMpwlBT6J5zF7+9S+zI3oy7hycgqpLuelP4qh96NCdBAeSrT66n7cg+rncmufbnbCd9tBNAW4+ulKKrQTMmNz1b2+Q5pSr04RmIHohA4feDtUj79TObYSXz42DnlAOfeXdEiltqv35Mr50N4Kc9lUBPjF7fkPZ1Z X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(215639381216008)(166708455590820)(67672495146484)(211936372134217)(84791874153150)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(11241501184)(2400081)(944501161)(3002001)(10201501046)(6041288)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:MWHPR15MB1840;BCL:0;PCL:0;RULEID:;SRVR:MWHPR15MB1840; X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1840;4:ROpW2muNbnPoVBY0JA1X6BHWrQdEMHn8jvsonR5Dq5X+iZPeFMIb4gNuHQ5OM3q8pYf7noT2XwBKCxEICJ4HY+5tB1suV4ysGN/A1K4D89ywD0OIakack04UwoWim1XFciG64A4H2JiyFCNfuShIojpn3AzigaJ0IQsOK046/GHf/Jqx49hYuSGTapBEDuXDFgT5+jOLgYph55ANdbklT4RV/YaRCS+0T8/FIxi6o4lMhUfsIOfPnF7hUbUBQpPg3/uAfOCAgcX6LdRAIR7nuwAfrFKPHvWc8RsOmJay6vj+P9+L2Ot4pcFmuwzM0pnezEgF4gEgH08UB8uJXTWPGSHel4KeHjftRdkPT8K6J2OLjZM8Ml5kQzx9/FLbRv6MM6DwC54hZ0BrckZFGyam+N7RsLiNtn/mroP8413mS7MZaXQlMC6koQnaz3w/GNNuCWsuLNSPTLUSmpEBbYiyVp4fZwxGntAInxlMnvm8Arc= X-Forefront-PRVS: 056544FBEE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(396003)(376002)(346002)(366004)(69234005)(189003)(199004)(36756003)(2906002)(6116002)(8936002)(50466002)(52116002)(53936002)(68736007)(6306002)(6246003)(8676002)(25786009)(316002)(966005)(31686004)(478600001)(52396003)(6486002)(59450400001)(229853002)(4326008)(64126003)(6512007)(106356001)(5660300001)(230700001)(65826007)(23746002)(54906003)(16526019)(58126008)(6506007)(67846002)(53546011)(386003)(5890100001)(105586002)(81166006)(47776003)(186003)(81156014)(7736002)(76176011)(31696002)(65806001)(65956001)(97736004)(6666003)(6916009)(305945005)(2950100002)(86362001)(83506002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR15MB1840;H:MacBook-Pro-52.local;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR15MB1840;23:pzgGnCVivwVRC6hJkzpMIsLbrRQ9Lo2BfKR20?= =?Windows-1252?Q?O0K+gnT7irhhxeZKk6lc33kqZSGCMxmi9J0pw/7Tkz8NoyrcsSltNKL+?= =?Windows-1252?Q?1e/CzxjA1+WBEfR25BoYETq+vD2MYJUL6eA3yC0al+CyBPbNsQtxFBLe?= =?Windows-1252?Q?76ighoYo638r/xuxoGh6LbsMnBr0d1jfrRPkWWPoR/6ZwyGOqyKo3NTr?= =?Windows-1252?Q?NX3REpL2jWd2GHhmK5Qim3HkcG5wXppteMG63MRCB4QuOqJOiGN5gw+h?= =?Windows-1252?Q?m9mdlkMJ4EJifHN4ZgZC9YLtj9MVpqOfix9606F14MNBhR3BUAJZHffF?= =?Windows-1252?Q?oH6BmTKpOhanuyOjVgRxGPMMHZPrS1vo1rccDso9em+6lyTZFPINxBEd?= =?Windows-1252?Q?1ER33rj5qoDKoEKCwVPyscnFzbpc4zKXy/Z0X/p2Lfd3Glha0NQv54Lk?= =?Windows-1252?Q?xB+RkkkOFRY9cweB61DAv7NxvDnYs/PTN8X274ZAN0NX2hXo1+MF0kdq?= =?Windows-1252?Q?tVtpy+5AbBxefBQATcNjnaVDuF4otYDl8/Y0OFttF5cMW/ri4H68lrM2?= =?Windows-1252?Q?hWauWLvTyuhFIvugjTdtk1AhuoZ8av4rR08uoPKIIXF1+dRydhhI2/TI?= =?Windows-1252?Q?ColMmDRn+stXzJZ1ZUSjC+Llq1bB7a+bcGO6dsD1ZjqDdZCx3SINaTqD?= =?Windows-1252?Q?8EX5qaDdU0lFFP2AQNXl6/clKgtWHRjY3rtci0jbBEpY2CDn5ZCoeofB?= =?Windows-1252?Q?e9EGy+CwnEAWtPG5UKhyIATJUQSkp+SQEOhH+JPY6De9JfuC2z3yfqz8?= =?Windows-1252?Q?PeN8WYAaUaH5HCQ5M7bTQkh+A2Kb1BLc5C4X3H4r+PD5SWdcizLUxk8y?= =?Windows-1252?Q?1zSoiW4FafxiCqgybih3lPD9fZsdNIWbcP9vTMp6rFMjzExCLEVy6rBm?= =?Windows-1252?Q?4OnpN6s9Oy8k+zwZwq+b5ORP0i7yo5e7BcMYzaYVOXyR7xsFxhjQ9Wp3?= =?Windows-1252?Q?DJvXVpI4Q6Z/Uyvl/jXCJ6ahBBap3kWGQNEyklLN1PpRNvkPr7i7lbbU?= =?Windows-1252?Q?d7FRKdavFFyfUhHHJhEGoPUv8UA0sbyfeigQ8LGQRt/w27VOp8rv9T2N?= =?Windows-1252?Q?1ovXpUQfi7PMLrZ+aQfZ05Kxh/pn0px7kkor5B0ELrpsyNzPeTlV7iOe?= =?Windows-1252?Q?AvvlVkQJEvUu2ja0ZuK6BVVZDPw1iAw5rPT7xWwcU5XICiKcDYL7Xmk4?= =?Windows-1252?Q?2fF6Wb16XfS+f0NYN81DpenVicpWbBmGX1epoQA2Op6xw39LTw4PPGDX?= =?Windows-1252?Q?imGJ1kR4/J5YljxreD4BrLqtKgRZV+OgudPkAt1yem2J9avFJWK1jOEu?= =?Windows-1252?Q?VkzVaZbWWmwbx5y/nuUEzyZP7IoQgSOjETbWQckd2qcfCr3RotdHilBM?= =?Windows-1252?Q?/vjoXvcsXqaTvS9OVgHYMSKmrjEPYanph+n/IJnKlktpGBhmG8n1vcUA?= =?Windows-1252?Q?HXfURcvGmwYg8G5aUmAs2yEih8ZUuSbVqkNDNEc2osGq+3ZoDpgg85/j?= =?Windows-1252?Q?w2OeeXgHq2kBsI=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1840;6:+q3KYHWvVI5jC90QvR1YEh7J9Im/uxzgUzQnLxrAOzYsfa4cHeSy9dO4NMpM42o5CwXQ3UhddmDWCtNWRy/yF5hsABoVL8oZ+C1hRW+8h9ouBWCc5dV3F78/q9hgH/g4qQQc6gPLyz4eaURYRI8nnZ5sneJ3UIS2zScr12sAMlSBXnpFEkiVqaW9m6wF9AGK7scp5IoaI8tS8LSXD1D6e1mtev0E48Luv3UkBIfsmmVX/fZOrGcSVQReZz9wZcyi2dIoMAzVUQlFUXcX+9QwWifV5whkj/Oapvv3WRvNTYS99h6pC/bpNZfEpdAfdQsNaY+mfzmBvi5ARupL9rfpHoTdhWfg490c0VHxNEao0sg=;5:QOvJiezT7/MLZOFo3JbwGtj33TzmAZVmtGkFp8b7olKVBf+SILm4UeaPs9f/9vnyeMKMxRkHqrqywmbQl2rF4eEVNF2Lthpmx2+MDod78Aglejxo/2yhi/Ehqnwj7TH17HSEGOPOM34vbRBy0ipsRDA8SPoCGXy3MwoPgyA6VRw=;24:qYvZ09NkpJR1Fr3x/EdtecNeJ/y0ZSnXTg6PbifJf4Ql8qbiJB85Ba79QjenyYIjutb7z92V3bn/lSbutej+0Z+quuuN3uC9WlADwaeXIv0=;7:AifcIFy+eSl4xkD6VMuReWvwVD45kl3/MNTfNm5dAWKLG4ffY/FgXuzGi8bOtMVrabE+NISWQXCZO6ZZ3c9YQ74DdA7qM2ICte0qlXKI9e1IAiobCGJNUjfmSZ4iQrkEXuhwhISEqrJZQS8+UUWxLDgIk6rkzh/TfTC5bvUCnRmGF+Cyf/vTbgvFT8wqyj/cOqFI+pDXlanOOLVBPciTOTmLMBB1RnTaWZy0H8J1BG+id39bOsubaPR3nf0/XTQX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR15MB1840;20:a4H7Tjjn7qJ304xhlIsrW9mg2s+Nhsdou3TwWGGIsC302ctbF/8i7uNsId0DEbyjJKYlKUEqOdVn4JtJ7eMpTvRWxN4l7LlCOykAAdTkYE4GEiVGhLb2eQQGodR5IblB0K+wwfX3KVVlQETiW8Dog3oYxUxDY2ZV4Sw0Nww8GM8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2018 15:45:02.2476 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c757b6f4-960e-4c2a-447b-08d5659cee22 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1840 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-27_10:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for reporting. This issue has been fixed by the below commit in bpf-next repo, which is waiting to be pulled into net-next. ===== commit 2310035fa03f651dd5b03f19a26a97512aa8842c Author: Yonghong Song Date: Mon Jan 22 22:53:51 2018 -0800 bpf: fix incorrect kmalloc usage in lpm_trie MAP_GET_NEXT_KEY rcu region In commit b471f2f1de8b ("bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map"), the implemented MAP_GET_NEXT_KEY callback function is guarded with rcu read lock. In the function body, "kmalloc(size, GFP_USER | __GFP_NOWARN)" is used which may sleep and violate rcu read lock region requirements. This patch fixed the issue by using GFP_ATOMIC instead to avoid blocking kmalloc. Tested with CONFIG_DEBUG_ATOMIC_SLEEP=y as suggested by Eric Dumazet. Fixes: b471f2f1de8b ("bpf: implement MAP_GET_NEXT_KEY command for LPM_TRIE map") Signed-off-by: Yonghong Song Reported-by: syzbot Reviewed-by: Eric Dumazet Signed-off-by: Daniel Borkmann ====== Thanks! On 1/27/18 12:04 AM, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: 8c417dc15f9522672795981dcb63d9099ca6bd8c ("tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of LPM_TRIE map") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in testcase: kernel_selftests > with following parameters: > > > test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel. > test-url: https://www.kernel.org/doc/Documentation/kselftest.txt > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > +---------------------------------------------------------------------+------------+------------+ > | | b471f2f1de | 8c417dc15f | > +---------------------------------------------------------------------+------------+------------+ > | boot_successes | 0 | 0 | > | boot_failures | 8 | 8 | > | invoked_oom-killer:gfp_mask=0x | 4 | 4 | > | Mem-Info | 4 | 4 | > | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 4 | 4 | > | BUG:sleeping_function_called_from_invalid_context_at_lib/usercopy.c | 4 | | > | BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h | 0 | 4 | > +---------------------------------------------------------------------+------------+------------+ > > > > [ 275.143042] BUG: sleeping function called from invalid context at mm/slab.h:419 > [ 275.146347] in_atomic(): 1, irqs_disabled(): 0, pid: 7020, name: test_lpm_map > [ 275.148889] CPU: 0 PID: 7020 Comm: test_lpm_map Not tainted 4.15.0-rc8-01647-g8c417dc #1 > [ 275.151961] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 > [ 275.155015] Call Trace: > [ 275.156181] dump_stack+0x5c/0x7b > [ 275.157563] ___might_sleep+0xf1/0x110 > [ 275.159078] __kmalloc+0x178/0x210 > [ 275.160459] trie_get_next_key+0x57/0x2a0 > [ 275.162019] ? _cond_resched+0x19/0x30 > [ 275.163494] ? __kmalloc+0x17d/0x210 > [ 275.165010] SyS_bpf+0xdbb/0x14b0 > [ 275.166359] ? _cond_resched+0x19/0x30 > [ 275.167851] entry_SYSCALL_64_fastpath+0x20/0x83 > [ 275.169616] RIP: 0033:0x7fce862efe19 > [ 275.171053] RSP: 002b:00007ffccbb62668 EFLAGS: 00000202 > [ 275.183028] test_lpm: OK > [ 275.184984] > [ 275.188333] ok 1..5 selftests: test_lpm_map [PASS] > [ 275.188338] > [ 275.191610] selftests: test_progs > [ 275.191615] > [ 275.208854] ======================================== > [ 275.208859] > [ 275.731322] libbpf: incorrect bpf_call opcode > [ 275.731329] > [ 275.739681] libbpf: incorrect bpf_call opcode > [ 275.739687] > [ 275.768456] test_pkt_access:PASS:ipv4 165 nsec > [ 275.768463] > [ 275.775864] test_pkt_access:PASS:ipv6 162 nsec > [ 275.775869] > [ 275.783113] test_xdp:PASS:ipv4 4283 nsec > [ 275.783251] > [ 275.798987] test_xdp:PASS:ipv6 1919 nsec > [ 275.798992] > [ 275.811095] test_l4lb:PASS:ipv4 1860 nsec > [ 275.811248] > [ 275.820459] test_l4lb:PASS:ipv6 3139 nsec > [ 275.820464] > [ 275.825614] test_tcp_estats:PASS: 0 nsec > [ 275.825618] > [ 275.831543] test_bpf_obj_id:PASS:get-fd-by-notexist-prog-id 0 nsec > [ 275.831548] > [ 275.838707] test_bpf_obj_id:PASS:get-fd-by-notexist-map-id 0 nsec > [ 275.838712] > [ 275.845485] test_bpf_obj_id:PASS:get-map-info(fd) 0 nsec > [ 275.845490] > [ 275.851833] test_bpf_obj_id:PASS:get-prog-info(fd) 0 nsec > [ 275.851838] > [ 275.858121] test_bpf_obj_id:PASS:get-map-info(fd) 0 nsec > [ 275.858126] > [ 275.862282] test_bpf_obj_id:PASS:get-prog-info(fd) 0 nsec > [ 275.862286] > [ 275.866722] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.866726] > [ 275.871573] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.871577] > [ 275.876121] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.876125] > [ 275.880766] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.880769] > [ 275.885053] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.885057] > [ 275.889288] test_bpf_obj_id:PASS:get-prog-fd-bad-nr-map-ids 0 nsec > [ 275.889291] > [ 275.894180] test_bpf_obj_id:PASS:get-prog-info(next_id->fd) 0 nsec > [ 275.894184] > [ 275.900509] test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec > [ 275.900513] > [ 275.905233] test_bpf_obj_id:PASS:get-prog-fd-bad-nr-map-ids 0 nsec > [ 275.905236] > [ 275.910550] test_bpf_obj_id:PASS:get-prog-info(next_id->fd) 0 nsec > [ 275.910554] > [ 275.917881] test_bpf_obj_id:PASS:check total prog id found by get_next_id 0 nsec > [ 275.917885] > [ 275.926199] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.926205] > [ 275.932417] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.932422] > [ 275.937351] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.937356] > [ 275.942885] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.942891] > [ 275.947970] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.947975] > [ 275.953278] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.953283] > [ 275.958715] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.958720] > [ 275.963666] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.963671] > [ 275.968511] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.968516] > [ 275.973634] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.973639] > [ 275.979036] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > [ 275.979041] > [ 275.984546] test_bpf_obj_id:PASS:check get-map-info(next_id->fd) 0 nsec > [ 275.984551] > [ 275.990201] test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k job-script # job-script is attached in this email > > > > Thanks, > Xiaolong >