From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 282063858D1E for ; Wed, 17 May 2023 22:19:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 282063858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=linux.vnet.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34HMHrAd003664; Wed, 17 May 2023 22:18:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=content-type : message-id : date : mime-version : subject : to : references : from : in-reply-to; s=pp1; bh=uNU1QKFQ8ht/ihVaxeme+eOWMa8jyxIed2D6Jf8lrb8=; b=JenQOR9ZmG/myZbIFGJXjXi66GBjKaQYIxLLjb3gy1kgWq0UGvejwROYoTPaExhtzZO0 ZCVJKQUhbW1SqSS20T/G5BrBk/ZLcibtzHwEWTSxpO4axopc1JHufhklKiXK1GxvtFIo kRUNZ4ONq/UL2Xj1LdNgI0ptn9RoeGw1lZ7oJ5Rrhc3vhLrM5jMp80TylIzK+EJ29D7W k1Y30MC72iv7wjoOf/d+6yQLWh2eUQhaSLwkYBRKdzZfcsY12OnXB/564T3kt5WmDG6y Pw40zA/xTdsvBuu08taxPXW7VX8kP9UQigBGw4rOqQw3Kj1CgaRiJYWSdCz7h5hRYqUE Cg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qn5fwbgbk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 22:18:58 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34HM8SGq026721; Wed, 17 May 2023 22:18:57 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qn5fwbgbb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 22:18:57 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34HJs1Tg009147; Wed, 17 May 2023 22:18:57 GMT Received: from smtprelay04.wdc07v.mail.ibm.com ([9.208.129.114]) by ppma04wdc.us.ibm.com (PPS) with ESMTPS id 3qj265qde7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 22:18:56 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay04.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34HMItVj43450822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 May 2023 22:18:55 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B4C3858052; Wed, 17 May 2023 22:18:55 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5F5F258045; Wed, 17 May 2023 22:18:55 +0000 (GMT) Received: from [9.61.43.34] (unknown [9.61.43.34]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 17 May 2023 22:18:55 +0000 (GMT) Content-Type: multipart/alternative; boundary="------------fWDhUzByXQtvRSrFo2tfSkom" Message-ID: Date: Wed, 17 May 2023 17:18:54 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] powerpc: Use sysconf (_SC_SIGSTKSZ) to set SIGSTKSZ and MINSIGSTKSZ. Content-Language: en-US To: Manjunath S Matti , Tulio Magno Quites Machado Filho , Manjunath Matti via Libc-alpha , hjl.tools@gmail.com References: <20230424105208.301614-1-mmatti@linux.ibm.com> <874jozevbl.fsf@ascii.art.br> <7620a9b1-fe92-0764-6011-81d3a19e5590@linux.vnet.ibm.com> <871qjxe26c.fsf@ascii.art.br> <87wn1mdfwl.fsf@ascii.art.br> <47ceecd1-1abd-383f-b4d6-0fd47b1969fc@linux.vnet.ibm.com> <87sfc5o1f3.fsf@ascii.art.br> <7a0c60f8-092c-b6d7-9e93-0a157511b8dd@linux.vnet.ibm.com> From: Rajalakshmi Srinivasaraghavan In-Reply-To: <7a0c60f8-092c-b6d7-9e93-0a157511b8dd@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Nz8_GoqW-etGfMF_N72bTFACiHPmLjKo X-Proofpoint-GUID: 8RMhovie6twVuIOOOLaXosQOIqW5kD5q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_04,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 malwarescore=0 clxscore=1011 suspectscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 impostorscore=0 bulkscore=0 mlxlogscore=823 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305170182 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HTML_MESSAGE,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a multi-part message in MIME format. --------------fWDhUzByXQtvRSrFo2tfSkom Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/11/23 11:50 AM, Manjunath S Matti wrote: > > On 09/05/23 11:03 pm, Tulio Magno Quites Machado Filho wrote: >> Manjunath S Matti writes: >> >>> Am I missing some thing, please help me understand the file >> No. You're right. >> The issue I hypothesized can't happen. > Thanks for confirming. The patch looks good. >>> I will definitely add a testcases just to check what value are we >>> getting >>> >>> from the kernel. >> I'm sorry, I'm not sure this test is needed anymore. >> While it doesn't hurt to have it, it would add little value. >> >> Thanks again! >> > I have one last thing that I fail to understand, in x86 > > file: sysdeps/unix/sysv/linux/bits/sigstksz.h > >  26 /* Default stack size for a signal handler: sysconf > (SC_SIGSTKSZ).  */ >  27 # undef SIGSTKSZ >  28 # define SIGSTKSZ sysconf (_SC_SIGSTKSZ) >  29 >  30 /* Minimum stack size for a signal handler: SIGSTKSZ.  */ >  31 # undef MINSIGSTKSZ >  32 # define MINSIGSTKSZ SIGSTKSZ > > line number 32, both MINSIGSTKSZ and SIGSTKSZ are intentionally set to > the same value. > > Do you know why, I just wanted to know the reason behind this. This was added by commit 6c57d320484988e87e446e2e60ce42816bf51d53. @H.J. Lu Do you have any comments on this question? > > Thank you > > --------------fWDhUzByXQtvRSrFo2tfSkom--