Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3062069yba; Sat, 18 May 2019 08:33:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxercj4B4Cxlowa5X2o5jAGBcZSPTEOj8TVArjgluN9+TtdGTJFDCJC92x850i16Pm1vuBa X-Received: by 2002:a63:c046:: with SMTP id z6mr64145257pgi.387.1558193600692; Sat, 18 May 2019 08:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558193600; cv=none; d=google.com; s=arc-20160816; b=M+4P53UguD1zc3CjYAoe317FPG3rNWJ5KKg0/lXhgKXDVwE2euOLZXNZbKD/l9mjQS yBuUFWpQbiKg+aP/oz5tNJrZp9b8W9Szi95H37aio4qFlouyh4vldSqs9rla4UtGdtPn 9aHrTQfTeo9EzkWfeMGhk4u7TdZ/W9GC7ioi/PvENU4zib9ufRtl3X6bYiBhyXGjBE9x qItZXUcUXaA+8nTZt2Bget3WEExfPJAwwzXvDdgoVBAabjR/qHvxw1AZtsny8s+7Qv7g Am/nl4g7OdPhhNR/5C3VXusu+vtDk3zSL689Oap7gRlW81or/jAWW23DtUsPfkgxSjeC yIRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=cc3IN6a4M1eJDSzVBvavdO96JEro3LWZKO2IzmL+Ed0=; b=NHCBBo3MuUqdRnv+DHK+k5FeFaCF4iBE5HoR3C9vScuS6EGABeAG2FIwy4uCEQ5q9R QfQbEri1xbDAAb4J4147wE4640tjSEwMIDfrVqOejJcebtK165stv17VtUhD2CKYwlbL O/5DkF8UBB+clX9UU/XK+hAS4aGjt4+sLQ45eTOa1hVFoaVfoT7awXkWEK2DdbY08IWe sCJEklXQDNOHm6HooUfOZdPZuHRUnE1Mi1c8lrZKkuTthQmkAlHt2R+k1JJZoLFTUgIM THlfZ8cdTiCYo7z7AvkUT4kdvqmXwxsJ/8moaoAIS/41ML50I88K2A+4uRgR1bqTlm0a Ty0w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si11202124plo.175.2019.05.18.08.33.05; Sat, 18 May 2019 08:33:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729416AbfERPZc (ORCPT + 99 others); Sat, 18 May 2019 11:25:32 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:58690 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728037AbfERPZb (ORCPT ); Sat, 18 May 2019 11:25:31 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1hS1DG-0002hL-Hj; Sat, 18 May 2019 09:25:30 -0600 Received: from ip72-206-97-68.om.om.cox.net ([72.206.97.68] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1hS1DF-0003iq-O1; Sat, 18 May 2019 09:25:30 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Alan Stern Cc: linux-usb@vger.kernel.org, Greg Kroah-Hartman , Oliver Neukum , References: Date: Sat, 18 May 2019 10:25:05 -0500 In-Reply-To: (Alan Stern's message of "Sat, 18 May 2019 11:20:47 -0400 (EDT)") Message-ID: <878sv3ss32.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1hS1DF-0003iq-O1;;;mid=<878sv3ss32.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=72.206.97.68;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/Vd8OIugNR8FtTsnNrJrJM9aHdGWcp/AY= X-SA-Exim-Connect-IP: 72.206.97.68 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa06.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,T_TM2_M_HEADER_IN_MSG, T_TooManySym_01,XMGappySubj_01,XMGappySubj_02,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4542] * 0.7 XMSubLong Long Subject * 1.5 TR_Symld_Words too many words that have symbols inside * 0.5 XMGappySubj_01 Very gappy subject * 1.0 XMGappySubj_02 Gappier still * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Alan Stern X-Spam-Relay-Country: X-Spam-Timing: total 304 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.7 (0.9%), b_tie_ro: 1.84 (0.6%), parse: 0.73 (0.2%), extract_message_metadata: 11 (3.5%), get_uri_detail_list: 1.25 (0.4%), tests_pri_-1000: 9 (3.1%), tests_pri_-950: 1.28 (0.4%), tests_pri_-900: 1.02 (0.3%), tests_pri_-90: 19 (6.3%), check_bayes: 18 (5.8%), b_tokenize: 5 (1.8%), b_tok_get_all: 6 (1.9%), b_comp_prob: 2.2 (0.7%), b_tok_touch_all: 2.5 (0.8%), b_finish: 0.52 (0.2%), tests_pri_0: 248 (81.6%), check_dkim_signature: 0.47 (0.2%), check_dkim_adsp: 2.0 (0.7%), poll_dns_idle: 0.54 (0.2%), tests_pri_10: 2.2 (0.7%), tests_pri_500: 6 (1.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: [CFT][PATCH] signal/usb: Replace kill_pid_info_as_cred with kill_pid_usb_asyncio X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Stern writes: > On Fri, 17 May 2019, Eric W. Biederman wrote: > >> Wow I got a little distracted but now I am back to this. >> >> Using your test program I was able to test the basics of this. >> >> I found one bug in my patch where I was missing a memset. So I have >> corrected that, and reorganized the patch a little bit. >> >> I have not figured out how to trigger a usb disconnect so I have not >> tested that. > > Heh. Assuming the device file you tell the test program to use > corresponds to an actual USB device, you can trigger a disconnect by > literally unplugging the USB cable. (Add a 10-second delay to the > program to give yourself enough time.) I have just been running this in qemu. But yes. I suppose the easy way would be to print a message asking the usb device to be unplugged and then just wait for the signal. I might try that. >> The big thing I have not been able to test is running a 64bit big-endian >> kernel with a 32bit user space. My modified version of your test >> program should report "Bad" without my patch, and should report "Good" >> with it. >> >> Is there any chance you can test that configuration? I could not figure >> out how to get a 64bit big-endian system running in qemu, and I don't >> have the necessary hardware so I was not able to test that at all. As >> that is the actual bug I am still hoping someone can test it. > > Unfortunately, I don't have any big-endian systems either. That probably explains why the breakage in big-endian was never noticed. I am starting to wonder if anyone is actually doing big-endian for new systems anymore. Eric