Received: by 10.192.165.148 with SMTP id m20csp440049imm; Fri, 20 Apr 2018 09:09:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LOWrv1HBZRQ7L7tWuVfWhSJxOfwiHNi3Wz/hWWLpZpe8+Wt963Mk2bb+aWI2moHSk7fat X-Received: by 2002:a17:902:5697:: with SMTP id j23-v6mr9647954pli.383.1524240559085; Fri, 20 Apr 2018 09:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524240559; cv=none; d=google.com; s=arc-20160816; b=Y5CDKrH6ksLkgObbknT+9qAlvACx8ld84DUXzyZb8vXxDGuJc87NlYL4aWI2pkLAGq QXQuNnfyiKrGyEL/EiCKKIKX2mVkZ47xzrT6sLeV4XajhNDMzveuc2rQipZ1hfuBjOaC /sTSrRf629uicEWaaUTZxhv1BbvxNOZdUe3FeU4FfsozWhbCFyciBnucSE0AwDZPbSgN 3+RY5HvYVuo1dYiK0JtJxxclHvkEoIqYcD81BcKLTdfst7zURT91azW7EjjTHwhCRNIN 4xtGEV/FUMxYXFf/GVhpz5h/3tMJSi+q4W5XPBB0UOLnTply46Qp6p7gw9wnq/CED+Px kqpg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hR8fWu7VpmG/Z8zosUvN3z4fUe4WZ05uDBINC6ti/go=; b=xLcJDQ6r/62his8R+bIBMJ6iXOgkk9oCnk8b9WGjgaV7jkgbmKo3Ij4iF2eT3xqXm4 WA5wUGC59lVDkFP5jh1OMeAzkFikPGNeT9VoaLFykdQhvE/dbfftNoijUGZnyXMBNDgf khO6QokXSuuPg1yLn1pjRdgVeF3jVVEsOo7b5oYqy4WqovuA2jr2sPfecAjLB/fb6Mqp aZj2FkbL5r+66SzPnKfU8qgppsEaxamSioGht4c1pUt9qeMMZB0Wl8jLh/F93idlj/Na bsQVvrzhOKby7XMFp8sD2wYXKnlXy0tE/JNX2+iiTKqBuZz9VFnlSZweilSAGjvY/3gQ zMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MfcAF5PR; 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 x22si5687314pfe.318.2018.04.20.09.09.04; Fri, 20 Apr 2018 09:09:19 -0700 (PDT) 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=MfcAF5PR; 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 S1755956AbeDTQHD (ORCPT + 99 others); Fri, 20 Apr 2018 12:07:03 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:46951 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755655AbeDTQHA (ORCPT ); Fri, 20 Apr 2018 12:07:00 -0400 Received: by mail-yw0-f194.google.com with SMTP id i17-v6so2905401ywg.13; Fri, 20 Apr 2018 09:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hR8fWu7VpmG/Z8zosUvN3z4fUe4WZ05uDBINC6ti/go=; b=MfcAF5PR1m1d70DBhSQo708qeXJMb3PwZ6QhyHEf76DII4GzVAkJJQK2LKIT907oe9 ZbfxmKe4mz2aNLOEOcsv/arsPVTtHvMW5H/CkRJVCx1LswSq2tnaJVQsTRRoSeXHBJUS NZDVjjcXuCR2gScusntDSjZAO2O72akjP2cWez+0WqDtt4XQ81doG2gVZnK6GUm/kG+A WTbOhXP5GRlIQFZb9X7AGTaC+0FvIAOWgtWAaEabYIwjb5oER5+tzYcI057JrqySOvyC ZxHZnlxh8FP7GE/rjZcjf7UmOs+az0eLTevgRYHz8HmG2KU7BfY5Zgnkr6eJYTuPB9Hk r6bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hR8fWu7VpmG/Z8zosUvN3z4fUe4WZ05uDBINC6ti/go=; b=FKUwwawK9lQLTKc0a6zeShiPTJJ3XhIGY/RVA9MikWsjs6s3CKLVptxW8SeJ2ngr4L 1W6uot2r0UwnqJRKAT95Ra56kXk4tpQ7ldx5ft8POMXe2Nd45Ut2Ey9GHYQWnnaSlJ/v vfX3qnB4o8LdFKdFgnITFKO47wHjzPjB41PCgZlBwWPwRQWidIOXNXwJQxddEFsY0ruQ IbB3Gr4lUFF9vhNScG5oHZcTxQ+4C4w+5R5m+vT7qCjHhd4C9N0B3w93BBJNMVHKetnB F1SZflcBp7ZjrnmaFuLrmfBxd3leNvVh7seKCIotPchtW41lRwV+7zNZIxTeZvXxZnJQ l/DQ== X-Gm-Message-State: ALQs6tAZcdoCtwGfSxGtZh5dMniJkeVNb27qbCy4HQVyoJM9Gkh00Azo dUI76pA5/ouuKCvuuZBsPuPYERJvx9h+LGT5WRM= X-Received: by 2002:a0d:fd84:: with SMTP id n126-v6mr6112577ywf.129.1524240419625; Fri, 20 Apr 2018 09:06:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:628a:0:0:0:0:0 with HTTP; Fri, 20 Apr 2018 09:06:59 -0700 (PDT) In-Reply-To: <20180420143811.9994-21-ebiederm@xmission.com> References: <87604mhrnb.fsf@xmission.com> <20180420143811.9994-21-ebiederm@xmission.com> From: Max Filippov Date: Fri, 20 Apr 2018 09:06:59 -0700 Message-ID: Subject: Re: [REVIEW][PATCH 21/22] signal/xtensa: Consistenly use SIGBUS in do_unaligned_user To: "Eric W. Biederman" Cc: Linux-Arch , LKML , Chris Zankel , linux-xtensa@linux-xtensa.org, stable@vger.kernel.org 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 Fri, Apr 20, 2018 at 7:38 AM, Eric W. Biederman wrote: > While working on changing this code to use force_sig_fault I > discovered that do_unaliged_user is sets si_signo to SIGBUS and passes > SIGSEGV to force_sig_info. Which is just b0rked. > > The code is reporting a SIGBUS error so replace the SIGSEGV with SIGBUS. > > Cc: Chris Zankel > Cc: Max Filippov > Cc: linux-xtensa@linux-xtensa.org > Cc: stable@vger.kernel.org > Fixes: 5a0015d62668 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 3") > Signed-off-by: "Eric W. Biederman" > --- > arch/xtensa/kernel/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Max Filippov -- Thanks. -- Max