Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1650956pxb; Mon, 23 Aug 2021 00:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgR5fUgcBcf/imYJCFT+cAttqqFf5QwwSzE//pPc9Jq5cW69QyPpNF1W6sjUEuVffgQvBb X-Received: by 2002:a92:cc86:: with SMTP id x6mr23252033ilo.119.1629705485329; Mon, 23 Aug 2021 00:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629705485; cv=none; d=google.com; s=arc-20160816; b=VDyCMAI+nEsrpp5YF94Y3NshM66w/XStnXFDiKHiDEeNQK6X4JVD8gtmFx0uwZFb13 lZxSTuOfN1Ce3dS25BXMcpGvayRphpsd+8/+nLBsFoRPMiNq5wHytpvaVoFLhixnk0k0 ixlUBOa65KcJVMOMT5Z9sGkQlGMy/PNdbb/rIPKLOZVhLO1bf2s0Ox3aQfv9D3gdmfAT yhk3vPDqt+jHvtXV80JQPIbNWM15wDoLn2x8rEcEjMrLodOjiRIjYb5e4uN+9bAm3mPp ru2IoG1QqoeWWzayZGAEp0DzAR4vUooFTcc0VPY+Ko2i2vxCMG1PhAMSqt1JYduhudcD R5wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=bO20WydNuUjicbzTyFZXQBF0DVpWSwKIJdDjl+VnxdI=; b=NhOpMfHdn9OA+mWh77hI0LuzJ4FXyKyUVT/EQBsvxQ7RkrUNGz1XPF/e1tvVYhUPr7 1S5r0aF+JXv8mblukeIgwigNSma+mq/brBgUPbTOu2QJFLudyzjC85Lkpwt9PVUwajfO kYRrID4dnyC4n9XOYPTidlX1OBJTaQPOfThoeMBdTEoX6IkcFrh9XjTLyg8TG3JdCoJX vZNKxiVqNZvaHcqfClZPbPER0Yr80pVP5KLdlo9jYZzuKY/nCyw9Gsj3vLIIIuu+DfCy 3xMvovI6k28PRGL4yNyw/Tr76yepAOlUK86VqJME5hFTC1QFksgnEfxlnmQPLGrtiN7u 8XxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h25si13394629ioj.39.2021.08.23.00.57.54; Mon, 23 Aug 2021 00:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235323AbhHWH4w (ORCPT + 99 others); Mon, 23 Aug 2021 03:56:52 -0400 Received: from mail-vs1-f41.google.com ([209.85.217.41]:40755 "EHLO mail-vs1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235263AbhHWH4v (ORCPT ); Mon, 23 Aug 2021 03:56:51 -0400 Received: by mail-vs1-f41.google.com with SMTP id h29so8184113vsr.7; Mon, 23 Aug 2021 00:56:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bO20WydNuUjicbzTyFZXQBF0DVpWSwKIJdDjl+VnxdI=; b=FlqhUFLsgf820Fnm207VUxAruP6Em7I3U7iCjyNkX30DAXODEZslEYO17X9auGNjdC Owoy9ZwEsHTO5rttHTyOxiVtxsBgGo6psXXpruKWe6nwWSY9tVW9FngJR3n2RQ9sScnW BX3TMoHG6EY3ulm7cOCAS4I4h+AHM3ANZe2cQUDTRO9p8jsD6EqfICM6UQ5K7wwnE0c/ N+DRlR041Drx7DRzTPkggY3KHH1bACK5wTDyPHPDCB+sV/uTLbRo6sp0cJcnm+RO08RU D9XY25TOhTIo66GuPB176tyLayWj5tdUnFO8E0d6epENTUPg6pIsIL9i11pGdfb4JJhl HIqQ== X-Gm-Message-State: AOAM5310y4BUrX/1GL8G+gtSmKCz+eQQeI5piT288VDOPRSIC1TQkXRX fE4YjnNfLVS1RUSsb+IZAY9SF4NdOl/OHboWbw8= X-Received: by 2002:a05:6102:3e92:: with SMTP id m18mr22891652vsv.53.1629705368522; Mon, 23 Aug 2021 00:56:08 -0700 (PDT) MIME-Version: 1.0 References: <20210812084348.6521-1-david@redhat.com> <87o8a2d0wf.fsf@disp2133> <60db2e61-6b00-44fa-b718-e4361fcc238c@www.fastmail.com> <87lf56bllc.fsf@disp2133> <87eeay8pqx.fsf@disp2133> <5b0d7c1e73ca43ef9ce6665fec6c4d7e@AcuMS.aculab.com> <87h7ft2j68.fsf@disp2133> <87k0kkxbjn.fsf_-_@disp2133> <0c2af732e4e9f74c9d20b09fc4b6cbae40351085.camel@kernel.org> <639d90212662cf5cdf80c71bbfec95907c70114a.camel@kernel.org> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 23 Aug 2021 09:55:57 +0200 Message-ID: Subject: Re: Removing Mandatory Locks To: David Laight Cc: Linus Torvalds , Jeff Layton , "Eric W. Biederman" , Matthew Wilcox , Andy Lutomirski , David Hildenbrand , Linux Kernel Mailing List , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Al Viro , Alexey Dobriyan , Steven Rostedt , "Peter Zijlstra (Intel)" , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Kees Cook , Greg Ungerer , Mike Rapoport , Vlastimil Babka , Vincenzo Frascino , Chinwen Chang , Michel Lespinasse , Catalin Marinas , Huang Ying , Jann Horn , Feng Tang , Kevin Brodsky , Michael Ellerman , Shawn Anastasio , Steven Price , Nicholas Piggin , Christian Brauner , Jens Axboe , Gabriel Krisman Bertazi , Peter Xu , Suren Baghdasaryan , Shakeel Butt , Marco Elver , Daniel Jordan , Nicolas Viennot , Thomas Cedeno , Collin Fijalkovich , Michal Hocko , Miklos Szeredi , Chengguang Xu , =?UTF-8?Q?Christian_K=C3=B6nig?= , "linux-unionfs@vger.kernel.org" , Linux API , "the arch/x86 maintainers" , "" , Linux-MM , Florian Weimer , Michael Kerrisk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 10:30 AM David Laight wrote: > From: Linus Torvalds > > Sent: 19 August 2021 23:33 > > > > On Thu, Aug 19, 2021 at 2:43 PM Jeff Layton wrote: > > > > > > What sort of big, ugly warning did you have in mind? > > > > I originally thought WARN_ON_ONCE() just to get the distro automatic > > error handling involved, but it would probably be a big problem for > > the people who end up having panic-on-warn or something. > > Even panic-on-oops is a PITA. > Took us weeks to realise that a customer system that was randomly > rebooting was 'just' having a boring NULL pointer access. > > > So probably just a "make it a big box" thing that stands out, kind of > > what lockdep etc does with > > > > pr_warn("======...====\n"); > > > > around the messages.. Do we really need more of these? They take time to print (especially on serial consoles) and increase kernel size. What's wrong with using an appropriate KERN_*, and letting userspace make sure the admin/user will see the message (see below)? > > > > I don't know if distros have some pattern we could use that would end > > up being something that gets reported to the user? > > Will users even see it? > A lot of recent distro installs try very hard to hide all the kernel > messages. Exactly. E.g. Ubuntu doesn't show any kernel output during normal operation. On Fri, Aug 20, 2021 at 6:12 PM Linus Torvalds wrote: > On Fri, Aug 20, 2021 at 6:43 AM Steven Rostedt wrote: > > On Thu, 19 Aug 2021 15:32:31 -0700 > > Linus Torvalds wrote: > > > > > > I don't know if distros have some pattern we could use that would end > > > up being something that gets reported to the user? > So what would be more interesting is if there's some distro support > for showing kernel notifications.. > > I see new notifications for calendar events, for devices that got > mounted, for a lot of things - so I'm really wondering if somebody > already perhaps had something for specially formatted kernel > messages.. Isn't that what the old syslog and the new systemd are supposed to handle in userspace? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds