From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990AbeDYXFt (ORCPT ); Wed, 25 Apr 2018 19:05:49 -0400 Received: from mail-vk0-f53.google.com ([209.85.213.53]:42038 "EHLO mail-vk0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752661AbeDYXFq (ORCPT ); Wed, 25 Apr 2018 19:05:46 -0400 X-Google-Smtp-Source: AIpwx48TqPw+RKY80XjAzBbzGRGQkD+FBHqmD7oQd8EjtR+LnggH2OsvCKmy7R01OkLeiosxRQRqnwuuHmYSZtqfDXI= MIME-Version: 1.0 In-Reply-To: <87lgdc1bvr.fsf@xmission.com> References: <87604mhrnb.fsf@xmission.com> <20180420143811.9994-19-ebiederm@xmission.com> <7074fe36-27c5-ee82-9659-da703cfc91fe@kot-begemot.co.uk> <7ddd238f-88a8-ed03-fe9e-0f4e5f2a490d@kot-begemot.co.uk> <87zi1sd28d.fsf@xmission.com> <87lgdc1bvr.fsf@xmission.com> From: =?UTF-8?Q?Martin_P=C3=A4rtel?= Date: Thu, 26 Apr 2018 02:05:44 +0300 Message-ID: Subject: Re: [uml-devel] [REVIEW][PATCH 19/22] signal/um: Use force_sig_fault in relay_signal. To: "Eric W. Biederman" Cc: Anton Ivanov , Richard Weinberger , Linux-Arch , Richard Weinberger , Jeff Dike , linux-um@lists.infradead.org, LKML , "user-mode-linux-devel@lists.sourceforge.net" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Then my analysis is correct that you simply missed filtering out the > si codes that are not signal specific and do not use the fault layout > in struct siginfo. > ... > I would say that you really need a > white-list of si_codes that whose use of struct siginfo that you know. > Otherwise you could get into the same problem of under or over copying > data. > I think that's correct, but I'm not super familiar with either UML or signal handling.