Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6157109rwl; Mon, 9 Jan 2023 05:03:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXuaR5LPSUbdnEPrM1CL8OCsvvLZ2VfHJAEfciXrEifaCPu1smTKgDdGK32wmIHSgXRrMd3Q X-Received: by 2002:a17:907:c084:b0:7c1:22a6:818f with SMTP id st4-20020a170907c08400b007c122a6818fmr58475450ejc.25.1673269428635; Mon, 09 Jan 2023 05:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673269428; cv=none; d=google.com; s=arc-20160816; b=CK5P1JLF9ywl/91m5KzmzV7hYhmmzNQGFcDtcPQQRPRYucLeAORlTrJ7+pEUiwS8tG ilV+J/FFhyHidy87ARTypR7KMIqKFrQJ8M1QsVum/7UT00DiadHdA+xBewu3QdAdm/3q dATKMMS6cQ8k6NzkyB8U62RKWPGo2yrf1HsxfiJw8GDzAnuQaRtejUjWVTQwYjz+PAcl 1HD4wL08lf3WfPMMihZgec+GTUr2K8DJEopXNkfjHNA4KVAyZx/rgfCjc8CCWGzxAswk DSiFxEBChre2QkBMyHHC4RPCsPoQQi/iXUXfXPrLnM1iqKEfejsvEt4M2gLqro6gJ+iO NFaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=ZqK82XmkHGwgkWLn/lWnXGPxUei35Telb/gYqSLTrk4=; b=KjTZ1ltvHIhgimiyk2fz7qFhNp3R8H55fwEATOVBcIAwMtZN14LPZaBbfP6pgx3kcE CmRP2Ymxf+zxw8HwxUuf6ZIyTpkFUeaTz13icleJ1VfVHJXQW+iZfhEBOuR//fsGcFAw qwuny2+oswgnGYpuruLm3OBGX/1FNZcRDRJ6YXaYmk6/1k1k+zgzwg43h45ax25ZwxSB gkmd0j5shjb9mq1igO16veBAohyuXo3UyMmOquCspTtivV6T0MJQpvz5iGu0nBBthZHJ TA2KgRNmL1nqHczncedGuVEgkM+L5Du8ajgnEZwPaX0+apQDirwt4NiD9aTArvmW5lO5 INjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dZPZVcs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b0084c855e9b5bsi8270104ejc.97.2023.01.09.05.03.35; Mon, 09 Jan 2023 05:03:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dZPZVcs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbjAIMn6 (ORCPT + 54 others); Mon, 9 Jan 2023 07:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233339AbjAIMn5 (ORCPT ); Mon, 9 Jan 2023 07:43:57 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF1413F0E for ; Mon, 9 Jan 2023 04:43:55 -0800 (PST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 309BjZHq015694; Mon, 9 Jan 2023 12:42:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=ZqK82XmkHGwgkWLn/lWnXGPxUei35Telb/gYqSLTrk4=; b=dZPZVcs6TEwYHpfTUzmVSi+AF1YBNHXDjlu0WNdu/lg3dKUfd6/s6gutu5vtfx4ZG34M 99t2qjrCpezRmmQbMXIo3+wPH1jDVRwH9EQAqFbsu5ZEJlG6K0KHwjJxms+oB8mUgZDv 3ssK/PUYYU+sE6nuVvGMDIB7Xup4lERsnDKxWqc8m7TQI0MtVsfhSpC/Y7iDyHu1N1K4 LIivXmkh60ZgGIatcyDD9lelHaM4+24KmvDvuPcxBvxHDKBQ9p5cb02aj/Q97JGuF6Aw uJUmBb5h3zK+5LJeZYksQPLmgaDWzj0s46nhbgIsvpjwDJgXmCNTMAep6/bU65MTawVX tQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3myjp1vtku-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 12:42:59 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 309CgwLa021817; Mon, 9 Jan 2023 12:42:58 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3myjp1vtkc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 12:42:58 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3096Mtbl005179; Mon, 9 Jan 2023 12:42:56 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3my0c6a3ww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 12:42:56 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 309CgrDe43319572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 Jan 2023 12:42:54 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD65A20040; Mon, 9 Jan 2023 12:42:53 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D10A20043; Mon, 9 Jan 2023 12:42:49 +0000 (GMT) Received: from [9.43.61.69] (unknown [9.43.61.69]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 9 Jan 2023 12:42:48 +0000 (GMT) Message-ID: <623307fe-a29a-c691-b07b-4d2168d4bdcc@linux.ibm.com> Date: Mon, 9 Jan 2023 18:12:47 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] objtool: continue if find_insn() fails in decode_instructions() Content-Language: en-US To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, jpoimboe@redhat.com, peterz@infradead.org, aik@ozlabs.ru, mpe@ellerman.id.au, mingo@redhat.com, christophe.leroy@csgroup.eu, mbenes@suse.cz, npiggin@gmail.com, chenzhongjin@huawei.com, sfr@canb.auug.org.au, naveen.n.rao@linux.vnet.ibm.com, Sathvika Vasireddy References: <20221208072813.25799-1-sv@linux.ibm.com> From: Sathvika Vasireddy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: wmQoU2eWFv1dBIbh8zl15zE1TAQ2xJe2 X-Proofpoint-GUID: bQLdn5V0gIxNbzgLkcszT5YFmPO3bY7L Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_04,2023-01-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=881 impostorscore=0 bulkscore=0 clxscore=1011 suspectscore=0 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090087 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, Happy New Year! On 07/01/23 15:51, Ingo Molnar wrote: > * Sathvika Vasireddy wrote: > >> Currently, decode_instructions() is failing if it is not able to find >> instruction, and this is happening since commit dbcdbdfdf137b4 >> ("objtool: Rework instruction -> symbol mapping") because it is >> expecting instruction for STT_NOTYPE symbols. >> >> Due to this, the following objtool warnings are seen: >> [1] arch/powerpc/kernel/optprobes_head.o: warning: objtool: optprobe_template_end(): can't find starting instruction >> [2] arch/powerpc/kernel/kvm_emul.o: warning: objtool: kvm_template_end(): can't find starting instruction >> [3] arch/powerpc/kernel/head_64.o: warning: objtool: end_first_256B(): can't find starting instruction >> >> The warnings are thrown because find_insn() is failing for symbols that >> are at the end of the file, or at the end of the section. Given how >> STT_NOTYPE symbols are currently handled in decode_instructions(), >> continue if the instruction is not found, instead of throwing warning >> and returning. >> >> Signed-off-by: Naveen N. Rao >> Signed-off-by: Sathvika Vasireddy > The SOB chain doesn't look valid: is Naveen N. Rao, the first SOB line, the > author of the patch? If yes then a matching From: line is needed. > > Or if two people developed the patch, then Co-developed-by should be used: > > Co-developed-by: First Co-Author > Signed-off-by: First Co-Author > Co-developed-by: Second Co-Author > Signed-off-by: Second Co-Author > > [ In this SOB sequence "Second Co-Author" is the one who submits the patch. ] > > [ Please only use Co-developed-by if actual lines of code were written by > the co-author that created copyrightable material - it's not a courtesy > tag. Reviewed-by/Acked-by/Tested-by can be used to credit non-code > contributions. ] Thank you for the clarification, and for bringing these points to my attention. I'll keep these things in mind. In this case, since both Naveen N. Rao and I developed the patch, the below tags are applicable.         Co-developed-by: First Co-Author         Signed-off-by: First Co-Author         Co-developed-by: Second Co-Author         Signed-off-by: Second Co-Author However, I would be dropping this particular patch, since I think Nick's patch [1] is better to fix the objtool issue. [1] - https://lore.kernel.org/linuxppc-dev/20221220101323.3119939-1-npiggin@gmail.com/ Thanks for reviewing! - Sathvika