Bug#756898: linux: please protect the kernel against stack attacks

2014-08-03 Thread Laurent Bonnaud
Package: linux
Version: 3.14.13-2
Severity: wishlist


Hi,

the Linux kernel in Debian is currently not protected against stack attacks:

$ grep STACKPROTECTOR /boot/config-3.14-2-amd64
CONFIG_HAVE_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_CC_STACKPROTECTOR_NONE=y
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

Here is a good reference on the topic:

  https://lkml.org/lkml/2013/12/20/180

So could you please activate one of those options ?

CONFIG_CC_STACKPROTECTOR_REGULAR can be activated now with gcc 4.8.
CONFIG_CC_STACKPROTECTOR_STRONG can be activated once gcc 4.9 is used
the compile the kernel.

-- 
Laurent.


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53de03fd.8040...@laposte.net



Bug#756900: nfs-utils: new upstream versions available

2014-08-03 Thread Laurent Bonnaud
Package: nfs-utils
Version: 1:1.2.8-7
Severity: wishlist


Hi,

a lot of bugs have been fixed upstream, see:

https://www.kernel.org/pub/linux/utils/nfs-utils/1.2.9/1.2.9-Changelog
https://www.kernel.org/pub/linux/utils/nfs-utils/1.3.0/1.3.0-Changelog

So could you please update the nfs-utils package ?


-- 
Laurent.


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53de0575.5040...@laposte.net



Bug#756904: linux: please enable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2014-08-03 Thread Laurent Bonnaud
Package: linux
Version: 3.14.13-2
Severity: wishlist


Hi,

the Linux kernel in Debian does currently not use this option:

$ grep CONFIG_DEBUG_STRICT_USER_COPY_CHECKS /boot/config-3.14-*
/boot/config-3.14-2-686-pae:# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is
not set
/boot/config-3.14-2-amd64:# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set

It is only a compile time check, so it should not have any runtime
impact.  So could you please activate this option ?


-- 
Laurent.


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53de197f.8060...@laposte.net



Bug#756906: nfs-utils: please use more hardening features

2014-08-03 Thread Laurent Bonnaud
Package: nfs-common
Version: 1:1.2.8-7
Severity: wishlist


Hi,

according to the checksec.sh script, binaries provided by nfs-utils 
are not compiled with all available hardening features:

RELRO   STACK CANARY  NXPIE RPATH  
RUNPATH  FILE
No RELRONo canary found   NX enabledNo PIE  No RPATH   No 
RUNPATH   /sbin/rpc.statd
Partial RELRO   No canary found   NX enabledNo PIE  No RPATH   No 
RUNPATH   /usr/sbin/rpc.gssd
No RELRONo canary found   NX enabledNo PIE  No RPATH   No 
RUNPATH   /usr/sbin/rpc.idmapd
Partial RELRO   No canary found   NX enabledNo PIE  No RPATH   No 
RUNPATH   /usr/sbin/rpc.svcgssd

Since those daemons are potentially exposed to untrusted network traffic, 
could you please compile the package with more hardening features ?


-- 
Laurent.


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53de1fb4.2050...@laposte.net



Bug#756912: linux-image-3.14-2-amd64: kernel oops in the radeon driver using a RV730 XT [Radeon HD 4670] [1002:9490]

2014-08-03 Thread Justus Winter
Package: src:linux
Version: 3.14.13-2
Severity: important

Dear Maintainer,

I am getting kernel oopses with the 3.14 series. Using 3.2 was ok,
modulo some major visual glitches in certain applications (e.g. gdm3)
that were accompanied by messages in the kernel log saying something
about the command stream being invalid.

Thanks,
Justus

-- Package-specific info:
** Version:
Linux version 3.14-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 
(Debian 4.8.3-5) ) #1 SMP Debian 3.14.13-2 (2014-07-24)

** Command line:
BOOT_IMAGE=/vmlinuz-3.14-2-amd64 root=/dev/mapper/europa-root ro

** Tainted: D (128)
 * Kernel has oopsed before.

