Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/804858/?format=api
{ "id": 804858, "url": "http://patchwork.ozlabs.org/api/patches/804858/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/patch/20170823072123.18769-10-stewart@linux.vnet.ibm.com/", "project": { "id": 44, "url": "http://patchwork.ozlabs.org/api/projects/44/?format=api", "name": "skiboot firmware development", "link_name": "skiboot", "list_id": "skiboot.lists.ozlabs.org", "list_email": "skiboot@lists.ozlabs.org", "web_url": "http://github.com/open-power/skiboot", "scm_url": "http://github.com/open-power/skiboot", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170823072123.18769-10-stewart@linux.vnet.ibm.com>", "list_archive_url": null, "date": "2017-08-23T07:21:19", "name": "[09/13] mktime: fix off-by-one error calling days_in_month", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "b5de7113c1282d2206998538b8e4e18ebdfd217b", "submitter": { "id": 48041, "url": "http://patchwork.ozlabs.org/api/people/48041/?format=api", "name": "Stewart Smith", "email": "stewart@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/skiboot/patch/20170823072123.18769-10-stewart@linux.vnet.ibm.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/804858/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/804858/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "skiboot@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "skiboot@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xcf874JhHz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 17:24:55 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xcf872JFdzDrHC\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 17:24:55 +1000 (AEST)", "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xcf4S43G8zDql8\n\tfor <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 17:21:44 +1000 (AEST)", "from pps.filterd (m0098413.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7N7K7JV131716\n\tfor <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 03:21:42 -0400", "from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2ch542gfy4-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 03:21:42 -0400", "from localhost\n\tby e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <skiboot@lists.ozlabs.org> from <stewart@linux.vnet.ibm.com>;\n\tWed, 23 Aug 2017 03:21:41 -0400", "from b01cxnp23032.gho.pok.ibm.com (9.57.198.27)\n\tby e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tWed, 23 Aug 2017 03:21:39 -0400", "from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7N7LcZH25428018\n\tfor <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 07:21:38 GMT", "from localhost (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with SMTP id 60F34112034\n\tfor <skiboot@lists.ozlabs.org>; Wed, 23 Aug 2017 03:21:26 -0400 (EDT)", "from birb.localdomain (unknown [9.83.2.72])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with SMTP id 2778D112056;\n\tWed, 23 Aug 2017 03:21:15 -0400 (EDT)", "by birb.localdomain (Postfix, from userid 1000)\n\tid 7D027332AFF; Wed, 23 Aug 2017 17:21:24 +1000 (AEST)" ], "X-IMSS-HAND-OFF-DIRECTIVE": "127.0.0.1:10026", "From": "Stewart Smith <stewart@linux.vnet.ibm.com>", "To": "skiboot@lists.ozlabs.org", "Date": "Wed, 23 Aug 2017 17:21:19 +1000", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170823072123.18769-1-stewart@linux.vnet.ibm.com>", "References": "<20170823072123.18769-1-stewart@linux.vnet.ibm.com>", "X-TM-AS-GCONF": "00", "x-cbid": "17082307-0024-0000-0000-000002C3C027", "X-IBM-SpamModules-Scores": "", "X-IBM-SpamModules-Versions": "BY=3.00007595; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000223; SDB=6.00906371; UDB=6.00454276;\n\tIPR=6.00686571; \n\tBA=6.00005550; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016821;\n\tXFM=3.00000015; UTC=2017-08-23 07:21:39", "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused", "x-cbparentid": "17082307-0025-0000-0000-0000452F6088", "Message-Id": "<20170823072123.18769-10-stewart@linux.vnet.ibm.com>", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-23_02:, , signatures=0", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708230108", "Subject": "[Skiboot] [PATCH 09/13] mktime: fix off-by-one error calling\n\tdays_in_month", "X-BeenThere": "skiboot@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "Mailing list for skiboot development <skiboot.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/skiboot/>", "List-Post": "<mailto:skiboot@lists.ozlabs.org>", "List-Help": "<mailto:skiboot-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org", "Sender": "\"Skiboot\"\n\t<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>" }, "content": "From auditing all the mktime() users, there seems to be only a *very*\nsmall window around new years day where we could possibly return\nincorrect data to the OS, and even then, there would have to be FSP\nreset/reload on FSP machines. I don't *think* there's an opportunity\non other machines.\n\nSigned-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>\n---\n libc/time.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/libc/time.c b/libc/time.c\nindex 6a5108691af1..71bbdff647f3 100644\n--- a/libc/time.c\n+++ b/libc/time.c\n@@ -121,7 +121,7 @@ time_t mktime(struct tm *tm)\n \tfor (d = days_in_month(month, year); mday > d;\n \t\t\td = days_in_month(month, year)) {\n \t\tmonth++;\n-\t\tif (month > 12) {\n+\t\tif (month > 11) {\n \t\t\tmonth = 0;\n \t\t\tyear++;\n \t\t}\n", "prefixes": [ "09/13" ] }