Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1312197
| Path | csiph.com!news.mixmin.net!feeds.phibee-telecom.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Kirill A. Shutemov" <kirill@shutemov.name> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4] kernel: add kcov code coverage |
| Date | Tue, 19 Jan 2016 14:10:03 +0100 |
| Message-ID | <qSEcP-8kf-29@gated-at.bofh.it> (permalink) |
| References | <qSnF0-566-21@gated-at.bofh.it> <qSqWe-7iA-9@gated-at.bofh.it> <qSE37-7ZZ-1@gated-at.bofh.it> |
| X-Original-To | Dmitry Vyukov <dvyukov@google.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=OuBgHrjBvKc6sfuQSQKrWlNOb9Sv+McYiJwjoVq0Vr8=; b=0qSBEVDKO/lcgs0BNkEmHHMf6UYhAduOOX9UFkPqgSwgVw2MPADVoldtP67UwlyDss HFidcBJ3kfUz/a20sjy4/nZvOhWWV9XgGCPlaanZQNJntXVF36Tz4KxkvihPPdmeWFXr M1+pXaMChODeK6O5wwabFZEHkDPrn6rZbdhmIlsIWWsFVLuWCyQQhebp6wdFytihjDNB o1nUjHrNuJbENZSBAfpr04A5vmuOGmyXanhu7VfTJ5XL3h9g75FAUzwLS68eiF3K5C0k PEQWi26jp1sY7YDzykWl+ZGrTlTjthXCnCRjggIk5w6U5tnSrJ7DFPuVj5+s7RkgEZu1 34KQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=OuBgHrjBvKc6sfuQSQKrWlNOb9Sv+McYiJwjoVq0Vr8=; b=iig+SIBN4Rp0tlfEAOInTywsQY9g/L6OooPrwRUx9bHovjahz+M654Q2WOTfl9QT6h vJN1bkHRzFqIeTBUa7gUXD+OWWfqEI/lxco89Xij1I4Te5F5krchk+m2VfTtk0xXOkCU MQyjeviZ12jnqI41ReGvbaEJMW8g2X8XrxUyvT+vGwBJ1MYF2QscFJGZSzwUzCUcj8UG v+Pj4Oiz0BPLoKyjeDUvDZiMgHICpMaR1J3qe16phsi8mpPV049Blipmmk6gD+3Ae6WW FQLimf5bsDTCLGYW5eUsTUDnqVX5gCiwY7HfskYcOqlKbbpllpT7DUma6Bc4flV6U7Q2 aAXA== |
| X-Gm-Message-State | ALoCoQkzXYXiVKCNVVBuMDJxu4jjo8OaPQ4pkAuLGyakvzeQtC/OSAvxdGwAIeDJEaW96MvR5Ie7KTjzVTULyIaMUhAbXMQJXw== |
| X-Received | by 10.194.103.234 with SMTP id fz10mr30030526wjb.31.1453208745760; Tue, 19 Jan 2016 05:05:45 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23.1 (2014-03-12) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 22 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | syzkaller <syzkaller@googlegroups.com>, Vegard Nossum <vegard.nossum@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Tavis Ormandy <taviso@google.com>, Will Deacon <will.deacon@arm.com>, LKML <linux-kernel@vger.kernel.org>, Quentin Casasnovas <quentin.casasnovas@oracle.com>, Kostya Serebryany <kcc@google.com>, Eric Dumazet <edumazet@google.com>, Alexander Potapenko <glider@google.com>, Kees Cook <keescook@google.com>, Bjorn Helgaas <bhelgaas@google.com>, Sasha Levin <sasha.levin@oracle.com>, Andrew Morton <akpm@linux-foundation.org>, David Drysdale <drysdale@google.com>, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Andrey Ryabinin <ryabinin.a.a@gmail.com> |
| X-Original-Date | Tue, 19 Jan 2016 15:05:43 +0200 |
| X-Original-Message-ID | <20160119130543.GB20984@node.shutemov.name> |
| X-Original-References | <1453145117-92868-1-git-send-email-dvyukov@google.com> <20160118225550.GE14531@node.shutemov.name> <CACT4Y+ZUKJOmATAASxM1qnbn=_0M9TAtTQYO0ecMtursLYvdww@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1312197 |
Show key headers only | View raw
On Tue, Jan 19, 2016 at 01:55:43PM +0100, Dmitry Vyukov wrote:
> >> +static int __init kcov_init(void)
> >> +{
> >> + if (!debugfs_create_file("kcov", 0666, NULL, NULL, &kcov_fops)) {
> >
> > Why 0666? May be 0600?.
>
> The idea is that it can be useful to fuzz-test under a normal user as well.
> This file is also guarded by debugfs mount permissions. Usually it is mounted
> as 0700, so normal users can't get access to it.
> However if one wants to fuzz-test under a normal user, he could mount
> debugfs as 0777 and get access to this file.
>
> I am not very strong about this, though. If you say, I will change it to 0600.
> I open this file as root at the moment. And we can change it back
> if/when we better understand a potential use case.
I think it's safer to make it 0600. It's up to system administrator to
change permissions, if he wants give this capability to mortals.
--
Kirill A. Shutemov
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4] kernel: add kcov code coverage Dmitry Vyukov <dvyukov@google.com> - 2016-01-18 20:30 +0100
Re: [PATCH v4] kernel: add kcov code coverage "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-01-19 00:00 +0100
Re: [PATCH v4] kernel: add kcov code coverage Dmitry Vyukov <dvyukov@google.com> - 2016-01-19 14:00 +0100
Re: [PATCH v4] kernel: add kcov code coverage "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-01-19 14:10 +0100
Re: [PATCH v4] kernel: add kcov code coverage Dmitry Vyukov <dvyukov@google.com> - 2016-01-19 15:10 +0100
csiph-web