From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F3B922E3E9 for ; Thu, 26 Feb 2026 12:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772109610; cv=none; b=WUw7PUCdHYZOG6kqsC/842SapjG2TJTzmntKsWKRve+Elm1ZqNaxiHnzu762SeN+AGtmyf194y/ssg/ZgeFTc+4ORsqp2qMBB9ZkweiP4tY82b1IwIKn/xlT6R+OHC/qNeVQJNbvUW5EhmE0/utokhjhi82EX96++h+hw9VO+Ww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772109610; c=relaxed/simple; bh=8EYnWjXzgNnzpHIGK2gx/dJeOkHpwQX8gDUqMSm3nDM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=ek/fBh95IPNUvDgm0nr4+mbpwsdmbryr372AvKzEjmVN1xiROwhyOwAiDV+S+ZTNrLnbmhkCz9WascmDzbPOwybMqFFN+kVzYnhyry8Vj22ggzt+kSmt+hJYZEHMi45PzCITHwlAqhhg7XWzbYw6O8Ak16vwiOtDRzFRyq3a5uM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=BkoaZEoD; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=RELR8lJr; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=BkoaZEoD; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=RELR8lJr; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="BkoaZEoD"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="RELR8lJr"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="BkoaZEoD"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="RELR8lJr" Received: from pobox.suse.cz (unknown [10.128.32.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 835DF40369; Thu, 26 Feb 2026 12:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1772109607; h=from:from: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=Jh1hfCe3yjHCvLdTZnowOydEEx+CtconMBd+C/55U/U=; b=BkoaZEoDhy3m2kK8AhnqwRUHbNtbClJG6ZLEQXpo4C8aToHXlo8PRLRj76yOjCKDgcB5jM Lr076GGqdIeE60BrSNOUS8Ri8qGW7VJ7mXYzy8Ebki/pg7ZQl8lvK0e9qFt2T3yXErbmmN W1XHDL8V4xhB2G4P+FAF5zyXo16p1is= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1772109607; h=from:from: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=Jh1hfCe3yjHCvLdTZnowOydEEx+CtconMBd+C/55U/U=; b=RELR8lJrJAW5S9rQG4eFhy9xCZBEnS2JgjTCs3Ic8EDhjpwPsSY14c5Fu/Z2/iGXz42X20 6nYlUQi4tQz74AAQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1772109607; h=from:from: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=Jh1hfCe3yjHCvLdTZnowOydEEx+CtconMBd+C/55U/U=; b=BkoaZEoDhy3m2kK8AhnqwRUHbNtbClJG6ZLEQXpo4C8aToHXlo8PRLRj76yOjCKDgcB5jM Lr076GGqdIeE60BrSNOUS8Ri8qGW7VJ7mXYzy8Ebki/pg7ZQl8lvK0e9qFt2T3yXErbmmN W1XHDL8V4xhB2G4P+FAF5zyXo16p1is= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1772109607; h=from:from: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=Jh1hfCe3yjHCvLdTZnowOydEEx+CtconMBd+C/55U/U=; b=RELR8lJrJAW5S9rQG4eFhy9xCZBEnS2JgjTCs3Ic8EDhjpwPsSY14c5Fu/Z2/iGXz42X20 6nYlUQi4tQz74AAQ== Date: Thu, 26 Feb 2026 13:40:07 +0100 (CET) From: Miroslav Benes To: Marcos Paulo de Souza cc: Joe Lawrence , Josh Poimboeuf , Jiri Kosina , Petr Mladek , Shuah Khan , live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] selftests: livepatch: functions.sh: Workaround heredoc on older bash In-Reply-To: <5ca16692b304185df695e517434b16e59cb15a42.camel@suse.com> Message-ID: References: <20260220-lp-test-trace-v1-0-4b6703cd01a6@suse.com> <20260220-lp-test-trace-v1-2-4b6703cd01a6@suse.com> <5ca16692b304185df695e517434b16e59cb15a42.camel@suse.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-2146828000-1974840087-1772109607=:5739" X-Spam-Score: -3.30 X-Spam-Level: X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; MIME_TRACE(0.00)[0:+,1:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[] X-Spam-Flag: NO This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---2146828000-1974840087-1772109607=:5739 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Hi, On Mon, 23 Feb 2026, Marcos Paulo de Souza wrote: > On Mon, 2026-02-23 at 10:42 -0500, Joe Lawrence wrote: > > On Fri, Feb 20, 2026 at 11:12:34AM -0300, Marcos Paulo de Souza > > wrote: > > > When running current selftests on older distributions like SLE12- > > > SP5 that > > > contains an older bash trips over heredoc. Convert it to plain echo > > > calls, which ends up with the same result. > > > > > > > Acked-by: Joe Lawrence > > Thanks for the review Joe! > > > > > Just curious, what's the bash/heredoc issue?  All I could find via > > google search was perhaps something to do with the temporary file > > implementation under the hood. > > # ./test-ftrace.sh > cat: -: No such file or directory > TEST: livepatch interaction with ftrace_enabled sysctl ... ^CQEMU: > Terminated I cannot reproduce it locally on SLE12-SP5. The patched test-ftrace.sh runs smoothly without 2/2. linux:~/linux/tools/testing/selftests/livepatch # ./test-ftrace.sh TEST: livepatch interaction with ftrace_enabled sysctl ... ok TEST: trace livepatched function and check that the live patch remains in effect ... ok TEST: livepatch a traced function and check that the live patch remains in effect ... ok GNU bash, version 4.3.48(1)-release (x86_64-suse-linux-gnu) Does "set -x" in the script give you anything interesting? Miroslav ---2146828000-1974840087-1772109607=:5739--