Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1103207imu; Fri, 21 Dec 2018 12:38:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XqITGkPvhrSmyJLgw0BzttEDlimsBCHpD9RAq342gXfDwM8Qic3VxUktruWaqqVU9W91Tf X-Received: by 2002:a62:6799:: with SMTP id t25mr3972089pfj.139.1545424726785; Fri, 21 Dec 2018 12:38:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545424726; cv=none; d=google.com; s=arc-20160816; b=MFsqBEpNjlpi6xulN1oz2xeYGD0ygVkuCmMz5V8N6pAvbQ4OOr/QzQKpN5vQa7gnBF Fy8Kvja4jgOC+GFw5HGDIBwdIkXuizavqQsOtWiibN0mT+668rDo5ngqqN0A1q24h2OA DBdMQrxq4XXGEYbSQjE78fpMC359KE8P6PoiP3Suc/aip9f56Ugtuo032+KeL24D5R3f WaRFGa4Mbm2+pqhpGujwQgX9m/m0HVHvJOuYvIYkSBQ9hyBE/o3yn9uoP32tOIuUnIga 6s3cS8ZDqWVQbXKF7Be+nuqJl8aO3r2eowNcJclvfeKLkg6PCi8mqg36321GRQuHwGMl VRDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yhOUNi2BURW/oJMQHdq3jAOE7mhlMlhIopCWrHWu/To=; b=UEiVAbXRMkUoX3Qnn53/J7eRcs3p2/TnlQQ6ojYFIekBR6dDlWFiyJCRT4hrJMCRmX 09QwZpZTxcTvhyiRSPjQ5hGwhQ3ATh4jeVt+LxRVAd4vK1PBs9FsF/e8BqhWegmDksIs eJ8Fn2RWjMYbyvpxl29rV0j4AAQaidpNOF6R2wTRGq9QR9S/xkS0EXKis5+hZN6Gm5JU /xvu5eLfnzfDoeRrVYoL5dowbugW0fNxNEAoC7m5YNw3PaUlbbNdJ6uSyxvZC7OHCQn9 +5t8REuQDTGDznFjw6/TPY7foYxXaj9mWeOkEAeMtdBQX0pGl9FV6RbPTvXs4fGQ4Dez vcHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P1PoHdwd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si5212382pgc.509.2018.12.21.12.38.31; Fri, 21 Dec 2018 12:38:46 -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=@gmail.com header.s=20161025 header.b=P1PoHdwd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390463AbeLUNAK (ORCPT + 99 others); Fri, 21 Dec 2018 08:00:10 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43304 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387690AbeLUNAK (ORCPT ); Fri, 21 Dec 2018 08:00:10 -0500 Received: by mail-oi1-f196.google.com with SMTP id u18so4668484oie.10; Fri, 21 Dec 2018 05:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yhOUNi2BURW/oJMQHdq3jAOE7mhlMlhIopCWrHWu/To=; b=P1PoHdwdyCmQehx9TT5KvPSLu8eO5vtfhalYYS9QK4LQnQ07fL8wzwzJw38w/sKkqD vK4RanL2zY4z7DqNflIhdBzy6Gv//b8+AjLi6aoti3H6CXaY4P+gYl496+Rjd06ntvNM +XBV/Sh4lIgaZ3tZeEt8x4/d59i4kmL9x+y26UK3Y6yFr/AtLKmYP+OXJB9Xf9CQOEg1 qfmnwcQA3wlL6i8q9Kjc2MUgncFdI9hicXh4SyO3kXZeBu++is65EbZuNcj6G30i2wki DRSaU2nTIKqvzU1sReYZKpTSzJQRC6XE+Q8H1SGVc1W2Ba+T4Vusr0hqOGA7BrVVCtRH MkMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yhOUNi2BURW/oJMQHdq3jAOE7mhlMlhIopCWrHWu/To=; b=NK4WNwx0IMr+by/nfjhKJwm0cDFWefqWgr9IEzQdXmk6mUXvRppBIsFBuHqvXmbqn1 +VP6XpjQ8yLB17yzFTRXjHMy38QTey+wqABK0ggOx1UpO4vuYHN99JKI2pbKhTZMW7bW hSz952Cil8NkoXnJd4PnHo9FeziczFnyRU/XcFF90BfJWeGa9g6TXKhkYz8luZg6EavL Gcyi07oBV/JukXADZdkcgPlh9et0BlVNCVMEA2+hlYY0qZVN9MteFvgxVaivRI8UsF69 sHFmyU4dOjdlyObVfPKfdw8Y5oC3e03mahl7h/1DLk+W0VI60p7nPsW1/0WFcgkQ30Uo WeTA== X-Gm-Message-State: AA+aEWalG4EVehJMN0Q+PuvrNRfPa2DDCoDvlpHNr2zsyzJNboR05GSP xYV1o8qJSzjsgGhM7BVtdGPpgUsWDXs31ajvHaU= X-Received: by 2002:aca:3c06:: with SMTP id j6mr1294703oia.126.1545397208995; Fri, 21 Dec 2018 05:00:08 -0800 (PST) MIME-Version: 1.0 References: <20181220085922.332225035@linuxfoundation.org> <20181220085923.488666294@linuxfoundation.org> <20181220154030.GA9962@kroah.com> <20181220184941.ykfjubbo3nj2mnpm@debian> <20181220230509.2lwlz2w46iqac2px@linutronix.de> In-Reply-To: <20181220230509.2lwlz2w46iqac2px@linutronix.de> From: Sudip Mukherjee Date: Fri, 21 Dec 2018 12:59:32 +0000 Message-ID: Subject: Re: [PATCH 4.14 29/72] locking/qspinlock, x86: Provide liveness guarantee To: Sebastian Andrzej Siewior Cc: Greg Kroah-Hartman , linux-kernel , Stable , Will Deacon , Thomas Gleixner , "Peter Zijlstra (Intel)" , Linus Torvalds , andrea.parri@amarulasolutions.com, longman@redhat.com, Ingo Molnar , Sasha Levin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 11:05 PM Sebastian Andrzej Siewior wrote: > > On 2018-12-20 18:49:41 [+0000], Sudip Mukherjee wrote: > > On Thu, Dec 20, 2018 at 04:40:30PM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Dec 20, 2018 at 12:14:00PM +0000, Sudip Mukherjee wrote: > > > > Hi Greg, > > > > > > > > On Thu, Dec 20, 2018 at 9:28 AM Greg Kroah-Hartman > > > > wrote: > > > > > > > > > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > > > > > > > ------------------ > > > > > > > > > > commit 7aa54be2976550f17c11a1c3e3630002dea39303 upstream. > > > > > > > > Another upstream commit fixes this. > > > > b987ffc18fb3 ("x86/qspinlock: Fix compile error") > > > > > > Maybe, but that commit doesn't apply to any of these stable trees :( > > > > > > Care to provide a backport? > > > > Attached now. > > Are you sure that it fails to compile without that patch? I have here > Debian's gcc version 8.2.0 which probably isn't affected and I can > compile kernel/locking/ in v4.19 + 4.14. > > I'm asking because in my backport the GEN_BINARY_RMWcc macro is used > like in all the other functions which use it - unlike like in the > original commit where the macro is used directly in the if condition. So > it might not be affected by the problem. ofcourse.. and I overlooked that part. Sorry. The original problem was using the "goto" inside if() and with your backported patch the problem should not exist. Greg, please do not add it to your queue. -- Regards Sudip