Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5631225imu; Tue, 13 Nov 2018 09:21:28 -0800 (PST) X-Google-Smtp-Source: AJdET5fQ+hX7aDXI8fwd3Fx2u6FUNFrTUYJP4iRmyqVywLvYXcorckdVG4yVQ4sIABLBIUzaXPm3 X-Received: by 2002:a62:8915:: with SMTP id v21-v6mr6091658pfd.137.1542129688476; Tue, 13 Nov 2018 09:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542129688; cv=none; d=google.com; s=arc-20160816; b=bCrhw1m4NDaOaFWugSwtEN2TAfvYOuibiz2UIEcaAXgEEtNn3ypeBvgRR88wNkeoVQ usi6LvoZW0e+GOMJf+e5UlhiW0A8KCf7Mj+y1XRup0YO6CaIOrrDfGsDvZZIZd8suIQJ hIXt5PXxdu17C3SvRUN3g6z3p+DMjAY1gQOycEw8wOVqVi9JLJPMble1fAtZAmwYnigP Y53Bk8sFP27trdIqqtreamlerfqWed8nyBWas2oUzOJ94RFuQUC7iyLZ2Q7tbF/zhuam lPb3kf3CMrWz+7fdfmGUxh0BcUQJNXuMRhAo85HAVg71Uan9Ovv3Qh7y+CfwhznOef0Z 2veA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=xoOtDUJhEZR23yxsFcrKiFZamjCs1ekULLaeeLqDvqk=; b=ZE1yLQ2udtmr0SWf0kWjyoAsK2yRGRXF0emNpcmlBzCg+e98HTUf3/A/YgdEqyoyrd AAMGfR2ljVskqo6DEGCxoIzZCBAA7vBl6bkWgtqUWNfJGLmFPsT6jHmXs/AaOxKD0yWM 0SAhjR0rn2KUvWcxADOSHgI6gj5SkK1S6AosU6GA7UiEHsL2PBGdpvLzzvttW4Klqcbl NiAupdAnJIjic+oSYCcWDbvr8IzlLc7Olm8N/vyRFH+OIilOXIk6RnacFc4svHvzr7pu eFMq4qaMKpUWTkO2B0ma5tRAWV3vL3pRzTysPY5zZSNCKdQ6aoozkY4tcTCqr/9j5jRo 4Tgg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si15513197pfb.4.2018.11.13.09.21.05; Tue, 13 Nov 2018 09:21:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731660AbeKNDTf (ORCPT + 99 others); Tue, 13 Nov 2018 22:19:35 -0500 Received: from mail-ua1-f66.google.com ([209.85.222.66]:43839 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730954AbeKNDTf (ORCPT ); Tue, 13 Nov 2018 22:19:35 -0500 Received: by mail-ua1-f66.google.com with SMTP id z11so4606350uaa.10 for ; Tue, 13 Nov 2018 09:20:33 -0800 (PST) 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=xoOtDUJhEZR23yxsFcrKiFZamjCs1ekULLaeeLqDvqk=; b=RgcxwwkOSKSgAKjG92tqLDGXuyIQiKHWqqSmHxEHkWeApPFWBboa7y+PDWBImsB9xa WaW1rrjzMn09JcSam0Ces8n44LG7FkBYF0W/W5hR165Z7MA0x8kclhSrHakXOa5BKWT8 bmgUiBMOVcmdDd9D7AO2spGHsehulO2Nm8A4gtmyygSjK+DaYBiYV75Ch2KKOPv8K0og y+XPl3vOjkLccfxJhnQv3TJ+QwYa5oWDdX7nnt1LePlrFuCK55tKqgOHI2zfbVaFltK7 If11BxeVQzBTJUSlLjbmzQmgM5vfNidxOX0FLm2jbmsy1bwPPcFtoQRi+VjAd+6AmgKM iCrw== X-Gm-Message-State: AGRZ1gK4YYhDIi8MztncSKXrZqUXKycKSj0z4NuFBoJ266NwXyxPChIq MwNX9bJkL9bPbqvWeQEb+3Qdq1KU3odhOELCxqQ= X-Received: by 2002:ab0:465:: with SMTP id 92mr2804802uav.28.1542129633048; Tue, 13 Nov 2018 09:20:33 -0800 (PST) MIME-Version: 1.0 References: <1542128132.12945.19.camel@gmx.us> In-Reply-To: <1542128132.12945.19.camel@gmx.us> From: Geert Uytterhoeven Date: Tue, 13 Nov 2018 18:20:20 +0100 Message-ID: Subject: Re: WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90 To: cai@gmx.us Cc: Linux Kernel Mailing List , Petr Mladek , Andy Shevchenko , "Tobin C. Harding" , Steven Rostedt , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 5:57 PM Qian Cai wrote: > Running the trinity fuzzer with a non-root user on an aarch64 server with the > latest mainline (rc2) generated this. Is it just a false alarm to ignore? > > [ 807.847370] precision 65525 too large > [ 807.847449] WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 > set_precision+0x84/0x90 > [ 807.860161] Modules linked in: cast6_generic cast_common lrw bridge 8021q > garp mrp stp llc dlci tcp_diag inet_diag af_key pptp gre l2tp_ppp l2tp_netlink > l2tp_core ip6_udp_tunnel udp_tunnel pppoe pppox ppp_generic slhc crypto_user > ib_core nfnetlink scsi_transport_iscsi atm sctp vfat fat ghash_ce sha2_ce > sha256_arm64 sha1_ce ses enclosure ipmi_ssif sg ipmi_si ipmi_devintf sbsa_gwdt > ipmi_msghandler sch_fq_codel xfs libcrc32c marvell mpt3sas mlx5_core raid_class > hibmc_drm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm > ixgbe hisi_sas_v2_hw igb hisi_sas_main libsas hns_dsaf mlxfw devlink > hns_enet_drv mdio i2c_designware_platform i2c_algo_bit i2c_designware_core > ehci_platform scsi_transport_sas hns_mdio hnae dm_mirror dm_region_hash dm_log > dm_mod > [ 807.927838] CPU: 26 PID: 64391 Comm: trinity-c90 Kdump: loaded Tainted: > G W 4.20.0-rc2+ #16 > [ 807.937494] Hardware name: Huawei TaiShan 2280 /BC11SPCD, BIOS 1.50 > 06/01/2018 > [ 807.944718] pstate: 60000005 (nZCv daif -PAN -UAO) > [ 807.949515] pc : set_precision+0x84/0x90 > [ 807.953439] lr : set_precision+0x84/0x90 > [ 807.957362] sp : ffff801e6430f6b0 > [ 807.960677] x29: ffff801e6430f6b0 x28: ffff801e6430fb10 > [ 807.965992] x27: 0000000000000003 x26: 00000000ffffffd8 > [ 807.971307] x25: ffff801e6430fba0 x24: ffff801e6430fb48 > [ 807.976622] x23: ffff2000093ddfa0 x22: ffff801e6430f770 > [ 807.981937] x21: ffff2000090eb4a6 x20: ffff801e6430f770 > [ 807.987252] x19: 000000000000fff5 x18: 0000000000000000 > [ 807.992569] x17: 0000000000000000 x16: 0000000000000000 > [ 807.997884] x15: 0000000000000000 x14: 3878302031343220 > [ 808.003201] x13: 6265783020303939 x12: ffff04000172b49c > [ 808.008516] x11: 1fffe4000172b49b x10: ffff04000172b49b > [ 808.013832] x9 : 0000000000000000 x8 : 203532353536206e > [ 808.019148] x7 : 6f69736963657270 x6 : 0000000041b58ab3 > [ 808.024463] x5 : dfff200000000000 x4 : dfff200000000000 > [ 808.029779] x3 : dfff200000000000 x2 : 65a2459128144800 > [ 808.035093] x1 : 65a2459128144800 x0 : 0000000000000000 > [ 808.040408] Call trace: > [ 808.042861] set_precision+0x84/0x90 > [ 808.046440] vsnprintf+0x23c/0x858 > [ 808.049845] __request_module+0x1a0/0x8b8 > [ 808.053860] get_fs_type+0xb0/0x138 > [ 808.057351] do_mount+0x2c4/0x13c0 > [ 808.060756] ksys_mount+0xf4/0x110 Looks like someone is calling the mount syscall with a very long filesystemtype parameter. struct file_system_type *get_fs_type(const char *name) { struct file_system_type *fs; const char *dot = strchr(name, '.'); int len = dot ? dot - name : strlen(name); fs = __get_fs_type(name, len); if (!fs && (request_module("fs-%.*s", len, name) == 0)) { set_precision() complains about any prevision that doesn't fit in signed 16-bits. 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