From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7AE89C433F5 for ; Wed, 22 Dec 2021 10:39:12 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 7267C3C9266 for ; Wed, 22 Dec 2021 11:39:10 +0100 (CET) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id F0A883C620F for ; Wed, 22 Dec 2021 11:39:00 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 610031400053 for ; Wed, 22 Dec 2021 11:39:00 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 94116212B6; Wed, 22 Dec 2021 10:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1640169539; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5AuwUBK707fswwo8RR3iDOzf06s9NbzsWOGJdOSZMmQ=; b=HgZe14ZJvD+T+1rsnDT6UeojaMPS+wzMwGgXnbBNC+lfwXmyzgUxvEEHXB0c2N3SQvHrZo 3LhD41ny+fceGLc0rLLSVQFC/oRKkXOy74/R4Y5VAFehK1eiwAFB3YFmbFR+DzJ16VFmzU +0SrhN4Zt1SXfRZE0qksMlxKtLweAuI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1640169539; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5AuwUBK707fswwo8RR3iDOzf06s9NbzsWOGJdOSZMmQ=; b=vEEvvu61DtCQJ3fIbwU286+P+rorfz0ugoEW+tsYFXCeqRroX9LrO0q2K2w1oA3ZCr4d1s jXHNH3u6kEc+JeAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5993D13D02; Wed, 22 Dec 2021 10:38:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zv3UE0MAw2FMfQAAMHmgww (envelope-from ); Wed, 22 Dec 2021 10:38:59 +0000 Date: Wed, 22 Dec 2021 11:38:57 +0100 From: Petr Vorel To: "xuyang2018.jy@fujitsu.com" Message-ID: References: <20211221193500.31950-1-pvorel@suse.cz> <61C28CB8.3050209@fujitsu.com> <61C2C02A.90104@fujitsu.com> <61C2E3DB.9070004@fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <61C2E3DB.9070004@fujitsu.com> X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH 1/1] lib: Skip tst_{disable, enable}_oom_protection() for non-root X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: Richard Palethorpe , "ltp@lists.linux.it" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Xu, > Hi Petr > > Hi Xu, > >>> This is not working as expected in Github CI. I'm still looking at the > >>> problem. > >>> https://github.com/wangli5665/ltp/runs/4602025797?check_suite_focus=true > >> I tested local but it works well. I guess ci fails because of linux user > >> namespace. Maybe we should require CAP_SYS_RESOURCE cap instead of using > >> geteuid. > > Good catch, verifying. > You can refer to my ltp fork > https://github.com/xuyang0410/ltp/commits/oom_kill_ci_fixes Ah, I didn't noticed your work, we both worked on the same thing. I added check on both places (for the cleanup as well) and check also CAP_SYS_ADMIN (obviously CAP_SYS_RESOURCE would be enough). Kind regards, Petr > Best Regards > Yang Xu > > Kind regards, > > Petr > >> Best Regards > >> Yang Xu -- Mailing list info: https://lists.linux.it/listinfo/ltp