** Kernel log:
[4.595453] [TTM] Initializing DMA pool allocator
[4.595466] [drm] radeon: 512M of VRAM memory ready
[4.595467] [drm] radeon: 1024M of GTT memory ready.
[4.595477] [drm] Loading RV730 Microcode
[4.595505] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_pfp.bin
[4.595515] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_me.bin
[4.595522] radeon :01:00.0: firmware: direct-loading firmware 
radeon/R700_rlc.bin
[4.597022] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_smc.bin
[4.597048] [drm] Internal thermal controller with fan control
[4.598811] [drm] radeon: dpm initialized
[4.599863] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV710_uvd.bin
[4.599891] [drm] GART: num cpu pages 262144, num gpu pages 262144
[4.600552] [drm] enabling PCIE gen 2 link speeds, disable with 
radeon.pcie_gen2=0
[4.648511] media: Linux media interface: v0.10
[4.650237] Linux video capture interface: v2.00
[4.652481] gspca_main: v2.14.0 registered
[4.653284] gspca_main: gspca_zc3xx-2.14.0 probing 046d:08d7
[4.658451] AVX version of gcm_enc/dec engaged.
[4.663985] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[4.721702] alg: No test for crc32 (crc32-pclmul)
[5.162533] intel_rapl: domain uncore energy ctr 0:0 not working, skip
[5.296553] BTRFS: device fsid 13803ce7-41a4-4749-908f-7106a8955cb3 devid 2 
transid 546052 /dev/dm-0
[5.337583] EXT4-fs (sda1): mounting ext2 file system using the ext4 
subsystem
[5.343842] BTRFS: device fsid 13803ce7-41a4-4749-908f-7106a8955cb3 devid 2 
transid 546052 /dev/dm-0
[5.347420] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[5.354275] BTRFS: device fsid 13803ce7-41a4-4749-908f-7106a8955cb3 devid 2 
transid 546052 /dev/dm-0
[5.497685] [drm] PCIE GART of 1024M enabled (table at 0x0025D000).
[5.497720] divide error:  [#1] SMP 
[5.497917] Modules linked in: ext4 crc16 mbcache jbd2 x86_pkg_temp_thermal 
intel_powerclamp intel_rapl acpi_cpufreq(-) coretemp kvm_intel kvm crc32_pclmul 
crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul 
glue_helper ablk_helper cryptd gspca_zc3xx(+) gspca_main videodev psmouse media 
serio_raw radeon(+) evdev joydev ttm drm_kms_helper snd_hda_codec_realtek drm 
snd_hda_codec_generic i2c_algo_bit snd_hda_codec_hdmi floppy(+) snd_hda_intel 
raid1 snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss tpm_tis snd_pcm tpm 
processor thermal_sys snd_timer button i2c_i801 snd i2c_core mei_me lpc_ich 
soundcore mei mfd_core shpchp fuse md_mod ecryptfs parport_pc ppdev lp parport 
autofs4 crc32c btrfs xor raid6_pq dm_mod hid_generic hid_microsoft usbhid hid 
sg sd_mod crc_t10dif sr_mod crct10dif_generic cdrom crct10dif_pclmul 
crct10dif_common ahci xhci_hcd libahci libata ehci_pci scsi_mod ehci_hcd r8169 
mii usbcore usb_common
[5.497926] CPU: 2 PID: 308 Comm: systemd-udevd Not tainted 3.14-2-amd64 #1 
Debian 3.14.13-2
[5.497927] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./P67 
Pro3, BIOS P1.80 02/15/2011
[5.497929] task: 88042bb2a9e0 ti: 88042c8d task.ti: 
88042c8d
[5.497971] RIP: 0010:[a04c0e2e]  [a04c0e2e] 
r6xx_remap_render_backend+0x5e/0xe0 [radeon]
[5.497972] RSP: 0018:88042c8d1ad8  EFLAGS: 00010246
[5.497973] RAX: 0004 RBX: 8000 RCX: 0002
[5.497974] RDX:  RSI:  RDI: 00ff
[5.497975] RBP: 00ff R08: 00ff R09: 0337
[5.497976] R10:  R11: 88042c8d1886 R12: 0004
[5.497977] R13:  R14:  R15: 8800ba6d4000
[5.497979] FS:  7fbce67d1880() GS:88043f50() 
knlGS:
[5.497980] CS:  0010 DS:  ES:  CR0: 80050033
[5.497981] CR2: 7f7c1fc0d178 CR3: 00042c836000 CR4: 000407e0
[5.497982] Stack:
[5.497985]  0008 8800ba6d4000  

[5.497987]  0002 0004 a05902c0 
a04c6df5
[5.497989]    8800ba6d4000 

Bug#756925: linux-image-3.14-2-amd64: RV730 XT [Radeon HD 4670] HDMI output frozens X Windows when turning on proyector

2014-08-03 Thread David
Package: src:linux
Version: 3.14.13-2
Severity: important

Dear Maintainer,

After upgrading from linux-image-3.12 I have lost HDMI connection to my video
projector. Now, when I turn on projector with X Windows running, system is
frozen and I must reboot.

If I don't turn on projector, system works OK.

I don't know reasoon for such behaviour. Sorry for little info.

-- 
David

-- Package-specific info:
** Version:
Linux version 3.14-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 
(Debian 4.8.3-5) ) #1 SMP Debian 3.14.13-2 (2014-07-24)

