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 86532C433EF for ; Fri, 20 May 2022 09:33:23 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 5E2C03CAAF0 for ; Fri, 20 May 2022 11:33:21 +0200 (CEST) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 649B63C4DB3 for ; Fri, 20 May 2022 11:33:11 +0200 (CEST) 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-2.smtp.seeweb.it (Postfix) with ESMTPS id ADA1B600342 for ; Fri, 20 May 2022 11:33:10 +0200 (CEST) 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 E748521B4D; Fri, 20 May 2022 09:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1653039189; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xa/8jmrAqSx8K+zkksNYj44N3fkSUKyKcbiRrmzOavE=; b=GQUvYK3Qpg9WRzMQBjeuSD2BBZH/cmSpFAwPY1byTqwG90CAKxtRG/n57TZ8P97tSUIiKN KMg65GgwsfBGn384221n1xg1FAcn7DwHOWyBdW95HQ4w0zR7f5AAygcjcOK+H/JlTp8Qf3 nooRkOqWZUn48ViLZybIEHFVGscZovg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1653039189; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xa/8jmrAqSx8K+zkksNYj44N3fkSUKyKcbiRrmzOavE=; b=9Pfc5N3OZLy0acf+ZRQY0rqYRKEzNx3qJqCAg3m9uDSs7QvH5UnkdJuRuNycRk00xx7Xe4 yOLqm+piYvG+xyBA== 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 D1CE213AF4; Fri, 20 May 2022 09:33:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qegpMlVgh2KmcQAAMHmgww (envelope-from ); Fri, 20 May 2022 09:33:09 +0000 Message-ID: Date: Fri, 20 May 2022 11:33:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Cyril Hrubis References: <20220519121056.1181-1-mdoucha@suse.cz> From: Martin Doucha In-Reply-To: X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH 1/2] pty07: Resize console to the same size as before 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: , Cc: 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" On 20. 05. 22 11:26, Cyril Hrubis wrote: > I guess that the actual size we pass to VT_RESIZEX does not matter when > we attempt to trigger the race. I've tested this on SLE-15SP1 GM kernel which is older than the fix and this version still triggers the crash. Technically we could even pass all zeroes which would simply leave all console parameters unchanged and it'd still work because the ioctl implementation sets a flag in the freed memory anyway. But that behavior might change in the future so I've decided to just set the rows and cols to the values queried from kernel. -- Martin Doucha mdoucha@suse.cz QA Engineer for Software Maintenance SUSE LINUX, s.r.o. CORSO IIa Krizikova 148/34 186 00 Prague 8 Czech Republic -- Mailing list info: https://lists.linux.it/listinfo/ltp