Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5944952ybl; Tue, 10 Dec 2019 14:13:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwFqxsNY7goY19Q7UkZtKLUJx+H7N0CZycj7HdK4wO5AaXMKEqWhSiRFWC/W8f7X2hplHoH X-Received: by 2002:aca:dc45:: with SMTP id t66mr240286oig.39.1576015995155; Tue, 10 Dec 2019 14:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576015995; cv=none; d=google.com; s=arc-20160816; b=0L071Rtp+WQ27+9/T2Y8ZDp0IiAHSFDei2nfF1wEYkRJlU8HedDrqkW9NcUdLHRiHQ noEa4V44ham2mmZLcbmnz225W9LFFeVlA5NW4wv7ssZbLWcujkdksSgnynWVXWb6Fw3R wifNWpCQOeEcGp5DtO7DGUs7NEDl5Zv1mEfRCMS9BQJBHFbF2aprdUDebgBnhFkrXUwV N5xSF58kQEU85aFLt7T/rjyD0esuxGsNDMeP+Af8ojplUM+Mu/WQNgXYdkofnJQ1ULhU 8tOODVom6Iozg9gqyYPtLYy/SLviNJZzN7GCqHCeu8iOw7FMlrm/fGGRK290FD7J1T+w U5Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ovr8AOrCcVXk6ps0Yd3R+k9jarJnVZ/R6m24MU31Neg=; b=mn3cFh3INB/YEfzCkt1L8m95nP7F4Ax2vQBYc+SFP6tj0HaZfL6VZQ96zj4N0csCYM t1HhnsfBewu0/DM4bC/ySyAMQ++6AzwHj+q4wIqMyWp9IURsLaLxHnvli7tA9DNtQ9NP xu72h9YhngiJhGMOEJK0gLIvXRLn5/ShZ/tr6GliCWxaLcj55fYn77OQhAlbUXbEz5sT biLr+DPzlgN1NfoyDHiQhzZfjP5AAgCxEq7XQdbg8taIj+IqkbBa9f9CQOntP3tfN2Ns SFQ2hjVSBl7RcChVdDJCGtvMwZvPxtwOimwEEm8HiNgrgTFyBD5mmfK8zOyWodJkONKW v3Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Pqqc7OHL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si2854739otp.124.2019.12.10.14.13.02; Tue, 10 Dec 2019 14:13:15 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Pqqc7OHL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729207AbfLJWKW (ORCPT + 99 others); Tue, 10 Dec 2019 17:10:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:41114 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728605AbfLJWKT (ORCPT ); Tue, 10 Dec 2019 17:10:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576015818; h=from:from:reply-to:subject:subject: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=Ovr8AOrCcVXk6ps0Yd3R+k9jarJnVZ/R6m24MU31Neg=; b=Pqqc7OHLvlgJLovS9IHJmjbNTH8+nPSXzIN+/TMFoDTfU/i+1ZmaCDPGgS9eWkp4LLZxNA EmFsHRQKH8u0cBymH3EjS2eZQhvDmaSP5kxdAxqcpxiFy25fqeE+9BfYkoQFB5QlkApB4z GjjS7FgG6xWCUHD/+DuVRX5yU0zZWNE= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-156-m9VD7xjPMKGba5fsmBOSgg-1; Tue, 10 Dec 2019 17:10:14 -0500 Received: by mail-qv1-f72.google.com with SMTP id r8so7838589qvp.3 for ; Tue, 10 Dec 2019 14:10:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ovr8AOrCcVXk6ps0Yd3R+k9jarJnVZ/R6m24MU31Neg=; b=m822FFudWeJSaabCIZwLpddKn1E6Efi54WwgORrAYRGJAU+TksMmDxZ/DWA6LheClI dH6OUHHIs4HIlKI1LYZFmuBegmiLJAGMjZgKXwC3yVPSnxvufQMSaBtOtWfK56xsQXIG JtMS+jpoQElt3O2zIo8eKCTPdFTpmMW5T/HZnlQ4db9Ogvum4Cp5f39R9ZyRyp1IVPGs eGdIw/TqsFt5kKpvYkohuZH/kPXapry4oaDDufGilFVJvOKMPJTVAAOBd8MVm2gMocGU YcjidPjLqtrg8fnIKj2Kr65WfvSmKj/fQPI8U9qbW0455SAxW3ovRTRzaPSpKybSMwcS Fchw== X-Gm-Message-State: APjAAAW50W/b8zss0k3vTGRZ7IRU0+KsswTPiS7UlK+OgDNKVO3rG133 lIFUx3OJPgTUfjCeV8JPha1Gk6TchZhVOQX3FBEloq1E3soQPTRwlSvLsbrHAJ+r1w7wRd3eme2 6KYn5rrfXCY3M80BbQvK9Ci1r X-Received: by 2002:a37:51d4:: with SMTP id f203mr18706qkb.212.1576015814422; Tue, 10 Dec 2019 14:10:14 -0800 (PST) X-Received: by 2002:a37:51d4:: with SMTP id f203mr18680qkb.212.1576015814067; Tue, 10 Dec 2019 14:10:14 -0800 (PST) Received: from [192.168.1.157] (pool-96-235-39-235.pitbpa.fios.verizon.net. [96.235.39.235]) by smtp.gmail.com with ESMTPSA id z64sm60335qtc.4.2019.12.10.14.10.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Dec 2019 14:10:13 -0800 (PST) Subject: Re: Regression in squashfs mount option handling in v5.4 To: Jeremi Piotrowski , linux-kernel@vger.kernel.org, Al Viro , David Howells Cc: Randy Dunlap , Linux FS Devel , Linus Torvalds , Phillip Lougher References: <20191130181548.GA28459@gentoo-tp.home> <6af16095-eab0-9e99-6782-374705d545e4@infradead.org> <20191210185002.GA20850@gentoo-tp.home> From: Laura Abbott Message-ID: <2286b071-76ac-1659-5dba-6381ecb269c6@redhat.com> Date: Tue, 10 Dec 2019 17:10:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191210185002.GA20850@gentoo-tp.home> Content-Language: en-US X-MC-Unique: m9VD7xjPMKGba5fsmBOSgg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/19 1:50 PM, Jeremi Piotrowski wrote: > On Sat, Nov 30, 2019 at 10:56:47AM -0800, Randy Dunlap wrote: >> [adding Cc-s] >> >> On 11/30/19 10:15 AM, Jeremi Piotrowski wrote: >>> Hi, >>> >>> I'm working on an embedded project which uses 'rauc' as an updater. rauc mounts >>> a squashfs image using >>> >>> mount -t squashfs -o ro,loop,sizelimit=xxx squashfs.img /mnt >>> >>> On my system mount is busybox, and busybox does not know the sizelimit >>> parameter, so it simply passes it on to the mount syscall. The syscall >>> arguments end up being: >>> >>> mount("/dev/loop0", "dir", "squashfs", MS_RDONLY|MS_SILENT, "sizelimit=xxx") >>> >>> Until kernel 5.4 this worked, since 5.4 this returns EINVAL and dmesg contains >>> the line "squashfs: Unknown parameter 'sizelimit'". I believe this has to do >>> with the conversion of squashfs to the new mount api. >>> >>> This is an unfortunate regression, and it does not seem like this can be simply >>> reverted. What is the suggested course of action? >>> >>> Please cc me on replies, I'm not subscribed to the list. >>> >>> Thanks, >>> Jeremi >>> >> >> >> -- >> ~Randy >> Reported-by: Randy Dunlap > > Ping. This is preventing me from updating the kernel on my systems. > Fedora is hitting a similar issue https://bugzilla.redhat.com/show_bug.cgi?id=1781863 Dec 10 10:04:06 kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher Dec 10 10:04:06 kernel: squashfs: Unknown parameter 'errors' I don't think squashfs ever actually supported the errors parameter but it was just silently ignored. It turns out you could can pass whatever nonsense you want for parameters so I don't think we can reject parameters in the generic case diff --git a/fs/fs_context.c b/fs/fs_context.c index 138b5b4d621d..7ec20b1f8a53 100644 --- a/fs/fs_context.c +++ b/fs/fs_context.c @@ -160,8 +160,7 @@ int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) return 0; } - return invalf(fc, "%s: Unknown parameter '%s'", - fc->fs_type->name, param->key); + return 0; } EXPORT_SYMBOL(vfs_parse_fs_param);