** Command line:
BOOT_IMAGE=/vmlinuz-3.14-2-amd64 root=UUID=aaa9c6c6-ceb8-42a9-a56a-4832f6e29019 
ro quiet

** Not tainted

** Kernel log:
[7.063443] [drm] register mmio size: 65536
[7.063473] ATOM BIOS: RV730XT
[7.063511] radeon :01:00.0: VRAM: 512M 0x - 
0x1FFF (512M used)
[7.063512] radeon :01:00.0: GTT: 1024M 0x2000 - 
0x5FFF
[7.063513] [drm] Detected VRAM RAM=512M, BAR=256M
[7.063514] [drm] RAM width 128bits DDR
[7.063593] [TTM] Zone  kernel: Available graphics memory: 2027260 kiB
[7.063597] [TTM] Initializing pool allocator
[7.063606] [TTM] Initializing DMA pool allocator
[7.063632] [drm] radeon: 512M of VRAM memory ready
[7.063635] [drm] radeon: 1024M of GTT memory ready.
[7.063656] [drm] Loading RV730 Microcode
[7.107809] input: HDA ATI HDMI HDMI/DP,pcm=3 as 
/devices/pci:00/:00:03.0/:01:00.1/sound/card0/input6
[7.216850] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_pfp.bin
[7.229593] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_me.bin
[7.237243] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[7.245364] radeon :01:00.0: firmware: direct-loading firmware 
radeon/R700_rlc.bin
[7.245981] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV730_smc.bin
[7.245990] [drm] Internal thermal controller with fan control
[7.250716] [drm] radeon: dpm initialized
[7.259698] radeon :01:00.0: firmware: direct-loading firmware 
radeon/RV710_uvd.bin
[7.259743] [drm] GART: num cpu pages 262144, num gpu pages 262144
[7.262311] [drm] enabling PCIE gen 2 link speeds, disable with 
radeon.pcie_gen2=0
[7.273621] [drm] PCIE GART of 1024M enabled (table at 0x0025D000).
[7.273680] radeon :01:00.0: WB enabled
[7.273682] radeon :01:00.0: fence driver on ring 0 use gpu addr 
0x2c00 and cpu addr 0x8800d8e4cc00
[7.273683] radeon :01:00.0: fence driver on ring 3 use gpu addr 
0x2c0c and cpu addr 0x8800d8e4cc0c
[7.274558] radeon :01:00.0: fence driver on ring 5 use gpu addr 
0x0005c598 and cpu addr 0xc9000481c598
[7.274559] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[7.274560] [drm] Driver supports precise vblank timestamp query.
[7.274577] radeon :01:00.0: irq 53 for MSI/MSI-X
[7.274586] radeon :01:00.0: radeon: using MSI.
[7.274610] [drm] radeon: irq initialized.
[7.321092] [drm] ring test on 0 succeeded in 1 usecs
[7.321150] [drm] ring test on 3 succeeded in 1 usecs
[7.505966] [drm] ring test on 5 succeeded in 1 usecs
[7.505970] [drm] UVD initialized successfully.
[7.506219] [drm] ib test on ring 0 succeeded in 0 usecs
[7.506238] [drm] ib test on ring 3 succeeded in 0 usecs
[7.655740] [drm] ib test on ring 5 succeeded
[7.656010] [drm] Radeon Display Connectors
[7.656012] [drm] Connector 0:
[7.656012] [drm]   VGA-1
[7.656014] [drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 
0x7e2c
[7.656015] [drm]   Encoders:
[7.656015] [drm] CRT2: INTERNAL_KLDSCP_DAC2
[7.656016] [drm] Connector 1:
[7.656017] [drm]   HDMI-A-1
[7.656018] [drm]   HPD2
[7.656019] [drm]   DDC: 0x7f10 0x7f10 0x7f14 0x7f14 0x7f18 0x7f18 0x7f1c 
0x7f1c
[7.656020] [drm]   Encoders:
[7.656020] [drm] DFP2: INTERNAL_UNIPHY1
[7.656021] [drm] Connector 2:
[7.656022] [drm]   DVI-I-1
[7.656023] [drm]   HPD1
[7.656024] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 
0x7e4c
[7.656025] [drm]   Encoders:
[7.656025] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[7.656026] [drm] DFP1: INTERNAL_UNIPHY
[7.668541] Adding 1846268k swap on /dev/sda3.  Priority:-1 extents:1 
across:1846268k 
[7.704439] [drm] fb mappable at 0xE045E000
[7.704441] [drm] vram apper at 0xE000
[7.704442] [drm] size 8294400
[7.704443] [drm] fb depth is 24
[7.70] [drm]pitch is 7680
[7.704503] fbcon: radeondrmfb (fb0) is primary device
[7.709948] Console: switching to colour frame buffer device 240x67
[7.714089] radeon :01:00.0: fb0: radeondrmfb frame buffer device
[7.714091] radeon :01:00.0: registered panic notifier
[7.738724] [drm] Initialized radeon 2.37.0 20080528 for :01:00.0 on 
minor 0
[

Processed: Re: Bug#756904: linux: please enable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2014-08-03 Thread Debian Bug Tracking System
Processing control commands:

 tag -1 moreinfo
Bug #756904 [linux] linux: please enable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
Added tag(s) moreinfo.

-- 
756904: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756904
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b756904.140708574112516.transcr...@bugs.debian.org



Bug#756904: linux: please enable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2014-08-03 Thread Ben Hutchings
Control: tag -1 moreinfo

On Sun, 2014-08-03 at 13:14 +0200, Laurent Bonnaud wrote:
 Package: linux
 Version: 3.14.13-2
 Severity: wishlist
 
 
 Hi,
 
 the Linux kernel in Debian does currently not use this option:
 
 $ grep CONFIG_DEBUG_STRICT_USER_COPY_CHECKS /boot/config-3.14-*
 /boot/config-3.14-2-686-pae:# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is
 not set
 /boot/config-3.14-2-amd64:# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set
 
 It is only a compile time check, so it should not have any runtime
 impact.  So could you please activate this option ?

I seem to remember that this introduces spurious warnings.  Has that
been fixed?

Ben.

-- 
Ben Hutchings
Kids!  Bringing about Armageddon can be dangerous.  Do not attempt it in
your own home. - Terry Pratchett and Neil Gaiman, `Good Omens'


signature.asc
Description: This is a digitally signed message part


Processed: Re: Bug#756898: linux: please protect the kernel against stack attacks

2014-08-03 Thread Debian Bug Tracking System
Processing control commands:

 severity -1 important
Bug #756898 [linux] linux: please protect the kernel against stack attacks
Severity set to 'important' from 'wishlist'
 tag -1 confirmed
Bug #756898 [linux] linux: please protect the kernel against stack attacks
Added tag(s) confirmed.

-- 
756898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756898
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b756898.140709831818897.transcr...@bugs.debian.org



Bug#756898: linux: please protect the kernel against stack attacks

2014-08-03 Thread Ben Hutchings
Control: severity -1 important
Control: tag -1 confirmed

On Sun, 2014-08-03 at 11:42 +0200, Laurent Bonnaud wrote:
 Package: linux
 Version: 3.14.13-2
 Severity: wishlist
 
 
 Hi,
 
 the Linux kernel in Debian is currently not protected against stack attacks:
 
 $ grep STACKPROTECTOR /boot/config-3.14-2-amd64
 CONFIG_HAVE_CC_STACKPROTECTOR=y
 # CONFIG_CC_STACKPROTECTOR is not set
 CONFIG_CC_STACKPROTECTOR_NONE=y
 # CONFIG_CC_STACKPROTECTOR_REGULAR is not set
 # CONFIG_CC_STACKPROTECTOR_STRONG is not set
 
 Here is a good reference on the topic:
 
   https://lkml.org/lkml/2013/12/20/180
 
 So could you please activate one of those options ?
 
 CONFIG_CC_STACKPROTECTOR_REGULAR can be activated now with gcc 4.8.
 CONFIG_CC_STACKPROTECTOR_STRONG can be activated once gcc 4.9 is used
 the compile the kernel.

This is a regression in 3.14 - we try to enable the old option
(CONFIG_CC_STACKPROTECTOR) but it can no longer be set directly.

Ben.

-- 
Ben Hutchings
Kids!  Bringing about Armageddon can be dangerous.  Do not attempt it in
your own home. - Terry Pratchett and Neil Gaiman, `Good Omens'


signature.asc
Description: This is a digitally signed message part


Bug#752881: Stack Trace

2014-08-03 Thread Andrew Worsley
After much stuffing around I managed to get a stack trace related to
the change near the problem:


Aug  4 06:20:13 azza kernel: [   12.680555] end_request: I/O error,
dev sr1, sector 0
Aug  4 06:20:13 azza kernel: [   12.685541] sr 6:0:0:0: [sr1]
Unhandled sense code
Aug  4 06:20:13 azza kernel: [   12.686984] sr 6:0:0:0: [sr1]  Result:
hostbyte=DID_OK driverbyte=DRIVER_SENSE
Aug  4 06:20:13 azza kernel: [   12.688417] sr 6:0:0:0: [sr1]  Sense
Key : Blank Check [current]
Aug  4 06:20:13 azza kernel: [   12.689842] sr 6:0:0:0: [sr1]  Add.
Sense: No additional sense information
Aug  4 06:20:13 azza kernel: [   12.691269] sr 6:0:0:0: [sr1] CDB:
Read(10): 28 00 00 00 00 00 00 00 01 00
Aug  4 06:20:13 azza kernel: [   12.692729] end_request: I/O error,
dev sr1, sector 0
Aug  4 06:20:13 azza kernel: [   13.014699] EXT3-fs (md10): using
internal journal
Aug  4 06:20:13 azza kernel: [   13.140807] dump_bug_752881() -
disk_max_parts(disk)=256, (disk-flags  GENHD_FL_NO_PART_SCAN)=0x200
Aug  4 06:20:13 azza kernel: [   13.142307] Pid: 1123, comm: modprobe
Not tainted 3.2.0-amw-fix3+ #1
Aug  4 06:20:13 azza kernel: [   13.143797] Call Trace:
Aug  4 06:20:13 azza kernel: [   13.145303]  [8119abce] ?
dump_bug_752881+0x4e/0x6a
Aug  4 06:20:13 azza kernel: [   13.146771]  [8119ac85] ?
register_disk+0x9b/0x133
Aug  4 06:20:13 azza kernel: [   13.148239]  [8119995b] ?
blk_register_region+0x22/0x27
Aug  4 06:20:13 azza kernel: [   13.149700]  [8119add2] ?
add_disk+0xb5/0x27f
Aug  4 06:20:13 azza kernel: [   13.151148]  [a03af843] ?
loop_add+0x1c9/0x1f5 [loop]
Aug  4 06:20:13 azza kernel: [   13.152593]  [81039613] ?
should_resched+0x5/0x23
Aug  4 06:20:13 azza kernel: [   13.154028]  [a03b6101] ?
loop_init+0x101/0x1000 [loop]
Aug  4 06:20:13 azza kernel: [   13.155472]  [a03b6000] ?
0xa03b5fff
Aug  4 06:20:13 azza kernel: [   13.156907]  [81002085] ?
do_one_initcall+0x75/0x12c
Aug  4 06:20:13 azza kernel: [   13.158350]  [a03b6000] ?
0xa03b5fff
Aug  4 06:20:13 azza kernel: [   13.159769]  [81073b04] ?
sys_init_module+0x109/0x25b
Aug  4 06:20:13 azza kernel: [   13.161185]  [813464d2] ?
system_call_fastpath+0x16/0x1b
Aug  4 06:20:13 azza kernel: [   13.162810] dump_bug_752881() -
disk_max_parts(disk)=256, (disk-flags  GENHD_FL_NO_PART_SCAN)=0x200
Aug  4 06:20:13 azza kernel: [   13.164301] Pid: 1123, comm: modprobe
Not tainted 3.2.0-amw-fix3+ #1
Aug

This is the patch and it was run with the fix disabled and stack
tracing enabled (
diff --git a/block/genhd.c b/block/genhd.c
index 02e9fca..43d783a 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1798,3 +1798,29 @@ static void disk_release_events(struct gendisk *disk)
WARN_ON_ONCE(disk-ev  disk-ev-block != 1);
kfree(disk-ev);
 }
+
+
+int bug_752881_dbg;
+static int __init set_bug_752881_dbg(char *s)
+{
+   set_bug_752881_dbg = simple_strtoul(s, NULL, 0);
+
+   return 1;
+}
+__setup(bug_752881_dbg=, set_bug_752881_dbg);
+
+#define BUG_DUMP_STK 1
+#define BUG_GOOD_CODE 2
+
+int dump_bug_752881(struct gendisk *disk)
+{
+if (disk_max_parts(disk) = 1)
+return 0;
+if (bug_752881_dbg  BUG_DUMP_STK) {
+printk(%s() - disk_max_parts(disk)=%d, (disk-flags 
GENHD_FL_NO_PART_SCAN)=%#x\n,
+__func__, disk_max_parts(disk), (disk-flags 
GENHD_FL_NO_PART_SCAN));
+}
+if (bug_752881_dbg  BUG_GOOD_CODE)
+return 1;
+return !(disk-flags  GENHD_FL_NO_PART_SCAN);
+}
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 6d18f35..be3ad96 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -237,8 +237,13 @@ static inline int disk_max_parts(struct gendisk *disk)

 static inline bool disk_part_scan_enabled(struct gendisk *disk)
 {
+#if 0
return disk_max_parts(disk)  1 
!(disk-flags  GENHD_FL_NO_PART_SCAN);
+#else
+extern int dump_bug_752881(struct gendisk *disk);
+return dump_bug_752881(disk);
+#endif
 }

 static inline dev_t disk_devt(struct gendisk *disk)


I also suspect that having a blank bluRay in the tray which gives
media errors is important?

Aug  4 06:15:51 azza kernel: [3.793076] generic-usb
0003:1267:0201.0001: input,hidraw0: USB HID v1.00 Mouse [USB Mouse] on
usb-:00:1a.1-1/input0
Aug  4 06:15:51 azza kernel: [3.795362]  sdb: sdb1 sdb2 sdb3 sdb4
Aug  4 06:15:51 azza kernel: [3.795721] sd 4:0:0:0: [sdb] Attached SCSI disk
Aug  4 06:15:51 azza kernel: [3.797081] input: Dell Dell Smart
Card Reader Keyboard as
/devices/pci:00/:00:1a.2/usb8/8-1/8-1:1.0/input/input1
Aug  4 06:15:51 azza kernel: [3.797196] generic-usb
0003:413C:2101.0002: input,hidraw1: USB HID v1.11 Keyboard [Dell Dell
Smart Card Reader Keyboard] on usb-:00:1a.2-1/input0
Aug  4 06:15:51 azza kernel: [3.797286] usbcore: registered new
interface driver usbhid
Aug  4 06:15:51 azza kernel: [3.797331] usbhid: USB HID core driver

Bug#756970: /boot/vmlinuz-3.14-2-amd64: kernel BUG at ..linux-3.14.13/fs/btrfs/ctree.c:3215!

2014-08-03 Thread Nikolaus Rath
Package: src:linux
Version: 3.14.13-2
Severity: normal
File: /boot/vmlinuz-3.14-2-amd64

I was peacefully transferring a big file to my external USB harddisk
formatted with btrfs, when the kernel brutally lashed out with the BUG
below, preventing all further access to the disk:


-- Package-specific info:
** Version:
Linux version 3.14-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 
(Debian 4.8.3-5) ) #1 SMP Debian 3.14.13-2 (2014-07-24)

** Command line:
BOOT_IMAGE=/vmlinuz-3.14-2-amd64 root=/dev/mapper/vg0-debian ro quiet 
init=/bin/systemd

** Tainted: D (128)
 * Kernel has oopsed before.

** Kernel log:
[ 5659.098451] BTRFS info (device dm-9): disk space caching is enabled
[ 7516.376999] BTRFS: device fsid 8742472d-a9b0-4ab6-b67a-5d21f14f7a38 devid 1 
transid 164974 /dev/mapper/vg0-nikratio_crypt
[ 8239.129310] [ cut here ]
[ 8239.129328] kernel BUG at 
/build/linux-C0Ywsc/linux-3.14.13/fs/btrfs/ctree.c:3215!
[ 8239.129346] invalid opcode:  [#1] SMP 
[ 8239.129359] Modules linked in: btusb binfmt_misc bridge stp llc tun ext4 
mbcache jbd2 uvcvideo videobuf2_vmalloc videobuf2_memops ath3k videobuf2_core 
bluetooth 6lowpan_iphc videodev eeepc_wmi media asus_wmi sparse_keymap crc16 
iTCO_wdt iTCO_vendor_support evdev snd_usb_audio snd_usbmidi_lib snd_rawmidi 
snd_seq_device nouveau arc4 mxm_wmi rt2800pci snd_hda_codec_hdmi 
snd_hda_codec_realtek snd_hda_codec_generic ttm rt2800mmio snd_hda_intel 
rt2800lib snd_hda_codec rt2x00pci rt2x00mmio rt2x00lib eeprom_93cx6 mei_me 
mac80211 drm_kms_helper drm mei snd_hwdep cfg80211 crc_ccitt rfkill snd_pcm 
snd_timer i2c_algo_bit snd lpc_ich mfd_core i2c_i801 i2c_core shpchp soundcore 
battery wmi video button x86_pkg_temp_thermal intel_powerclamp psmouse 
serio_raw intel_rapl pcspkr processor kvm_intel kvm hwmon_vid coretemp loop 
fuse parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq sha256_ssse3 
sha256_generic dm_crypt hid_generic usbhid usb_storage hid dm_mod sg sd_mod 
crc_t10dif sr_mod crct10di
 f_generic cdrom crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel 
ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper 
cryptd ahci libahci libata ehci_pci xhci_hcd ehci_hcd scsi_mod e1000e usbcore 
ptp usb_common pps_core thermal fan thermal_sys
[ 8239.129735] CPU: 1 PID: 11122 Comm: btrfs-endio-wri Not tainted 3.14-2-amd64 
#1 Debian 3.14.13-2
[ 8239.129755] Hardware name: System manufacturer System Product Name/P8Z68-V 
GEN3, BIOS 3603 11/09/2012
[ 8239.129777] task: 880215748ce0 ti: 88000ae38000 task.ti: 
88000ae38000
[ 8239.129794] RIP: 0010:[a029c870]  [a029c870] 
btrfs_set_item_key_safe+0x170/0x180 [btrfs]
[ 8239.129823] RSP: 0018:88000ae39bc0  EFLAGS: 00010286
[ 8239.129836] RAX:  RBX: 0014 RCX: dd0d4000
[ 8239.129853] RDX:  RSI: 88000ae39cc7 RDI: 88000ae39bd7
[ 8239.129869] RBP: 8801d6e7a2f0 R08: 1000 R09: 88000ae39be0
[ 8239.129885] R10:  R11:  R12: 88000ae39bc6
[ 8239.129902] R13: 88018033ca00 R14: 8801ca3f4000 R15: 88000ae39cc7
[ 8239.129918] FS:  () GS:88021ec4() 
knlGS:
[ 8239.129937] CS:  0010 DS:  ES:  CR0: 80050033
[ 8239.129950] CR2: 7ffbe5f3f000 CR3: 000190fc4000 CR4: 000407e0
[ 8239.129966] Stack:
[ 8239.129972]  0686 006c 86dd0d30 
6c06
[ 8239.129992]  dd0d3000 8801d6e7a2f0  
dd0d4000
[ 8239.130013]  88018033ca00 dd0e8000 0ba7 
a02d28d8
[ 8239.130033] Call Trace:
[ 8239.130046]  [a02d28d8] ? __btrfs_drop_extents+0x4c8/0xc60 [btrfs]
[ 8239.130068]  [a02c310b] ? 
insert_reserved_file_extent.constprop.55+0x9b/0x300 [btrfs]
[ 8239.130093]  [a02c8d63] ? btrfs_finish_ordered_io+0x2d3/0x560 
[btrfs]
[ 8239.130116]  [a02ecd30] ? worker_loop+0x140/0x520 [btrfs]
[ 8239.130135]  [a02ecbf0] ? btrfs_queue_worker+0x300/0x300 [btrfs]
[ 8239.130152]  [81080a68] ? kthread+0xb8/0xd0
[ 8239.130165]  [810809b0] ? kthread_create_on_node+0x170/0x170
[ 8239.130181]  [814d2c4c] ? ret_from_fork+0x7c/0xb0
[ 8239.130195]  [810809b0] ? kthread_create_on_node+0x170/0x170
[ 8239.130210] Code: 7c 24 17 4c 89 fe 48 89 44 24 20 0f b6 44 24 0e 88 44 24 
1f 48 8b 44 24 06 48 89 44 24 17 e8 68 f2 ff ff 85 c0 0f 8f 47 ff ff ff 0f 0b 
0f 0b 66 66 66 2e 0f 1f 84 00 00 00 00 00 41 55 48 b8 00 
[ 8239.130321] RIP  [a029c870] btrfs_set_item_key_safe+0x170/0x180 
[btrfs]
[ 8239.130342]  RSP 88000ae39bc0
[ 8239.137238] ---[ end trace d56db635f52d9d4d ]---

** Model information
sys_vendor: System manufacturer
product_name: System Product Name
product_version: System Version
chassis_vendor: Chassis Manufacture
chassis_version: Chassis Version
bios_vendor: American Megatrends Inc.

Bug#750360: systemd-sysv: breaks NFS root systems

2014-08-03 Thread Steve M. Robbins
On Tue, Jun 03, 2014 at 07:49:08PM +0200, maximilian attems wrote:
 
 thank you very much, pushed out to initramfs repo:
 http://anonscm.debian.org/gitweb/?p=kernel/initramfs-tools.git
 
 will upload soonish.

Hi.  It's two months later and people (e.g. me!) are being bitten by
this bug when upgrading to systemd.  Can I help with getting this fix
uploaded?

Thanks,
-Steve


signature.asc
Description: Digital signature